:root {
    --gray: #EEE;
    --ok: #4DAD45;
    --not-ok: #EC2232;
    --navigation: color-mix(in srgb, var(--gray), black 20%);
}

body {
    font-family: Poppins, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-weight: 700;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f8e1e7, #f5f0e6);
}

main {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.quiz-container {
    border-radius: 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    width: 100%;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.question-answer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    text-align: center;
    animation: popIn 0.45s ease-out;
}

/* Frage */
.question-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.question {
    font-size: 2rem;
    margin: 0;
}

.questions-counter {
    font-size: 1rem;
    color: #666;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    align-items: center;
}

.answers button {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    background-color: var(--gray);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.answers button:hover {
    transform: scale(1.05);
    background-color: #ddd;
}

.answers button.correct {
    background-color: var(--ok);
    color: white;
    animation: correctPulse 0.4s ease;
}

.answers button.incorrect {
    background-color: var(--not-ok);
    color: white;
    animation: wrongShake 0.35s ease;
}

.answers button:disabled {
    cursor: not-allowed;
}

.hiddenImg {
    display: none;
    margin: 20px auto;
    width: 120px;
    max-width: 120px;
    animation: popIn 0.45s ease-out;
}

.answers p {
    font-size: 1.4rem;
    margin: 10px 0;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.score {
    font-size: 1.2rem;
}

.nav-button {
    background-color: var(--navigation);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-button:hover {
    transform: scale(1.1);
}

/* Animationen */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes correctPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes wrongShake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    50% {
        transform: translateX(8px);
    }

    75% {
        transform: translateX(-8px);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 600px) {
    .question {
        font-size: 1.5rem;
    }

    .answers button {
        font-size: 1rem;
    }

    .quiz-container {
        padding: 20px;
    }

    .navigation {
        flex-direction: column;
        gap: 12px;
    }
}