/* ============================================================
   MUCH ADO ABOUT FLASHCARDS
   Visual theme:
   mahogany • parchment • walnut • restrained gold
============================================================ */


/* ============================================================
   VARIABLES
============================================================ */

:root {
    --mahogany-950: #1d0f0c;
    --mahogany-900: #291411;
    --mahogany-800: #3a1c16;
    --mahogany-700: #51271d;

    --walnut: #4a3025;
    --walnut-light: #684638;

    --parchment: #eee1c7;
    --parchment-light: #f2e7d1;
    --parchment-dark: #e8d8ba;

    --ink: #2d211c;
    --ink-soft: #58483e;

    --gold: #b18a48;
    --gold-soft: rgba(177, 138, 72, 0.35);

    --cream: #f8f2e5;

    --shadow:
        0 20px 50px rgba(23, 11, 7, 0.28);

    --shadow-small:
        0 6px 18px rgba(23, 11, 7, 0.18);

    --radius-large: 24px;
    --radius-medium: 13px;
    --radius-small: 9px;

    --ui-font:
        "Atkinson Hyperlegible",
        "Trebuchet MS",
        Arial,
        sans-serif;

    --display-font:
        "Cormorant Garamond",
        Georgia,
        serif;
}


/* ============================================================
   RESET
============================================================ */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--mahogany-950);
}

body {
    margin: 0;
    min-height: 100vh;

    color: var(--cream);

    font-family: var(--ui-font);

    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(177, 138, 72, 0.10),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #1e100d 0%,
            #321814 45%,
            #21110e 100%
        );

    overflow-x: hidden;
}


/* Very subtle "wood grain" effect. */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    opacity: 0.12;

    background:
        repeating-linear-gradient(
            92deg,
            transparent 0,
            transparent 55px,
            rgba(255, 255, 255, 0.025) 56px,
            transparent 58px
        );

    z-index: -1;
}


/* ============================================================
   APP SHELL
============================================================ */

.app-shell {
    width: min(1100px, 100%);
    min-height: 100vh;

    margin: 0 auto;

    padding:
        clamp(22px, 4vw, 42px)
        clamp(16px, 4vw, 40px)
        50px;

    display: flex;
    flex-direction: column;
}


/* ============================================================
   HEADER
============================================================ */

.app-header {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;

    margin-bottom: clamp(24px, 4vw, 42px);

    padding-bottom: 22px;

    border-bottom:
        1px solid
        rgba(177, 138, 72, 0.28);
}

.title-area {
    min-width: 0;
}

.eyebrow {
    margin-bottom: 4px;

    color: #c4a269;

    font-size: 0.76rem;
    font-weight: 700;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.app-header h1 {
    margin: 0;

    color: #f5ead4;

    font-family: var(--display-font);

    font-size: clamp(2rem, 5vw, 3.5rem);

    font-weight: 600;

    line-height: 0.98;

    letter-spacing: -0.025em;
}

.app-header p {
    margin: 10px 0 0;

    color: #bca99a;

    font-size: clamp(0.9rem, 2vw, 1.05rem);
}


/* ============================================================
   ACCESSIBILITY
============================================================ */

.accessibility-controls {
    flex: 0 0 auto;
}

.switch-control,
.toggle-control {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: #d8c9b8;

    font-size: 0.9rem;

    cursor: pointer;

    user-select: none;
}

.switch-control input,
.toggle-control input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.switch {
    position: relative;

    width: 42px;
    height: 23px;

    flex: 0 0 42px;

    border-radius: 999px;

    background: #6b5750;

    transition:
        background 0.2s ease;
}

.switch::before {
    content: "";

    position: absolute;

    width: 17px;
    height: 17px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background: #f7f0e2;

    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.2s ease;
}

input:checked + .switch {
    background: var(--gold);
}

input:checked + .switch::before {
    transform: translateX(19px);
}

input:focus-visible + .switch {
    outline:
        2px solid
        #e1c483;

    outline-offset: 3px;
}


/* ============================================================
   CARD NAVIGATION
============================================================ */

.card-navigation {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 12px;

    margin-bottom: 18px;
}

.counter-row {
    display: flex;

    align-items: baseline;

    gap: 8px;

    color: #bba99a;

    font-size: 0.85rem;
}

.card-counter {
    color: #f1dfc1;

    font-family: var(--display-font);

    font-size: 1.25rem;
    font-weight: 700;
}

.counter-label {
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-jump {
    width: min(100%, 700px);

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    flex-wrap: wrap;
}

.card-jump select,
.card-jump input {
    height: 42px;

    border:
        1px solid
        rgba(177, 138, 72, 0.28);

    border-radius: var(--radius-small);

    color: var(--ink);

    background: #f3ead9;

    font-family: var(--ui-font);
    font-size: 0.95rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.card-jump select {
    min-width: 220px;

    padding:
        0 34px 0 12px;
}

.card-jump input {
    width: 100px;

    padding: 0 10px;
}

.card-jump select:focus,
.card-jump input:focus {
    border-color: var(--gold);

    box-shadow:
        0 0 0 3px
        rgba(177, 138, 72, 0.18);
}

.jump-group {
    display: flex;
    gap: 6px;
}


/* ============================================================
   STUDY AREA
============================================================ */

.study-area {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ============================================================
   FLASHCARD CONTAINER
============================================================ */

.flashcard-container {
    position: relative;

    width: min(92vw, 760px);

    height:
        clamp(
            360px,
            54vh,
            500px
        );

    perspective: 1200px;
}


/* ============================================================
   FLASHCARD
============================================================ */

.flashcard {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border-radius: var(--radius-large);

    cursor: pointer;

    touch-action: manipulation;
}

.card-inner {
    position: relative;

    width: 100%;
    height: 100%;

    transform-style: preserve-3d;

    border-radius: inherit;

    transition:
        transform 0.72s
        cubic-bezier(0.2, 0.7, 0.2, 1);

    box-shadow: var(--shadow);
}

.flashcard.flipped .card-inner {
    transform: rotateY(180deg);
}


/* ============================================================
   CARD SIDES
============================================================ */

.card-front,
.card-back {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    padding:
        clamp(22px, 5vw, 46px);

    border-radius: inherit;

    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    text-align: center;

    color: var(--ink);

    /*
     * Deliberately almost identical.
     * The back is only slightly darker so the flip still
     * communicates "side two" without looking like another card.
     */
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 255, 255, 0.32),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--parchment-light),
            var(--parchment)
        );

    border:
        1px solid
        rgba(94, 62, 42, 0.18);
}


/* Subtle paper grain. */

.card-front::before,
.card-back::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    opacity: 0.22;

    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(70, 45, 28, 0.025) 4px
        );
}

.card-back {
    transform: rotateY(180deg);

    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(255, 255, 255, 0.26),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #eee2c9,
            #e9dcc1
        );
}

/* Ensure the front side is an explicit 3D-facing plane so
   backface-visibility behaves consistently across browsers. */
.card-front {
    transform: rotateY(0deg);
}


/* ============================================================
   CARD DECORATION
============================================================ */

.card-front::after,
.card-back::after {
    content: "";

    position: absolute;

    inset: 12px;

    border:
        1px solid
        rgba(177, 138, 72, 0.32);

    border-radius: 18px;

    pointer-events: none;
}

.card-character {
    position: relative;
    z-index: 1;

    flex: 0 0 auto;

    margin-bottom: 14px;

    color: var(--mahogany-700);

    font-family: var(--display-font);

    font-size:
        clamp(
            1.15rem,
            3vw,
            1.65rem
        );

    font-weight: 700;

    line-height: 1.1;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}

.card-text {
    position: relative;
    z-index: 1;

    width: 100%;
    min-height: 0;

    flex: 1;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        10px
        clamp(4px, 2vw, 24px);

    color: var(--ink);

    font-family: var(--display-font);

    font-size:
        clamp(
            1.8rem,
            5vw,
            3rem
        );

    font-weight: 600;

    line-height: 1.13;

    overflow: hidden;

    overflow-wrap: break-word;

    word-break: normal;
}


/* ============================================================
   CARD HOVER
============================================================ */

.flashcard:hover .card-inner {
    box-shadow:
        0 24px 55px
        rgba(23, 11, 7, 0.34);
}

.flashcard:focus-visible {
    outline:
        3px solid
        #d5b56f;

    outline-offset: 5px;
}


/* ============================================================
   CARD ANIMATIONS
============================================================ */

@keyframes enterFromRight {
    from {
        transform: translateX(110%);
        opacity: 0.7;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes exitToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-110%);
        opacity: 0.7;
    }
}

@keyframes enterFromLeft {
    from {
        transform: translateX(-110%);
        opacity: 0.7;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes exitToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(110%);
        opacity: 0.7;
    }
}

.enter-right {
    animation:
        enterFromRight
        0.45s
        cubic-bezier(0.2, 0.75, 0.2, 1)
        forwards;
}

.exit-left {
    animation:
        exitToLeft
        0.45s
        cubic-bezier(0.4, 0, 0.8, 0.3)
        forwards;
}

.enter-left {
    animation:
        enterFromLeft
        0.45s
        cubic-bezier(0.2, 0.75, 0.2, 1)
        forwards;
}

.exit-right {
    animation:
        exitToRight
        0.45s
        cubic-bezier(0.4, 0, 0.8, 0.3)
        forwards;
}


/* ============================================================
   BUTTONS
============================================================ */

.button {
    min-height: 44px;

    border: 1px solid transparent;

    border-radius: var(--radius-small);

    padding:
        9px 17px;

    font-family: var(--ui-font);

    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;

    white-space: nowrap;
}

.button:hover {
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(1px);
}

.button:focus-visible,
.show-all-button:focus-visible {
    outline:
        3px solid
        rgba(213, 181, 111, 0.8);

    outline-offset: 3px;
}

.button-primary {
    color: #fff8ea;

    background:
        linear-gradient(
            135deg,
            #633126,
            #482019
        );

    border-color:
        rgba(177, 138, 72, 0.55);

    box-shadow:
        0 5px 15px
        rgba(34, 13, 9, 0.25);
}

.button-primary:hover {
    background:
        linear-gradient(
            135deg,
            #713a2e,
            #51251d
        );
}

.button-secondary {
    color: #f1e2cb;

    background:
        rgba(255, 255, 255, 0.045);

    border-color:
        rgba(177, 138, 72, 0.32);
}

.button-secondary:hover {
    background:
        rgba(255, 255, 255, 0.09);
}

.button-small {
    min-height: 42px;

    color: var(--mahogany-900);

    background: #d9c39b;

    border-color: #c5a96e;

    padding:
        8px 14px;
}


/* ============================================================
   PRIMARY CARD CONTROLS
============================================================ */

.controls {
    display: flex;

    justify-content: center;

    gap: 10px;

    margin-top: 18px;
}


/* ============================================================
   STUDY OPTIONS
============================================================ */

.study-options {
    display: flex;

    justify-content: center;
    align-items: center;

    gap:
        clamp(12px, 3vw, 28px);

    flex-wrap: wrap;

    margin-top: 20px;

    padding:
        14px 20px;

    border:
        1px solid
        rgba(177, 138, 72, 0.17);

    border-radius: 999px;

    background:
        rgba(20, 9, 7, 0.22);
}


/* ============================================================
   SHOW ALL
============================================================ */

.show-all-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 44px;

    margin-top: 20px;

    padding:
        9px 18px;

    color: #dfc99f;

    background:
        transparent;

    border:
        1px solid
        rgba(177, 138, 72, 0.35);

    border-radius: var(--radius-small);

    font-family: var(--ui-font);

    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.show-all-button:hover {
    background:
        rgba(177, 138, 72, 0.09);

    border-color:
        rgba(177, 138, 72, 0.55);

    transform: translateY(-1px);
}


/* ============================================================
   KEYBOARD HINT
============================================================ */

.keyboard-hint {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    margin:
        14px 0 0;

    color: #806c5d;

    font-size: 0.78rem;
}

.keyboard-hint span {
    opacity: 0.6;
}

kbd {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 25px;
    min-height: 22px;

    padding:
        2px 6px;

    color: #cbb79d;

    background:
        rgba(255, 255, 255, 0.055);

    border:
        1px solid
        rgba(177, 138, 72, 0.22);

    border-radius: 5px;

    font-family: var(--ui-font);

    font-size: 0.72rem;
}


/* ============================================================
   ALL CARDS VIEW
============================================================ */

.all-cards-view {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: none;

    overflow-y: auto;

    padding:
        clamp(16px, 4vw, 40px);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(177, 138, 72, 0.12),
            transparent 40%
        ),
        #24120f;
}

.all-cards-view.visible {
    display: block;
}

.all-cards-panel {
    width: min(1450px, 100%);

    margin: 0 auto;
}

.all-cards-header {
    position: sticky;

    top: 0;

    z-index: 20;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding:
        10px 0 20px;

    margin-bottom: 10px;

    background:
        linear-gradient(
            #24120f 75%,
            rgba(36, 18, 15, 0)
        );
}

.all-cards-title {
    margin: 2px 0 0;

    color: #f3e5cc;

    font-family: var(--display-font);

    font-size:
        clamp(
            2rem,
            5vw,
            3.2rem
        );

    line-height: 0.95;

    font-weight: 600;
}

.all-cards-subtitle {
    margin:
        8px 0 0;

    color: #a99282;

    font-size: 0.9rem;
}


/* ============================================================
   ALL CARDS TOOLBAR
============================================================ */

.all-cards-toolbar {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    flex-wrap: wrap;

    margin-bottom: 20px;

    padding:
        13px 15px;

    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid
        rgba(177, 138, 72, 0.16);

    border-radius: var(--radius-medium);
}

.select-control {
    min-width: 230px;

    height: 42px;

    padding:
        0 12px;

    border:
        1px solid
        rgba(177, 138, 72, 0.28);

    border-radius: var(--radius-small);

    color: var(--ink);

    background: #f3ead9;

    font-family: var(--ui-font);

    font-size: 0.95rem;

    outline: none;
}

.select-control:focus {
    border-color: var(--gold);

    box-shadow:
        0 0 0 3px
        rgba(177, 138, 72, 0.18);
}


/* ============================================================
   ALL CARDS GRID
============================================================ */

.all-cards-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(180px, 1fr)
        );

    gap: 16px;

    padding-bottom: 50px;
}


/* ============================================================
   MINI CARD
============================================================ */

.all-card {
    position: relative;

    width: 100%;

    min-height: 175px;

    padding:
        18px;

    border:
        1px solid
        rgba(94, 62, 42, 0.2);

    border-radius: 15px;

    color: var(--ink);

    background:
        linear-gradient(
            135deg,
            #f1e5cd,
            #eaddc3
        );

    box-shadow:
        0 7px 18px
        rgba(13, 6, 4, 0.25);

    font-family: var(--ui-font);

    text-align: center;

    cursor: pointer;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.all-card::before {
    content: "";

    position: absolute;
    inset: 7px;

    border:
        1px solid
        rgba(177, 138, 72, 0.23);

    border-radius: 10px;

    pointer-events: none;
}

.all-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(177, 138, 72, 0.5);

    box-shadow:
        0 12px 24px
        rgba(13, 6, 4, 0.32);
}

.all-card:focus-visible {
    outline:
        3px solid
        #d7b971;

    outline-offset: 3px;
}

.all-card.showing-back {
    background:
        linear-gradient(
            135deg,
            #eee2c9,
            #e7dac0
        );
}

.all-card-number {
    position: absolute;

    top: 11px;
    left: 13px;

    color: #826d58;

    font-size: 0.72rem;
    font-weight: 700;
}

.all-card-status {
    position: absolute;

    top: 10px;
    right: 12px;

    color: #76592f;

    font-size: 0.68rem;
    font-weight: 700;
}

.all-card-character {
    position: relative;

    margin:
        18px 0 8px;

    color: var(--mahogany-700);

    font-family: var(--display-font);

    font-size: 1.05rem;

    font-weight: 700;

    line-height: 1.05;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}

.all-card-text {
    position: relative;

    flex: 1;

    min-height: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        4px 3px;

    font-family: var(--display-font);

    font-size: 1.05rem;

    font-weight: 600;

    line-height: 1.2;

    overflow: hidden;

    overflow-wrap: break-word;
}

.all-card.memorized {
    box-shadow:
        0 0 0 2px
        rgba(177, 138, 72, 0.65),
        0 7px 18px
        rgba(13, 6, 4, 0.25);
}

.all-card.hidden-card {
    opacity: 0.62;
}

.all-card.hidden-card::after {
    content: "";

    position: absolute;
    inset: 0;

    border:
        2px dashed
        rgba(100, 65, 44, 0.32);

    border-radius: inherit;

    pointer-events: none;
}

.all-cards-empty {
    grid-column: 1 / -1;

    padding:
        70px 20px;

    color: #a99282;

    text-align: center;
}


/* ============================================================
   DYSLEXIA MODE
============================================================ */

body.dyslexia-mode {
    --ui-font:
        "Atkinson Hyperlegible",
        "Trebuchet MS",
        Arial,
        sans-serif;
}

body.dyslexia-mode .card-text,
body.dyslexia-mode .all-card-text {
    font-family:
        "Atkinson Hyperlegible",
        "Trebuchet MS",
        Arial,
        sans-serif;

    font-weight: 700;

    letter-spacing: 0.015em;

    line-height: 1.35;
}

body.dyslexia-mode .card-character,
body.dyslexia-mode .all-card-character {
    font-family:
        "Atkinson Hyperlegible",
        "Trebuchet MS",
        Arial,
        sans-serif;

    letter-spacing: 0.04em;
}


/* ============================================================
   EMPTY / ERROR STATES
============================================================ */

.flashcard-container:empty::before {
    content: "Loading cards…";

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #bda997;

    font-family: var(--display-font);

    font-size: 1.4rem;
}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 760px) {

    .app-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 18px;
    }

    .accessibility-controls {
        width: 100%;
    }

    .flashcard-container {
        width: min(94vw, 700px);

        height:
            clamp(
                350px,
                56vh,
                470px
            );
    }

    .study-options {
        width: 100%;

        border-radius: var(--radius-medium);

        padding:
            13px 12px;
    }

    .all-cards-grid {
        grid-template-columns:
            repeat(
                auto-fill,
                minmax(155px, 1fr)
            );

        gap: 11px;
    }

    .all-card {
        min-height: 160px;

        padding: 15px;
    }
}


/* ============================================================
   PHONE
============================================================ */

@media (max-width: 540px) {

    .app-shell {
        padding:
            20px 13px 35px;
    }

    .app-header {
        margin-bottom: 20px;

        padding-bottom: 18px;
    }

    .app-header h1 {
        font-size: 2.35rem;
    }

    .card-jump {
        flex-direction: column;

        width: 100%;
    }

    .card-jump select,
    .jump-group {
        width: 100%;
    }

    .card-jump select {
        min-width: 0;
    }

    .jump-group input {
        flex: 1;

        width: auto;
    }

    .jump-group .button {
        flex: 0 0 auto;
    }

    .flashcard-container {
        width: 96vw;

        height:
            min(
                57vh,
                460px
            );
    }

    .card-front,
    .card-back {
        padding:
            27px 22px;
    }

    .card-front::after,
    .card-back::after {
        inset: 9px;

        border-radius: 16px;
    }

    .card-text {
        font-size:
            clamp(
                1.55rem,
                7vw,
                2.5rem
            );
    }

    .controls {
        width: 100%;
    }

    .controls .button {
        flex: 1;

        min-width: 0;
    }

    .study-options {
        align-items: flex-start;

        flex-direction: column;

        border-radius: 14px;
    }

    .toggle-control {
        width: 100%;
    }

    .show-all-button {
        width: 100%;
    }

    .keyboard-hint {
        display: none;
    }

    .all-cards-header {
        align-items: flex-start;
    }

    .all-cards-header .button {
        flex: 0 0 auto;
    }

    .all-cards-toolbar {
        align-items: stretch;

        flex-direction: column;
    }

    .select-control {
        width: 100%;

        min-width: 0;
    }

    .all-cards-toolbar .toggle-control {
        width: auto;
    }

    .all-cards-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 9px;
    }

    .all-card {
        min-height: 150px;

        padding: 14px 11px;
    }

    .all-card-character {
        font-size: 0.95rem;
    }

    .all-card-text {
        font-size: 0.95rem;
    }
}


/* ============================================================
   VERY SMALL PHONES
============================================================ */

@media (max-width: 360px) {

    .app-header h1 {
        font-size: 2.05rem;
    }

    .flashcard-container {
        height: 390px;
    }

    .card-front,
    .card-back {
        padding:
            24px 17px;
    }

    .all-cards-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .all-card {
        min-height: 140px;
    }
}