/* Schriftarten für das Arcade-Feeling laden */
@import url("https://fonts.googleapis.com/css?family=VT323&effect=neon|Courier+Prime");

body {
  display: flex;
  flex-direction: column;
  margin: 0px;
  padding: 20px;
  background-color: #16171e; /* Dunkles Gehäuse – bringt die Farben zum Leuchten */
  color: #f0f0f0;
  font-family: "Courier Prime", monospace;
  min-height: 100vh;
  box-sizing: border-box;
}

#ueberschrift {
  text-align: center;
  font-family: "VT323", monospace;
  font-size: 55px;
  color: #00ffcc; /* Neon-Türkis */
  margin: 15px 0 35px 0;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

#seitebereich {
  display: flex;
  flex-direction: row;
  justify-content: center; /* Zentriert die drei Hauptelemente auf der Seite */
  align-items: flex-start; /* Richtet sie oben bündig aus */
  gap: 30px; /* Erzeugt einen sauberen Abstand zwischen den Blöcken */
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

#anzeigen-container {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Abstand zwischen Punkte- und Speedbox */
}

/* Die Punkte- und Level-Anzeige links */
#punkte-anzeige,
#level-anzeige,
#reihen-anzeige {
  background: #222330;
  border: 2px solid #3a3b4c;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  min-width: 180px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#punkte-anzeige {
  color: #ff007f;
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}

#level-anzeige {
  color: #ffaa00;
  text-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

#reihen-anzeige {
  color: #00ffcc;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

/* Der Bereich für das aktuelle Spiel */
#nachster-stein-anzeige-bereich {
  width: 234px;
  height: 156px;
  border: 4px solid #3a3b4c;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

/* Der Bereich für das aktuelle Spiel */
#spielfeldbereich {
  width: 330px;
  height: 600px;
  border: 4px solid #3a3b4c;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

/* Die Highscore-Box rechts */
#highscore-box {
  background: #222330;
  border: 2px solid #3a3b4c;
  border-radius: 12px;
  padding: 25px;
  min-width: 280px;
  height: 555px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.highscore-titel {
  font-family: "VT323", monospace;
  font-size: 36px;
  color: #00ffcc;
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.3);
}

/* Das eigentliche Tabellen-Element */
#tabelle {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px; /* Macht die schicken Abstände zwischen den Zeilen */
  font-size: 16px;
}

/* Tabellen-Überschrift (Platz, Name, Punkte) */
#tabelle th {
  font-family: "VT323", monospace;
  font-size: 20px;
  color: #8b8ea8;
  padding: 0 10px 8px 10px;
  text-align: left;
}

#tabelle th:last-child {
  text-align: right;
}

/* Die Zeilen-Animation und Farbe */
#tabelle tbody tr {
  background-color: #2c2d3e;
}

#tabelle tbody tr:hover {
  background-color: #35374c; /* Heller beim Drüberfahren */
}

/* Zellen-Abstände und Rundungen */
#tabelle td {
  padding: 8px 12px;
}

/* Linke Spalte (Die Zahlen 1-10) */
#tabelle td:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  font-weight: bold;
  color: #ffcc00; /* Goldene Zahlen */
  width: 40px;
}

/* Mittlere Spalte (Name) */
#tabelle td:nth-child(2) {
  color: #ffffff;
}

/* Rechte Spalte (Punkte) */
#tabelle td:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  text-align: right;
  font-weight: bold;
  color: #00ffcc; /* Punkte leuchten auch grün */
}

/* Der abgedunkelte Hintergrund, der das Spiel pausiert */
#overlay-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(22, 23, 30, 0.85); /* Dunkelt den Hintergrund ab */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999; /* Liegt über allem */
}

/* Die eigentliche Popup-Box */
#popup-box {
  background: #222330;
  border: 4px solid #00ffcc; /* Neon-Türkis Rahmen bleibt */
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.3);
  max-width: 450px; /* Ein kleines bisschen breiter für den Text */
  width: 100%;
}
.popup-zeile {
  font-family: "Courier Prime", monospace;
  font-size: 18px;
  color: #f0f0f0;
  margin: 10px 0;
  text-align: center;
  width: 100%;
}

#popup-punkte-zahl {
  color: #ffaa00; /* Das macht deine '0' schick Retro-Orange! */
  font-weight: bold;
}

#willkommen-text-bereich {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

#gameover-text-bereich {
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

#overlay-buttons {
  flex-direction: row;
  gap: 10px;
  justify-content: center;
}

#overlay-buttons button {
  width: 185px;
}

/* Der Container, der Textfeld und Buttons umschließt */
#highscore-eingabe-bereich {
  flex-direction: column; /* Stapelt alles sauber untereinander */
  align-items: center; /* Zentriert Textfeld und Buttons perfekt in der Mitte! */
  gap: 15px; /* Sorgt für einen gleichmäßigen Abstand dazwischen */
  margin: 20px 0;
}

#spieler-name-input {
  font-family: "VT323", monospace;
  font-size: 24px;
  background-color: #16171e;
  border: 2px solid #ff007f; /* Neon-Pinker Rahmen */
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 6px;
  text-align: center;
  outline: none;
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
  width: 80%;
}

#spieler-name-input:focus {
  border-color: #00ffcc; /* Wechselt zu Türkis beim Reinklicken */
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

/* Die fetten Arcade-Button */
#fast-button,
#chill-button,
#speichern-button,
#abbrechen-button {
  font-family: "VT323", monospace;
  font-size: 28px;
  border: none;
  padding: 12px 35px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.1s ease;
}

#fast-button,
#chill-button {
  background-color: #00ffcc;
  color: #16171e;
  box-shadow: 0 5px 0 #00b38f;
}

#fast-button:hover,
#chill-button:hover {
  background-color: #33ffdd;
  box-shadow: 0 5px 0 #00cca3;
}

#fast-button:active,
#chill-button:active {
  transform: translateY(5px);
  box-shadow: none; /* Button drückt sich nach unten */
}

#speichern-button {
  background-color: #ff007f; /* Neon-Pink */
  color: #ffffff;
  box-shadow: 0 4px 0 #cc0066;
}

#abbrechen-button {
  background-color: #3a3b4c; /* Dunkelgrau */
  color: #ffffff;
  box-shadow: 0 4px 0 #252632;
}

#speichern-button:active,
#abbrechen-button:active {
  transform: translateY(4px);
  box-shadow: none;
}
