/* =====================================================
   INTERAKTIV MASHQLAR
   O‘ZBEKCHA SO‘ZLASHAMIZ — BOLALAR
===================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Arial", sans-serif;
    background: #f8f1df;
    color: #243b2a;
}


/* =====================================================
   HEADER
===================================================== */

.page-header {
    text-align: center;
    padding: 35px 20px 30px;
    background: linear-gradient(135deg, #174c38, #236b4a);
    color: white;
    border-bottom: 6px solid #d7a928;
}

.page-header h1 {
    margin: 0 0 10px;
    font-size: 34px;
}

.page-header p {
    margin: 0;
    font-size: 18px;
}


/* =====================================================
   ASOSIY KONTEYNER
===================================================== */

.interactive-container {
    width: 92%;
    max-width: 900px;
    margin: 35px auto;
}


/* =====================================================
   MASHQ KARTOCHKASI
===================================================== */

.activity {
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
    text-align: center;
}

.activity h2 {
    margin-top: 0;
    color: #174c38;
    font-size: 27px;
}

.instruction {
    font-size: 19px;
    margin-bottom: 28px;
}


/* =====================================================
   HARFLAR
===================================================== */

.letters-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto 25px;
}

.letter {
    width: 75px;
    height: 75px;

    border: 3px solid #d7a928;
    border-radius: 18px;

    background: #fff8df;
    color: #174c38;

    font-size: 34px;
    font-weight: bold;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


/* Sichqoncha ustiga kelganda */

.letter:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


/* To‘g‘ri javob */

.letter.correct {
    background: #b8e6c1;
    border-color: #238b45;
    color: #176b32;
    transform: scale(1.12);
}


/* Noto‘g‘ri javob */

.letter.wrong {
    background: #f6caca;
    border-color: #d9534f;
    animation: shake 0.3s;
}


/* =====================================================
   NATIJA
===================================================== */

.result {
    min-height: 35px;
    margin: 15px 0;

    font-size: 21px;
    font-weight: bold;
}


/* =====================================================
   BALL
===================================================== */

.score {
    margin-top: 20px;
    padding: 14px;

    background: #f5edcf;
    border-radius: 15px;

    font-size: 18px;
    font-weight: bold;

    color: #174c38;
}

#score {
    color: #c18b00;
    font-size: 22px;
}


/* =====================================================
   XATO JAVOB ANIMATSIYASI
===================================================== */

@keyframes shake {

    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    50% {
        transform: translateX(6px);
    }

    75% {
        transform: translateX(-6px);
    }

    100% {
        transform: translateX(0);
    }
}


/* =====================================================
   TELEFON UCHUN
===================================================== */

@media (max-width: 600px) {

    .page-header {
        padding: 28px 15px;
    }

    .page-header h1 {
        font-size: 27px;
    }

    .page-header p {
        font-size: 16px;
    }

    .activity {
        padding: 22px 15px;
    }

    .activity h2 {
        font-size: 23px;
    }

    .instruction {
        font-size: 17px;
    }

    .letter {
        width: 62px;
        height: 62px;
        font-size: 28px;
    }

}

/* =====================================================
   2-MASHQ — RASM / JAVOB KARTOCHKALARI
===================================================== */

.audio-button {
    display: block;
    margin: 20px auto 30px;

    padding: 14px 28px;

    border: none;
    border-radius: 18px;

    background: #d7a928;
    color: white;

    font-size: 20px;
    font-weight: bold;

    cursor: pointer;

    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);

    transition: transform 0.2s ease;
}

.audio-button:hover {
    transform: scale(1.05);
}


/* =====================================================
   JAVOBLAR
===================================================== */

.picture-options {
    display: flex;
    justify-content: center;
    align-items: stretch;

    gap: 20px;

    flex-wrap: wrap;

    max-width: 750px;
    margin: 0 auto;
}


.picture-option {
    width: 190px;
    min-height: 190px;

    padding: 20px;

    border: 3px solid #e2c45a;
    border-radius: 22px;

    background: #fffaf0;

    color: #174c38;

    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    font-size: 20px;
    font-weight: bold;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.picture-option:hover {
    transform: translateY(-7px);

    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.14);

    background: #fff4d2;
}


.picture {
    font-size: 75px;
    line-height: 1;
}


/* =====================================================
   TO‘G‘RI JAVOB
===================================================== */

.picture-option.correct {
    background: #c9efd0;
    border-color: #268b48;

    transform: scale(1.05);
}


/* =====================================================
   NOTO‘G‘RI JAVOB
===================================================== */

.picture-option.wrong {
    background: #f8cccc;
    border-color: #d9534f;

    animation: shake 0.35s;
}


/* =====================================================
   TELEFON
===================================================== */

@media (max-width: 600px) {

    .picture-options {
        gap: 12px;
    }

    .picture-option {
        width: 145px;
        min-height: 160px;
    }

    .picture {
        font-size: 60px;
    }

}