:root {
    --green: #7e7e7e;
    --purple: #7ca6ff;
    --purple-dark:color-mix(in srgb, var(--purple), black 20%);
    --ok: #00FF00;
    --not-ok: #FF0000;
    --navigation: color-mix(in srgb, var(--purple), black 20%);
}



@media (orientation: portrait) {
    /* Your landscape-specific styles here */
    .quiz-container #answers button {
        min-width: 100% !important;
    }
}


.quiz-container {
    box-sizing: border-box;
    margin: 10px;
    padding: 20px;
    min-height: 400px;
    display:flex;
    flex-direction: column;
    background-color: var(--purple);
    padding: 20px 30px;
    border-radius: 20px;
    border: 8px solid blue;

    .question {
        margin: 20px 0 ;
        font-size: 2rem;
        text-align: left;
        color: white;
    }

    .answers {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;

        button {
            color: var(--purple);
            background-color: var(--green);
            border: none;
            box-sizing: border-box;
            cursor: pointer;
            display: flex;
            font-family: Bebas Neue;
            font-size: 1.5rem;
            font-size: 2rem;
            font-weight: 400;
            padding: 10px;
            align-items: center;
            justify-content: center;

            min-width: calc(50% - 5px);
            min-height: 6rem;

            word-wrap: break-word;
            word-break: break-word;
            white-space: normal;
            overflow-wrap: break-word;
        }

        button.correct {
            background-color: var(--ok);
        }

        button.incorrect {
            background-color: var(--not-ok);
        }

        button.picked {
            border: 5px solid var(--purple-dark);
        }
    }

    .navigation {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .nav-button  {
            background-color: var(--navigation);
            border: none;
            cursor: pointer;
            font-family: Bebas Neue;
            font-size: 1.5rem;
            font-weight: 400;
            height: 3rem;
            padding: 10px;
            margin: 10px 0 0 0;
            width: 10ch;
            align-self: flex-end;
            display: none;
        }
        .nav-button.visible {
            display: block;
        }
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@keyframes celebrate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.question-wrapper, .answer-btn {
    animation: popIn 0.4s ease-out forwards;
}

.correct {
    background-color: #4CAF50 !important;
    color: white;
    animation: celebrate 0.5s ease-in-out;
}

.incorrect {
    background-color: #f44336 !important;
    color: white;
    animation: shake 0.4s ease-in-out;
}