
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #7dacc1;
}

#randomImage {
  position: absolute;
  top: 70px;
  left: 90px;
  width: 70%;
  max-width: 700px;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 3px solid #2b4a7b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#roundcounter {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #ffffff;
  border-radius: 14px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  border: 2px solid rgba(106, 17, 203, 0.7);
  box-shadow: 0 4px 20px rgba(106, 17, 203, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}s#roundcounter:hover {
  transform: scale(1.07) rotate(-1deg);
  box-shadow: 0 6px 25px rgba(106, 17, 203, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#totalpoints {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #FFD700, #FFC300, #FFB000);
  color: #3a2a00;
  border-radius: 14px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  border: 2px solid rgba(255, 215, 0, 0.7);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#totalpoints:hover {
  transform: scale(1.07) rotate(-1deg);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#totalpoints::before {
  content: "🏆 ";
  font-size: 20px;
}

#distancebadge {
  position: absolute;
  top: 80px;
  right: 15px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #ff4e50, #f9d423);
  color: #3a1c00;
  border-radius: 14px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  border: 2px solid rgba(255, 78, 80, 0.7);
  box-shadow: 0 4px 20px rgba(255, 78, 80, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#mapContainer {
  position: absolute;
  bottom: 20px;  
  right: 20px;
  text-align: center;  
}
#Karte {
  width: 550px;
  height: auto;
  border: 2px solid black;
  border-radius: 5px;
  display: block;
  margin: 0 auto;
  cursor: crosshair;
}
#confirmButton {
  margin-top: 5px;        
  padding: 8px 180px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

/* Startscreen */
#Startscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  background-color: #713b3b;
  align-items: center;
  z-index: 1000;
}
#Startbutton {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px 40px;
  font-size: 24px;
  letter-spacing: 0.5px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 1001;
}

/* Endscreen */
/* Hintergrund / Overlay */
#Endscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 25, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  font-family: "Segoe UI", Arial, sans-serif;

  z-index: 998;
  display: none;

  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.4s ease forwards;
}


/* Allgemeine Button-Styles */
#Endpunktzahl, #Restartbutton {
  position: fixed;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 18px 55px;
  font-size: 26px;
  font-weight: 600;

  background: linear-gradient(135deg, #ffe600, #ffa800);
  color: #3a1a00;

  border: none;

  /* ebenfalls weniger rund */
  border-radius: 6px;

  cursor: pointer;
  box-shadow: 
    0 6px 18px rgba(0, 0, 0, 0.35),
    0 0 12px rgba(255, 196, 0, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 999;
  display: none;
}

#Endpunktzahl:hover, #Restartbutton:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 
    0 8px 22px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(255, 200, 0, 0.8);
}

#Endpunktzahl { top: 40%; }
#Restartbutton { top: 58%; }


/* Credits */
#credits {
  position: fixed;
  bottom: 12px;
  left: 12px;
  font-size: 14px;
  color: black;
  font-family: "Segoe UI", Arial, sans-serif;
  z-index: 1002;
}


/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}


