:root {
    --primary: #845EC2;
    --secondary: #D65DB1;
    --accent: #FF9671;
    --bg: #F9F9F9;
    --text: #2C3E50;
    --correct: #00C896;
    --wrong: #FF6B6B;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    text-align: center;
    margin: 0;
    padding: 20px;
    color: var(--text);
}

.quiz-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.title {
    font-family: 'Fredoka One', cursive;
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 700;
}

.progress-box,
.score-box {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    font-size: 16px;
}

.quiz-container {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.image-box {
    background: #f0f2f5;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.option-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 15px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.option-btn:hover {
    background: #f7f7f7;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.option-btn.correct {
    background: var(--correct);
    color: white;
    border-color: var(--correct);
}

.option-btn.wrong {
    background: var(--wrong);
    color: white;
    border-color: var(--wrong);
    animation: shake 0.4s;
}

/* Results */
.result {
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: popIn 0.4s;
}

.hidden {
    display: none;
}

.final-score-text {
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0 20px;
}

#result-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.play-again-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 20px;
    border-radius: 50px;
    font-family: 'Fredoka One', cursive;
    cursor: pointer;
    box-shadow: 0 5px 0 #cc6f4f;
    transition: transform 0.1s;
}

.play-again-btn:active {
    transform: translateY(5px);
    box-shadow: none;
}

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

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

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

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

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

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}