/* ------------------------------
   GLOBAL
------------------------------ */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: black;
  color: white;
  text-align: center;
}

/* ------------------------------
   BANNER
------------------------------ */
#banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 10px;
  background: black;
}

#bannerImg {
  height: 150px;
}

#banner h2 {
  margin: 0;
}

#login, #logout {
  padding: 8px 14px;
  background: white;
  color: black;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

#logout { display: none; }

/* ------------------------------
   MODALS
------------------------------ */
.modal-background {
  display: none; /* versteckt */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-background.active { display: flex; }

.modal-box {
  background-color: #1e1e1e; /* dunkles Grau wie Modal Content */
  color: #f0f0f0;           /* helle Schrift */
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

/* Inputs */
.modal-box input {
  width: 90%;
  padding: 8px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #555;   /* dunkler Rahmen */
  background-color: #2a2a2a; /* dunkler Input-Hintergrund */
  color: #f0f0f0;            /* helle Schrift */
  font-size: 15px;
  text-align: center;
}

/* Buttons */
.modal-box button {
  width: 90%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  background-color: #fff;  /* weißer Hintergrund */
  color: #000;             /* schwarze Schrift */
  font-weight: bold;
  cursor: pointer;
  border: none;            /* kein Rahmen */
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover-Effekt */
.modal-box button:hover {
  background-color: #f0f0f0; /* leichtes Grau beim Hover */
  color: #000;               /* Schrift bleibt schwarz */
}



/* UPLOAD BUTTONS */
#uploadButton, #manualUploadButton {
  display: none;
  margin: 10px auto;
  width: 250px;
  padding: 12px;
  border-radius: 8px;
  background: #ee2354;
  cursor: pointer;
}


/* MAP */
#map {
  width: 90%;
  max-width: 900px;
  height: 65vh;
  margin: 20px auto;
  border-radius: 10px;
}

#manualMap {
  width: 100%;
  height: 250px;
  margin: 10px 0;
  border-radius: 8px;
  overflow: hidden;
}

/* STATS */
#highscoreContainer {
  margin: 20px auto;
  width: 90%;
  max-width: 600px;
  background: #111;
  border-radius: 10px;
  padding: 20px;
}


#statsContainer {
    display: flex;
    justify-content: center;  
    gap: 24px;
    margin: 16px auto;         
    flex-wrap: wrap;
    max-width: 900px;         
}

.stat-item {
    background:  #ee2354;     
    border-radius: 10px;
    padding: 12px 18px;
    text-align: center;
    min-width: 150px;
    color: #ffffff;          
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); 
}


.stat-number {
    font-size: 26px;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 13px;
    color: white;
}



/* MARKER POPUP */

/* Gesamtes Popup */
.popup-content {
    min-width: 180px;
    font-size: 13px;
}

/* Text linksbündig */
.popup-meta {
    text-align: left;
    margin-bottom: 8px;
}

/* Bild zentrieren */
.popup-image-wrapper {
    display: flex;
    justify-content: center;
    margin: 8px 0;
}

.popup-image {
    max-width: 160px;
    max-height: 160px;
    border-radius: 8px;
}

/* Button zentrieren (optional) */
.popup-actions {
    text-align: center;
    margin-top: 8px;
}

/* Button Styling */
.delete-btn {
    background-color: black;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    width: 160px;  
    transition: background-color 0.2s ease;
}

.delete-btn:hover {
    background-color: #ee2354;
}


/* Martin Marker */
.martin-marker {
    border-radius: 50%;
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.martin-marker img {
    width: 42px;
    height: 42px;
    pointer-events: none;
}

.martin-blue  { background-color: #007bff; }
.martin-red   { background-color: #ee2354; }
.martin-gray  { background-color: #979696; }



.clickable {
    cursor: pointer;
}

.clickable:hover {
    transform: scale(1.05);
    transition: transform 0.15s ease;
}


/* STATISTIC DETAILS POPUP */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7); /* etwas dunklerer Overlay */
}

.modal-content {
  background-color: #1e1e1e; /* dunkles Grau */
  color: #f0f0f0; /* helle Schrift */
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.modal-content table {
  width: 100%;
  border-collapse: collapse;
}

.modal-content th, .modal-content td {
  border: 1px solid #444; /* dunklere Tabelle */
  padding: 8px;
  text-align: left;
  color: #f0f0f0; /* helle Schrift in Zellen */
}

.modal-content th {
  background-color: #333; /* dunkler Header */
  color: #fff;
}

.modal-content td {
  background-color: #2a2a2a; /* dunkle Zellen */
}

.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #f0f0f0;
}





