@import url("grade-2-lesson-1.css");


/* ==================================================
   LESSON 9 — PRESENT SIMPLE
================================================== */

.present-simple-body {

    --gold-900: #66420f;
    --gold-800: #855817;
    --gold-700: #a86e20;
    --gold-600: #ca8c30;
    --gold-500: #e5a847;
    --gold-400: #f2c66d;
    --gold-300: #f8d98f;
    --gold-200: #ffebb7;
    --gold-100: #fff9e9;

}


/* ==================================================
   SCREENS
================================================== */

.lesson-screen {
    display: none;
}


.lesson-screen.active-screen {

    display: block !important;

    opacity: 1 !important;

    visibility: visible !important;

}


/* ==================================================
   INTRO PREVIEW
================================================== */

.present-preview {

    max-width: 760px;

    margin: 28px auto;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

}


.present-preview span {

    padding: 15px 18px;

    border:
        2px solid
        rgba(177, 115, 28, 0.12);

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #fffdf7,
            #ffe4a1
        );

    color: var(--gold-900);

    font-weight: 800;

    box-shadow:
        0 9px 20px
        rgba(117, 75, 15, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.present-preview span:hover {

    transform: translateY(-4px);

    box-shadow:
        0 13px 24px
        rgba(117, 75, 15, 0.12);

}


/* ==================================================
   UKRAINIAN EXPLANATIONS
================================================== */

.ukrainian-explanation,
.ukrainian-instruction {

    display: block;

    margin-top: 12px;

    color: #76572a;

    font-size: 15px;

    line-height: 1.72;

}


.ukrainian-explanation strong,
.ukrainian-instruction strong {

    color: var(--gold-900);

    font-weight: 900;

}


.ukrainian-inline {

    color: #795c2c;

    font-size: 14px;

}


/* ==================================================
   EXPLANATION CARDS
================================================== */

.explanation-card {

    max-width: 820px;

    margin: 22px auto;

    padding: 23px 25px;

    border:
        1px solid
        rgba(190, 125, 27, 0.14);

    border-radius: 23px;

    background:
        linear-gradient(
            145deg,
            #fffef9,
            #fff4d8
        );

    box-shadow:
        0 10px 23px
        rgba(117, 74, 13, 0.07);

}


.explanation-card > p:first-child {

    margin-top: 0;

    color: var(--gold-900);

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 20px;

    font-weight: 700;

    line-height: 1.45;

}


.explanation-card > p:last-child {
    margin-bottom: 0;
}


/* ==================================================
   IMPORTANT NOTES
================================================== */

.important-note {

    max-width: 820px;

    margin: 22px auto;

    padding: 20px 22px;

    display: grid;

    grid-template-columns:
        auto
        1fr;

    align-items: start;

    gap: 14px;

    border:
        2px solid
        rgba(208, 147, 55, 0.16);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #fffdf7,
            #ffedbe
        );

    box-shadow:
        0 9px 21px
        rgba(117, 74, 13, 0.06);

}


.important-note > span {

    font-size: 30px;

    line-height: 1;

}


.important-note p {

    margin: 0;

    color: #5f4a2d;

    font-size: 15px;

    font-weight: 700;

    line-height: 1.7;

}


.important-note strong {

    color: var(--gold-900);

    font-weight: 900;

}


/* ==================================================
   GOLDEN TIP
================================================== */

.golden-tip {

    max-width: 820px;

    margin: 22px auto;

}


.golden-tip p {

    line-height: 1.68;

}


.golden-tip strong {

    color: var(--gold-900);

}


/* ==================================================
   PRESENT SIMPLE USE
================================================== */

.present-use-grid {

    margin-top: 23px;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 15px;

}


.present-use-grid article {

    min-height: 205px;

    padding: 20px 14px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border:
        1px solid
        rgba(183, 119, 25, 0.15);

    border-radius: 23px;

    background:
        linear-gradient(
            145deg,
            #fffdf8,
            #ffe9b4
        );

    text-align: center;

    box-shadow:
        0 10px 23px
        rgba(117, 74, 13, 0.07);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.present-use-grid article:hover {

    transform: translateY(-4px);

    box-shadow:
        0 15px 28px
        rgba(117, 74, 13, 0.12);

}


.present-use-grid article > span {

    display: block;

    font-size: 44px;

    line-height: 1;

}


.present-use-grid strong {

    color: var(--gold-900);

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 20px;

}


.present-use-grid small {

    color: var(--muted);

    font-size: 13px;

    font-weight: 700;

}


.present-use-grid p {

    margin: 3px 0 0;

    color: var(--ink);

    font-size: 14px;

    font-weight: 700;

    line-height: 1.5;

}


/* ==================================================
   PRESENT SIMPLE FORMULA
================================================== */

.present-formula {

    max-width: 760px;

    margin: 28px auto;

    padding: 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 14px;

    border:
        2px solid
        rgba(190, 125, 27, 0.15);

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            #fffaf0,
            #ffe6a7
        );

    box-shadow:
        0 12px 27px
        rgba(112, 72, 14, 0.08);

}


.formula-subject,
.formula-verb {

    min-width: 185px;

    padding: 16px 20px;

    border-radius: 17px;

    background: white;

    color: var(--gold-900);

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 20px;

    font-weight: 700;

    text-align: center;

    box-shadow:
        0 7px 17px
        rgba(117, 74, 13, 0.08);

}


.formula-plus {

    color: var(--gold-700);

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 30px;

    font-weight: 700;

}


/* ==================================================
   SENTENCE EXAMPLES
================================================== */

.sentence-examples {

    margin-top: 23px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;

}


.sentence-examples article {

    min-height: 125px;

    padding: 17px;

    display: grid;

    grid-template-columns:
        auto
        1fr
        auto;

    align-items: center;

    gap: 13px;

    border:
        1px solid
        rgba(183, 119, 25, 0.15);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #fffdf8,
            #ffedc0
        );

    box-shadow:
        0 9px 21px
        rgba(117, 74, 13, 0.07);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.sentence-examples article:hover {

    transform: translateY(-3px);

    box-shadow:
        0 13px 25px
        rgba(117, 74, 13, 0.1);

}


.sentence-examples article > span {

    font-size: 39px;

    line-height: 1;

}


.sentence-examples article > div {

    display: flex;

    flex-direction: column;

    gap: 5px;

}


.sentence-examples strong {

    color: var(--gold-900);

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 19px;

    line-height: 1.4;

}


.sentence-examples small {

    color: var(--muted);

    font-size: 13px;

    font-weight: 700;

    line-height: 1.45;

}


/* ==================================================
   PRESENT RULE CARD
================================================== */

.present-rule-card {

    max-width: 760px;

    margin: 23px auto;

    padding: 21px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;

    border-radius: 22px;

    background: #fff7e1;

}


.present-rule-card strong {

    min-height: 55px;

    padding: 14px 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: white;

    color: var(--gold-900);

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 17px;

    line-height: 1.45;

    text-align: center;

    box-shadow:
        0 7px 16px
        rgba(117, 74, 13, 0.06);

    transition: 0.2s ease;

}


.present-rule-card strong:hover {

    transform: translateY(-2px);

}


/* ==================================================
   ACTIVITY INSTRUCTION
================================================== */

.activity-instruction {

    max-width: 760px;

    margin-left: auto;

    margin-right: auto;

    line-height: 1.55;

}


/* ==================================================
   ROUTINE MACHINE
================================================== */

.present-scanner {

    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,
            #ffe4a0
        );

    box-shadow:
        0 18px 38px
        rgba(115, 72, 11, 0.1);

}


.machine-progress {

    margin-bottom: 14px;

    color: var(--gold-800);

    font-size: 13px;

    font-weight: 900;

    text-align: center;

    letter-spacing: 1px;

    text-transform: uppercase;

}


.scanner-display {

    min-height: 250px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 16px;

    border: 4px solid white;

    border-radius: 25px;

    background: white;

    box-shadow:
        0 14px 30px
        rgba(122, 79, 17, 0.11);

    text-align: center;

}


.scanner-icon {

    display: block;

    font-size: 68px;

    line-height: 1;

}


.scanner-display strong {

    max-width: 580px;

    font-family:
        "Fredoka",
        sans-serif;

    font-size:
        clamp(
            24px,
            5vw,
            35px
        );

    line-height: 1.25;

}


.scanner-options {

    margin-top: 18px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;

}


.scanner-option,
.scanner-options button {

    min-height: 58px;

    padding: 15px;

    cursor: pointer;

    border: 2px solid transparent;

    border-radius: 16px;

    background: white;

    color: var(--ink);

    font:
        800
        16px
        "Manrope",
        sans-serif;

    box-shadow:
        0 8px 18px
        rgba(123, 79, 16, 0.08);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;

}


.scanner-option:hover:not(:disabled),
.scanner-options button:hover:not(:disabled) {

    transform: translateY(-2px);

    border-color: var(--gold-400);

}


.scanner-option:disabled,
.scanner-options button:disabled {

    cursor: default;

}


/* ==================================================
   CORRECT / WRONG
================================================== */

.scanner-option.correct-option,
.scanner-options button.correct-option,
.game-choice-grid button.correct-option,
.correct-option,
.correct-choice {

    border-color: #55b86b !important;

    background: #e9f9ec !important;

    color: #226832 !important;

}


.scanner-option.wrong-option,
.scanner-options button.wrong-option,
.game-choice-grid button.wrong-option,
.wrong-option,
.wrong-choice {

    border-color: #dc786e !important;

    background: #fff0ee !important;

    color: #963e36 !important;

}


/* ==================================================
   FEEDBACK
================================================== */

.feedback-correct {

    color: #257039;

    font-weight: 800;

}


.feedback-wrong {

    color: #9b453d;

    font-weight: 800;

}


/* ==================================================
   VIDEO INTRO
================================================== */

.video-intro {

    max-width: 760px;

    margin-left: auto;

    margin-right: auto;

    line-height: 1.6;

}


/* ==================================================
   GAME PROMPT
================================================== */

.game-prompt {

    margin: 18px auto;

    padding: 22px;

    border-radius: 20px;

    background: white;

    font:
        700
        clamp(
            20px,
            4vw,
            28px
        )
        "Fredoka",
        sans-serif;

    line-height: 1.4;

    text-align: center;

    box-shadow:
        0 8px 20px
        rgba(110, 72, 15, 0.06);

}


.game-prompt .ukrainian-instruction {

    font-family:
        "Manrope",
        sans-serif;

    font-size: 14px;

    font-weight: 700;

}


.game-object-picture {

    display: block;

    margin-bottom: 12px;

    font-size: 52px;

    line-height: 1;

}


/* ==================================================
   CHOICE TASKS
================================================== */

.game-choice-grid {

    display: grid;

    gap: 11px;

}


.game-choice-grid button {

    min-height: 55px;

    padding: 14px 16px;

    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;

}


.game-choice-grid button:hover:not(:disabled) {

    transform: translateY(-2px);

    border-color: var(--gold-400);

}


.game-choice-grid button:disabled {

    cursor: default;

}


/* ==================================================
   WORD BUILDER
================================================== */

.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-answer-zone:empty::before {

    content:
        "Натискай на слова, щоб скласти речення";

    color: #a98b59;

    font-size: 13px;

    font-weight: 700;

    text-align: center;

}


.word-bank {

    background: #ffedbd;

}


.word-answer-zone button,
.word-bank 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:not(:disabled),
.word-bank button:hover:not(:disabled) {

    transform: translateY(-2px);

    border-color: var(--gold-400);

}


.word-answer-zone button:disabled,
.word-bank button:disabled {

    cursor: default;

}


/* ==================================================
   DIALOGUE / STORY BUILDER
================================================== */

.dialogue-builder {

    margin: 18px auto;

    padding: 22px;

    border-radius: 22px;

    background: #fff9e8;

}


.dialogue-builder p {

    margin: 13px 0;

    padding: 13px;

    border-radius: 13px;

    background:
        rgba(
            255,
            255,
            255,
            0.8
        );

    color: var(--ink);

    font-weight: 800;

    line-height: 1.7;

}


.dialogue-builder select {

    margin: 4px 5px;

    padding: 8px 12px;

    border:
        2px solid
        var(--gold-400);

    border-radius: 10px;

    outline: none;

    background: white;

    color: var(--gold-900);

    font:
        800
        14px
        "Manrope",
        sans-serif;

    transition: 0.2s ease;

}


.dialogue-builder select:focus {

    border-color: var(--gold-600);

    box-shadow:
        0 0 0 3px
        rgba(229, 168, 71, 0.14);

}


/* ==================================================
   ROUTINE STORY
================================================== */

.routine-story {

    margin: 18px auto;

    padding: 22px;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #fffdf7,
            #fff0c8
        );

}


.routine-story p {

    margin: 10px 0;

    color: var(--ink);

    font-size: 15px;

    font-weight: 700;

    line-height: 1.7;

}


/* ==================================================
   ROUTINE DETECTIVE
================================================== */

.routine-clue-card {

    margin: 18px auto;

    padding: 22px;

    border:
        2px solid
        rgba(191, 127, 30, 0.14);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #fffdf8,
            #ffedbf
        );

    text-align: center;

}


.routine-clue-card span {

    display: block;

    margin-bottom: 12px;

    font-size: 50px;

}


.routine-clue-card strong {

    color: var(--gold-900);

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 23px;

    line-height: 1.4;

}


/* ==================================================
   GAME BUTTONS
================================================== */

.game-check-button,
.game-next-button {

    margin-top: 18px;

}


/* ==================================================
   REVIEW
================================================== */

.present-review-grid {

    margin-top: 25px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;

}


.present-review-grid article {

    min-height: 100px;

    padding: 20px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 7px;

    border:
        1px solid
        rgba(192, 127, 31, 0.15);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #fffaf0,
            #ffebb8
        );

    transition: 0.2s ease;

}


.present-review-grid article:hover {

    transform: translateY(-3px);

}


.present-review-grid strong {

    color: var(--gold-900);

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 21px;

}


.present-review-grid span {

    color: var(--muted);

    font-size: 14px;

    font-weight: 700;

}


/* ==================================================
   REVIEW REMINDER
================================================== */

.review-reminder {

    line-height: 1.65;

}


.review-reminder em {

    color: var(--gold-900);

    font-style: normal;

    font-weight: 900;

}


/* ==================================================
   SPEAK BUTTON
================================================== */

.speak-button.speaking {

    transform: scale(1.08);

}


/* ==================================================
   HIDDEN ELEMENTS
================================================== */

.hidden-button {

    display: none !important;

}


/* ==================================================
   LONG THEORY SCREEN SPACING
================================================== */

.rule-page .explanation-card + .present-use-grid {

    margin-top: 18px;

}


.rule-page .present-rule-card + .important-note {

    margin-top: 20px;

}


.rule-page .important-note + .explanation-card {

    margin-top: 24px;

}


.rule-page .sentence-examples + .explanation-card {

    margin-top: 27px;

}


.rule-page .present-rule-card + .golden-tip {

    margin-top: 22px;

}


/* ==================================================
   RESPONSIVE — 900px
================================================== */

@media (max-width: 900px) {

    .present-use-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

    }

}


/* ==================================================
   RESPONSIVE — 760px
================================================== */

@media (max-width: 760px) {

    .present-use-grid {

        grid-template-columns: 1fr;

    }


    .sentence-examples {

        grid-template-columns: 1fr;

    }


    .present-rule-card {

        grid-template-columns: 1fr;

    }


    .present-review-grid {

        grid-template-columns: 1fr;

    }


    .present-formula {

        flex-direction: column;

    }


    .formula-plus {

        transform: rotate(90deg);

    }


    .formula-subject,
    .formula-verb {

        width: 100%;

    }


    .important-note {

        grid-template-columns: 1fr;

        text-align: left;

    }


    .important-note > span {

        text-align: center;

    }

}


/* ==================================================
   RESPONSIVE — 540px
================================================== */

@media (max-width: 540px) {

    .present-preview {

        flex-direction: column;

        align-items: stretch;

    }


    .present-preview span {

        text-align: center;

    }


    .explanation-card {

        padding: 18px;

    }


    .explanation-card > p:first-child {

        font-size: 18px;

    }


    .ukrainian-explanation,
    .ukrainian-instruction {

        font-size: 14px;

        line-height: 1.68;

    }


    .important-note {

        padding: 18px;

    }


    .present-scanner {

        padding: 17px;

    }


    .scanner-options {

        grid-template-columns: 1fr;

    }


    .scanner-display {

        min-height: 210px;

        padding: 18px;

    }


    .scanner-icon {

        font-size: 58px;

    }


    .present-formula {

        padding: 18px;

    }


    .formula-subject,
    .formula-verb {

        min-width: 0;

        padding: 14px;

        font-size: 18px;

    }


    .sentence-examples article {

        grid-template-columns:
            auto
            1fr;

    }


    .sentence-examples .speak-button {

        grid-column:
            1 / -1;

        justify-self: center;

    }


    .dialogue-builder {

        padding: 16px;

    }


    .dialogue-builder select {

        max-width: 100%;

    }


    .game-prompt {

        padding: 17px;

    }


    .present-rule-card {

        padding: 15px;

    }


    .present-rule-card strong {

        min-height: 50px;

        padding: 12px;

        font-size: 15px;

    }

}