/* ==================================================
   LESSON 10 — ACTIONS + CAN / CAN'T
   SAME VISUAL SYSTEM AS LESSON 5 — COLORS
================================================== */

@import url("lesson-5.css");


/* ==================================================
   BODY
================================================== */

.actions-lesson-body {
    font-family: "Fredoka", sans-serif;
}


/* ==================================================
   FLOATING SYMBOLS
================================================== */

.floating-action-one {
    top: 23%;
    left: 4%;
    transform: rotate(-10deg);
}


.floating-action-two {
    right: 5%;
    top: 46%;
    transform: rotate(10deg);
}


.floating-action-three {
    left: 7%;
    bottom: 9%;
    transform: rotate(-6deg);
}


/* ==================================================
   INTRO
================================================== */

.actions-intro-page .story-book-icon {
    background:
        linear-gradient(
            135deg,
            #fff7ec,
            #f3eefb,
            #eef8ff
        );
}


.actions-intro-page .mission-icon {
    background:
        linear-gradient(
            135deg,
            #fff6d8,
            #f3eefb
        );
}


/* ==================================================
   MAP PAGE
================================================== */

.actions-map-page {
    min-height: 760px;
}


/* ==================================================
   ACTION PROGRESS PREVIEW
================================================== */

.action-progress-preview {
    margin:
        0
        auto
        17px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 11px;
}


.action-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;
}


.action-progress-icon.completed {
    filter: grayscale(0);
    opacity: 1;

    transform:
        translateY(-2px)
        scale(1.04);
}


/* ==================================================
   OVERALL PROGRESS
================================================== */

.action-overall-progress-track {
    width: min(420px, 100%);
    height: 12px;

    margin: 0 auto;

    overflow: hidden;

    background: #ece7ef;

    border-radius: 999px;
}


.action-overall-progress-fill {
    width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #a58cc5,
            #86add0,
            #edcf69
        );

    border-radius: inherit;

    transition:
        width 0.45s ease;
}


/* ==================================================
   PART CARDS
================================================== */

.action-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;
}


.action-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;
}


.action-part-card:nth-child(2)
.part-card-icon {
    background:
        linear-gradient(
            135deg,
            #eef8ff,
            #f5f0ff
        );
}


.action-part-card:nth-child(3)
.part-card-icon {
    background:
        linear-gradient(
            135deg,
            #fff7ec,
            #fff6d5
        );
}


.action-part-card h3 {
    margin:
        0
        0
        8px;

    color: #5c5564;

    font-size: 27px;
    font-weight: 700;
}


.action-part-card > p {
    min-height: 44px;

    margin:
        0
        auto
        15px;

    color: #817a85;

    font-size: 13px;
    line-height: 1.45;
}


/* ==================================================
   ACTION EXAMPLES
================================================== */

.action-example-row {
    margin-bottom: 18px;

    display: flex;
    justify-content: center;

    gap: 8px;
}


.action-example-row span {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    background: #fff;

    border: 2px solid #ebe4de;
    border-radius: 14px;

    font-size: 25px;
}


/* ==================================================
   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
================================================== */

.action-map-finish-button {
    margin:
        30px
        auto
        0;
}


/* ==================================================
   ACTION LEARNING PAGE
================================================== */

.action-learning-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;
}


/* ==================================================
   ACTIVE PART HEADING
================================================== */

.active-part-heading h2 {
    margin:
        0
        0
        8px;

    color: #514b59;

    font-size:
        clamp(
            38px,
            5vw,
            52px
        );
}


.active-part-heading > p:last-child {
    margin: 0;

    color: #817b87;

    font-size: 14px;
    line-height: 1.5;
}


/* ==================================================
   ACTION PART PROGRESS
================================================== */

.action-part-progress-card {
    width: min(620px, 100%);

    margin:
        0
        auto
        20px;

    padding:
        15px
        18px;

    display: flex;
    align-items: center;

    gap: 15px;

    background:
        linear-gradient(
            135deg,
            #fffefc,
            #f8f4fa
        );

    border: 2px solid #e7dfe8;
    border-bottom: 5px solid #d5c9d7;
    border-radius: 20px;
}


.action-part-progress-information {
    min-width: 78px;

    text-align: left;
}


.action-part-progress-information span {
    display: block;

    color: #8b8490;

    font-size: 10px;
}


.action-part-progress-information strong {
    display: block;

    margin-top: 2px;

    color: #655e6c;

    font-size: 15px;
}


.action-part-progress-track {
    flex: 1;

    height: 11px;

    overflow: hidden;

    background: #ece7ef;

    border-radius: 999px;
}


.action-part-progress-fill {
    width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #aaa0cb,
            #93c8dd,
            #e6d580
        );

    border-radius: inherit;

    transition:
        width 0.35s ease;
}


/* ==================================================
   ACTION LEARNING CARD
================================================== */

.action-learning-card {
    position: relative;
}


/* ==================================================
   CARD TOP
================================================== */

.action-card-top {
    margin-bottom: 8px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}


.action-status-badge {
    padding:
        7px
        11px;

    background: #fff6d5;

    border-radius: 999px;

    color: #857744;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.8px;
}


.action-card-position {
    padding:
        7px
        11px;

    background: #f0ecf7;

    border-radius: 999px;

    color: #766b9a;

    font-size: 10px;
    font-weight: 700;
}


/* ==================================================
   ACTION VISUAL
================================================== */

.action-learning-visual {
    margin:
        14px
        auto
        7px;
}


.action-learning-emoji {
    min-height: 125px;

    display: grid;
    place-items: center;

    font-size: 105px;

    line-height: 1;

    transform-origin: center;
}


.action-learning-emoji.action-pop {
    animation:
        actionPop
        0.45s
        ease;
}


@keyframes actionPop {

    0% {
        opacity: 0;

        transform:
            scale(0.72);
    }

    70% {
        opacity: 1;

        transform:
            scale(1.1);
    }

    100% {
        transform:
            scale(1);
    }
}


/* ==================================================
   LEARNED MESSAGE
================================================== */

.action-learned-message {
    width: fit-content;

    margin:
        14px
        auto
        0;

    padding:
        8px
        12px;

    background: #f1f5e9;

    border: 2px solid #d5dfc3;
    border-radius: 13px;

    color: #6f7b58;

    font-size: 11px;
    font-weight: 600;
}


.action-learned-message span {
    margin-right: 4px;

    color: #829b61;
}


/* ==================================================
   ACTION NAVIGATION
================================================== */

.action-navigation {
    width: min(620px, 100%);

    margin:
        18px
        auto
        0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;
}


.action-navigation
.letter-navigation-button {
    width: 58px;
    height: 58px;

    padding: 0;
}


.action-navigation
.next-letter-button {
    width: min(280px, 100%);
    min-height: 58px;
}


/* ==================================================
   PART HINT
================================================== */

.action-part-hint {
    width: fit-content;

    margin:
        15px
        auto
        0;

    padding:
        9px
        13px;

    background: #fff8df;

    border: 2px solid #eadfbd;
    border-radius: 13px;

    color: #817354;

    font-size: 11px;
}


/* ==================================================
   PART FINISH
================================================== */

.action-part-finish-button {
    margin:
        18px
        auto
        0;
}


/* ==================================================
   CAN / CAN'T PAGE
================================================== */

.can-rule-page {
    min-height: 760px;
}


/* ==================================================
   CAN RULE GRID
================================================== */

.can-rule-grid {
    width: min(720px, 100%);

    margin:
        0
        auto
        24px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}


/* ==================================================
   CAN RULE CARD
================================================== */

.can-rule-card {
    min-height: 320px;

    padding:
        24px
        20px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    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);

    text-align: center;
}


.can-rule-label {
    padding:
        6px
        10px;

    background: #f0ecf7;

    border-radius: 999px;

    color: #766b9a;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;
}


.can-rule-icon {
    margin:
        17px
        0
        6px;

    font-size: 56px;
}


.can-rule-card h3 {
    margin:
        0
        0
        5px;

    color: #5c5564;

    font-size: 38px;
}


.can-rule-meaning {
    margin:
        0
        0
        18px;

    color: #817a85;

    font-size: 14px;
}


.can-rule-example {
    width: 100%;

    padding:
        12px
        14px;

    background:
        linear-gradient(
            135deg,
            #fff7ec,
            #f3eefb
        );

    border: 2px solid #e7dfe8;
    border-radius: 15px;

    color: #5d5665;

    font-size: 19px;
    font-weight: 700;
}


.can-rule-translation {
    margin-top: 8px;

    color: #8a8290;

    font-size: 12px;
}


/* ==================================================
   IMPORTANT RULE
================================================== */

.can-important-rule {
    width: min(720px, 100%);

    margin:
        0
        auto
        20px;

    padding:
        18px
        20px;

    display: flex;
    align-items: center;

    gap: 16px;

    background:
        linear-gradient(
            135deg,
            #fff7ea,
            #f5effc,
            #eef8ff
        );

    border: 2px solid #e2d8e8;
    border-bottom: 6px solid #cec0d8;
    border-radius: 23px;

    text-align: left;
}


.can-important-icon {
    width: 66px;
    height: 66px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    background: #fff;

    border-radius: 20px;

    font-size: 38px;
}


.can-important-rule span {
    display: block;

    margin-bottom: 3px;

    color: #9a819d;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;
}


.can-important-rule strong {
    display: block;

    color: #5d5665;

    font-size: 18px;
}


.can-important-rule p {
    margin:
        5px
        0
        0;

    color: #817985;

    font-size: 13px;
}


/* ==================================================
   PRONOUN CARD
================================================== */

.can-pronoun-card {
    width: min(720px, 100%);

    margin:
        0
        auto
        24px;

    padding:
        20px;

    background:
        linear-gradient(
            180deg,
            #fffefc,
            #faf7f2
        );

    border: 2px solid #e7dfd7;
    border-bottom: 6px solid #d6ccc0;
    border-radius: 24px;
}


.can-pronoun-label {
    display: block;

    margin-bottom: 15px;

    color: #987a9b;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;
}


.can-pronoun-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}


.can-pronoun-grid div {
    padding:
        11px
        10px;

    background:
        linear-gradient(
            180deg,
            #f7f3fa,
            #eee9f4
        );

    border: 2px solid #ded6e7;
    border-bottom: 4px solid #c9bed7;
    border-radius: 14px;

    color: #675f73;

    font-size: 13px;
    font-weight: 600;
}


/* ==================================================
   ACTION CHALLENGE PAGE
================================================== */

.action-challenge-page {
    min-height: 760px;
}


/* ==================================================
   CHALLENGE CARD
================================================== */

.action-challenge-card {
    min-height: 440px;
}


.action-challenge-animal {
    margin:
        12px
        auto
        2px;

    font-size: 100px;

    line-height: 1;
}


.action-challenge-word {
    color: #5c5564;

    font-size:
        clamp(
            38px,
            6vw,
            52px
        );

    font-weight: 700;
}


.action-challenge-question {
    margin:
        10px
        0
        18px;

    color: #817a85;

    font-size: 15px;
}


/* ==================================================
   CAN CHOICE
================================================== */

.can-choice-grid {
    width: min(420px, 100%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 11px;
}


.can-choice-button {
    min-height: 58px;
}


.can-choice-button.correct {
    background: #eef6e8;

    border-color: #bfd1ae;
    border-bottom-color: #a9bd94;

    color: #657956;
}


.can-choice-button.wrong {
    background: #faecec;

    border-color: #ddb1b1;
    border-bottom-color: #c99595;

    color: #9e6666;
}


/* ==================================================
   CHALLENGE COMPLETE
================================================== */

.action-challenge-complete {
    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;
}


.action-challenge-complete h3 {
    margin:
        0
        0
        8px;

    color: #5c5564;

    font-size: 28px;
}


.action-challenge-complete p {
    margin:
        0
        0
        22px;

    color: #817a85;

    font-size: 14px;
}


/* ==================================================
   MEDIA
================================================== */

.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 HEADING
================================================== */

.actions-lesson-body
.practice-heading-icon {
    background:
        linear-gradient(
            135deg,
            #fff7ec,
            #f3eefb,
            #eef8ff
        );
}


/* ==================================================
   GAME QUESTION CARD
================================================== */

.action-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;
}


.action-question-emoji {
    margin-bottom: 10px;

    font-size: 82px;
}


.action-question-card h3 {
    margin:
        0
        0
        8px;

    color: #5d5664;

    font-size: 26px;
}


.action-question-card > p:not(.screen-label) {
    color: #817a85;

    font-size: 14px;
}


/* ==================================================
   ANSWER GRID
================================================== */

.action-answer-grid {
    margin-top: 18px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 11px;
}


.action-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;
}


.action-answer-button.correct {
    background: #eef6e8;

    border-color: #bfd1ae;
    border-bottom-color: #a9bd94;

    color: #657956;
}


.action-answer-button.wrong {
    background: #faecec;

    border-color: #ddb1b1;
    border-bottom-color: #c99595;

    color: #9e6666;
}


.action-answer-button:disabled {
    cursor: default;
}


/* ==================================================
   INPUT
================================================== */

.action-answer-input {
    width: min(360px, 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;
}


.action-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
================================================== */

.actions-lesson-body
.finish-main-icon {
    animation:
        actionFinishFloat
        2.3s
        ease-in-out
        infinite;
}


@keyframes actionFinishFloat {

    50% {
        transform:
            translateY(-6px)
            rotate(3deg);
    }
}


.actions-lesson-body
.finish-badge-icon {
    background:
        linear-gradient(
            135deg,
            #fff7ec,
            #f3eefb,
            #eef8ff
        );
}


/* ==================================================
   SCREEN ANIMATION
================================================== */

.actions-lesson-body
.lesson-screen.active-screen {
    animation:
        actionScreenEnter
        0.5s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


@keyframes actionScreenEnter {

    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;
    }


    .can-rule-grid {
        grid-template-columns: 1fr;
    }


    .can-pronoun-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .action-answer-grid {
        grid-template-columns: 1fr;
    }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 560px) {

    .actions-map-page,
    .action-learning-page,
    .can-rule-page,
    .action-challenge-page {
        padding:
            38px
            14px
            42px;
    }


    .action-progress-icon {
        width: 54px;
        height: 54px;

        font-size: 29px;
    }


    .action-part-card {
        min-height: auto;

        padding:
            21px
            17px
            18px;
    }


    .part-card-icon {
        width: 74px;
        height: 74px;

        font-size: 38px;
    }


    .action-learning-card {
        min-height: 430px;

        padding:
            22px
            17px
            25px;
    }


    .action-learning-emoji {
        min-height: 105px;

        font-size: 88px;
    }


    .action-navigation {
        width: 100%;
    }


    .action-navigation
    .next-letter-button {
        flex: 1;

        min-width: 0;
    }


    .can-important-rule {
        flex-direction: column;

        text-align: center;
    }


    .can-pronoun-grid {
        grid-template-columns: 1fr;
    }


    .can-choice-grid {
        grid-template-columns: 1fr;
    }


    .action-question-emoji {
        font-size: 70px;
    }

}

