/* Base styles for all screen sizes */
.quiz-container {
    max-width: 50%;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: #F5F7FA;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1), 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    font-family: 'Roboto Condensed', 'Noto Sans', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quiz-container:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15), 0 0.375rem 0.75rem rgba(0, 0, 0, 0.1);
}
.quiz-container h1{
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.stopwatch-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    max-width: 50%;
    margin: 1rem auto;
    padding: 1.2rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #2bd2d2, #578a7e);
    box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.1), 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.05);
    color: #FFFFFF;
    /* font-family: 'Roboto Condensed', 'Noto Sans', sans-serif; */
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.stopwatch-strip:hover {
    transform: translateY(-0.0625rem);
}

.span-heading {
    text-align: center;
    font-size: 1.8rem;
    color: #2C3E50;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
}

.progress-indicator {
    margin-bottom: 1.25rem;
}

.progress-text {
    font-size: 1.1rem;
    color: #2C3E50;
    margin-bottom: 0.625rem;
    text-align: center;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 0.625rem;
    background-color: #E0E6ED;
    border-radius: 0.3125rem;
    overflow: hidden;
    box-shadow: inset 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ECC71, #27AE60);
    transition: width 0.5s ease-in-out;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.9; }
    100% { opacity: 1; }
}

.question {
    font-size: 1.3rem;
    color: #2C3E50;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.options {
    list-style: none;
    padding: 0;
}

.options li {
    margin: 0.625rem 0;
}

.options label {
    font-size: 1rem;
    color: #2C3E50;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.options label:hover {
    background-color: #E6ECF4;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}

.radio-size {
    transform: scale(1.3);
    margin-right: 0.625rem;
    accent-color: #4A90E2;
}

.answer-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #FFFFFF;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    color: #2C3E50;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(0.625rem); }
    to { opacity: 1; transform: translateY(0); }
}

.navigation-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.navigation-buttons button {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    border-radius: 0.375rem;
    background: linear-gradient(135deg, #4A90E2, #5DADE2);
    color: #FFFFFF;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.navigation-buttons button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #F39C12, #F1C40F);
    box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.15);
}

.navigation-buttons button:disabled {
    background: #BDC3C7;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.score {
    font-size: 1.3rem;
    text-align: center;
    margin: 1.25rem 0;
    color: #2ECC71;
    font-weight: bold;
    text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}

.result {
    margin: 0.9375rem 0;
    padding: 0.625rem;
    border-radius: 0.5rem;
    background-color: #FFFFFF;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.result p {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.result:hover {
    transform: translateY(-0.125rem);
}

.time {
    font-size: 1.2rem;
    min-width: 5rem;
    text-align: center;
    font-weight: bold;
    animation: timePulse 1s infinite ease-in-out;
}

@keyframes timePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.btn-watch {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    border-radius: 0.375rem;
    background: linear-gradient(135deg, #F39C12, #F1C40F);
    color: #FFFFFF;
    box-shadow: 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.btn-watch:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #2ECC71, #27AE60);
    box-shadow: 0 0.3125rem 0.625rem rgba(0, 0, 0, 0.15);
}

.btn-watch:disabled {
    background: #BDC3C7;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Mobile (≤600px) */
@media screen and (max-width: 600px) {
    .quiz-container {
        padding: 0.75rem;
        max-width: 95%;
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    }

    .quiz-container:hover {
        transform: none;
    }

    .stopwatch-strip {
        gap: 0.375rem;
        padding: 0.375rem 0.625rem;
        flex-wrap: wrap;
        justify-content: center;
        box-shadow: 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1);
        max-width: 90%;
    }

    .span-heading {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .progress-text {
        font-size: 0.9rem;
    }

    .progress-bar {
        height: 0.375rem;
    }

    .question {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .options label {
        font-size: 0.9rem;
        padding: 0.375rem;
    }

    .radio-size {
        transform: scale(1.2);
        margin-right: 0.375rem;
    }

    .answer-feedback {
        font-size: 1.1rem;
        padding: 0.375rem;
    }

    .navigation-buttons {
        gap: 0.5rem;
    }

    .navigation-buttons button {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    }

    .navigation-buttons button:hover {
        transform: scale(1.03);
    }

    .score {
        font-size: 1.1rem;
    }

    .result {
        font-size: 1.3rem;
        padding: 0.75rem;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    }

    .result p {
        font-size: 1.2rem;
    }

    .time {
        font-size: 1rem;
        min-width: 3.75rem;
    }

    .btn-watch {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    }

    .btn-watch:hover {
        transform: scale(1.03);
    }
}

/* Tablet (601px–1024px) */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    .quiz-container {
        max-width: 85%;
        padding: 0.9375rem;
        box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.1);
    }

    .stopwatch-strip {
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    }

    .span-heading {
        font-size: 1.7rem;
    }

    .progress-text {
        font-size: 1rem;
    }

    .progress-bar {
        height: 0.4375rem;
    }

    .question {
        font-size: 1.2rem;
    }

    .options label {
        font-size: 0.95rem;
        padding: 0.4375rem;
    }

    .radio-size {
        transform: scale(1.3);
        margin-right: 0.4375rem;
    }

    .answer-feedback {
        font-size: 1rem;
    }

    .navigation-buttons {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.625rem;
    }

    .navigation-buttons button {
        padding: 0.5rem 0.9375rem;
        font-size: 0.85rem;
        box-shadow: 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1);
    }

    .navigation-buttons button:hover {
        transform: scale(1.04);
    }

    .score {
        font-size: 1.2rem;
    }

    .result {
        font-size: 1.1rem;
        box-shadow: 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1);
    }

    .result p {
        font-size: 1.05rem;
    }

    .time {
        font-size: 1.1rem;
        min-width: 4.375rem;
    }

    .btn-watch {
        padding: 0.3125rem 0.625rem;
        font-size: 0.75rem;
        box-shadow: 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1);
    }

    .btn-watch:hover {
        transform: scale(1.04);
    }
}

.music-button{
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
}
.music-button button, #timer{
    padding: .4rem 2rem;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    background-color: #3fd2d4;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.music-button button:hover{
    background-color: #18dc9e;
    cursor: pointer;
    scale: 1.05;
}