/* ==================================================
   LESSON 6 — A, AN & THE
================================================== */

@import url("lesson-5.css");


/* ==================================================
   BODY
================================================== */

.articles-lesson-body {
    font-family: "Fredoka", sans-serif;
}


/* ==================================================
   FLOATING SYMBOLS
================================================== */

.article-float-one,
.article-float-two,
.article-float-three {
    position: fixed;
    z-index: 0;

    opacity: 0.14;

    pointer-events: none;
    user-select: none;
}

.article-float-one {
    top: 18%;
    left: 5%;

    font-size: 74px;

    transform: rotate(-8deg);
}

.article-float-two {
    top: 48%;
    right: 5%;

    font-size: 54px;

    transform: rotate(8deg);
}

.article-float-three {
    bottom: 10%;
    left: 8%;

    font-size: 64px;

    transform: rotate(6deg);
}


/* ==================================================
   INTRO
================================================== */

.article-intro-page .story-book-icon {
    animation: articleIntroFloat 2.4s ease-in-out infinite;
}

@keyframes articleIntroFloat {

    50% {
        transform:
            translateY(-6px)
            rotate(2deg);
    }

}


/* ==================================================
   RULE PAGE
================================================== */

.article-rule-page {
    width: min(920px, 100%);

    margin: 0 auto;

    padding: 44px 28px 52px;
}

.article-rule-page-heading {
    max-width: 700px;

    margin: 0 auto 26px;

    text-align: center;
}

.article-rule-page-icon {
    width: 84px;
    height: 84px;

    margin: 0 auto 14px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            #fff7ed,
            #f2eef9
        );

    border: 2px solid #e5dce7;
    border-bottom: 6px solid #d0c5d5;

    border-radius: 25px;

    box-shadow:
        0 10px 22px
        rgba(89, 73, 95, 0.08);

    font-size: 42px;
}

.article-rule-page-heading h2 {
    margin: 0 0 7px;

    color: #58515f;

    font-size:
        clamp(
            38px,
            5vw,
            52px
        );
}

.article-rule-page-heading > p:last-child {
    margin: 0;

    color: #857d8b;

    font-size: 14px;
}


/* ==================================================
   MAIN LEARNING BOX
================================================== */

.article-learning-box {
    width: min(760px, 100%);

    margin: 0 auto 30px;

    padding: 26px;

    background:
        linear-gradient(
            145deg,
            #fffdf9,
            #f8f4fb
        );

    border: 2px solid #e7dfd8;
    border-bottom: 7px solid #d6cbc1;

    border-radius: 28px;

    box-shadow:
        0 16px 36px
        rgba(92, 74, 82, 0.08);
}


/* ==================================================
   A BOX
================================================== */

.article-a-box {
    background:
        linear-gradient(
            145deg,
            #fffaf3,
            #f8f4fb
        );
}


/* ==================================================
   AN BOX
================================================== */

.article-an-box {
    background:
        linear-gradient(
            145deg,
            #f9f6ff,
            #fffaf3
        );
}


/* ==================================================
   THE BOX
================================================== */

.article-the-box {
    background:
        linear-gradient(
            145deg,
            #f4f8ff,
            #fffaf3
        );
}


/* ==================================================
   BOX TOP
================================================== */

.article-box-top {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 17px;
}

.article-box-letter {
    min-width: 72px;
    height: 72px;

    padding: 0 14px;

    display: grid;
    place-items: center;

    background: #ffffff;

    border: 2px solid #e3dbe8;
    border-bottom: 5px solid #cec2d8;

    border-radius: 20px;

    color: #675d72;

    font-size: 32px;
    font-weight: 700;

    box-shadow:
        0 7px 17px
        rgba(89, 73, 95, 0.07);
}

.article-box-label {
    display: block;

    margin-bottom: 2px;

    color: #9a879f;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.1px;
}

.article-box-top h3 {
    margin: 0;

    color: #5e5664;

    font-size: 24px;
}


/* ==================================================
   MAIN TEXT
================================================== */

.article-box-main-text {
    margin: 0 0 20px;

    color: #756e79;

    font-size: 15px;
    line-height: 1.65;
}

.article-box-main-text strong {
    color: #5e5666;
}


/* ==================================================
   RULE BLOCK
================================================== */

.article-box-rule {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    padding: 17px;

    margin-bottom: 17px;

    background:
        rgba(255, 255, 255, 0.74);

    border: 2px solid #e5dce8;

    border-radius: 19px;
}

.article-box-rule-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    background: #f7f2fa;

    border-radius: 14px;

    font-size: 25px;
}

.article-box-rule small {
    display: block;

    margin-bottom: 3px;

    color: #9b879f;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;
}

.article-box-rule strong {
    display: block;

    margin-bottom: 4px;

    color: #655d6d;

    font-size: 19px;
}

.article-box-rule p {
    margin: 0;

    color: #817986;

    font-size: 12.5px;
    line-height: 1.5;
}


/* ==================================================
   FORMULA
================================================== */

.article-box-formula {
    width: fit-content;

    margin: 0 auto 18px;

    padding: 10px 17px;

    display: flex;
    align-items: center;

    gap: 12px;

    background:
        linear-gradient(
            135deg,
            #f4eef8,
            #fff7ed
        );

    border: 2px solid #e3d8e8;

    border-radius: 999px;

    color: #756a7d;
}

.article-box-formula span {
    font-size: 12px;
    font-weight: 600;
}

.article-box-formula strong {
    font-size: 18px;
}

.article-box-formula b {
    color: #5f556a;

    font-size: 21px;
}


/* ==================================================
   VOWELS
================================================== */

.article-vowels-area {
    margin: 0 0 18px;

    display: flex;
    justify-content: center;

    gap: 9px;
}

.article-vowels-area span {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    background: #ffffff;

    border: 2px solid #dfd6e6;
    border-bottom: 4px solid #cbbfd5;

    border-radius: 50%;

    color: #675d72;

    font-size: 17px;
    font-weight: 700;

    box-shadow:
        0 5px 12px
        rgba(87, 72, 95, 0.06);
}


/* ==================================================
   INLINE EXAMPLES
================================================== */

.article-inline-examples {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 11px;

    margin-bottom: 18px;
}

.article-inline-example {
    min-height: 92px;

    padding: 12px;

    display: flex;
    align-items: center;

    gap: 9px;

    background:
        rgba(255, 255, 255, 0.82);

    border: 2px solid #ebe4df;

    border-radius: 17px;

    box-shadow:
        0 6px 14px
        rgba(84, 73, 77, 0.05);
}

.article-inline-example > span {
    font-size: 28px;
}

.article-inline-example > div {
    flex: 1;
}

.article-inline-example small {
    display: block;

    margin-bottom: 1px;

    color: #9b939d;

    font-size: 11px;
}

.article-inline-example strong {
    display: block;

    color: #5f5865;

    font-size: 15px;
}


/* ==================================================
   SPEAK BUTTON
================================================== */

.speak-example-button {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    background: #f5f1f8;

    border: 2px solid #ded5e5;
    border-bottom: 4px solid #cbbfd4;

    border-radius: 11px;

    font-family: inherit;
    font-size: 15px;

    cursor: pointer;

    transition:
        transform 0.17s ease,
        box-shadow 0.17s ease;
}

.speak-example-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 5px 12px
        rgba(83, 70, 92, 0.08);
}

.speak-example-button:active {
    transform: translateY(1px);
}


/* ==================================================
   TIP
================================================== */

.article-box-tip {
    padding: 12px 14px;

    display: flex;
    align-items: center;

    gap: 10px;

    background:
        linear-gradient(
            135deg,
            #fff8e9,
            #f8f4fb
        );

    border: 2px solid #eadfc9;

    border-radius: 16px;
}

.article-box-tip > span {
    font-size: 22px;
}

.article-box-tip p {
    margin: 0;

    color: #756e77;

    font-size: 12.5px;
}

.article-box-tip strong {
    color: #5f5962;
}


/* ==================================================
   VIDEO
================================================== */

.single-video-layout {
    max-width: 560px;

    margin: 0 auto 28px;
}

.main-video-card {
    width: 100%;
}

.video-heading-icon {
    width: 80px;
    height: 80px;

    margin: 0 auto 15px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            #fff7ed,
            #f2eef8
        );

    border: 2px solid #e5dce7;
    border-bottom: 6px solid #d0c5d5;

    border-radius: 24px;

    font-size: 39px;
}


/* ==================================================
   EXTERNAL GAMES PAGE
================================================== */

.external-games-page {
    width: min(920px, 100%);

    margin: 0 auto;

    padding: 45px 28px 52px;
}

.external-games-heading {
    max-width: 700px;

    margin: 0 auto 28px;

    text-align: center;
}

.external-games-icon {
    width: 82px;
    height: 82px;

    margin: 0 auto 14px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            #f7f1fa,
            #fff6eb
        );

    border: 2px solid #e4dbe7;
    border-bottom: 6px solid #cec2d3;

    border-radius: 24px;

    font-size: 40px;
}

.external-games-heading h2 {
    margin: 0 0 8px;

    color: #59525f;

    font-size:
        clamp(
            38px,
            5vw,
            52px
        );
}

.external-games-heading > p:last-child {
    margin: 0;

    color: #837c88;

    font-size: 14px;
}


/* ==================================================
   EXTERNAL GAME CARDS
================================================== */

.external-games-grid {
    width: min(780px, 100%);

    margin: 0 auto 30px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}

.external-game-card {
    position: relative;

    padding: 25px 22px;

    background:
        linear-gradient(
            145deg,
            #fffdf9,
            #f7f3fa
        );

    border: 2px solid #e8dfda;
    border-bottom: 6px solid #d4c8bf;

    border-radius: 24px;

    box-shadow:
        0 12px 28px
        rgba(89, 73, 82, 0.07);

    text-align: center;
}

.external-game-number {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    background: #f2edf6;

    border-radius: 50%;

    color: #6e6574;

    font-size: 12px;
    font-weight: 700;
}

.external-game-icon {
    margin-bottom: 10px;

    font-size: 48px;
}

.external-game-label {
    display: block;

    margin-bottom: 3px;

    color: #9a899f;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;
}

.external-game-card h3 {
    margin: 0 0 8px;

    color: #5f5865;

    font-size: 22px;
}

.external-game-card p {
    min-height: 42px;

    margin: 0 0 18px;

    color: #817985;

    font-size: 13px;
    line-height: 1.5;
}

.external-game-button {
    min-height: 44px;

    padding: 0 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #f1ebf5,
            #fff3e7
        );

    border: 2px solid #ded3e4;
    border-bottom: 4px solid #c9bdd3;

    border-radius: 14px;

    color: #645b6c;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.17s ease,
        box-shadow 0.17s ease;
}

.external-game-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 6px 15px
        rgba(87, 72, 94, 0.08);
}


/* ==================================================
   PRACTICE NOTE
================================================== */

.practice-important-note {
    width: fit-content;

    margin: 15px auto 0;

    padding: 8px 13px;

    background: #f6f2f8;

    border: 2px solid #e2d9e6;

    border-radius: 999px;

    color: #776e7e;

    font-size: 11px;
}


/* ==================================================
   TASK QUESTION CARD
================================================== */

.article-question-card {
    width: min(660px, 100%);

    margin: 0 auto;

    padding: 25px 22px;

    background:
        linear-gradient(
            180deg,
            #fffefb,
            #faf7f2
        );

    border: 2px solid #e8e0d8;
    border-bottom: 6px solid #d6cbc0;

    border-radius: 25px;

    box-shadow:
        0 12px 28px
        rgba(88, 75, 67, 0.06);

    text-align: center;
}

.article-question-emoji {
    margin: 4px 0 10px;

    font-size: 68px;
}

.article-question-word {
    margin: 0 0 17px;

    color: #5e5664;

    font-size:
        clamp(
            27px,
            4vw,
            36px
        );

    font-weight: 700;
}

.game-context-hint {
    width: min(440px, 100%);

    margin: -4px auto 17px;

    padding: 10px 13px;

    background: #f8f4fb;

    border: 2px solid #e4dbe8;

    border-radius: 14px;

    color: #7c7382;

    font-size: 12.5px;
    line-height: 1.45;

    text-align: center;
}


/* ==================================================
   CHOICES
================================================== */

.article-choice-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;

    margin-top: 16px;
}

.article-choice-grid-three {
    grid-template-columns:
        repeat(3, 1fr);
}

.article-choice-button {
    min-height: 54px;

    padding: 13px 15px;

    background:
        linear-gradient(
            180deg,
            #f7f3fa,
            #eee8f3
        );

    border: 2px solid #ded5e6;
    border-bottom: 5px solid #c9bdd5;

    border-radius: 15px;

    color: #675e70;

    font-family: inherit;
    font-size: 17px;
    font-weight: 700;

    cursor: pointer;

    transition: transform 0.16s ease;
}

.article-choice-button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.article-choice-button.correct {
    background: #eef6e8;

    border-color: #b8cca7;
    border-bottom-color: #98b185;
}

.article-choice-button.wrong {
    background: #faecec;

    border-color: #dcb2b2;
    border-bottom-color: #c29090;
}


/* ==================================================
   SORT BUTTONS
================================================== */

.article-sort-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

    margin-top: 18px;
}

.article-sort-button {
    min-height: 125px;

    padding: 17px;

    background:
        linear-gradient(
            180deg,
            #faf5ef,
            #f0e7dd
        );

    border: 3px solid #d7c7b5;
    border-bottom: 7px solid #bfa98e;

    border-radius: 20px;

    color: #66594c;

    font-family: inherit;

    cursor: pointer;
}

.article-sort-button strong {
    display: block;

    font-size: 34px;
}

.article-sort-button span {
    display: block;

    margin-top: 4px;

    font-size: 11px;
}

.article-sort-button.correct {
    background: #edf6e7;

    border-color: #acc598;
    border-bottom-color: #8eaa78;
}

.article-sort-button.wrong {
    background: #faebeb;

    border-color: #d7a8a8;
    border-bottom-color: #bd8484;
}


/* ==================================================
   TEXT INPUT
================================================== */

.article-text-input {
    width: min(330px, 100%);

    margin: 14px auto;

    padding: 12px 14px;

    display: block;

    background: #ffffff;

    border: 2px solid #ddd4e4;
    border-bottom: 5px solid #c8bdd5;

    border-radius: 15px;

    color: #5f5868;

    font-family: inherit;
    font-size: 19px;

    text-align: center;

    outline: none;
}

.article-text-input:focus {
    border-color: #bba9ca;

    box-shadow:
        0 0 0 5px
        rgba(187, 169, 202, 0.11);
}


/* ==================================================
   FIX THE MISTAKE
================================================== */

.mistake-sentence {
    width: fit-content;

    margin: 15px auto;

    padding: 13px 18px;

    background: #fff2f2;

    border: 2px solid #e5bcbc;

    border-radius: 15px;

    color: #735f65;

    font-size:
        clamp(
            25px,
            4vw,
            34px
        );

    font-weight: 700;
}


/* ==================================================
   GAME FEEDBACK
================================================== */

.game-feedback {
    min-height: 28px;

    margin-top: 14px;

    font-size: 13px;
    font-weight: 700;
}

.correct-feedback {
    color: #6f8f62;
}

.wrong-feedback {
    color: #ad6f6f;
}


/* ==================================================
   REVIEW PAGE
================================================== */

.lesson-review-page {
    width: min(820px, 100%);

    margin: 0 auto;

    padding: 48px 28px 55px;

    text-align: center;
}

.lesson-review-icon {
    margin-bottom: 10px;

    font-size: 72px;
}

.lesson-review-page h2 {
    margin: 0 0 26px;

    color: #5a5360;

    font-size:
        clamp(
            36px,
            5vw,
            49px
        );
}

.review-rule-stack {
    width: min(650px, 100%);

    margin: 0 auto 28px;

    display: grid;

    gap: 14px;
}

.review-rule-box {
    padding: 17px 19px;

    display: flex;
    align-items: center;

    gap: 15px;

    background:
        linear-gradient(
            135deg,
            #fffaf3,
            #f6f1f9
        );

    border: 2px solid #e5dce4;
    border-bottom: 5px solid #d1c5cf;

    border-radius: 19px;

    text-align: left;
}

.review-rule-symbol {
    min-width: 62px;
    height: 62px;

    padding: 0 10px;

    display: grid;
    place-items: center;

    background: #ffffff;

    border-radius: 16px;

    color: #675e6e;

    font-size: 24px;
    font-weight: 700;
}

.review-rule-box strong {
    display: block;

    margin-bottom: 2px;

    color: #605965;

    font-size: 18px;
}

.review-rule-box p {
    margin: 0;

    color: #817985;

    font-size: 13px;
}


/* ==================================================
   ARTICLE COMPARISON
================================================== */

.article-comparison-box {
    width: min(650px, 100%);

    margin: 0 auto 28px;

    padding: 19px;

    display: flex;
    align-items: flex-start;

    gap: 15px;

    background:
        linear-gradient(
            135deg,
            #f5f1fb,
            #fff8e9
        );

    border: 2px solid #e2d8e9;
    border-bottom: 5px solid #cfc3d8;

    border-radius: 19px;

    text-align: left;
}

.article-comparison-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    background: #ffffff;

    border-radius: 15px;

    font-size: 25px;
}

.article-comparison-box > div > strong {
    display: block;

    margin-bottom: 7px;

    color: #605866;

    font-size: 18px;
}

.article-comparison-box p {
    margin: 0 0 12px;

    color: #7b7380;

    font-size: 13px;
    line-height: 1.55;
}

.article-comparison-example {
    display: grid;

    gap: 6px;

    padding: 11px 13px;

    background:
        rgba(255, 255, 255, 0.78);

    border: 2px solid #e7dfe9;

    border-radius: 14px;

    color: #756d7a;

    font-size: 12.5px;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 760px) {

    .article-inline-examples {
        grid-template-columns: 1fr;
    }

    .external-games-grid {
        grid-template-columns: 1fr;
    }

    .article-choice-grid,
    .article-choice-grid-three {
        grid-template-columns: 1fr;
    }

    .article-sort-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 560px) {

    .article-rule-page,
    .external-games-page,
    .lesson-review-page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .article-learning-box {
        padding: 18px 15px;
    }

    .article-box-top {
        align-items: flex-start;
    }

    .article-box-letter {
        min-width: 60px;
        height: 60px;

        font-size: 26px;
    }

    .article-box-top h3 {
        font-size: 20px;
    }

    .article-box-rule {
        padding: 14px;
    }

    .article-vowels-area {
        gap: 6px;
    }

    .article-vowels-area span {
        width: 38px;
        height: 38px;
    }

    .article-comparison-box {
        padding: 15px;

        gap: 11px;
    }

    .article-comparison-icon {
        width: 44px;
        height: 44px;

        font-size: 21px;
    }

}