body {
    margin: 0;
    font-family: sans-serif;
    background: #121212;
    color: white;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
	overscroll-behavior-y: contain;
}

section { width: 90%; }
.hidden { display: none !important; }

button {
    background: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 10px;
    margin-top: 20px;
}

#game-screen {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #222;
	transition: background-color 0.2s ease-in-out;
}

#timer-bar-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

#timer-bar-fill {
    width: 100%; /* Startet voll */
    height: 100%;
    background: #007bff;
    transition: width 1s linear, background-color 0.3s;
}

/* Wenn es kritisch wird (letzte 10 Sekunden) */
.timer-critical {
    background-color: #dc3545 !important;
    animation: pulse-bg 1s infinite;
}

@keyframes pulse-bg {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

#word-display {
    font-size: 5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.orient-illustration {
    width: 80%;
    max-width: 80px; /* Begrenzung für größere Bildschirme */
    height: auto;
    border-radius: 15px;
    margin-top: 20px;
}

#game-timer {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
}

#history-container {
    margin-top: 20px;
    max-height: 200px; /* Begrenzt die Höhe */
    overflow-y: auto;  /* Macht die Liste scrollbar */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
}

#history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

#history-list li {
    padding: 5px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
}

/* Farben für die Liste */
.correct { color: #28a745; }
.passed { color: #dc3545; opacity: 0.7; }

/* Visuelles Feedback beim Kippen */
.correct { background-color: #28a745 !important; }
.pass { background-color: #dc3545 !important; }