/* Schriftarten für das Arcade-Feeling laden */
@import url("https://googleapis.com");

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 {
  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);
  margin-bottom: 20px;
}

#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);
}

/* Der Bereich für das aktuelle Spiel */
#spielfeldbereich {
  width: 500px;
  height: 500px;
  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;
  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 */
}
