/* Global Styles */
body {
    background-color: #121212;
    color: #E0E0E0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.quiz-container {
    background: linear-gradient(145deg, #1d1d1d, #262626);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    position: relative;
}

#countdown {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ff6b6b;
    font-weight: bold;
    animation: countdown-animation 1s infinite ease-in-out;
}

@keyframes countdown-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#question-container {
    margin-bottom: 30px;
}

#question {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #00adb5;
    text-shadow: 0 0 15px #00adb5;
}

.btn-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn {
    background-color: #333;
    color: #00adb5;
    border: 2px solid #00adb5;
    padding: 15px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #00adb5;
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 173, 181, 0.4);
}

.correct {
    border: 2px solid #00ff99;
    animation: correct-blink 0.5s ease;
}

.wrong {
    border: 2px solid #ff6b6b;
    animation: wrong-blink 0.5s ease;
}

@keyframes correct-blink {
    0% { box-shadow: 0 0 10px #00ff99; }
    100% { box-shadow: none; }
}

@keyframes wrong-blink {
    0% { box-shadow: 0 0 10px #ff6b6b; }
    100% { box-shadow: none; }
}

.next-btn {
    background-color: #00ff99;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 30px;
    box-shadow: 0 5px 10px rgba(0, 255, 153, 0.4);
}

.next-btn:hover {
    background-color: #00cc7a;
    transform: translateY(-3px);
}

.hide {
    display: none;
}

#time-progress-bar-container {
    background: #333;
    border-radius: 30px;
    height: 20px;
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
}

#time-progress-bar {
    background: #00adb5;
    height: 100%;
    width: 100%;
    transition: width 1s linear;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .quiz-container {
        max-width: 80%;
    }
}

@media (max-width: 992px) {
    #question {
        font-size: 1.8rem;
    }

    .btn-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #question {
        font-size: 1.6rem;
    }

    #countdown {
        font-size: 1.8rem;
    }

    .next-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .quiz-container {
        width: 95%;
        padding: 20px;
    }

    #question {
        font-size: 1.4rem;
    }

    #countdown {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px;
        font-size: 0.9rem;
    }

    .next-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
