/* Основное оформление берём из первого урока Grade 2 */

@import url("grade-2-lesson-1.css");


/* =========================================
   LESSON 2 COLOR PALETTE
========================================= */

.to-be-lesson-body {
    --gold-900: #70420d;
    --gold-800: #915817;
    --gold-700: #b66f1e;
    --gold-600: #d98f2e;
    --gold-500: #efa944;
    --gold-400: #f6c66b;
    --gold-300: #f9da91;
    --gold-200: #ffedb9;
    --gold-100: #fff7e4;
}


/* =========================================
   AM, IS, ARE CLOUD
========================================= */

.verb-cloud {
    margin:
        30px auto;

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 14px;
}


.verb-cloud span {
    min-width: 105px;

    padding:
        15px 23px;

    border:
        2px solid
        rgba(195, 119, 28, 0.16);

    border-radius: 19px;

    background:
        linear-gradient(
            145deg,
            #fff8df,
            #ffd98b
        );

    color:
        var(--gold-900);

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 29px;
    font-weight: 700;

    box-shadow:
        0 11px 24px
        rgba(143, 85, 17, 0.12);
}


/* =========================================
   TO BE MEANINGS
========================================= */

.meaning-grid {
    margin-top: 22px;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 16px;
}


.meaning-grid article {
    padding:
        23px 17px;

    display: flex;

    flex-direction: column;

    align-items: center;

    border:
        1px solid
        rgba(199, 127, 34, 0.16);

    border-radius: 23px;

    background:
        linear-gradient(
            145deg,
            #fffdf7,
            #ffedbd
        );

    text-align: center;
}


.meaning-grid article > span {
    font-size: 39px;
}


.meaning-grid article > strong {
    margin-top: 9px;

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 21px;
}


.meaning-grid article p {
    margin:
        12px 0 5px;

    font-weight: 800;
}


.meaning-grid article small {
    color:
        var(--muted);
}


/* =========================================
   TO BE TABLE
========================================= */

.to-be-table-wrap {
    overflow-x: auto;

    border:
        1px solid
        rgba(198, 127, 34, 0.18);

    border-radius: 24px;
}


.to-be-table {
    width: 100%;
    min-width: 720px;

    border-collapse: collapse;

    background: white;
}


.to-be-table th,
.to-be-table td {
    padding:
        17px 14px;

    border-bottom:
        1px solid
        #f2e5ca;

    text-align: left;

    vertical-align: middle;
}


.to-be-table th {
    background:
        linear-gradient(
            135deg,
            #f5ce73,
            #eba741
        );

    color: #643b0a;

    font-size: 13px;
}


.to-be-table tbody tr:last-child td {
    border-bottom: 0;
}


.to-be-table tbody tr:hover {
    background: #fffaf0;
}


.am-row {
    background:
        rgba(255, 248, 224, 0.55);
}


.is-row {
    background:
        rgba(255, 237, 190, 0.4);
}


.are-row {
    background:
        rgba(255, 246, 218, 0.6);
}


.be-chip {
    min-width: 62px;

    padding:
        9px 13px;

    display: inline-grid;

    place-items: center;

    border-radius: 14px;

    background:
        #ffe49e;

    color:
        var(--gold-900);

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 20px;
    font-weight: 700;
}


/* =========================================
   FORMULA BOARD
========================================= */

.formula-board {
    margin-top: 22px;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 12px;
}


.formula-board div {
    padding:
        18px 13px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    border-radius: 19px;

    background:
        #fff7e4;

    font-weight: 800;

    text-align: center;
}


.formula-board b {
    color:
        var(--gold-700);
}


/* =========================================
   SHORT FORMS
========================================= */

.contraction-card {
    margin-top: 18px;

    padding: 20px;

    border:
        1px solid
        rgba(198, 127, 34, 0.17);

    border-radius: 20px;

    background: white;

    text-align: center;
}


.contraction-card h3 {
    margin:
        0 0 8px;
}


.contraction-card p {
    margin: 0;

    color:
        var(--muted);

    line-height: 1.8;
}


/* =========================================
   AM–IS–ARE MACHINE
========================================= */

.be-machine {
    max-width: 690px;

    margin: 0 auto;

    padding: 25px;

    border:
        2px solid
        rgba(200, 125, 31, 0.17);

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            #fff9e8,
            #ffe7a8
        );

    box-shadow:
        inset
        0 0 35px
        rgba(226, 151, 49, 0.08);
}


.machine-progress {
    margin-bottom: 15px;

    color:
        var(--gold-800);

    font-size: 13px;
    font-weight: 800;

    text-align: center;
}


.machine-display {
    min-height: 205px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    border:
        4px solid
        white;

    border-radius: 25px;

    background:
        #fffdf7;

    box-shadow:
        0 15px 32px
        rgba(129, 76, 14, 0.13);
}


.machine-emoji {
    font-size: 58px;
}


.machine-display strong {
    margin-top: 13px;

    font-family:
        "Fredoka",
        sans-serif;

    font-size:
        clamp(
            28px,
            5vw,
            38px
        );
}


.machine-display small {
    margin-top: 5px;

    color:
        var(--muted);
}


.machine-buttons {
    margin-top: 20px;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap: 12px;
}


.machine-button {
    padding: 15px;

    cursor: pointer;

    border:
        2px solid
        transparent;

    border-radius: 17px;

    background: white;

    color:
        var(--gold-900);

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 23px;
    font-weight: 700;

    box-shadow:
        0 9px 20px
        rgba(124, 73, 13, 0.1);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}


.machine-button:hover {
    transform:
        translateY(-3px);

    border-color:
        var(--gold-400);
}


/* =========================================
   CORRECT AND WRONG ANSWERS
========================================= */

.machine-button.correct-choice {
    border-color:
        var(--green) !important;

    background:
        #eaf8ef !important;

    color:
        #36724d !important;
}


.machine-button.wrong-choice {
    border-color:
        var(--red) !important;

    background:
        #fff0f0 !important;

    color:
        #a43e3e !important;
}


/* =========================================
   REVIEW
========================================= */

.be-review-grid {
    margin-top: 28px;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 15px;
}


.be-review-grid article {
    padding:
        23px 14px;

    display: flex;

    flex-direction: column;

    gap: 7px;

    border:
        1px solid
        rgba(199, 126, 31, 0.16);

    border-radius: 22px;
}


.be-review-grid strong {
    color:
        var(--ink);

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 20px;
}


.be-review-grid span {
    color:
        var(--gold-800);

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 31px;
    font-weight: 700;
}


.be-review-grid small {
    color:
        var(--muted);
}


.review-am {
    background:
        #fff4d4;
}


.review-is {
    background:
        #ffe8b4;
}


.review-are {
    background:
        #ffefc6;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 760px) {

    .meaning-grid,
    .formula-board,
    .be-review-grid {
        grid-template-columns:
            1fr;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    .machine-buttons {
        grid-template-columns:
            1fr;
    }

}