@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background-image: url(images/bg-image.jpg);
    background-position: center;
    background-attachment: fixed;
    background-size: contain;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.quiz-container {
    background-color: #1a1a2e;
    width: 100%;
    max-width: 650px;
    border: 1px solid silver;
    border-radius: 16px;
    padding: 2rem;
}

.quiz-intro {
    text-align: center;
    padding: 3rem 1rem;
}

.quiz-intro h2,
.quiz-header h1,
.score-board h2 {
    font-size: 1.8rem;
    color: #ffb25a;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 6px #fed54e4d;
}

.quiz-intro .tagline {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

#start-btn,
.next-btn {
    background: #f59e35;
    color: #fff;
    box-shadow: 0 0 10px rgba(231, 213, 15, 0.3);
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
    padding: 0.8rem 2rem;
    cursor: pointer;
}

#start-btn:hover {
    background: #e08215;
    transform: scale(1.03);
}

.quiz {
    display: none;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.timer-display {
    background-color: #26263e;
    color: #ffd95a;
    box-shadow: 0 0 8px #f9d66440;
    padding: 0.6rem 1rem;
    border-radius: 100%;
    font-weight: 500;
    border: 1px solid gold;
}

.question-para {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.option-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.options-grid {
    display: grid;
    grid-template-columns: 200px 200px;
    gap: 1rem;
    margin-bottom: 1rem;
}

.options-grid .options {
    border: 1px solid #3a5eff;
    color: #e0e0e0;
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    background-color: #2e2e50;
    transform: scale(1.01);
    box-shadow: 0 0 8px rgba(58, 94, 255, 0.25);
}

.options.correct {
    background-color: #4caf50;
    border: 1px solid #2e7d32;
}

.options.wrong {
    background-color: #f83d30;
    border: 1px solid #c62828;
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-question {
    font-size: 0.95rem;
    color: #aab3d1;
}

.score-board {
    display: none;
    padding: 2rem 1rem;
}

.score-board h2,
.score-message {
    text-align: center;
}

@media (max-width: 500px) {
    .option-container {
        display: block;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    #start-btn,
    .next-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .quiz-intro h2,
    .quiz-header h1,
    .score-board h2 {
        font-size: 1.5rem;
    }

    .question-para {
        font-size: 1rem;
    }

    .quiz-container {
        padding: 1.5rem;
    }

    .timer-display {
        padding: 0.4rem 0.8rem;
    }
}