/* Quiz Styles */
:root {
    /* Flag colors */
    --flag-red: #b50603;
    --flag-blue: #00538f;
    --flag-white: #ffffff;
    --flag-platinum: #E2E2E2;
    --flag-green: #306b34;

    /* Legacy names for compatibility */
    --norway-blue: #00538f;
    --norway-red: #b50603;
    --tajik-emerald: #306b34;
    --tajik-gold: #D4AF37;

    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;

    --bg-snow: #f7f5fb;
    --primary: #ae5147;
    /* warm accent color */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lora', serif;
    --font-script: 'Cinzel Decorative', cursive;
}

/* Font Awesome accent for quiz */
.fa-accent {
    color: #ae5147;
}

.fa-lg-accent {
    font-size: 1.6rem;
    color: #ae5147;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-snow);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quiz-container {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    padding: 40px;
    position: relative;
}

.back-button {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: var(--flag-blue);
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-header h1 {
    font-family: var(--font-script), var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.quiz-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.question-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    animation: slideIn 0.5s ease;
}

.question-number {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.question-text {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 500;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    background: var(--bg-white);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-dark);
}

.option:hover {
    border-color: var(--flag-green);
    transform: translateX(5px);
}

.option.selected {
    border-color: var(--flag-blue);
    background: linear-gradient(135deg, rgba(0, 83, 143, 0.1), rgba(48, 107, 52, 0.1));
}

.option.correct {
    border-color: var(--flag-green);
    background: rgba(48, 107, 52, 0.1);
}

.option.incorrect {
    border-color: var(--flag-red);
    background: rgba(181, 6, 3, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 83, 143, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.results {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.results.hidden {
    display: none;
}

.results h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--flag-blue);
    margin-bottom: 20px;
}

.score {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--flag-blue), var(--flag-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.message {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.restart-btn,
.home-btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 10px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.restart-btn {
    background: var(--primary);
    color: var(--flag-blue);
    border: none;
}

.home-btn {
    background: transparent;
    color: var(--flag-green);
    border: 2px solid var(--flag-green);
}

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.home-btn:hover {
    background: var(--flag-green);
    color: white;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .quiz-container {
        padding: 25px;
    }

    .quiz-header h1 {
        font-size: 2rem;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .results h2 {
        font-size: 2rem;
    }

    .score {
        font-size: 2.5rem;
    }
}