/* Basis-Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-size: 16px;
  font-family: Arial, sans-serif;
  background-color: #1E1E1E;
  color: #E0E0E0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden; /* Kein horizontaler Scrollbalken */
}

body {
  display: flex;
  flex-direction: column; /* Anordnung von Header-Bild und Game-Container */
  align-items: center; /* Zentriert Inhalte horizontal */
  justify-content: flex-start; /* Startet Inhalte oben */
  padding-top: 15px; /* Abstand des gesamten Inhalts zum oberen Rand */
}

/* Allgemeine Container */
.game-container {
  width: 90%;
  max-width: 400px;
  text-align: center;
  background-color: #2E2E2E;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.5);
  margin-top: 105px;
}

h1 {
  color: #D4AF37;
  font-weight: 500;
  margin-bottom: 15px;
}

.car-image {
  width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
}

/* Formulareingaben */
input[type="text"] {
  margin: 12.5px 0;
  padding: 12px;
  width: 80%;
  max-width: 300px;
  background-color: #1E1E1E;
  color: #E0E0E0;
  border: 1px solid #444;
  border-radius: 5px;
}



/* Buttons */
button {
  margin: 10px 0; /* Vertikaler Abstand zwischen den Buttons */
  padding: 10px 20px; /* Polsterung für ästhetische Größe */
  font-size: 1rem; /* Einheitliche Schriftgröße */
  cursor: pointer;
  color: #1E1E1E;
  background-color: #D4AF37;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s;

  /* Darstellung als Blockelement */
  display: block; /* Sicherstellen, dass Buttons untereinander bleiben */
  text-align: center; /* Zentrierter Text */
  width: 100%; /* Proportionale Breite der Buttons */
  max-width: 250px; /* Maximale Breite, um ästhetisch zu bleiben */
  margin-left: auto; /* Zentriert die Buttons horizontal */
  margin-right: auto;
}




/* Hover-Effekt */
button:hover {
  background-color: #B8972F;
  transform: scale(1.05);
}




/* Buttons */
button1 {
  margin: 10px 0; /* Vertikaler Abstand zwischen den Buttons */
  padding: 10px 20px; /* Polsterung für ästhetische Größe */
  font-size: 1rem; /* Einheitliche Schriftgröße */
  cursor: pointer;
  color: #1E1E1E;
  background-color: #D4AF37;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s;

  /* Darstellung als Blockelement */
  display: block; /* Sicherstellen, dass Buttons untereinander bleiben */
  text-align: center; /* Zentrierter Text */
  width: 52%; /* Proportionale Breite der Buttons */
  max-width: 250px; /* Maximale Breite, um ästhetisch zu bleiben */
  margin-left: auto; /* Zentriert die Buttons horizontal */
  margin-right: auto;
}




/* Hover-Effekt */
button1:hover {
  background-color: #B8972F;
  transform: scale(1.05);
}

/* Modales Fenster */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.close-btn {
  position: absolute; /* Position relativ zur Modal-Box */
  top: 10px; /* Abstand vom oberen Rand der Modal-Box */
  right: 10px; /* Abstand vom rechten Rand der Modal-Box */
  font-size: 1.5rem; /* Größe des Kreuzes */
  color: #E0E0E0; /* Farbe des Kreuzes */
  cursor: pointer; /* Zeigt an, dass es klickbar ist */
  z-index: 11; /* Sicherstellen, dass es über dem Modal-Inhalt liegt */
  background: none; /* Kein Hintergrund */
  border: none; /* Kein Rahmen */
}

.close-btn:hover {
  color: #B8972F; /* Hover-Effekt: Goldene Farbe */
  transform: scale(1.1); /* Leichte Vergrößerung beim Hover */
  transition: color 0.3s ease, transform 0.3s ease; /* Sanfter Übergang */
}

/* Modal-Content Box */
.modal-content {
  position: relative; /* Damit das `close-btn` sich relativ zur Box positioniert */
  background-color: #2E2E2E;
  color: #D4AF37;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 300px;
  width: 80%;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.5);
}


/* Dropdown-Menü */
nav {
  position: absolute;
  top: 20px;
  left: 20px;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #D4AF37;
  color: #1E1E1E;
  padding: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #2E2E2E;
  color: #E0E0E0;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  z-index: 1;
}

.dropdown-content a {
  color: #E0E0E0;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #444;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #B8972F;
}

/* Popup */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.7);
  color: #D4AF37;
  text-align: center;
  z-index: 9999;
}

.popup-content {
  font-size: 1rem;
  line-height: 1.5;
}



/* Container für das Header-Bild */
.header-image-container {
  width: 100%;
  text-align: center; /* Zentriert den Inhalt horizontal */
  margin-bottom: 10px; /* Abstand zum Game-Container */
  
}

/* Header-Bild */
.header-image {
  max-width: 100%; /* Bildbreite beschränkt auf 70% des Viewports */
  height: auto; /* Seitenverhältnis bleibt erhalten */
  display: inline-block; /* Bild wird zentriert */
  border-radius: 10px; /* Optionale Abrundung der Ecken */
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.5); /* Schattierung */
  margin-top: 37px;
  margin-left: -2%;
}


@media (max-width: 1200px) {
  .game-container {
    max-width: 80%;
    padding: 20px;
  }

  .dropdown-content a {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  button {
    font-size: 0.9rem;
  }

  input[type="text"] {
    width: 90%;
  }

  /* Datenschutzseite Anpassungen */
  .privacy-page {
    max-width: 700px; /* Kleinere maximale Breite */
    padding: 20px; /* Weniger Innenabstand */
    font-size: 1rem; /* Kleinere Schrift für Lesbarkeit */
  }
}

@media (max-width: 768px) {
  .game-container {
    max-width: 90%;
  }

  .dropdown-content a {
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  .dropbtn {
    font-size: 0.9rem;
    padding: 8px;
  }

  h1 {
    font-size: 1.5rem;
  }

  button {
    font-size: 0.85rem;
    padding: 8px 16px;
  }

  /* Datenschutzseite Anpassungen */
  .privacy-page {
    max-width: 90%; /* Passt sich dem Bildschirm an */
    padding: 15px; /* Weniger Innenabstand */
    font-size: 0.95rem; /* Angepasste Schriftgröße */
  }

  .privacy-page h1 {
    font-size: 2rem; /* Kleinere Überschrift */
  }
}

@media (max-width: 480px) {
  .game-container {
    max-width: 95%;
  }

  h1 {
    font-size: 1.3rem;
  }

  button {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  input[type="text"] {
    width: 95%;
  }

  /* Datenschutzseite Anpassungen */
  .privacy-page {
    max-width: 95%; /* Füllt fast den gesamten Bildschirm */
    padding: 10px; /* Minimaler Innenabstand */
    font-size: 0.9rem; /* Noch kleinere Schriftgröße */
  }

  .privacy-page h1 {
    font-size: 1.8rem; /* Überschrift auf mobilen Geräten verkleinern */
  }
}





