html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100dvh;

    overflow-x: hidden;
    overflow-y: auto;

    background: black;

    font-family: "Noto Sans Thai", sans-serif;

    -webkit-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
}


/* Stop dragging mah shit */
img {
    -webkit-user-drag: none;
    user-drag: none;

    -webkit-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
}


/* Background Video */
#background-video {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100dvh;

    object-fit: cover;
    object-position: center center;

    background: black;

    filter: brightness(0.68);

    z-index: 0;
    pointer-events: none;
}


/* Main */
.content {
    position: relative;
    z-index: 2;

    min-height: 100dvh;

    padding: 60px 20px 80px;

    box-sizing: border-box;
}


/* Language Buttons */
.language-switch {
    position: fixed;

    top: 15px;
    left: 15px;

    z-index: 10;

    display: flex;
    gap: 8px;
}

.language-switch button {
    padding: 8px 14px;

    border: 1px solid rgba(235, 170, 192, 0.8);
    border-radius: 999px;

    background: rgba(90, 40, 58, 0.55);

    color: #fff2f6;

    font-family: "Noto Sans Thai", sans-serif;

    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    backdrop-filter: blur(6px);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.language-switch button:hover {
    background: rgba(201, 123, 149, 0.38);

    transform: translateY(-1px);
}


/* Back Home */
.home-button {
    position: fixed;

    top: 15px;
    right: 15px;

    z-index: 10;

    padding: 8px 14px;

    text-decoration: none;

    color: #fff2f6;

    background: rgba(90, 40, 58, 0.55);

    border: 1px solid rgba(235, 170, 192, 0.8);
    border-radius: 999px;

    font-family: "Noto Sans Thai", sans-serif;

    font-size: 0.9rem;
    font-weight: 600;

    backdrop-filter: blur(6px);

    -webkit-user-drag: none;

    -webkit-user-select: none;
    user-select: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.home-button:hover {
    background: rgba(201, 123, 149, 0.38);

    transform: translateY(-1px);
}


/* Title */
h1 {
    position: relative;
    z-index: 2;

    margin: 1vh 20px 8px;

    text-align: center;

    color: #fff2f6;

    font-family: "Mali", cursive;

    font-size: clamp(1.9rem, 6vw, 2.8rem);
    font-weight: 700;

    line-height: 1.2;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.95),
        0 0 10px rgba(214, 148, 171, 0.55),
        0 0 18px rgba(201, 123, 149, 0.28);
}


/* Pixel Heart */
.ascii-wrapper {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: center;

    width: 100%;

    margin: 14px auto 18px;
}

.letter-ascii {
    margin: 0;

    font-family:
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Noto Color Emoji",
        monospace;

    font-size: clamp(0.7rem, 1.6vw, 1rem);

    line-height: 1.05;
    letter-spacing: 0;

    white-space: pre;

    text-align: center;

    filter:
        drop-shadow(0 0 5px rgba(214, 148, 171, 0.25));
}


/* Intro */
h2 {
    position: relative;
    z-index: 2;

    width: 90%;
    max-width: 900px;

    margin: 8px auto 22px;

    text-align: center;

    color: #e8b6c7;

    font-family: "Mali", cursive;

    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    font-weight: 500;

    line-height: 1.5;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(214, 148, 171, 0.3);
}


/* Keeps the envelope with the word before it */
.no-break {
    white-space: nowrap;
}


/* Da Letter */
.letter-card {
    position: relative;
    z-index: 2;

    width: 88%;
    max-width: 850px;

    margin: 0 auto;

    padding: 28px 32px;

    box-sizing: border-box;

    color: #fff7f9;

    background: rgba(105, 50, 70, 0.34);

    border: 1px solid rgba(218, 151, 175, 0.58);
    border-radius: 18px;

    backdrop-filter: blur(6px);

    box-shadow:
        0 0 12px rgba(201, 123, 149, 0.14),
        0 10px 28px rgba(0, 0, 0, 0.28);

    font-family: "Noto Sans Thai", sans-serif;

    font-size: clamp(1rem, 1.8vw, 1.08rem);
    font-weight: 500;

    line-height: 1.8;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.75);
}

.letter-card p {
    margin: 0 0 22px;
}


/* To my dearest Mo */
.letter-opening {
    color: #f2c2d2;

    font-family: "Mali", cursive;

    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 600;
}


/* Love */
.letter-ending {
    margin-top: 32px !important;
    margin-bottom: 5px !important;

    color: #efbfd0;

    font-family: "Mali", cursive;

    font-size: 1.1rem;
    font-weight: 600;
}


/* Moo Yong */
.signature {
    margin: 0 !important;

    color: #ffffff;

    font-family: "Mali", cursive;

    font-size: clamp(1.2rem, 2vw, 1.4rem);
    font-weight: 700;

    text-shadow:
        0 0 7px rgba(214, 148, 171, 0.4);
}


/* Phone Debug */
@media (max-width: 600px) {

    #background-video {
        object-fit: cover;
        object-position: center center;

        filter: brightness(0.62);
    }

    .content {
        padding:
            55px
            10px
            60px;
    }

    .language-switch {
        top: 10px;
        left: 10px;

        gap: 5px;
    }

    .language-switch button {
        padding: 6px 10px;

        font-size: 0.8rem;
    }

    .home-button {
        top: 10px;
        right: 10px;

        padding: 6px 10px;

        font-size: 0.8rem;
    }

    h1 {
        font-size: clamp(1.7rem, 8vw, 2.3rem);

        margin-top: 6px;
        margin-bottom: 6px;
    }

    .ascii-wrapper {
        margin: 10px auto 14px;
    }

    .letter-ascii {
        font-size: clamp(0.45rem, 2.4vw, 0.72rem);

        line-height: 1;
    }

    h2 {
        width: 94%;

        margin: 6px auto 16px;

        font-size: clamp(1rem, 4.5vw, 1.25rem);
    }

    .letter-card {
        width: 94%;

        padding: 20px 17px;

        font-size: 0.95rem;
        line-height: 1.75;

        border-radius: 15px;
    }

    .letter-card p {
        margin-bottom: 18px;
    }

    .letter-opening {
        font-size: 1.08rem;
    }

    .letter-ending {
        font-size: 1rem;
    }

    .signature {
        font-size: 1.15rem;
    }
}