/* =========================================================
   GLOBAL RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;

    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    color: #36566d;

    background: #eef7fd;
}


/* =========================================================
   PAGE SYSTEM
========================================================= */

.page {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100dvh;

    min-height: 100vh;

    overflow-x: hidden;
    overflow-y: auto;

    padding:
        70px 25px 50px;

    display: flex;

    justify-content: center;

    /* IMPORTANT:
       halaman panjang dimulai dari atas */
    align-items: flex-start;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(15px);

    transition:
        opacity 0.65s ease,
        transform 0.65s ease,
        visibility 0.65s ease;

    background:
        linear-gradient(
            135deg,
            #eef7fd 0%,
            #e5f2fa 48%,
            #f5f9fc 100%
        );
}

.page.active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateY(0);
}


/* =========================================================
   SHORT PAGES
========================================================= */

/*
   Halaman pendek tetap berada
   di tengah layar.
*/

#opening,
#birthday,
#warning,
#ending {
    align-items: center;
}


/*
   Halaman panjang mulai dari atas.
*/

#letter,
#memories,
#photobox,
#things {
    align-items: flex-start;
}


/* =========================================================
   SCROLLBAR
========================================================= */

.page::-webkit-scrollbar {
    width: 6px;
}

.page::-webkit-scrollbar-track {
    background: transparent;
}

.page::-webkit-scrollbar-thumb {
    background: #a8c8dd;

    border-radius: 20px;
}

.page::-webkit-scrollbar-thumb:hover {
    background: #82aec8;
}


/* =========================================================
   FLOATING HEARTS
========================================================= */

.hearts-container {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    pointer-events: none;

    z-index: 9999;
}

.floating-heart {
    position: absolute;

    bottom: -50px;

    color: #73acd2;

    opacity: 0.65;

    pointer-events: none;

    animation:
        floatHeart linear forwards;
}

@keyframes floatHeart {

    0% {
        transform:
            translateY(0)
            rotate(0deg);

        opacity: 0;
    }

    10% {
        opacity: 0.65;
    }

    50% {
        transform:
            translateY(-50vh)
            rotate(12deg);
    }

    100% {
        transform:
            translateY(-110vh)
            rotate(-12deg);

        opacity: 0;
    }
}


/* =========================================================
   GENERAL
========================================================= */

button {
    font-family: inherit;

    cursor: pointer;

    border: none;

    outline: none;
}

.small-text {
    margin-bottom: 15px;

    font-size: 15px;

    letter-spacing: 1px;

    color: #708b9d;
}

.section-label {
    margin-bottom: 13px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    color: #6f96af;

    text-transform: uppercase;
}

.section-description {
    max-width: 520px;

    margin:
        0 auto 30px;

    font-size: 15px;

    line-height: 1.7;

    color: #71899a;
}


/* =========================================================
   BUTTONS
========================================================= */

.main-button,
.next-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 45px;

    padding:
        12px 25px;

    margin-top: 22px;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            #5798c4,
            #79b6dc
        );

    color: #ffffff;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 0.3px;

    box-shadow:
        0 9px 22px
        rgba(
            62,
            122,
            160,
            0.2
        );

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.main-button:hover,
.next-button:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 14px 28px
        rgba(
            62,
            122,
            160,
            0.28
        );
}

.main-button:active,
.next-button:active {
    transform:
        translateY(0);
}


/* =========================================================
   BACK BUTTON
========================================================= */

.back-button {
    position: fixed;

    top: 20px;
    left: 20px;

    z-index: 100;

    min-height: 40px;

    padding:
        8px 17px;

    border-radius: 25px;

    background:
        rgba(
            255,
            255,
            255,
            0.86
        );

    border:
        1px solid
        rgba(
            86,
            137,
            169,
            0.18
        );

    color: #527990;

    font-size: 13px;

    box-shadow:
        0 5px 18px
        rgba(
            61,
            104,
            132,
            0.1
        );

    backdrop-filter:
        blur(10px);

    transition:
        all 0.3s ease;
}

.back-button:hover {
    background: #ffffff;

    color: #376a86;

    transform:
        translateX(-3px);
}


/* =========================================================
   OPENING
========================================================= */

.opening-content {
    width: 100%;

    max-width: 650px;

    padding:
        20px;

    text-align: center;

    animation:
        fadeUp 0.9s ease;
}

.love-emojis {
    margin-bottom: 22px;

    font-size: 75px;

    line-height: 1;

    animation:
        heartbeat 2s infinite;

    filter:
        drop-shadow(
            0 10px 16px
            rgba(
                55,
                125,
                169,
                0.18
            )
        );
}

.opening-content h1 {
    margin-bottom: 18px;

    font-family: Georgia, serif;

    font-size:
        clamp(
            45px,
            9vw,
            75px
        );

    line-height: 1;

    color: #294052;
}

.opening-content h1 span {
    color: #5798c4;
}

.opening-description {
    margin-bottom: 5px;

    font-family: Georgia, serif;

    font-size: 17px;

    line-height: 1.6;

    color: #718a9b;
}


/* =========================================================
   BIRTHDAY
========================================================= */

.birthday-content {
    width: 100%;

    max-width: 700px;

    padding:
        20px;

    text-align: center;

    animation:
        fadeUp 0.9s ease;
}

.cake {
    margin-bottom: 12px;

    font-size: 60px;

    line-height: 1;

    animation:
        floatCake 3s ease-in-out infinite;
}

.date {
    margin-bottom: 18px;

    font-size: 14px;

    letter-spacing: 4px;

    color: #7894a8;
}

.birthday-title {
    margin-bottom: 10px;

    font-family: Georgia, serif;

    font-size:
        clamp(
            55px,
            11vw,
            100px
        );

    line-height: 0.9;

    letter-spacing: -3px;

    color: #294052;
}

.birthday-title span {
    color: #5798c4;
}

.birthday-content h2 {
    margin-top: 22px;

    font-family: Georgia, serif;

    font-size: 30px;

    color: #5a819a;

    letter-spacing: 3px;
}

.birthday-subtitle {
    margin-top: 12px;

    font-family: Georgia, serif;

    font-size: 16px;

    color: #7891a1;
}


/* =========================================================
   LETTER
========================================================= */

.letter-card {
    width: 100%;

    max-width: 760px;

    margin:
        15px auto 30px;

    padding:
        40px 48px;

    border-radius: 24px;

    background:
        rgba(
            255,
            255,
            255,
            0.88
        );

    border:
        1px solid
        rgba(
            111,
            160,
            190,
            0.16
        );

    box-shadow:
        0 18px 55px
        rgba(
            61,
            106,
            136,
            0.11
        );

    backdrop-filter:
        blur(10px);

    animation:
        fadeUp 0.8s ease;
}

.letter-top {
    margin-bottom: 12px;

    font-size: 42px;

    text-align: center;
}

.letter-label {
    margin-bottom: 20px;

    font-size: 11px;

    letter-spacing: 3px;

    text-align: center;

    text-transform: uppercase;

    color: #7695a9;
}

.letter-card h2 {
    margin-bottom: 28px;

    font-family: Georgia, serif;

    font-size:
        clamp(
            24px,
            5vw,
            36px
        );

    line-height: 1.2;

    text-align: center;

    color: #38566a;
}

.letter-text {
    font-family: Georgia, serif;

    font-size: 16px;

    line-height: 1.9;

    color: #536e7e;

    text-align: left;
}

.letter-text p {
    margin-bottom: 22px;
}

.special-line {
    color: #4c91c1;

    font-weight: 600;
}


/* =========================================================
   MEMORIES
========================================================= */

.memories-container {
    width: 100%;

    max-width: 750px;

    margin:
        15px auto 35px;

    text-align: center;

    animation:
        fadeUp 0.8s ease;
}

.memories-container h1 {
    margin-bottom: 10px;

    font-family: Georgia, serif;

    font-size:
        clamp(
            36px,
            7vw,
            58px
        );

    line-height: 1.1;

    color: #294052;
}

.memories-container h1 span {
    color: #5798c4;
}


/* =========================================================
   MEMORY CARD
========================================================= */

.memory-card {
    width: 100%;

    max-width: 470px;

    margin:
        30px auto 50px;

    padding: 10px;

    background: #ffffff;

    border-radius: 8px;

    box-shadow:
        0 17px 38px
        rgba(
            48,
            90,
            119,
            0.14
        );

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.memory-card:hover {
    transform:
        rotate(0deg)
        translateY(-5px);

    box-shadow:
        0 23px 45px
        rgba(
            48,
            90,
            119,
            0.18
        );
}

.rotate-left {
    transform:
        rotate(-1.5deg);
}

.rotate-right {
    transform:
        rotate(1.5deg);
}

.photo-container {
    width: 100%;

    overflow: hidden;

    border-radius: 5px;

    background: #e6f0f7;
}

.photo-container img {
    display: block;

    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;
}

.memory-info {
    padding:
        15px 10px 10px;

    text-align: left;
}

.memory-info span {
    display: block;

    margin-bottom: 7px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

    color: #78a1ba;
}

.memory-info p {
    font-family: Georgia, serif;

    font-size: 15px;

    line-height: 1.6;

    color: #536e7e;
}


/* =========================================================
   PHOTOBOX
========================================================= */

#photobox {
    background:
        radial-gradient(
            circle at center,
            #dceaf7,
            #f2f7fc 60%,
            #e8f0f7
        );
}

.photobox-container {
    width: 100%;

    max-width: 600px;

    margin:
        15px auto 35px;

    text-align: center;

    animation:
        fadeUp 0.8s ease;
}

.photobox-container h1 {
    margin-bottom: 25px;

    font-family: Georgia, serif;

    font-size:
        clamp(
            34px,
            8vw,
            55px
        );

    line-height: 1.08;

    color: #294052;
}

.photobox-container h1 span {
    color: #4e82ae;
}


/* =========================================================
   PHOTOBOX VIDEO
========================================================= */

.photobox-video {
    width: 100%;

    max-width: 280px;

    margin:
        0 auto 22px;

    padding: 8px;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 15px 35px
        rgba(
            41,
            76,
            107,
            0.15
        );

    transform:
        rotate(-1deg);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.photobox-video:hover {
    transform:
        rotate(0deg)
        translateY(-4px);

    box-shadow:
        0 20px 40px
        rgba(
            41,
            76,
            107,
            0.2
        );
}

.photobox-video video {
    display: block;

    width: 100%;

    height: auto;

    aspect-ratio: 9 / 16;

    object-fit: cover;

    border-radius: 11px;

    background: #dceaf7;
}


/* =========================================================
   PHOTOBOX CAPTION
========================================================= */

.photobox-caption {
    width: 100%;

    max-width: 500px;

    margin:
        20px auto 25px;
}

.photobox-caption h2 {
    margin-bottom: 13px;

    font-family: Georgia, serif;

    font-size:
        clamp(
            24px,
            6vw,
            34px
        );

    line-height: 1.25;

    color: #294052;
}

.caption-last {
    font-size: 16px;

    line-height: 1.6;

    color: #4e82ae;
}


/* =========================================================
   THINGS / GOMBALAN
========================================================= */

.things-container {
    width: 100%;

    max-width: 700px;

    margin:
        15px auto 35px;

    text-align: center;

    animation:
        fadeUp 0.8s ease;
}

.things-container h1 {
    margin-bottom: 30px;

    font-family: Georgia, serif;

    font-size:
        clamp(
            35px,
            7vw,
            58px
        );

    line-height: 1.1;

    color: #294052;
}

.things-container h1 span {
    color: #5798c4;
}


/* =========================================================
   LOVE CARDS
========================================================= */

.love-card {
    position: relative;

    width: 100%;

    margin:
        22px auto;

    padding:
        32px 32px 28px;

    border-radius: 22px;

    background:
        rgba(
            255,
            255,
            255,
            0.88
        );

    border:
        1px solid
        rgba(
            105,
            157,
            188,
            0.14
        );

    box-shadow:
        0 14px 35px
        rgba(
            53,
            101,
            130,
            0.09
        );

    text-align: center;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.love-card:hover {
    transform:
        translateY(-4px);

    box-shadow:
        0 19px 42px
        rgba(
            53,
            101,
            130,
            0.14
        );
}

.love-card .number {
    position: absolute;

    top: 17px;
    right: 20px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

    color: #9ab5c7;
}

.love-card .emoji {
    margin-bottom: 10px;

    font-size: 40px;
}

.love-card h2 {
    margin-bottom: 12px;

    font-family: Georgia, serif;

    font-size: 26px;

    color: #38566a;
}

.love-card p {
    font-family: Georgia, serif;

    font-size: 15px;

    line-height: 1.8;

    color: #607989;
}


/* =========================================================
   BASICALLY
========================================================= */

.basically {
    margin:
        45px auto 25px;

    padding:
        30px 20px;

    border-top:
        1px solid
        rgba(
            96,
            139,
            162,
            0.2
        );

    border-bottom:
        1px solid
        rgba(
            96,
            139,
            162,
            0.2
        );

    text-align: center;
}

.basically > p:first-child {
    margin-bottom: 10px;

    font-family: Georgia, serif;

    font-size: 15px;

    color: #7992a2;
}

.basically h2 {
    margin-bottom: 14px;

    font-family: Georgia, serif;

    font-size:
        clamp(
            28px,
            6vw,
            40px
        );

    line-height: 1.2;

    color: #38566a;
}

.little-gombalan {
    margin-top: 18px;

    font-family: Georgia, serif;

    font-size: 15px;

    line-height: 1.7;

    color: #607b90;
}


/* =========================================================
   WARNING
========================================================= */

.warning-container {
    width: 100%;

    max-width: 600px;

    padding: 20px;

    text-align: center;

    animation:
        fadeUp 0.8s ease;
}

.warning-icon {
    margin-bottom: 15px;

    font-size: 65px;

    animation:
        shakeWarning 2s ease-in-out infinite;
}

.warning-container h1 {
    margin-bottom: 15px;

    font-family: Georgia, serif;

    font-size:
        clamp(
            55px,
            12vw,
            100px
        );

    line-height: 0.9;

    color: #456b82;
}

.warning-text {
    margin-bottom: 18px;

    font-family: Georgia, serif;

    font-size: 18px;

    line-height: 1.5;

    color: #718a9a;
}

.cute-warning {
    display: inline-block;

    padding:
        11px 20px;

    border-radius: 30px;

    background:
        rgba(
            130,
            180,
            211,
            0.14
        );

    color: #58809a;

    font-size: 13px;
}

.emoji-row {
    margin-top: 23px;

    font-size: 24px;

    letter-spacing: 4px;
}


/* =========================================================
   ENDING
========================================================= */

#ending {
    background:
        radial-gradient(
            circle at center,
            #e8f3fb,
            #dcecf8 50%,
            #f2f8fc
        );
}

.ending-container {
    width: 100%;

    max-width: 900px;

    padding: 20px;

    text-align: center;

    animation:
        fadeUp 0.9s ease;
}

.big-heart {
    margin-bottom: 25px;

    font-size: 85px;

    line-height: 1;

    animation:
        heartbeat 2s infinite;

    filter:
        drop-shadow(
            0 12px 18px
            rgba(
                54,
                124,
                169,
                0.2
            )
        );
}

.ending-line {
    margin-bottom: 18px;

    font-family: Georgia, serif;

    font-size:
        clamp(
            17px,
            3vw,
            24px
        );

    line-height: 1.6;

    color: #708998;
}

.ending-container > h1 {
    margin-bottom: 45px;

    font-family: Georgia, serif;

    font-size:
        clamp(
            45px,
            9vw,
            80px
        );

    line-height: 1;

    color: #294052;
}

.ending-container > h1 span {
    color: #5798c4;
}

.ending-container > h2 {
    max-width: 800px;

    margin:
        0 auto 40px;

    font-family: Georgia, serif;

    font-size:
        clamp(
            27px,
            6vw,
            52px
        );

    line-height: 1.25;

    color: #38566a;
}

.final-message {
    padding-top: 30px;

    border-top:
        1px solid
        rgba(
            89,
            131,
            153,
            0.2
        );
}

.final-message > p:first-child {
    margin-bottom: 8px;

    font-family: Georgia, serif;

    font-size: 17px;

    color: #7991a0;
}

.final-message h1 {
    margin-bottom: 10px;

    font-family: Georgia, serif;

    font-size:
        clamp(
            45px,
            8vw,
            70px
        );

    color: #5798c4;
}

.final-message > span {
    font-size: 13px;

    letter-spacing: 5px;

    color: #8ba5b5;
}

.love-you {
    margin-top: 28px;

    font-family: Georgia, serif;

    font-size: 23px;

    color: #527b93;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes fadeUp {

    from {
        opacity: 0;

        transform:
            translateY(25px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform:
            scale(1);
    }

    50% {
        transform:
            scale(1.08);
    }
}

@keyframes floatCake {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-8px);
    }
}

@keyframes shakeWarning {

    0%,
    70%,
    100% {
        transform:
            rotate(0deg);
    }

    75% {
        transform:
            rotate(-8deg);
    }

    80% {
        transform:
            rotate(8deg);
    }

    85% {
        transform:
            rotate(-5deg);
    }

    90% {
        transform:
            rotate(5deg);
    }
}


/* =========================================================
   MOBILE — PHONE
========================================================= */

@media (max-width: 600px) {

    body {
        font-size: 14px;
    }


    /* -----------------------------------------
       PAGE
    ----------------------------------------- */

    .page {
        width: 100%;

        height: 100dvh;

        min-height: 100dvh;

        padding:
            68px 14px 45px;

        overflow-x: hidden;

        overflow-y: auto;

        -webkit-overflow-scrolling: touch;
    }


    /*
       Opening / Birthday / Warning / Ending
       tetap di tengah.
    */

    #opening,
    #birthday,
    #warning,
    #ending {
        align-items: center;

        padding-top: 55px;
        padding-bottom: 35px;
    }


    /*
       Halaman panjang dimulai dari atas.
    */

    #letter,
    #memories,
    #photobox,
    #things {
        align-items: flex-start;
    }


    /* -----------------------------------------
       BACK BUTTON
    ----------------------------------------- */

    .back-button {
        top: 12px;

        left: 12px;

        min-height: 38px;

        padding:
            8px 14px;

        font-size: 12px;

        box-shadow:
            0 4px 15px
            rgba(
                61,
                104,
                132,
                0.09
            );
    }


    /* -----------------------------------------
       GENERAL BUTTON
    ----------------------------------------- */

    .main-button,
    .next-button {
        min-height: 44px;

        padding:
            11px 22px;

        margin-top: 20px;

        font-size: 13px;
    }


    /* -----------------------------------------
       OPENING
    ----------------------------------------- */

    .opening-content {
        max-width: 100%;

        padding:
            15px 8px;
    }

    .love-emojis {
        margin-bottom: 20px;

        font-size: 65px;
    }

    .small-text {
        font-size: 14px;
    }

    .opening-content h1 {
        font-size: 46px;

        line-height: 1.05;
    }

    .opening-description {
        max-width: 300px;

        margin:
            0 auto;

        font-size: 14px;

        line-height: 1.6;
    }


    /* -----------------------------------------
       BIRTHDAY
    ----------------------------------------- */

    .birthday-content {
        padding:
            15px 5px;
    }

    .cake {
        font-size: 52px;
    }

    .date {
        margin-bottom: 15px;

        font-size: 12px;

        letter-spacing: 3px;
    }

    .birthday-title {
        font-size: 59px;

        letter-spacing: -2px;
    }

    .birthday-content h2 {
        margin-top: 20px;

        font-size: 25px;

        letter-spacing: 2px;
    }

    .birthday-subtitle {
        font-size: 14px;
    }


    /* -----------------------------------------
       LETTER
    ----------------------------------------- */

    .letter-card {
        width: 100%;

        max-width: 100%;

        margin:
            5px auto 25px;

        padding:
            28px 20px 30px;

        border-radius: 20px;

        box-shadow:
            0 12px 35px
            rgba(
                61,
                106,
                136,
                0.1
            );
    }

    .letter-top {
        font-size: 38px;
    }

    .letter-label {
        margin-bottom: 17px;

        font-size: 9px;

        letter-spacing: 2.5px;
    }

    .letter-card h2 {
        margin-bottom: 24px;

        font-size: 24px;

        line-height: 1.3;
    }

    .letter-text {
        font-size: 14px;

        line-height: 1.85;

        text-align: left;
    }

    .letter-text p {
        margin-bottom: 19px;
    }


    /* -----------------------------------------
       MEMORIES
    ----------------------------------------- */

    .memories-container {
        width: 100%;

        margin:
            5px auto 25px;
    }

    .section-label {
        font-size: 9px;

        letter-spacing: 2.3px;
    }

    .memories-container h1 {
        font-size: 37px;

        line-height: 1.1;
    }

    .section-description {
        padding:
            0 10px;

        margin-bottom: 25px;

        font-size: 14px;

        line-height: 1.65;
    }

    .memory-card {
        width: 94%;

        max-width: 400px;

        margin:
            25px auto 42px;

        padding: 8px;

        border-radius: 7px;
    }

    .photo-container img {
        aspect-ratio: 4 / 3;

        border-radius: 4px;
    }

    .memory-info {
        padding:
            13px 8px 8px;
    }

    .memory-info span {
        margin-bottom: 6px;

        font-size: 9px;

        letter-spacing: 1.8px;
    }

    .memory-info p {
        font-size: 13px;

        line-height: 1.6;
    }


    /* =========================================================
   PHOTOBOX
========================================================= */

#photobox {
    background:
        radial-gradient(
            circle at center,
            #dceaf7,
            #f2f7fc 60%,
            #e8f0f7
        );

    align-items: flex-start;

    overflow-x: hidden;
}


/* =========================================================
   PHOTOBOX CONTAINER
========================================================= */

#photobox .photobox-container {

    width: 100%;

    max-width: 600px;

    margin:
        10px auto 35px;

    padding:
        0 15px;

    text-align: center;

    animation:
        fadeUp 0.8s ease;
}


/* =========================================================
   TITLE / LABEL
========================================================= */

#photobox .section-label {

    margin-bottom: 22px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    color: #6f96af;

    text-transform: uppercase;
}


/* =========================================================
   VIDEO FRAME
========================================================= */

#photobox .photobox-video {

    display: block;

    width: 220px;

    max-width: 220px;

    min-width: 220px;

    margin:
        0 auto 25px;

    padding: 7px;

    box-sizing: border-box;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 15px 40px
        rgba(
            41,
            76,
            107,
            0.16
        );

    overflow: hidden;

    flex: none;

    transform:
        rotate(-1.2deg);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}


#photobox .photobox-video:hover {

    transform:
        rotate(0deg)
        translateY(-5px);

    box-shadow:
        0 22px 45px
        rgba(
            41,
            76,
            107,
            0.22
        );
}


/* =========================================================
   VIDEO
========================================================= */

#photobox .photobox-video video {

    display: block;

    width: 206px;

    max-width: 206px;

    min-width: 206px;

    height: 366px;

    max-height: 366px;

    margin:
        0 auto;

    padding: 0;

    box-sizing: border-box;

    object-fit: cover;

    border-radius: 11px;

    background: #dceaf7;
}


/* =========================================================
   CAPTION
========================================================= */

#photobox .photobox-caption {

    width: 100%;

    max-width: 500px;

    margin:
        0 auto 25px;

    text-align: center;
}


#photobox .photobox-caption h2 {

    margin-bottom: 12px;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            24px,
            6vw,
            34px
        );

    line-height: 1.25;

    color: #294052;
}


#photobox .caption-last {

    margin: 0;

    font-size: 16px;

    line-height: 1.6;

    color: #4e82ae;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    #photobox {

        padding:
            65px 12px 40px;

    }


    #photobox .photobox-container {

        width: 100%;

        max-width: 100%;

        margin:
            5px auto 30px;

        padding:
            0 5px;

    }


    #photobox .section-label {

        margin-bottom: 20px;

        font-size: 10px;

        letter-spacing: 2.5px;

    }


    /* -----------------------------------------
       VIDEO HP
    ----------------------------------------- */

    #photobox .photobox-video {

        width: 210px;

        max-width: 210px;

        min-width: 210px;

        padding: 6px;

        margin:
            0 auto 22px;

        border-radius: 16px;

    }


    #photobox .photobox-video video {

        width: 198px;

        max-width: 198px;

        min-width: 198px;

        height: 352px;

        max-height: 352px;

        border-radius: 10px;

    }


    /* -----------------------------------------
       CAPTION HP
    ----------------------------------------- */

    #photobox .photobox-caption {

        width: 95%;

        max-width: 400px;

        margin:
            0 auto 22px;

    }


    #photobox .photobox-caption h2 {

        font-size: 23px;

        line-height: 1.3;

    }


    #photobox .caption-last {

        font-size: 14px;

    }

}


/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 380px) {

    #photobox {

        padding:
            63px 10px 35px;

    }


    #photobox .photobox-video {

        width: 190px;

        max-width: 190px;

        min-width: 190px;

        padding: 6px;

    }


    #photobox .photobox-video video {

        width: 178px;

        max-width: 178px;

        min-width: 178px;

        height: 316px;

        max-height: 316px;

    }


    #photobox .photobox-caption h2 {

        font-size: 21px;

    }

}


    /* -----------------------------------------
       THINGS
    ----------------------------------------- */

    .things-container {
        width: 100%;

        margin:
            5px auto 25px;
    }

    .things-container h1 {
        padding:
            0 8px;

        margin-bottom: 25px;

        font-size: 37px;

        line-height: 1.12;
    }

    .love-card {
        width: 100%;

        margin:
            18px auto;

        padding:
            28px 19px 23px;

        border-radius: 19px;
    }

    .love-card .number {
        top: 14px;

        right: 16px;

        font-size: 9px;
    }

    .love-card .emoji {
        margin-bottom: 8px;

        font-size: 36px;
    }

    .love-card h2 {
        margin-bottom: 10px;

        font-size: 23px;

        line-height: 1.25;
    }

    .love-card p {
        font-size: 13.5px;

        line-height: 1.75;
    }

    .basically {
        margin:
            35px auto 22px;

        padding:
            27px 12px;
    }

    .basically > p:first-child {
        font-size: 14px;
    }

    .basically h2 {
        font-size: 28px;

        line-height: 1.25;
    }

    .little-gombalan {
        font-size: 14px;

        line-height: 1.7;
    }


    /* -----------------------------------------
       WARNING
    ----------------------------------------- */

    .warning-container {
        padding:
            10px;
    }

    .warning-icon {
        font-size: 55px;
    }

    .warning-container h1 {
        font-size: 62px;
    }

    .warning-text {
        font-size: 16px;
    }

    .cute-warning {
        padding:
            10px 17px;

        font-size: 12px;
    }

    .emoji-row {
        font-size: 21px;

        letter-spacing: 2px;
    }


    /* =========================================================
   ENDING
========================================================= */

#ending {

    width: 100%;

    min-height: 100vh;

    height: auto;

    overflow-x: hidden;

    overflow-y: auto;

    background:
        radial-gradient(
            circle at center,
            #dceaf7,
            #f2f7fc 60%,
            #e8f0f7
        );

    display: block;

    padding:
        90px 20px 70px;

    box-sizing: border-box;
}


/* =========================================================
   ENDING CONTAINER
========================================================= */

#ending .ending-container {

    width: 100%;

    max-width: 850px;

    min-height: auto;

    margin:
        0 auto;

    padding:
        20px 20px 60px;

    box-sizing: border-box;

    text-align: center;

    animation:
        fadeUp 1s ease;
}


/* =========================================================
   BIG HEART
========================================================= */

#ending .big-heart {

    font-size: 70px;

    line-height: 1;

    margin:
        0 auto 35px;

    animation:
        heartBeat 2s infinite;
}


/* =========================================================
   ENDING SMALL TEXT
========================================================= */

#ending .ending-line {

    margin:
        20px auto;

    max-width: 700px;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            18px,
            3vw,
            28px
        );

    line-height: 1.5;

    color: #66859a;
}


/* =========================================================
   MAIN ENDING TITLE
========================================================= */

#ending .ending-container > h1 {

    margin:
        25px auto 30px;

    max-width: 800px;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            48px,
            8vw,
            88px
        );

    line-height: 1.05;

    color: #294052;
}


#ending .ending-container > h1 span {

    color: #5798c4;

}


/* =========================================================
   SECOND MESSAGE
========================================================= */

#ending .ending-container > h2 {

    margin:
        25px auto 35px;

    max-width: 800px;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            28px,
            5vw,
            55px
        );

    line-height: 1.2;

    color: #294052;
}


/* =========================================================
   ENDING PHOTO
========================================================= */

#ending .ending-photo {

    width: 100%;

    max-width: 330px;

    margin:
        35px auto 40px;

    padding: 8px;

    background: #ffffff;

    border-radius: 18px;

    box-sizing: border-box;

    box-shadow:
        0 18px 45px
        rgba(
            41,
            76,
            107,
            0.16
        );

    transform:
        rotate(1deg);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;

    overflow: hidden;
}


#ending .ending-photo:hover {

    transform:
        rotate(0deg)
        translateY(-5px);

    box-shadow:
        0 25px 55px
        rgba(
            41,
            76,
            107,
            0.22
        );
}


#ending .ending-photo img {

    display: block;

    width: 100%;

    max-width: 100%;

    height: auto;

    object-fit: cover;

    border-radius: 11px;
}


/* =========================================================
   FINAL MESSAGE
========================================================= */

#ending .final-message {

    width: 100%;

    max-width: 650px;

    margin:
        20px auto 0;

    padding:
        35px 20px 20px;

    border-top:
        1px solid
        rgba(
            82,
            126,
            151,
            0.20
        );

    box-sizing: border-box;
}


#ending .final-message > p:first-child {

    margin:
        0 0 10px;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            18px,
            3vw,
            25px
        );

    color: #6b8798;
}


#ending .final-message h1 {

    margin:
        0 0 8px;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            48px,
            8vw,
            75px
        );

    line-height: 1;

    color: #5798c4;
}


#ending .final-message > span {

    display: block;

    font-size: 15px;

    letter-spacing: 5px;

    color: #7795a6;

    margin-bottom: 25px;
}


#ending .love-you {

    margin:
        0;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            20px,
            4vw,
            30px
        );

    color: #66859a;
}


/* =========================================================
   MOBILE ENDING
========================================================= */

    #ending {

        min-height: 100vh;

        height: auto;

        padding:
            70px 12px 50px;

        overflow-x: hidden;

        overflow-y: auto;

    }


    #ending .ending-container {

        width: 100%;

        max-width: 100%;

        padding:
            15px 8px 50px;

    }


    #ending .big-heart {

        font-size: 58px;

        margin-bottom: 25px;

    }


    #ending .ending-line {

        font-size: 17px;

        line-height: 1.5;

        margin:
            18px auto;

    }


    #ending .ending-container > h1 {

        font-size: 48px;

        line-height: 1.05;

        margin:
            22px auto 25px;

    }


    #ending .ending-container > h2 {

        font-size: 30px;

        line-height: 1.2;

        margin:
            22px auto 30px;

    }


    /* -----------------------------------------
       IMAGE HP
    ----------------------------------------- */

    #ending .ending-photo {

        width: 78%;

        max-width: 280px;

        margin:
            30px auto 35px;

        padding: 7px;

        border-radius: 15px;

    }


    #ending .ending-photo img {

        width: 100%;

        border-radius: 10px;

    }


    /* -----------------------------------------
       FINAL MESSAGE HP
    ----------------------------------------- */

    #ending .final-message {

        padding:
            28px 10px 20px;

    }


    #ending .final-message > p:first-child {

        font-size: 17px;

    }


    #ending .final-message h1 {

        font-size: 48px;

    }


    #ending .final-message > span {

        font-size: 13px;

        letter-spacing: 4px;

    }


    #ending .love-you {

        font-size: 22px;

    }

}


/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 380px) {

    #ending {

        padding:
            65px 10px 45px;

    }


    #ending .ending-container {

        padding:
            10px 5px 45px;

    }


    #ending .big-heart {

        font-size: 50px;

    }


    #ending .ending-line {

        font-size: 15px;

    }


    #ending .ending-container > h1 {

        font-size: 40px;

    }


    #ending .ending-container > h2 {

        font-size: 26px;

    }


    #ending .ending-photo {

        width: 82%;

        max-width: 250px;

    }


    #ending .final-message h1 {

        font-size: 42px;

    }

}


/* =========================================================
   VERY SMALL PHONE
   320px - 380px
========================================================= */

@media (max-width: 380px) {

    .page {
        padding:
            63px 11px 40px;
    }

    .opening-content h1 {
        font-size: 40px;
    }

    .love-emojis {
        font-size: 58px;
    }

    .birthday-title {
        font-size: 53px;
    }

    .birthday-content h2 {
        font-size: 23px;
    }

    .letter-card {
        padding:
            25px 17px 27px;
    }

    .letter-card h2 {
        font-size: 22px;
    }

    .letter-text {
        font-size: 13.5px;

        line-height: 1.8;
    }

    .memories-container h1 {
        font-size: 34px;
    }

    .memory-card {
        width: 96%;
    }

    .photobox-video {
        width: 78vw;
        max-width: 260px;
    }

    .photobox-container h1 {
        font-size: 31px;
    }

    .things-container h1 {
        font-size: 34px;
    }

    .love-card {
        padding:
            25px 16px 22px;
    }

    .love-card h2 {
        font-size: 21px;
    }

    .love-card p {
        font-size: 13px;
    }

    .warning-container h1 {
        font-size: 57px;
    }

    .ending-container > h1 {
        font-size: 43px;
    }

    .ending-container > h2 {
        font-size: 25px;
    }

    .final-message h1 {
        font-size: 44px;
    }
}


/* =========================================================
   LANDSCAPE PHONE
========================================================= */

@media (
    max-height: 500px
) and (
    orientation: landscape
) {

    .page {
        padding:
            55px 20px 35px;
    }

    #opening,
    #birthday,
    #warning,
    #ending {
        align-items: flex-start;
    }

    .opening-content {
        margin:
            20px auto;
    }

    .love-emojis {
        font-size: 45px;

        margin-bottom: 10px;
    }

    .opening-content h1 {
        font-size: 40px;
    }

    .cake {
        font-size: 40px;
    }

    .birthday-title {
        font-size: 55px;
    }

    .big-heart {
        font-size: 50px;
    }

}

/* =========================================================
   FINAL PHOTOBOX SIZE SAFETY FIX
   Keeps the 6-second photobox video compact and centered.
========================================================= */

.photobox-video {
    width: min(78vw, 280px);
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.photobox-video video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 600px) {
    .photobox-video {
        width: 78vw;
        max-width: 260px;
    }
}

@media (max-width: 380px) {
    .photobox-video {
        width: 78vw;
        max-width: 245px;
    }
}

/* =========================================================
   FIX UKURAN FOTO ENDING
   ========================================================= */

#ending .ending-photo {
    display: block !important;

    width: 260px !important;
    max-width: 260px !important;
    min-width: 260px !important;

    height: auto !important;

    margin:
        35px auto 35px !important;

    padding: 7px !important;

    box-sizing: border-box !important;

    background: #ffffff !important;

    border-radius: 16px !important;

    overflow: hidden !important;

    box-shadow:
        0 15px 35px
        rgba(41, 76, 107, 0.16) !important;

    transform: rotate(1deg);
}


/* =========================================================
   FOTO DI DALAM KARTU
========================================================= */

#ending .ending-photo img {
    display: block !important;

    width: 246px !important;
    max-width: 246px !important;
    min-width: 246px !important;

    height: auto !important;

    margin: 0 auto !important;

    padding: 0 !important;

    box-sizing: border-box !important;

    object-fit: cover !important;

    border-radius: 10px !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    #ending .ending-photo {
        width: 220px !important;
        max-width: 220px !important;
        min-width: 220px !important;

        margin:
            28px auto 30px !important;

        padding: 6px !important;
    }

    #ending .ending-photo img {
        width: 208px !important;
        max-width: 208px !important;
        min-width: 208px !important;

        border-radius: 9px !important;
    }

}


/* =========================================================
   HP KECIL
========================================================= */

@media (max-width: 380px) {

    #ending .ending-photo {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;

        padding: 5px !important;
    }

    #ending .ending-photo img {
        width: 190px !important;
        max-width: 190px !important;
        min-width: 190px !important;
    }

}

/* =========================================================
   FINAL FIX - ENDING TIDAK TERPOTONG
========================================================= */

#ending {
    position: relative !important;

    display: block !important;

    width: 100% !important;

    height: 100vh !important;

    min-height: 100vh !important;

    max-height: none !important;

    box-sizing: border-box !important;

    overflow-x: hidden !important;

    overflow-y: auto !important;

    padding:
        100px 15px 80px !important;

    margin: 0 !important;

    scroll-behavior: smooth;
}


/* =========================================================
   CONTAINER ENDING
========================================================= */

#ending .ending-container {

    position: relative !important;

    display: block !important;

    width: 100% !important;

    max-width: 800px !important;

    min-height: auto !important;

    height: auto !important;

    margin:
        0 auto !important;

    padding:
        20px 15px 70px !important;

    box-sizing: border-box !important;

    text-align: center !important;

    transform: none !important;
}


/* =========================================================
   HATI PALING ATAS
========================================================= */

#ending .big-heart {

    display: block !important;

    position: relative !important;

    margin:
        0 auto 30px !important;

    font-size: 65px !important;

    line-height: 1 !important;
}


/* =========================================================
   TEKS ATAS
========================================================= */

#ending .ending-line {

    position: relative !important;

    display: block !important;

    width: 100% !important;

    max-width: 700px !important;

    margin:
        20px auto !important;

    box-sizing: border-box !important;
}


/* =========================================================
   JUDUL UTAMA
========================================================= */

#ending .ending-container > h1 {

    position: relative !important;

    display: block !important;

    width: 100% !important;

    max-width: 800px !important;

    margin:
        25px auto 30px !important;

    box-sizing: border-box !important;

    transform: none !important;
}


/* =========================================================
   SUBTITLE
========================================================= */

#ending .ending-container > h2 {

    position: relative !important;

    display: block !important;

    width: 100% !important;

    max-width: 750px !important;

    margin:
        25px auto 35px !important;

    box-sizing: border-box !important;

    transform: none !important;
}


/* =========================================================
   FOTO ENDING
========================================================= */

#ending .ending-photo {

    position: relative !important;

    display: block !important;

    width: 260px !important;

    max-width: 260px !important;

    min-width: 260px !important;

    height: auto !important;

    margin:
        35px auto 40px !important;

    padding: 7px !important;

    box-sizing: border-box !important;

    overflow: hidden !important;

    transform: rotate(1deg) !important;
}


#ending .ending-photo img {

    display: block !important;

    width: 246px !important;

    max-width: 246px !important;

    min-width: 246px !important;

    height: auto !important;

    margin: 0 auto !important;

    object-fit: contain !important;

    box-sizing: border-box !important;
}


/* =========================================================
   FINAL MESSAGE
========================================================= */

#ending .final-message {

    position: relative !important;

    display: block !important;

    width: 100% !important;

    max-width: 650px !important;

    height: auto !important;

    margin:
        25px auto 0 !important;

    padding:
        35px 15px 30px !important;

    box-sizing: border-box !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    #ending {

        height: 100vh !important;

        min-height: 100vh !important;

        padding:
            85px 10px 60px !important;

        overflow-x: hidden !important;

        overflow-y: auto !important;

    }


    #ending .ending-container {

        width: 100% !important;

        max-width: 100% !important;

        padding:
            15px 8px 60px !important;

        margin: 0 auto !important;

    }


    #ending .big-heart {

        font-size: 55px !important;

        margin-bottom: 25px !important;

    }


    #ending .ending-line {

        font-size: 17px !important;

        line-height: 1.5 !important;

        margin:
            18px auto !important;

    }


    #ending .ending-container > h1 {

        font-size: 47px !important;

        line-height: 1.05 !important;

        margin:
            22px auto 28px !important;

    }


    #ending .ending-container > h2 {

        font-size: 29px !important;

        line-height: 1.25 !important;

        margin:
            22px auto 30px !important;

    }


    /* FOTO */

    #ending .ending-photo {

        width: 220px !important;

        max-width: 220px !important;

        min-width: 220px !important;

        margin:
            30px auto 35px !important;

        padding: 6px !important;

    }


    #ending .ending-photo img {

        width: 208px !important;

        max-width: 208px !important;

        min-width: 208px !important;

    }


    /* FINAL */

    #ending .final-message {

        padding:
            28px 10px 25px !important;

        margin-top: 20px !important;

    }


    #ending .final-message h1 {

        font-size: 48px !important;

    }

}


/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 380px) {

    #ending {

        padding:
            75px 8px 50px !important;

    }


    #ending .ending-container {

        padding:
            10px 5px 50px !important;

    }


    #ending .big-heart {

        font-size: 50px !important;

    }


    #ending .ending-container > h1 {

        font-size: 40px !important;

    }


    #ending .ending-container > h2 {

        font-size: 26px !important;

    }


    #ending .ending-photo {

        width: 200px !important;

        max-width: 200px !important;

        min-width: 200px !important;

    }


    #ending .ending-photo img {

        width: 190px !important;

        max-width: 190px !important;

        min-width: 190px !important;

    }

}