/* =========================================================
   SKILL PRO ACADEMY
   PROFESSIONAL TYPING GAME
   FULL RESPONSIVE CSS
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #111827;

    background:
        linear-gradient(
            135deg,
            #67d7e8 0%,
            #9cc8f5 48%,
            #e6a4ed 100%
        );

    overflow-x: hidden;
}


/* =========================================================
   PAGE
========================================================= */

.typing-page {
    width: 100%;
    max-width: 1800px;

    margin: 0 auto;

    padding:
        0 12px 35px;
}


/* =========================================================
   HEADER SPACE
========================================================= */

.h {
    height: 10px;
}


/* =========================================================
   GAME CONTROL AREA
========================================================= */

.control {
    width: 100%;

    margin:
        15px auto 0;

    padding:
        0 10px;

    display: flex;

    justify-content: center;
    align-items: center;

    position: relative;

    z-index: 20;
}


/* =========================================================
   CONTROL WRAPPER
========================================================= */

.butt {
    width: auto;
    max-width: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;
}


/* =========================================================
   COMMON CONTROL
========================================================= */

.menu-lesson,
.game_btn {

    height: 42px;

    padding:
        0 14px;

    margin: 0;

    border:
        1px solid #d7dce5;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, .97);

    color:
        #16a34a;

    font-size: 14px;

    font-weight: 700;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    outline: none;

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, .14);

    cursor: pointer;

    white-space: nowrap;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        border-color .2s ease;
}


/* =========================================================
   LESSON SELECT
========================================================= */

.menu-lesson {

    width: 155px;

    min-width: 135px;

    padding-left: 12px;
    padding-right: 12px;

    cursor: pointer;
}

.menu-lesson:hover {

    border-color:
        #a5b4fc;

    box-shadow:
        0 6px 16px
        rgba(0, 0, 0, .15);
}

.menu-lesson:focus {

    border-color:
        #635bff;

    box-shadow:
        0 0 0 3px
        rgba(99, 91, 255, .15);
}


/* =========================================================
   BUTTON HOVER
========================================================= */

.game_btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 7px 18px
        rgba(0, 0, 0, .18);

    background:
        #ffffff;
}

.game_btn:active {

    transform:
        scale(.96);
}


/* =========================================================
   SPEED CONTROL
========================================================= */

.speed-control {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;
}

.speed-control .game_btn {

    width: 42px;

    min-width: 42px;

    padding: 0;

    font-size: 20px;

    line-height: 1;
}


/* =========================================================
   PLAY
========================================================= */

.play-btn {

    min-width: 95px;

    color:
        #2563eb;
}


/* =========================================================
   RESET
========================================================= */

.reset-btn {

    min-width: 95px;

    color:
        #dc2626;
}


/* =========================================================
   DARK
========================================================= */

.dark-btn {

    min-width: 90px;

    color:
        #374151;
}


/* =========================================================
   TIMER
========================================================= */

#time {

    min-width: 82px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    color:
        #2563eb;

    font-size: 14px;

    font-weight: 800;
}


/* =========================================================
   LIVES
========================================================= */

#lives {

    min-width: 130px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    color:
        #ef4444;

    font-size: 17px;

    font-weight: 700;

    letter-spacing: 1px;
}


/* =========================================================
   MAIN GAME LAYOUT
========================================================= */

/*
   DESKTOP

   ┌──────────┬──────────────────┬──────────┐
   │   HUD    │    GAME AREA     │   HUD    │
   └──────────┴──────────────────┴──────────┘
*/

.main-box {

    width: 100%;

    margin:
        25px auto 50px;

    padding: 0;

    display: grid;

    grid-template-columns:
        280px
        minmax(400px, 1fr)
        280px;

    gap: 20px;

    align-items: stretch;

    justify-content: center;
}


/* =========================================================
   HUD
========================================================= */

.hud {

    width: 100%;

    min-width: 0;

    height: 420px;

    background:
        #ffffff;

    border:
        1px solid #dfe5ee;

    border-radius:
        18px;

    overflow:
        hidden;

    box-shadow:
        0 10px 30px
        rgba(31, 41, 55, .10),

        0 3px 8px
        rgba(31, 41, 55, .06);

    color:
        #111827;
}


/* =========================================================
   HUD HEADER
========================================================= */

.hud-header {

    padding:
        12px;

    display:
        flex;

    align-items:
        center;

    gap:
        13px;

    background:
        linear-gradient(
            135deg,
            #eef6ff,
            #f7faff
        );

    border-bottom:
        1px solid #e3eaf3;
}


/* =========================================================
   HUD ICON
========================================================= */

.hud-icon {

    width:
        46px;

    height:
        46px;

    flex-shrink:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        #ffffff;

    border:
        1px solid #e5e7eb;

    border-radius:
        12px;

    font-size:
        23px;

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, .08);
}


/* =========================================================
   HUD LABEL
========================================================= */

.hud-label {

    margin-bottom:
        3px;

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        1px;

    color:
        #64748b;
}


/* =========================================================
   HUD TITLE
========================================================= */

.hud-header h2 {

    margin:
        0;

    font-size:
        19px;

    line-height:
        1.2;

    color:
        #111827;
}


/* =========================================================
   HUD SUBTITLE
========================================================= */

.hud-header p {

    margin:
        5px 0 0;

    font-size:
        11px;

    color:
        #635bff;

    font-weight:
        700;
}


/* =========================================================
   STAT BOX
========================================================= */

.stat-box {

    margin:
        5px 14px 0;

    padding:
        5px 15px;

    min-height:
        35px;

    background:
        #ffffff;

    border:
        1px solid #e2e8f0;

    border-radius:
        11px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        10px;

    transition:
        .2s ease;
}


.stat-box:hover {

    border-color:
        #c7d2fe;

    box-shadow:
        0 4px 12px
        rgba(99, 91, 255, .08);
}


/* =========================================================
   STAT TITLE
========================================================= */

.stat-title {

    font-size:
        13px;

    font-weight:
        700;

    color:
        #64748b;
}


/* =========================================================
   STAT VALUE
========================================================= */

.stat-value {

    font-size:
        18px;

    font-weight:
        700;

    color:
        #4f46e5;
}


/* =========================================================
   RESULT GRID
========================================================= */

.result-grid {

    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        10px;

    margin:
        14px;
}


/* =========================================================
   RESULT CARD
========================================================= */

.result-card {

    min-width:
        0;

    min-height:
        30px;

    padding:
        6px 10px;

    text-align:
        center;

    border-radius:
        11px;

    border:
        1px solid;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        center;

    align-items:
        center;
}


/* =========================================================
   CORRECT CARD
========================================================= */

.correct-card {

    background:
        #f0fdf4;

    border-color:
        #bbf7d0;
}

.correct-card .result-title {

    color:
        #15803d;
}

.correct-card .result-value {

    color:
        #16a34a;
}


/* =========================================================
   WRONG CARD
========================================================= */

.wrong-card {

    background:
        #fef2f2;

    border-color:
        #fecaca;
}

.wrong-card .result-title {

    color:
        #b91c1c;
}

.wrong-card .result-value {

    color:
        #dc2626;
}


/* =========================================================
   RESULT TEXT
========================================================= */

.result-title {

    font-size:
        12px;

    font-weight:
        700;

    margin-bottom:
        5px;
}


.result-value {

    font-size:
        18px;

    font-weight:
        600;
}


/* =========================================================
   WPM
========================================================= */

.wpm-box {

    margin:
        5px 14px;

    padding:
        7px 5px;

    background:
        linear-gradient(
            135deg,
            #f5f3ff,
            #eef2ff
        );

    border:
        1px solid #ddd6fe;

    border-radius:
        11px;

    text-align:
        center;
}


/* =========================================================
   WPM TITLE
========================================================= */

.wpm-title {

    margin-bottom:
        5px;

    color:
        #6366f1;

    font-size:
        11px;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        .7px;
}


/* =========================================================
   WPM VALUE
========================================================= */

.wpm-value {

    display:
        flex;

    justify-content:
        center;

    align-items:
        baseline;

    gap:
        5px;

    color:
        #4338ca;
}


.wpm-value span {

    font-size:
        18px;

    font-weight:
        700;
}


.wpm-value small {

    font-size:
        10px;

    font-weight:
        700;

    color:
        #6366f1;
}


/* =========================================================
   GAME AREA
========================================================= */

#gameArea {

    width:
        100%;

    min-width:
        0;

    height:
        420px;

    position:
        relative;

    overflow:
        hidden;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 100%
        );

    border:
        2px solid #635bff;

    border-radius:
        18px;

    box-shadow:
        0 10px 30px
        rgba(31, 41, 55, .10),

        inset 0 0 30px
        rgba(99, 91, 255, .025);

    font-size:
        28px;

    font-weight:
        bold;

    color:
        #04c21e;
}


/* =========================================================
   READY TEXT
========================================================= */

#gameArea::before {

    content:
        "";

    position:
        absolute;

    top:
        50%;

    left:
        50%;

    transform:
        translate(-50%, -50%);

    color:
        #d1d5db;

    font-size:
        25px;

    font-weight:
        800;

    letter-spacing:
        4px;

    pointer-events:
        none;

    user-select:
        none;

    z-index:
        1;
}


/* =========================================================
   FALLING LETTER
========================================================= */

.letter {

    position:
        absolute;

    padding:
        7px 11px;

    font-size:
        30px;

    font-weight:
        800;

    color:
        #04c21e;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        2px;

    z-index:
        5;
}


/* =========================================================
   LETTER SPAN
========================================================= */

.letter span {

    font-size:
        30px;

    font-weight:
        800;

    color:
        #04c21e;

    transition:
        color .2s ease,
        transform .2s ease;
}


/* =========================================================
   WRONG LETTER
========================================================= */

.letter span.wrong {

    color:
        #ef4444 !important;

    transform:
        scale(1.3);
}


/* =========================================================
   EFFECTS
========================================================= */

.letter span.effect-bubble,
.letter span.effect-emoji,
.letter span.effect-confetti {

    pointer-events:
        none;

    user-select:
        none;
}


/* =========================================================
   BUBBLE EFFECT
========================================================= */

.effect-bubble {

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, .9),
            rgba(0, 200, 255, .6)
        );

    border-radius:
        50%;

    box-shadow:
        0 0 10px
        rgba(0, 200, 255, .7);
}


/* =========================================================
   EMOJI EFFECT
========================================================= */

.effect-emoji {

    text-shadow:
        0 0 8px
        rgba(255, 255, 255, .8);

    font-weight:
        bold;
}


/* =========================================================
   CONFETTI EFFECT
========================================================= */

.effect-confetti {

    border-radius:
        2px;

    box-shadow:
        0 0 6px
        rgba(255, 255, 255, .6);
}


/* =========================================================
   GAME OVER
========================================================= */

.game-over-text {

    position:
        absolute;

    top:
        50%;

    left:
        50%;

    transform:
        translate(-50%, -50%);

    text-align:
        center;

    font-size:
        55px;

    font-weight:
        900;

    color:
        #ffffff;

    text-shadow:
        0 3px 12px
        rgba(0, 0, 0, .5),

        0 0 15px
        rgba(239, 68, 68, .7);

    animation:
        gameOverPulse 1.5s infinite;

    z-index:
        100;
}


@keyframes gameOverPulse {

    0% {

        transform:
            translate(-50%, -50%)
            scale(1);

        opacity:
            1;
    }

    50% {

        transform:
            translate(-50%, -50%)
            scale(1.08);

        opacity:
            .85;
    }

    100% {

        transform:
            translate(-50%, -50%)
            scale(1);

        opacity:
            1;
    }
}


/* =========================================================
   BLINK
========================================================= */

@keyframes blink {

    50% {
        opacity:
            0;
    }
}

.blink {

    animation:
        blink .6s infinite;
}


/* =========================================================
   POP
========================================================= */

@keyframes pop {

    0% {

        transform:
            scale(1);

        opacity:
            1;
    }

    100% {

        transform:
            scale(1.5);

        opacity:
            0;
    }
}


.bubble-destroy {

    animation:
        pop .4s forwards;
}


/* =========================================================
   FOCUS
========================================================= */

button:focus-visible,
select:focus-visible {

    outline:
        3px solid
        rgba(99, 91, 255, .25);

    outline-offset:
        2px;
}


/* =========================================================
   1220px
========================================================= */

@media (max-width: 1220px) {

    .main-box {

        grid-template-columns:
            250px
            minmax(350px, 1fr)
            250px;

        gap:
            14px;
    }


    .hud-header {

        gap:
            9px;
    }


    .hud-header h2 {

        font-size:
            17px;
    }


    .stat-box {

        padding:
            5px 10px;
    }
}


/* =========================================================
   1100px
========================================================= */

@media (max-width: 1100px) {

    .main-box {

        grid-template-columns:
            225px
            minmax(320px, 1fr)
            225px;

        gap:
            12px;
    }


    .menu-lesson,
    .game_btn {

        padding:
            0 10px;

        font-size:
            12px;
    }


    .menu-lesson {

        width:
            140px;

        min-width:
            120px;
    }


    #lives {

        min-width:
            110px;

        font-size:
            14px;
    }


    .play-btn,
    .reset-btn {

        min-width:
            82px;
    }


    .dark-btn {

        min-width:
            78px;
    }
}


/* =========================================================
   TABLET
   1000px

   HUD + GAME
   SECOND HUD HIDDEN
========================================================= */

@media (max-width: 1000px) {

    .main-box {

        width:
            calc(100% - 20px);

        display:
            grid;

        grid-template-columns:
            230px
            minmax(0, 1fr);

        gap:
            15px;

        align-items:
            stretch;
    }


    /* FIRST HUD */

    .main-box .hud:first-child {

        display:
            block;

        width:
            100%;
    }


    /* GAME */

    #gameArea {

        width:
            100%;

        height:
            450px;
    }


    /* SECOND HUD HIDE */

    .main-box .hud:last-child {

        display:
            none;
    }


    /* CONTROL */

    .butt {

        gap:
            6px;
    }


    .menu-lesson,
    .game_btn {

        height:
            38px;

        padding:
            0 9px;

        font-size:
            12px;

        border-radius:
            8px;
    }


    .menu-lesson {

        width:
            135px;

        min-width:
            120px;
    }


    .speed-control {

        gap:
            5px;
    }


    .speed-control .game_btn {

        width:
            36px;

        min-width:
            36px;

        padding:
            0;
    }


    #time {

        min-width:
            70px;
    }


    #lives {

        min-width:
            105px;

        font-size:
            13px;

        letter-spacing:
            0;
    }


    .play-btn,
    .reset-btn {

        min-width:
            78px;
    }


    .dark-btn {

        min-width:
            75px;
    }
}


/* =========================================================
   SMALL TABLET
   800px

   HUD + GAME
   SECOND HUD HIDDEN
========================================================= */

@media (max-width: 800px) {

    .typing-page {

        padding:
            0 8px 30px;
    }


    .main-box {

        width:
            calc(100% - 12px);

        grid-template-columns:
            205px
            minmax(0, 1fr);

        gap:
            12px;
    }


    #gameArea {

        height:
            430px;
    }


    .main-box .hud:last-child {

        display:
            none;
    }


    /* CONTROL */

    .control {

        padding:
            0 4px;

        margin-top:
            9px;
    }


    .butt {

        gap:
            5px;
    }


    .menu-lesson,
    .game_btn {

        height:
            36px;

        padding:
            0 7px;

        font-size:
            11px;

        border-radius:
            7px;
    }


    .menu-lesson {

        width:
            125px;

        min-width:
            110px;
    }


    .speed-control {

        gap:
            4px;
    }


    .speed-control .game_btn {

        width:
            34px;

        min-width:
            34px;

        padding:
            0;

        font-size:
            17px;
    }


    #time {

        min-width:
            62px;
    }


    #lives {

        min-width:
            95px;

        font-size:
            12px;
    }


    .play-btn,
    .reset-btn,
    .dark-btn {

        min-width:
            68px;
    }
}


/* =========================================================
   MOBILE
   600px

   GAME
   ↓
   HUD

   SECOND HUD HIDDEN
========================================================= */

@media (max-width: 600px) {

    .typing-page {

        width:
            100%;

        padding:
            0 6px 25px;
    }


    /* =====================================================
       CONTROL
    ===================================================== */

    .control {

        width:
            100%;

        padding:
            0;

        margin-top:
            7px;
    }


    .butt {

        width:
            100%;

        display:
            grid;

        grid-template-columns:
            1fr 1fr;

        gap:
            5px;
    }


    /* LESSON */

    .menu-lesson {

        width:
            100%;

        min-width:
            0;

        height:
            36px;

        grid-column:
            1 / -1;

        font-size:
            11px;

        padding:
            0 7px;
    }


    /* SPEED */

    .speed-control {

        width:
            100%;

        display:
            grid;

        grid-template-columns:
            1fr 1fr;

        gap:
            5px;
    }


    .speed-control .game_btn {

        width:
            100%;

        min-width:
            0;

        height:
            35px;

        font-size:
            15px;
    }


    /* PLAY RESET DARK */

    .play-btn,
    .reset-btn,
    .dark-btn {

        width:
            100%;

        min-width:
            0;

        height:
            35px;

        padding:
            0 5px;

        font-size:
            10px;
    }


    /* TIMER */

    #time {

        width:
            100%;

        min-width:
            0;

        height:
            35px;

        font-size:
            11px;
    }


    /* LIVES */

    #lives {

        width:
            100%;

        min-width:
            0;

        height:
            35px;

        font-size:
            11px;

        letter-spacing:
            0;
    }


    /* =====================================================
       MAIN

       GAME FIRST
       HUD SECOND
    ===================================================== */

    .main-box {

        width:
            100%;

        margin:
            12px auto 25px;

        display:
            flex;

        flex-direction:
            column;

        gap:
            12px;
    }


    /* GAME FIRST */

    #gameArea {

        order:
            1;

        width:
            100%;

        height:
            370px;

        border-radius:
            12px;
    }


    /* FIRST HUD SECOND */

    .main-box .hud:first-child {

        order:
            2;

        display:
            block;

        width:
            100%;

        height:
            auto;

        min-height:
            0;
    }


    /* SECOND HUD HIDE */

    .main-box .hud:last-child {

        display:
            none;
    }


    /* =====================================================
       HUD MOBILE
    ===================================================== */

    .hud {

        border-radius:
            14px;
    }


    .hud-header {

        padding:
            11px;

        gap:
            9px;
    }


    .hud-icon {

        width:
            38px;

        height:
            38px;

        font-size:
            19px;

        border-radius:
            9px;
    }


    .hud-header h2 {

        font-size:
            16px;
    }


    .hud-header p {

        font-size:
            9px;
    }


    .stat-box {

        margin:
            5px 8px 0;

        min-height:
            39px;

        padding:
            5px 10px;
    }


    .stat-title {

        font-size:
            11px;
    }


    .stat-value {

        font-size:
            15px;
    }


    .result-grid {

        margin:
            9px 8px;

        gap:
            6px;
    }


    .result-card {

        padding:
            5px;
    }


    .result-title {

        font-size:
            10px;

        margin-bottom:
            3px;
    }


    .result-value {

        font-size:
            15px;
    }


    .wpm-box {

        margin:
            5px 8px 9px;

        padding:
            6px;
    }


    .wpm-title {

        font-size:
            9px;
    }


    .wpm-value span {

        font-size:
            17px;
    }


    /* =====================================================
       LETTER
    ===================================================== */

    .letter {

        font-size:
            22px;

        padding:
            4px 7px;
    }


    .letter span {

        font-size:
            22px;
    }


    .game-over-text {

        font-size:
            30px;

        white-space:
            nowrap;
    }
}


/* =========================================================
   MOBILE
   480px
========================================================= */

@media (max-width: 480px) {

    .typing-page {

        padding-left:
            5px;

        padding-right:
            5px;
    }


    .butt {

        gap:
            4px;
    }


    .menu-lesson {

        height:
            34px;

        font-size:
            10px;
    }


    .game_btn {

        height:
            34px;

        font-size:
            9px;

        border-radius:
            6px;
    }


    .speed-control .game_btn {

        height:
            34px;
    }


    #time,
    #lives {

        height:
            34px;
    }


    #lives {

        font-size:
            10px;
    }


    #gameArea {

        height:
            345px;
    }


    .hud-header {

        padding:
            10px;
    }


    .hud-header h2 {

        font-size:
            15px;
    }


    .hud-header p {

        font-size:
            8px;
    }


    .hud-icon {

        width:
            36px;

        height:
            36px;

        font-size:
            18px;
    }


    .stat-box {

        margin-left:
            7px;

        margin-right:
            7px;
    }


    .result-grid {

        margin-left:
            7px;

        margin-right:
            7px;
    }


    .wpm-box {

        margin-left:
            7px;

        margin-right:
            7px;
    }


    .letter {

        font-size:
            20px;

        padding:
            3px 6px;
    }


    .letter span {

        font-size:
            20px;
    }


    .game-over-text {

        font-size:
            27px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   380px
========================================================= */

@media (max-width: 380px) {

    .typing-page {

        padding-left:
            3px;

        padding-right:
            3px;
    }


    .control {

        margin-top:
            5px;
    }


    .butt {

        gap:
            3px;
    }


    .menu-lesson {

        height:
            33px;

        font-size:
            9px;

        border-radius:
            6px;
    }


    .game_btn {

        height:
            33px;

        font-size:
            8.5px;

        padding:
            0 4px;

        border-radius:
            6px;
    }


    .speed-control {

        gap:
            3px;
    }


    .speed-control .game_btn {

        height:
            33px;

        font-size:
            14px;
    }


    #time,
    #lives {

        height:
            33px;
    }


    #time {

        font-size:
            10px;
    }


    #lives {

        font-size:
            9px;
    }


    .main-box {

        margin-top:
            9px;

        gap:
            10px;
    }


    #gameArea {

        height:
            320px;

        border-radius:
            10px;
    }


    .hud {

        border-radius:
            11px;
    }


    .hud-header {

        padding:
            9px;

        gap:
            7px;
    }


    .hud-icon {

        width:
            34px;

        height:
            34px;

        font-size:
            17px;

        border-radius:
            8px;
    }


    .hud-header h2 {

        font-size:
            14px;
    }


    .hud-header p {

        font-size:
            8px;
    }


    .hud-label {

        font-size:
            7px;
    }


    .stat-box {

        min-height:
            37px;

        margin-left:
            6px;

        margin-right:
            6px;

        padding:
            5px 8px;
    }


    .stat-title {

        font-size:
            10px;
    }


    .stat-value {

        font-size:
            14px;
    }


    .result-grid {

        margin:
            8px 6px;

        gap:
            4px;
    }


    .result-card {

        padding:
            4px;
    }


    .result-title {

        font-size:
            9px;
    }


    .result-value {

        font-size:
            14px;
    }


    .wpm-box {

        margin:
            5px 6px 8px;
    }


    .wpm-title {

        font-size:
            8px;
    }


    .wpm-value span {

        font-size:
            16px;
    }


    .letter {

        font-size:
            18px;

        padding:
            3px 5px;
    }


    .letter span {

        font-size:
            18px;
    }


    .game-over-text {

        font-size:
            24px;
    }
}


/* =========================================================
   LANDSCAPE MOBILE
========================================================= */

@media (max-width: 800px) and (orientation: landscape) {

    #gameArea {

        height:
            330px;
    }
}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {

    .game_btn:hover {

        transform:
            none;

        box-shadow:
            0 4px 12px
            rgba(0, 0, 0, .14);
    }


    .menu-lesson:hover {

        box-shadow:
            0 4px 12px
            rgba(0, 0, 0, .14);
    }


    .stat-box:hover {

        box-shadow:
            none;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button,
select {

    -webkit-tap-highlight-color:
        transparent;
}


/* =========================================================
   PREVENT TEXT SELECTION ON CONTROLS
========================================================= */

.game_btn,
.menu-lesson {

    user-select:
        none;
}


/* =========================================================
   PREVENT FLEX/GRID OVERFLOW
========================================================= */

.main-box > *,
.butt > * {

    min-width:
        0;
}


/* =========================================================
   IMAGE / CONTENT SAFETY
========================================================= */

img,
video,
canvas {

    max-width:
        100%;

    height:
        auto;
}


/* =========================================================
   MOBILE SAFE AREA
========================================================= */

@supports (padding: max(0px)) {

    .typing-page {

        padding-left:
            max(4px, env(safe-area-inset-left));

        padding-right:
            max(4px, env(safe-area-inset-right));

        padding-bottom:
            max(25px, env(safe-area-inset-bottom));
    }
}