/* Fester Header oben in der Mitte */
#headerTitle {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
  font-weight: bold;
  color: gold;
  z-index: 3000;
  font-family: "Permanent Marker", sans-serif; /* fallback auf sans-serif, falls Permanent Marker nicht geladen wird */
  font-weight: 400; /* Normalgewicht */
  font-style: normal;
  z-index: 9000;
}

/* Grundstil und Hintergrundbild */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: url("hintergrundblaugruen.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #000;
  position: relative;
  height: 100%; /* oder min-height: 100%; */
  overflow: hidden;   /* Verhindert das Scrollen */

}

/* Für mobile Geräte (z. B. iPhone) */
@media only screen and (max-width: 768px) {
  body {
    /* Ganz neuer Hintergrund ohne fixed */
    background: url("hintergrundblaugruen.jpg") no-repeat center center;
    background-size: cover;
    min-height: 100vh; 
      -webkit-text-size-adjust: 100%;
  }
}



/* Obere Buttons werden jetzt in einem eigenen Container unter dem Header positioniert */
#topButtons {
  position: fixed;       /* oben angeheftet */
  top: 60px;             /* Abstand von oben (passt unter deinen Titel) */
  left: 0;               /* links an den Fensterrand */
  right: 0;              /* rechts an den Fensterrand */
  display: flex;
  justify-content: space-between; /* Buttons werden links und rechts verteilt */
  align-items: center;
  padding: 0 20px;       /* horizontaler "Rand" innen, damit die Buttons nicht direkt am Browserrand kleben */
  z-index: 9000;         /* damit sie über dem Hintergrund und unter dem Titel liegen */
}


/* Modale Fenster (Sprachwahl, Kategorienwahl, Regeln-Overlay) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9001;
}

.hidden {
  display: none;
}

.modal-content {
  background: #333;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
}

.modal-content h2 {
  margin-top: 0;
}

/* In den Modalen: Überschriften in gold, Text weiß und linksbündig */
.rulesContentContainer .rulesContent {
  max-height: 70vh;
  overflow-y: auto;
  text-align: left;
  color: #fff;
.rulesContentContainer .rulesContent h3,
.rulesContentContainer .rulesContent h4,
  color: gold;
z-index: 7000;
}

/* Button-Styling: Gold mit schwarzer Schrift */
button, .lang-btn, .cat-btn {
  background: gold;
  color: black;
  border: none;
  padding: 10px 15px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
  -webkit-tap-highlight-color: transparent;
}

button:focus, .lang-btn:focus, .cat-btn:focus {
  outline: none;
  background: gold;  /* oder denselben Hintergrund wie im Normalzustand */
}

button:hover, .lang-btn:hover, .cat-btn:hover {
  background: darkgoldenrod;
}

/* Oben sichtbare Buttons im Container */
#btnNewGame, #btnRules {
  width: 150px;
  z-index: 9000;
}

/* Spielbereich */
#gameContainer {
  text-align: center;
  margin-top: 200px;
}

/* Wortanzeige: als goldener "Button", 70% Breite, zentriert */
#wordDisplay {
  width: 70%;
  margin: 20px auto;
  padding: 15px;
  background: gold;
  color: black;
  border-radius: 5px;
  font-size: 2rem;
  text-align: center;
  overflow-wrap: break-word;
  hyphens: auto;
}

.translationField {
  border: none !important;       /* Entfernt jeden Rahmen */
  box-shadow: none !important;   /* Entfernt eventuelle Schatten */
  background: rgba(255, 215, 0, 0.6); /* Dein gewünschter Hintergrund */
  padding: 8px;
  margin: 5px auto;
  width: 70%;
  border-radius: 5px; /* Falls Du abgerundete Ecken möchtest – andernfalls entfernen */
  font-size: 1.2rem;
  text-align: center;
  white-space: normal; /* oder white-space: pre-wrap; */
  display: block;      /* falls nötig, um sich nicht gegenseitig in eine Reihe zu schieben */
}

.language {
  display: block;    /* Setzt die Sprache auf Block, damit sie eine eigene Zeile bekommt */
  font-weight: bold; /* Nur als Beispiel für bessere Sichtbarkeit */
  margin-bottom: 5px;
}

.word {
  display: block;    /* Setzt das Wort ebenfalls auf einen eigenen Block */
  font-style: italic;/* Beispiel: kursiv, damit man sieht, wo das Wort steht */
}


/* Rundenzähler als nicht klickbarer Button */
#roundCounter {
  position: static;
  transform: none;
  font-size: 1.5rem;
  background: gold;
  color: black;
  padding: 10px 15px;
  border-radius: 5px;
  z-index: 3000;
  pointer-events: none;
  background: rgba(255, 215, 0, 0.6); /* Dein gewünschter Hintergrund */
}

/* Steuerungselemente am unteren Rand */
#btnSkip {
  position: fixed;
  bottom: 10px;
  left: 20px;
  z-index: 3000;
  width: 150px;
}

#btnNextWord {
  position: fixed;
  bottom: 10px;
  right: 20px;
  z-index: 3000;
  width: 150px;
    -webkit-text-size-adjust: 100%;
}

/* Regeln-Overlay: Die Buttons im Overlay erhalten ebenfalls die einheitliche Breite */
.rulesButtons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.rulesButtons button {
  width: 150px;
}
