/* Grundlegendes Styling */
body {
    font-family: Arial, sans-serif;
    font-size: 1.2em;
    background-color: #000000; /* Dunkler Hintergrund */
    color: #f0f0f0; /* Helle Schrift */
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center; /* Horizontal zentrieren */
    align-items: center; /* Vertikal zentrieren */
    text-align: center;
}

/* Zentrierung des Start- und Spielbereichs */
.page {
    width: 90%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page img {
    max-width: 100%; /* Bildbreite auf 100% des Containers beschränken */
    height: auto; /* Höhe automatisch anpassen */
}

#rules-page, #start-page{
    height: 100%;
    align-items: center; /* Inhalte am oberen Rand */
}

#highscore-page {
    align-items: normal;
}

/* Eingabefelder und Checkboxen untereinander */
input[type="text"], .level-checkboxes, select {
    margin: 10px 0;
    padding: 12px 20px;
}

button {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 1px 0 0 #ffffff;
    background: #f9f9f9 linear-gradient(to bottom, #f9f9f9 5%, #d5d5d5 100%);
    border-radius: 15px; /* runderer Radius */
    border: 1px solid #dcdcdc;
    display: inline-block;
    cursor: pointer;
    color: #666666;
    font-family: Arial, serif;
    font-size: large;
    font-weight: bold;
    padding: 12px 24px;
    margin: 10px 0;
    text-decoration: none;
    text-shadow: 0 1px 0 #ffffff;
    width: fit-content;
}

button:hover {
    background: #e9e9e9 linear-gradient(to bottom, #d5d5d5 5%, #f9f9f9 100%);
}

button:active {
    position: relative;
    top: 1px;
}


#highscore-header {
    display: flex;
    justify-content: space-around; /* Platz zwischen den Headern */
    align-items: center; /* Vertikale Ausrichtung */
    padding: 10px; /* Abstand um die Header */
}

#highscore-page {
    font-size: larger;
}

.team-name {
    display: block;
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px; /* Abstand zwischen Namen und Punkten */
}

/* Schließen-Button */
#quit-game {
    position: absolute;
    top: 10px;
    right: 10px;
}

#back-to-start {
    position: absolute;
    top: 10px;
    left: 10px;
}

#word-display {
    font-size: 2em; /* Größe entsprechend h2 anpassen */
    margin: 20px 0; /* Abstand oben und unten */
    text-align: center; /* Text zentrieren */
    font-weight: bold;
    height: auto; /* Höhe automatisch anpassen */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Füge dies in styles.css hinzu */
@keyframes backgroundChange {
    from {
        background-color: green;
    }
    to {
        background-color: red;
    }
}

:root {
    --animation-duration: 45s; /* Dummy-Wert. Original wird in JS gesetzt */
}

.words-page {
    animation: backgroundChange var(--animation-duration) linear forwards;
}

