/* ==================================================
   ОСНОВНОЕ ОФОРМЛЕНИЕ ПЕРВОГО УРОКА
================================================== */

@import url("grade-2-lesson-1.css");


/* ==================================================
   ЦВЕТОВАЯ ПАЛИТРА УРОКА
================================================== */

.switch-lesson-body {

    --gold-900: #684513;
    --gold-800: #87591a;
    --gold-700: #aa7224;
    --gold-600: #ce9034;
    --gold-500: #e8ad4c;
    --gold-400: #f3c873;
    --gold-200: #ffecb7;
    --gold-100: #fff8e8;

}


/* ==================================================
   ЭКРАНЫ УРОКА

   Это правило обязательно.
   Оно не позволяет странице быть пустой.
================================================== */

.lesson-screen {
    display: none;
}


.lesson-screen.active-screen {

    display: block !important;

    opacity: 1 !important;

    visibility: visible !important;

}


/* ==================================================
   ПРИМЕРЫ НА ПЕРВОМ ЭКРАНЕ
================================================== */

.switch-cloud {

    margin: 28px auto;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

}


.switch-cloud span {

    padding: 13px 16px;

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #fff8e7,
            #ffe3a0
        );

    color: var(--gold-900);

    font-weight: 800;

}


.switch-cloud b {

    color: var(--gold-700);

    font-size: 23px;

}


/* ==================================================
   ФОРМУЛА ОТРИЦАТЕЛЬНОГО ПРЕДЛОЖЕНИЯ
================================================== */

.rule-formula {

    margin: 20px auto;

    padding: 20px;

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    border-radius: 20px;

    background: #fff7e2;

    font-size: 18px;

}


.rule-formula mark {

    padding: 7px 11px;

    border-radius: 10px;

    background: #ffe29a;

    color: var(--gold-900);

    font-weight: 800;

}


.rule-formula strong {

    padding: 7px 11px;

    border-radius: 10px;

    background: var(--gold-700);

    color: white;

}


/* ==================================================
   КАРТОЧКИ AM NOT / ISN'T / AREN'T
================================================== */

.negative-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 15px;

}


.negative-grid article {

    padding: 22px 15px;

    position: relative;

    border:
        1px solid
        rgba(190, 127, 34, 0.17);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #fffdf8,
            #ffe9b2
        );

    text-align: center;

}


.negative-grid article > strong {

    font-family:
        "Fredoka",
        sans-serif;

    color: var(--gold-900);

}


.negative-grid article p {

    margin: 13px 0 5px;

    font-weight: 800;

}


.negative-grid article small {

    display: block;

    margin-bottom: 12px;

    color: var(--muted);

}


/* ==================================================
   ПРЕВРАЩЕНИЕ ПРЕДЛОЖЕНИЯ В ВОПРОС
================================================== */

.question-switch {

    display: grid;

    gap: 12px;

}


.question-switch div {

    padding: 18px;

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 12px;

    border-radius: 18px;

    background: #fff7e5;

}


.question-switch b {

    color: var(--gold-700);

    font-size: 22px;

}


.question-switch mark {

    padding: 3px 7px;

    border-radius: 8px;

    background: #ffe19a;

    color: var(--gold-900);

}


/* ==================================================
   ТАБЛИЦА КРАТКИХ ОТВЕТОВ
================================================== */

.answer-table-wrap {

    margin-top: 20px;

    overflow-x: auto;

    border:
        1px solid
        rgba(190, 127, 34, 0.16);

    border-radius: 22px;

}


.answer-table {

    width: 100%;

    min-width: 680px;

    border-collapse: collapse;

    background: white;

}


.answer-table th,
.answer-table td {

    padding: 15px;

    border-bottom:
        1px solid
        #f2e6cf;

    text-align: left;

}


.answer-table th {

    background:
        linear-gradient(
            135deg,
            #f5cf78,
            #e9ad4e
        );

    color: #63400d;

}


.answer-table tr:last-child td {
    border-bottom: none;
}


/* ==================================================
   ГЛАВНЫЙ ИНТЕРАКТИВ
================================================== */

.switch-machine {

    max-width: 720px;

    margin: 0 auto;

    padding: 25px;

    border:
        2px solid
        rgba(192, 128, 33, 0.17);

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            #fff9ea,
            #ffe5a7
        );

}


.machine-progress {

    margin-bottom: 14px;

    color: var(--gold-800);

    font-size: 13px;

    font-weight: 900;

    text-align: center;

    letter-spacing: 1px;

    text-transform: uppercase;

}


.switch-display {

    min-height: 190px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    border: 4px solid white;

    border-radius: 24px;

    background: white;

    box-shadow:
        0 14px 30px
        rgba(122, 79, 17, 0.12);

    text-align: center;

}


.switch-mode {

    margin-bottom: 14px;

    padding: 8px 12px;

    border-radius: 999px;

    background: #ffe9ad;

    color: var(--gold-900);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1.2px;

}


.switch-display strong {

    font-family:
        "Fredoka",
        sans-serif;

    font-size:
        clamp(
            26px,
            5vw,
            37px
        );

}


.switch-options {

    margin-top: 18px;

    display: grid;

    gap: 10px;

}


.switch-option {

    padding: 14px 16px;

    cursor: pointer;

    border: 2px solid transparent;

    border-radius: 16px;

    background: white;

    color: var(--ink);

    font-weight: 800;

    box-shadow:
        0 8px 18px
        rgba(123, 79, 16, 0.08);

    transition: 0.22s ease;

}


.switch-option:hover {

    transform: translateY(-2px);

    border-color: var(--gold-400);

}


/* ==================================================
   ПРАВИЛЬНЫЕ И НЕПРАВИЛЬНЫЕ ОТВЕТЫ
================================================== */

.switch-option.correct-option,
.game-choice-grid button.correct-option {

    border-color: #55b86b;

    background: #e9f9ec;

    color: #226832;

}


.switch-option.wrong-option,
.game-choice-grid button.wrong-option {

    border-color: #dc786e;

    background: #fff0ee;

    color: #963e36;

}


/* ==================================================
   ЗОНА СОСТАВЛЕНИЯ ПРЕДЛОЖЕНИЙ
================================================== */

.word-answer-zone,
.word-bank {

    min-height: 82px;

    margin: 14px 0;

    padding: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 9px;

    border-radius: 20px;

}


.word-answer-zone {

    border:
        2px dashed
        var(--gold-500);

    background: #fff9e9;

}


.word-bank {
    background: #ffedbd;
}


.word-answer-zone button,
.word-bank button,
.game-choice-grid button {

    padding: 12px 15px;

    cursor: pointer;

    border: 2px solid transparent;

    border-radius: 14px;

    background: white;

    color: var(--ink);

    font:
        800
        15px
        "Manrope",
        sans-serif;

    box-shadow:
        0 6px 15px
        rgba(110, 72, 15, 0.09);

    transition: 0.2s ease;

}


.word-answer-zone button:hover,
.word-bank button:hover,
.game-choice-grid button:hover {

    transform: translateY(-2px);

    border-color: var(--gold-400);

}


/* ==================================================
   ЗАДАНИЯ С ВЫБОРОМ ОТВЕТА
================================================== */

.game-prompt {

    margin: 18px auto;

    padding: 22px;

    border-radius: 20px;

    background: white;

    font:
        700
        clamp(
            20px,
            4vw,
            28px
        )
        "Fredoka",
        sans-serif;

    text-align: center;

}


.game-choice-grid {

    display: grid;

    gap: 11px;

}


/* ==================================================
   ЗАДАНИЕ С ДИАЛОГОМ
================================================== */

.dialogue-builder {

    margin: 18px auto;

    padding: 20px;

    border-radius: 22px;

    background: #fff9e8;

}


.dialogue-builder p {

    margin: 12px 0;

    font-weight: 800;

}


.dialogue-builder select {

    margin: 0 5px;

    padding: 8px 12px;

    border:
        2px solid
        var(--gold-400);

    border-radius: 10px;

    background: white;

    color: var(--gold-900);

    font-weight: 800;

}


.game-check-button,
.game-next-button {
    margin-top: 18px;
}


/* ==================================================
   ПОВТОРЕНИЕ В КОНЦЕ УРОКА
================================================== */

.switch-review-grid {

    margin-top: 26px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;

}


.switch-review-grid article {

    padding: 21px;

    display: flex;

    flex-direction: column;

    gap: 7px;

    border:
        1px solid
        rgba(192, 127, 31, 0.15);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #fffaf0,
            #ffebb8
        );

}


.switch-review-grid strong {

    color: var(--gold-900);

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 20px;

}


.switch-review-grid span {
    color: var(--muted);
}


/* ==================================================
   АДАПТАЦИЯ ПОД ПЛАНШЕТ
================================================== */

@media (max-width: 760px) {

    .negative-grid {
        grid-template-columns: 1fr;
    }


    .question-switch div {
        grid-template-columns: 1fr;
    }


    .question-switch b {
        transform: rotate(90deg);
    }


    .switch-machine {
        padding: 17px;
    }


    .answer-table th,
    .answer-table td {
        padding: 12px;
    }

}


/* ==================================================
   АДАПТАЦИЯ ПОД ТЕЛЕФОН
================================================== */

@media (max-width: 540px) {

    .switch-review-grid {
        grid-template-columns: 1fr;
    }


    .switch-cloud {

        flex-direction: column;

        align-items: stretch;

    }


    .switch-cloud b {

        text-align: center;

        transform: rotate(90deg);

    }


    .switch-cloud span {
        text-align: center;
    }


    .switch-display {

        min-height: 160px;

        padding: 18px;

    }


    .word-answer-zone,
    .word-bank {

        padding: 12px;

        gap: 7px;

    }


    .dialogue-builder select {

        display: block;

        width: 100%;

        margin: 7px 0;

    }

}