/* ==================================================
   LESSON 11 — HAVE GOT / HAS GOT
   SAME VISUAL SYSTEM AS LESSON 5 — COLORS
================================================== */

@import url("lesson-5.css");


/* ==================================================
   BODY
================================================== */

.have-got-lesson-body {
    font-family: "Fredoka", sans-serif;
}


/* ==================================================
   FLOATING SYMBOLS
================================================== */

.floating-have-one {
    top: 23%;
    left: 4%;
    transform: rotate(-10deg);
}


.floating-have-two {
    right: 5%;
    top: 46%;
    transform: rotate(10deg);
}


.floating-have-three {
    left: 7%;
    bottom: 9%;
    transform: rotate(-6deg);
}


/* ==================================================
   INTRO
================================================== */

.have-intro-page .story-book-icon {
    background:
        linear-gradient(
            135deg,
            #fff7ec,
            #f3eefb,
            #eef8ff
        );
}


.have-intro-page .mission-icon {
    background:
        linear-gradient(
            135deg,
            #fff6d8,
            #f3eefb
        );
}


/* ==================================================
   MAP PAGE
================================================== */

.have-map-page {
    min-height: 760px;
}


/* ==================================================
   PROGRESS PREVIEW
================================================== */

.have-progress-preview {
    margin:
        0
        auto
        17px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 11px;
}


.have-progress-icon {
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            #fff7ec,
            #f3eefb,
            #eef8ff
        );

    border: 2px solid #e5ddea;
    border-bottom: 5px solid #d0c5d9;
    border-radius: 19px;

    box-shadow:
        0 7px 16px
        rgba(95, 81, 110, 0.06);

    font-size: 33px;

    filter: grayscale(1);
    opacity: 0.48;

    transition:
        filter 0.4s ease,
        opacity 0.4s ease,
        transform 0.35s ease;
}


.have-progress-icon.completed {
    filter: grayscale(0);
    opacity: 1;

    transform:
        translateY(-2px)
        scale(1.04);
}


/* ==================================================
   OVERALL PROGRESS
================================================== */

.have-overall-progress-track {
    width: min(420px, 100%);
    height: 12px;

    margin: 0 auto;

    overflow: hidden;

    background: #ece7ef;

    border-radius: 999px;
}


.have-overall-progress-fill {
    width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #a58cc5,
            #86add0,
            #edcf69
        );

    border-radius: inherit;

    transition:
        width 0.45s ease;
}


/* ==================================================
   PART CARDS
================================================== */

.have-part-card {
    width: 100%;

    padding:
        24px
        22px
        20px;

    position: relative;

    background:
        linear-gradient(
            180deg,
            #fffefc,
            #faf7f2
        );

    border: 2px solid #e7dfd7;
    border-bottom: 7px solid #d7cbc0;
    border-radius: 27px;

    box-shadow:
        0 12px 28px
        rgba(95, 78, 62, 0.07);

    color: inherit;

    text-align: center;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.25s ease,
        filter 0.25s ease;
}


.have-part-card:not(:disabled):hover {
    transform: translateY(-4px);
}


.part-card-label {
    display: block;

    width: fit-content;

    margin:
        0
        auto
        15px;

    padding:
        6px
        10px;

    background: #f0ecf7;

    border-radius: 999px;

    color: #766b9a;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;
}


.part-card-icon {
    width: 82px;
    height: 82px;

    margin:
        0
        auto
        15px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            #fff7ec,
            #f3eefb
        );

    border: 2px solid #e5dcea;
    border-bottom: 6px solid #d1c5dc;
    border-radius: 25px;

    font-size: 42px;
}


.have-part-card:nth-child(2)
.part-card-icon {
    background:
        linear-gradient(
            135deg,
            #eef8ff,
            #f5f0ff
        );
}


.have-part-card:nth-child(3)
.part-card-icon {
    background:
        linear-gradient(
            135deg,
            #fff6d5,
            #f3eefb
        );
}


.have-part-card h3 {
    margin:
        0
        0
        8px;

    color: #5c5564;

    font-size: 27px;
    font-weight: 700;
}


.have-part-card > p {
    min-height: 44px;

    margin:
        0
        auto
        15px;

    color: #817a85;

    font-size: 13px;
    line-height: 1.45;
}


/* ==================================================
   GRAMMAR EXAMPLE ROW
================================================== */

.grammar-example-row {
    margin-bottom: 18px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;
}


.grammar-example-row span {
    min-width: 43px;
    height: 43px;

    padding:
        0
        10px;

    display: grid;
    place-items: center;

    background: #fff;

    border: 2px solid #ebe4de;
    border-radius: 14px;

    color: #665f70;

    font-size: 12px;
    font-weight: 700;
}


/* ==================================================
   PART FOOTER
================================================== */

.part-card-footer {
    margin-top: auto;

    padding-top: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    border-top:
        2px solid
        #eee8e2;

    color: #8a8290;

    font-size: 10px;
}


.part-card-footer strong {
    color: #716879;

    font-size: 11px;
}


/* ==================================================
   PART STATES
================================================== */

.available-part {
    opacity: 1;
    filter: none;
}


.locked-part {
    opacity: 0.43;

    filter:
        grayscale(0.25);

    cursor: not-allowed;
}


.completed-part {
    border-color: #d5dfc3;
    border-bottom-color: #b9c79d;
}


.completed-part .part-card-label {
    background: #f1f5e9;

    color: #6f7b58;
}


.completed-part .part-card-footer strong {
    color: #6f7b58;
}


/* ==================================================
   MAP FINISH BUTTON
================================================== */

.have-map-finish-button {
    margin:
        30px
        auto
        0;
}


/* ==================================================
   GRAMMAR RULE PAGE
================================================== */

.grammar-rule-page {
    min-height: 760px;
}


/* ==================================================
   BACK BUTTON
================================================== */

.back-to-map-button {
    margin:
        0
        auto
        22px;

    padding:
        10px
        15px;

    display: block;

    background:
        linear-gradient(
            180deg,
            #f7f3fa,
            #eee9f4
        );

    border: 2px solid #ded6e7;
    border-bottom: 5px solid #c9bed7;
    border-radius: 15px;

    color: #675f73;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}


/* ==================================================
   GRAMMAR MAIN CARD
================================================== */

.grammar-main-card {
    width: min(720px, 100%);

    margin:
        0
        auto
        20px;

    padding:
        24px;

    background:
        linear-gradient(
            180deg,
            #fffefc,
            #faf7f2
        );

    border: 2px solid #e7dfd7;
    border-bottom: 7px solid #d7cbc0;
    border-radius: 28px;

    box-shadow:
        0 12px 28px
        rgba(95, 78, 62, 0.07);
}


/* ==================================================
   FORMULA
================================================== */

.grammar-formula {
    margin-bottom: 20px;

    padding:
        18px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;

    background:
        linear-gradient(
            135deg,
            #fff7ec,
            #f3eefb,
            #eef8ff
        );

    border: 2px solid #e4dbe9;
    border-radius: 20px;
}


.grammar-formula span {
    min-width: 50px;

    padding:
        8px
        10px;

    background: #fff;

    border-radius: 12px;

    color: #655e6d;

    font-size: 13px;
    font-weight: 700;
}


.grammar-formula strong {
    padding:
        9px
        13px;

    background: #f0ecf7;

    border-radius: 12px;

    color: #766b9a;

    font-size: 14px;
}


/* ==================================================
   EXAMPLE CARDS
================================================== */

.grammar-example-card {
    margin-top: 12px;

    padding:
        17px
        18px;

    display: grid;

    grid-template-columns:
        58px
        1fr;

    gap: 14px;

    align-items: center;

    background: #fff;

    border: 2px solid #ece5df;
    border-bottom: 5px solid #d9cec4;
    border-radius: 18px;

    text-align: left;
}


.grammar-example-emoji {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            #fff7ec,
            #f3eefb
        );

    border-radius: 16px;

    font-size: 30px;
}


.grammar-example-card strong {
    display: block;

    color: #5c5564;

    font-size: 18px;
}


.grammar-example-card p {
    margin:
        3px
        0
        0;

    color: #8a8390;

    font-size: 12px;
}


/* ==================================================
   MEMORY CARD
================================================== */

.grammar-memory-card {
    width: min(720px, 100%);

    margin:
        0
        auto
        22px;

    padding:
        17px
        18px;

    display: flex;
    align-items: center;

    gap: 14px;

    background:
        linear-gradient(
            135deg,
            #fff7ea,
            #f5effc,
            #eef8ff
        );

    border: 2px solid #e2d8e8;
    border-bottom: 6px solid #cec0d8;
    border-radius: 22px;
}


.grammar-memory-card > div {
    width: 54px;
    height: 54px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    background: #fff;

    border-radius: 16px;

    font-size: 30px;
}


.grammar-memory-card p {
    margin: 0;

    color: #6d6575;

    font-size: 14px;
    line-height: 1.5;

    text-align: left;
}


/* ==================================================
   QUESTION RULE GRID
================================================== */

.question-rule-grid {
    width: min(760px, 100%);

    margin:
        0
        auto
        22px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}


/* ==================================================
   QUESTION RULE CARD
================================================== */

.question-rule-card {
    min-height: 220px;

    padding:
        20px
        18px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            180deg,
            #fffefc,
            #faf7f2
        );

    border: 2px solid #e7dfd7;
    border-bottom: 6px solid #d7cbc0;
    border-radius: 23px;

    box-shadow:
        0 10px 22px
        rgba(95, 78, 62, 0.06);

    text-align: center;
}


.question-rule-label {
    padding:
        6px
        10px;

    background: #f0ecf7;

    border-radius: 999px;

    color: #766b9a;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.8px;
}


.question-rule-icon {
    margin:
        13px
        0
        8px;

    font-size: 42px;
}


.question-rule-card strong {
    color: #5c5564;

    font-size: 17px;
}


.question-rule-card p {
    margin:
        6px
        0
        0;

    color: #8a8390;

    font-size: 12px;
}


.question-memory-card {
    margin-bottom: 22px;
}


/* ==================================================
   MYSTERY BACKPACK
================================================== */

.backpack-page {
    min-height: 760px;
}


.backpack-challenge-card {
    min-height: 470px;
}


.backpack-person {
    margin:
        8px
        auto
        8px;

    font-size: 88px;
}


.backpack-items {
    margin:
        0
        auto
        18px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 9px;
}


.backpack-items span {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            #fff7ec,
            #f3eefb
        );

    border: 2px solid #e5dcea;
    border-bottom: 4px solid #d1c5dc;
    border-radius: 17px;

    font-size: 32px;
}


.backpack-question {
    margin:
        5px
        0
        18px;

    color: #5c5564;

    font-size: 23px;
}


/* ==================================================
   BACKPACK CHOICES
================================================== */

.backpack-choice-grid {
    width: min(400px, 100%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 11px;
}


.backpack-choice-button {
    min-height: 58px;
}


.backpack-choice-button.correct {
    background: #eef6e8;

    border-color: #bfd1ae;
    border-bottom-color: #a9bd94;

    color: #657956;
}


.backpack-choice-button.wrong {
    background: #faecec;

    border-color: #ddb1b1;
    border-bottom-color: #c99595;

    color: #9e6666;
}


/* ==================================================
   BACKPACK COMPLETE
================================================== */

.backpack-complete-card {
    width: min(620px, 100%);

    margin: 0 auto;

    padding:
        30px
        24px;

    background:
        linear-gradient(
            180deg,
            #fffefc,
            #faf7f2
        );

    border: 2px solid #e7dfd7;
    border-bottom: 7px solid #d7cbc0;
    border-radius: 29px;

    box-shadow:
        0 14px 32px
        rgba(95, 78, 62, 0.07);

    text-align: center;
}


.backpack-complete-icon {
    margin-bottom: 10px;

    font-size: 72px;
}


.backpack-complete-card h3 {
    margin:
        0
        0
        8px;

    color: #5c5564;

    font-size: 28px;
}


.backpack-complete-card p {
    margin:
        0
        0
        22px;

    color: #817a85;

    font-size: 14px;
}


/* ==================================================
   MEDIA CARDS
================================================== */

.video-card-grid
.learning-video-card:nth-child(1)
.video-card-illustration {
    background:
        linear-gradient(
            135deg,
            #fff7ec,
            #f3eefb
        );
}


.video-card-grid
.learning-video-card:nth-child(2)
.video-card-illustration {
    background:
        linear-gradient(
            135deg,
            #eef8ff,
            #f5f0ff
        );
}


.video-card-grid
.learning-video-card:nth-child(3)
.video-card-illustration {
    background:
        linear-gradient(
            135deg,
            #fff6d5,
            #f3eefb
        );
}


/* ==================================================
   PRACTICE
================================================== */

.have-got-lesson-body
.practice-heading-icon {
    background:
        linear-gradient(
            135deg,
            #fff7ec,
            #f3eefb,
            #eef8ff
        );
}


/* ==================================================
   GAME QUESTION CARD
================================================== */

.have-question-card {
    width: min(620px, 100%);

    margin: 0 auto;

    padding:
        25px
        22px;

    background:
        linear-gradient(
            180deg,
            #fffefc,
            #faf7f2
        );

    border: 2px solid #e7dfd7;
    border-bottom: 6px solid #d6ccc0;
    border-radius: 25px;

    box-shadow:
        0 10px 24px
        rgba(95, 77, 61, 0.06);

    text-align: center;
}


.have-question-emoji {
    margin-bottom: 10px;

    font-size: 78px;
}


.have-question-card h3 {
    margin:
        0
        0
        8px;

    color: #5d5664;

    font-size: 25px;
}


.have-question-card > p:not(.screen-label) {
    color: #817a85;

    font-size: 14px;
}


/* ==================================================
   ANSWER GRID
================================================== */

.have-answer-grid {
    margin-top: 18px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 11px;
}


.have-answer-button {
    padding:
        13px
        14px;

    background:
        linear-gradient(
            180deg,
            #f7f3fa,
            #eee9f4
        );

    border: 2px solid #ded6e7;
    border-bottom: 5px solid #c9bed7;
    border-radius: 15px;

    color: #675f73;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}


.have-answer-button.correct {
    background: #eef6e8;

    border-color: #bfd1ae;
    border-bottom-color: #a9bd94;

    color: #657956;
}


.have-answer-button.wrong {
    background: #faecec;

    border-color: #ddb1b1;
    border-bottom-color: #c99595;

    color: #9e6666;
}


.have-answer-button:disabled {
    cursor: default;
}


/* ==================================================
   INPUT
================================================== */

.have-answer-input {
    width: min(390px, 100%);

    margin:
        18px
        auto
        12px;

    padding:
        13px
        15px;

    display: block;

    background: #fff;

    border: 2px solid #ded6e7;
    border-bottom: 5px solid #c9bed7;
    border-radius: 15px;

    color: #5d5665;

    font-size: 18px;
    font-weight: 600;

    text-align: center;

    outline: none;
}


.have-answer-input:focus {
    border-color: #b9abd0;
}


/* ==================================================
   FEEDBACK
================================================== */

.game-feedback {
    min-height: 22px;

    margin-top: 13px;

    font-size: 12px;
    font-weight: 600;
}


.correct-feedback {
    color: #6f835d;
}


.wrong-feedback {
    color: #a86d6d;
}


/* ==================================================
   FINISH
================================================== */

.have-got-lesson-body
.finish-main-icon {
    animation:
        haveFinishFloat
        2.3s
        ease-in-out
        infinite;
}


@keyframes haveFinishFloat {

    50% {
        transform:
            translateY(-6px)
            rotate(3deg);
    }
}


.have-got-lesson-body
.finish-badge-icon {
    background:
        linear-gradient(
            135deg,
            #fff7ec,
            #f3eefb,
            #eef8ff
        );
}


/* ==================================================
   SCREEN ANIMATION
================================================== */

.have-got-lesson-body
.lesson-screen.active-screen {
    animation:
        haveScreenEnter
        0.5s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


@keyframes haveScreenEnter {

    0% {
        opacity: 0;

        transform:
            translateY(24px)
            scale(0.985);
    }

    70% {
        transform:
            translateY(-3px)
            scale(1.003);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* ==================================================
   HIDDEN
================================================== */

[hidden] {
    display: none !important;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 760px) {

    .lesson-parts-map {
        grid-template-columns: 1fr;
    }


    .question-rule-grid {
        grid-template-columns: 1fr;
    }


    .have-answer-grid {
        grid-template-columns: 1fr;
    }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 560px) {

    .have-map-page,
    .grammar-rule-page,
    .backpack-page {
        padding:
            38px
            14px
            42px;
    }


    .have-progress-icon {
        width: 54px;
        height: 54px;

        font-size: 29px;
    }


    .have-part-card {
        min-height: auto;

        padding:
            21px
            17px
            18px;
    }


    .part-card-icon {
        width: 74px;
        height: 74px;

        font-size: 38px;
    }


    .grammar-main-card {
        padding:
            19px
            15px;
    }


    .grammar-example-card {
        grid-template-columns: 1fr;

        text-align: center;
    }


    .grammar-example-emoji {
        margin: 0 auto;
    }


    .grammar-memory-card {
        flex-direction: column;

        text-align: center;
    }


    .grammar-memory-card p {
        text-align: center;
    }


    .backpack-choice-grid {
        grid-template-columns: 1fr;
    }


    .have-question-emoji {
        font-size: 68px;
    }

}