/* ==========================================
   GENERAL
========================================== */

* {
    box-sizing: border-box;
}


body {

    margin: 0;

    padding: 30px 15px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f4f6f8;

    color: #222;

}



/* ==========================================
   MAIN CONTAINER
========================================== */

.activity-container {

    width: 95%;

    max-width: 1000px;

    margin: 0 auto;

    background: white;

    border-radius: 15px;

    padding: 30px 40px;

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, 0.12);

}



/* ==========================================
   HEADER
========================================== */

.activity-header {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 25px;

    border-bottom:
        2px solid #eeeeee;

    padding-bottom: 20px;

}


.section-letter {

    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #444;

    color: white;

    font-size: 25px;

    font-weight: bold;

    border-radius: 6px;

}


.instruction-icon {

    font-size: 25px;

}


.instruction {

    display: flex;

    flex-direction: column;

    font-size: 18px;

    line-height: 1.5;

}


.instruction strong {

    font-size: 20px;

}



/* ==========================================
   AUDIO SECTION
========================================== */

.audio-section {

    background: #f7f8fa;

    border: 2px solid #e0e0e0;

    border-radius: 12px;

    padding: 20px;

    margin-bottom: 25px;

}


.audio-title {

    font-size: 20px;

    font-weight: bold;

    margin-bottom: 8px;

}


.audio-instruction {

    margin-top: 0;

    margin-bottom: 15px;

    color: #555;

    font-size: 16px;

}


audio {

    width: 100%;

    height: 45px;

}



/* ==========================================
   QUESTIONS
========================================== */

.question {

    display: grid;

    grid-template-columns:
        40px 1fr auto;

    align-items: center;

    gap: 15px;

    padding: 20px 10px;

    border-bottom:
        1px solid #e0e0e0;

    transition: 0.3s;

}


.question:hover {

    background: #fafafa;

}


.question-number {

    width: 35px;

    height: 35px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #333;

    color: white;

    font-weight: bold;

}


.statement {

    font-size: 17px;

    line-height: 1.5;

}



/* ==========================================
   OPTIONS
========================================== */

.options {

    display: flex;

    gap: 20px;

    min-width: 150px;

}


.option {

    display: flex;

    align-items: center;

    gap: 6px;

    cursor: pointer;

    font-size: 17px;

    padding: 5px 8px;

    border-radius: 5px;

    transition: 0.2s;

}


.option:hover {

    background: #eeeeee;

}


.option input {

    width: 18px;

    height: 18px;

    cursor: pointer;

}



/* ==========================================
   CORRECT / INCORRECT
========================================== */

.question.correct {

    background: #eaf8ee;

    border-left:
        5px solid #28a745;

}


.question.incorrect {

    background: #fff0f0;

    border-left:
        5px solid #dc3545;

}


.feedback {

    grid-column: 2 / 4;

    font-weight: bold;

    min-height: 20px;

    margin-top: 5px;

}


.correct-feedback {

    color: #198754;

}


.incorrect-feedback {

    color: #dc3545;

}



/* ==========================================
   SCORE
========================================== */

.score-section {

    margin-top: 30px;

    text-align: center;

}


.score-label {

    font-size: 22px;

    font-weight: bold;

}


#score {

    font-size: 24px;

    color: #333;

}


#result-message {

    margin-top: 10px;

    font-size: 18px;

    font-weight: bold;

}



/* ==========================================
   BUTTONS
========================================== */

.buttons {

    display: flex;

    justify-content: center;

    gap: 15px;

    margin-top: 25px;

}


button {

    border: none;

    border-radius: 8px;

    padding: 13px 25px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;

}


#checkButton {

    background: #333;

    color: white;

}


#checkButton:hover {

    background: #555;

    transform:
        translateY(-2px);

}


#resetButton {

    background: #e9ecef;

    color: #333;

}


#resetButton:hover {

    background: #d6d9dc;

    transform:
        translateY(-2px);

}



/* ==========================================
   RESPONSIVE DESIGN
========================================== */

@media (max-width: 750px) {

    .activity-container {

        width: 100%;

        padding: 20px;

    }


    .question {

        grid-template-columns:
            35px 1fr;

    }


    .options {

        grid-column: 2;

        margin-top: 10px;

    }


    .feedback {

        grid-column: 2;

    }

}



@media (max-width: 500px) {

    .activity-header {

        align-items: flex-start;

    }


    .instruction {

        font-size: 15px;

    }


    .instruction strong {

        font-size: 17px;

    }


    .statement {

        font-size: 15px;

    }


    .options {

        gap: 10px;

    }


    .option {

        font-size: 15px;

    }


    .buttons {

        flex-direction: column;

    }


    button {

        width: 100%;

    }

}