:root {
    --light-bg-primary: #f0f4f8;
    --light-bg-secondary: #dbe3eb;
    --light-accent-color: #4a90e2;
    --light-text-color: #333333;
    --dark-bg-primary: #121212;
    --dark-bg-secondary: #1e1e1e;
    --dark-accent-color: #bb86fc;
    --dark-text-color: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
}

.quiz-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: calc(100vh - 80px);
}

#quiz-start, #quiz-end {
    text-align: center;
}

#quiz-game {
    width: 100%;
    max-width: 800px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.timer-container {
    font-size: 1.5rem;
    font-weight: bold;
}

#question-container {
    margin: 2rem 0;
}

#question {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

#options-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.option {
    padding: 1rem;
    border: 2px solid var(--light-bg-tertiary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #ffffff; /* White background for light mode */
}

html.dark .option {
    border-color: var(--dark-bg-tertiary);
    background-color: var(--dark-bg-secondary); /* Slightly lighter gray for dark mode */
}

.option:hover {
    border-color: var(--light-accent-color);
    background-color: #eef5ff; /* A very light blue */
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html.dark .option:hover {
    border-color: var(--dark-accent-color);
    background-color: #2a2a3a; /* A slightly purplish dark gray */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.option.correct {
    background-color: #a7f3d0; /* Light green */
    border-color: #2f5d50;
}

html.dark .option.correct {
    background-color: #2f5d50; /* Dark green */
    border-color: #a7f3d0;
}

.option.incorrect {
    background-color: #f8d7da; /* Light red */
    border-color: #721c24;
}

html.dark .option.incorrect {
    background-color: #721c24; /* Dark red */
    border-color: #f8d7da;
}

.game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 1.2rem;
}

.watermark {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

html.dark .watermark {
    color: rgba(255, 255, 255, 0.3);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .quiz-container {
        padding: 15px;
    }

    #quiz-start h1, #quiz-end h1 {
        font-size: 2.5rem; /* Tailwind 'text-4xl' is 2.25rem, this is slightly larger */
    }

    .game-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .game-header h1 {
        font-size: 1.75rem; /* text-2xl */
    }

    .timer-container {
        font-size: 1.25rem; /* text-xl */
    }

    #question {
        font-size: 1.25rem; /* text-xl */
        margin-bottom: 1rem;
    }

    #options-container {
        grid-template-columns: 1fr; /* Stack options vertically */
        gap: 0.75rem;
    }

    .option {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .game-footer {
        flex-direction: column;
        gap: 15px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #quiz-start h1, #quiz-end h1 {
        font-size: 2rem; /* text-3xl */
    }
    
    #quiz-start p, #quiz-end p {
        font-size: 1.125rem; /* text-lg */
    }

    .game-header h1 {
        font-size: 1.5rem; /* text-xl */
    }

    #question {
        font-size: 1.125rem; /* text-lg */
    }

    .option {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}