@import url('https://fonts.googleapis.com/css2?family=Coiny&family=Titan+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nerko+One&family=Sriracha&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Gift Box Initial Overlay */
#gift-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, #fffde7 0%, #fff9c4 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
}

#gift-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.gift-box-container {
    text-align: center;
    perspective: 1000px;
}

.gift-box {
    font-size: 8rem;
    margin: 0 auto 20px;
    cursor: pointer;
    display: inline-block;
    animation: giftBob 1.5s infinite ease-in-out;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.gift-box:hover {
    transform: scale(1.15);
}

.gift-box:active {
    transform: scale(0.85);
}

.gift-text {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #e63946;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    animation: textPulse 2s infinite ease-in-out;
}

@keyframes giftBob {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}


/* Sakura Falling Effect */
#sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    /* Behind the content but above background */
    overflow: hidden;
}

.sakura {
    position: absolute;
    top: -50px;
    pointer-events: none;
    z-index: 5;
    animation-name: sakuraFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes sakuraFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

:root {
    --color-pink: #fffde7;
    /* Light Lemon */
    --color-white: #fff;
    --color-black: #333;
    --color-text-pink: #ffcc00;
    /* Primary Yellow */
    --color-heart: #ff9800;
    /* Warm Gold/Orange */
    --color-bg-letter: #fff9c4;
    --color-border: #d4af37;
    /* Metallic Gold border */
}

html {
    height: 100%;
}

body {
    position: relative;
    font-size: 16px;
    margin: 0;
    padding: 0;
    height: 100%;
    background-image: linear-gradient(var(--color-pink), var(--color-pink));
}

#wrapper {
    position: relative;
    background-color: transparent;
    background-image: linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 1) 25%, rgba(255, 255, 255, 1) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 1) 75%, rgba(255, 255, 255, 1) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, 1) 25%, rgba(255, 255, 255, 1) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 1) 75%, rgba(255, 255, 255, 1) 76%, transparent 77%, transparent);
    height: 100%;
    background-size: 80px 80px;
    overflow: hidden;
    z-index: 1;
}

#btn__start_container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

#btn__start_container.show {
    opacity: 1;
    visibility: visible;
}

#btn__start {
    background: linear-gradient(135deg, #ffd700, #ffae00);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 12px 45px;
    font-size: 1.6rem;
    /* font-family: 'Dancing Script', cursive; */
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    /* 3D Depth Shadow */
    box-shadow:
        0 6px 0 #cc8e00,
        0 12px 25px rgba(255, 174, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
    transition: all 0.1s ease;
    animation: floatingStart 3s ease-in-out infinite;
    position: relative;
    top: 0;
    text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

#btn__start:hover {
    background: linear-gradient(135deg, #ffeb3b, #ff9800);
    box-shadow:
        0 8px 0 #cc8e00,
        0 15px 30px rgba(255, 152, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

#btn__start:active {
    transform: translateY(6px);
    /* Move down by the exact height of the shadow */
    box-shadow:
        0 0 0 #cc8e00,
        0 4px 10px rgba(255, 152, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes floatingStart {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

#image-jump-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 300;
    overflow: hidden;
}

.jumping-image {
    position: absolute;
    bottom: -200px;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid #fff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 301;
    transition: transform 0.1s linear;
}

@keyframes jumpAnimation {
    0% {
        bottom: -200px;
        left: var(--start-x);
        transform: rotate(0deg) scale(0.5);
    }

    30% {
        transform: rotate(var(--mid-rot)) scale(1.1);
    }

    100% {
        bottom: 120%;
        left: var(--end-x);
        transform: rotate(var(--end-rot)) scale(1);
    }
}



.content {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-areas:
        "left right"
        "btn right";
    justify-content: center;
    align-items: center;
    padding: 2rem 5%;
}

.content .left {
    grid-area: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content .right {
    grid-area: right;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content .btn {
    grid-area: btn;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}


.btn {
    transform: scale(0);
}

.started .btn {
    animation: scalePop 2s 8s forwards ease-in-out;
}

.btn__floating {
    animation: floating 3s infinite ease-in-out;
}

#btn__letter {
    position: relative;
    margin-top: 30px;
    background-color: var(--color-text-pink);
    outline: none;
    padding: 12px 30px;
    font-size: 1.3rem;
    border-radius: 50px;
    border: 3px solid var(--color-black);
    font-family: "Sriracha", cursive;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all .2s ease;
    box-shadow: 0 6px 0 var(--color-black);
    color: var(--color-black);
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

#btn__letter:hover {
    background-color: var(--color-heart);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 var(--color-black);
}

#btn__letter:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--color-black);
}

#btn__letter i {
    margin-left: 5px;
}

#btn__letter:hover {
    border-color: var(--color-heart);
    background-color: var(--color-heart);
    color: #fff;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

#btn__letter:hover i {
    animation: rotateHeart 1s infinite linear;
}

@keyframes rotateHeart {

    0%,
    50%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(12deg);
    }

    75% {
        transform: rotate(-12deg);
    }
}

.title {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    font-family: "Titan One", sans-serif;
    font-size: 3rem;
    flex-direction: column;
    perspective: 1000px;
}

.title .happy,
.title .birthday {
    position: relative;
    text-shadow: 4px 4px var(--color-black),
        -4px 4px var(--color-black),
        4px -4px var(--color-black),
        -4px -4px var(--color-black),
        4px 8px 0 var(--color-black);
    font-weight: bold;
    display: flex;
    justify-content: center;
}

.title .happy {
    color: var(--color-white);
}

.title .happy span,
.title .birthday span {
    transform: translateY(50px);
    opacity: 0;
    visibility: hidden;
}

.started .title .happy span,
.started .title .birthday span {
    animation: txtTranslateY .5s var(--t) forwards;
}

@keyframes txtTranslateY {
    100% {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

.title .birthday {
    color: var(--color-text-pink);
}

.title .hat {
    position: absolute;
    right: -80px;
    top: -400px;
    transform: rotate(-40deg);
    z-index: -1;
}

.started .title .hat {
    animation: topHat 4s 7s forwards ease;
}

@keyframes topHat {

    20%,
    30% {
        top: -30px;
        transform-origin: left;
        transform: rotate(-40deg);
    }

    35%,
    100% {
        top: -30px;
        transform: rotate(0deg);
    }
}

.date__of__birth,
.name {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--color-text-pink);
    border-radius: 50px;
    margin-top: 20px;
    font-family: "Sriracha", cursive;
    width: 400px;
}

.date__of__birth {
    border: 3px solid var(--color-black);
    position: relative;
    transform: translateY(-100px);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    width: 0px;
}

.started .date__of__birth {
    animation: dateOfBirth 5s 9s forwards;
}

@keyframes dateOfBirth {

    20%,
    40% {
        width: 0px;
        height: 0;
        transform: translateY(0px);
        opacity: 1;
        visibility: visible;
    }

    45% {
        transform: translateY(0px);
        opacity: 1;
        visibility: visible;
        width: 300px;
        height: 0px;
    }

    50%,
    100% {
        transform: translateY(0px);
        opacity: 1;
        visibility: visible;
        width: 300px;
        height: 50px;
    }
}

.name {
    position: absolute;
    padding: 0px 40px;
    bottom: -20px;
    border: 3px solid var(--color-black);
}

.date__of__birth span,
.name span {
    font-weight: bold;
    margin: 0px 40px;
}

.date__of__birth span {
    font-size: 1.2rem;
}

.name span {
    font-size: 1.5rem;
}

.right .box__account {
    position: relative;
    transform: translateY(700px);
}

.started .right .box__account {
    animation: topBoxImage 8s 7s forwards ease-in;
}

@keyframes topBoxImage {
    to {
        transform: translateY(0);
    }
}

.content .right .image {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 6px solid var(--color-black);
    background-color: #fff;
}

.content .right .image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.content .right .image img.active {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scalePop {
    0% {
        transform: scale(0);
    }

    10% {
        transform: scale(1.3);
    }

    20% {
        transform: scale(0.7);
    }

    30%,
    100% {
        transform: scale(1);
    }

}

@keyframes scaleHeartLetter {
    0% {
        transform: scale(0);
    }

    30% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}


.fa-heart {
    color: var(--color-heart);
    filter: drop-shadow(0 0 3px var(--color-heart));
    animation: scaleHeart 1s infinite linear;
}


@keyframes scaleHeart {
    50% {
        transform: scale(1.2);
    }
}

.right .balloon_one {
    position: absolute;
    top: -70px;
    left: -210px;
    animation: balloon1 2s infinite linear;
    transform: rotate(-20deg);
}

@keyframes balloon1 {

    0%,
    50%,
    100% {
        transform-origin: bottom right;
        transform: rotate(0deg);
    }

    25% {
        transform-origin: bottom right;
        transform: rotate(5deg);
    }

    75% {
        transform-origin: bottom right;
        transform: rotate(-5deg);
    }
}

.right .balloon_two {
    position: absolute;
    top: 25px;
    right: -150px;
    z-index: -1;
    transform: rotate(20deg);
    animation: balloon2 2s infinite linear;
}

@keyframes balloon2 {

    0%,
    50%,
    100% {
        transform-origin: bottom left;
        transform: rotate(10deg);
    }

    25% {
        transform-origin: bottom left;
        transform: rotate(7deg);
    }

    75% {
        transform-origin: bottom left;
        transform: rotate(13deg);
    }
}

.decorate_star {
    position: absolute;
    transform: scale(0);
    background-color: var(--color-black);
    clip-path: polygon(0 50%, 35% 35%, 50% 0, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%);
}

.started .decorate_star {
    animation: scalePop 3s var(--t) forwards,
        scaleStar 2s 16s infinite ease-in-out;
}

.decorate_star.star1 {
    width: 20px;
    height: 20px;
    top: 75px;
    left: 300px;
}

.decorate_star.star2 {
    width: 15px;
    height: 20px;
    top: 35px;
    right: 360px;
}

.decorate_star.star3 {
    width: 14px;
    height: 14px;
    top: 290px;
    left: 630px;
}

.decorate_star.star4 {
    width: 18px;
    height: 18px;
    bottom: 60px;
    left: 35px;
}

.decorate_star.star5 {
    width: 16px;
    height: 18px;
    bottom: 140px;
    left: 500px;
}

@keyframes scaleStar {
    25% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.1);
    }
}

.decorate_bottom {
    position: absolute;
    right: 0;
    bottom: -10px;
}

.decorate_flower--one {
    position: absolute;
    top: 250px;
    left: 50px;
    transform: scale(0);
}

.started .decorate_flower--one {
    animation: scalePop 3s var(--t) forwards ease-in-out;
}

.decorate_flower--two {
    position: absolute;
    top: 225px;
    left: 540px;
    transform: scale(0);
}

.started .decorate_flower--two {
    animation: scalePop 3s var(--t) forwards ease-in-out;
}

.decorate_flower--three {
    position: absolute;
    top: 150px;
    right: 235px;
    transform: scale(0);
}

.started .decorate_flower--three {
    animation: scalePop 3s var(--t) forwards ease-in-out;
}

.funny_icon {
    position: absolute;
    bottom: 180px;
    left: 555px;
    transform: scale(0);
}

.started .funny_icon {
    animation: scalePop 3s 15s forwards ease-in-out;
}


#fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 150;
    display: none;
}

.box__letter {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .5);
    width: 100%;
    height: 100%;
    z-index: 200;
    display: none;
}

.box__letter .letter__border {
    position: absolute;
    width: 65vw;
    height: 520px;
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(255, 255, 255, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    border: 2px solid var(--color-border);
    background-image:
        linear-gradient(45deg, var(--color-border) 25%, transparent 25%),
        linear-gradient(-45deg, var(--color-border) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--color-border) 75%),
        linear-gradient(-45deg, transparent 75%, var(--color-border) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px 10px, 10px 0;
}

.letter__border .close {
    position: absolute;
    right: -10px;
    top: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    cursor: pointer;
}

.letter__border .letter {
    width: 100%;
    height: 100%;
    background-color: #fffef0;
    background-image: radial-gradient(#d4af37 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e0d5a0;
}

.letter::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 4px double var(--color-border);
    border-radius: 5px;
    pointer-events: none;
}

.letter__border .letter .title__letter {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-weight: bold;
    font-size: 2.8rem;
    color: #8b4513;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

/* Wax Seal Decor */
.title__letter::after {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background: #a52a2a;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), inset 0 0 5px rgba(0, 0, 0, 0.5);
    border: 2px solid #800000;
}

.title__letter .fa-solid {
    margin-left: 5px;
    font-size: 1.3rem;
}

.letter__border .letter .content__letter {
    position: relative;
    width: 100%;
    height: calc(100% - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px 20px 40px 20px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.letter__border .letter .content__letter::-webkit-scrollbar {
    display: none;
}

@keyframes opacityHeart {
    to {
        opacity: 1;
    }
}

.content__letter .love__img {
    opacity: 0;
    margin-bottom: 5px;
    /* Reduced from 10px */
}

.love__img.animationOp {
    animation: opacityHeart 1s 1s forwards;
}

@keyframes opacityHeart {
    to {
        opacity: 1;
    }
}

.text__letter {
    width: 100%;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #444;
    text-align: justify;
    padding: 5px;
}

#mewmew {
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    z-index: 100;
}

#mewmew.animationOp {
    animation: opacityHeart 1s 1s forwards;
}

.content .right .day,
.content .right .month {
    font-family: "Titan One", sans-serif;
    color: var(--color-white);
    text-shadow: 2px 4px 0 var(--color-black);
    font-weight: bold;
    font-size: 2.5rem;
    position: absolute;
    -webkit-text-stroke: 0.5px var(--color-black);
    display: none;
}

.content .right .day {
    left: 18px;
}

.content .right .month {
    right: 30px;
}

/* responsive */
@media screen and (max-width:768px) {

    #wrapper .content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 20px;
        min-height: 100vh;
    }

    #wrapper .content .left {
        position: unset;
    }

    #wrapper .content .left,
    #wrapper .content .right {
        width: 100% !important;
    }

    #wrapper .content .left .title {
        font-size: 2rem;
    }

    .happy span:nth-child(1) {
        animation-delay: 1s;
    }

    .happy span:nth-child(2) {
        animation-delay: 1.2s;
    }

    .happy span:nth-child(3) {
        animation-delay: 1.4s;
    }

    .happy span:nth-child(4) {
        animation-delay: 1.6s;
    }

    .happy span:nth-child(5) {
        animation-delay: 1.8s;
    }

    .birthday span:nth-child(1) {
        animation-delay: 2s;
    }

    .birthday span:nth-child(2) {
        animation-delay: 2.2s;
    }

    .birthday span:nth-child(3) {
        animation-delay: 2.4s;
    }

    .birthday span:nth-child(4) {
        animation-delay: 2.6s;
    }

    .birthday span:nth-child(5) {
        animation-delay: 2.8s;
    }

    .birthday span:nth-child(6) {
        animation-delay: 3s;
    }

    .birthday span:nth-child(7) {
        animation-delay: 3.2s;
    }

    .birthday span:nth-child(8) {
        animation-delay: 3.4s;
    }

    .title .hat {
        animation-delay: 3.5s;
        right: -50px;
    }

    .title .hat img {
        width: 85px;
    }

    .date__of__birth,
    .balloon_one,
    .balloon_two {
        display: none;
    }

    #wrapper .content {
        display: grid;
        grid-template-columns: 100%;
        grid-template-areas:
            "left"
            "right"
            "btn";
        justify-content: center;
        align-items: center;
        padding: 20px 0 60px 0;
        min-height: 100vh;
    }

    .btn {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        z-index: 100;
        margin-top: 20px;
    }

    #wrapper .content .right {
        margin-top: 20px;
    }

    .right .box__account {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateY(0);
        animation: none !important;
    }

    .right .box__account .image {
        width: 250px;
        height: 250px;
        transform: scale(0);
        animation: scaleHeartLetter 1s 1s forwards !important;
    }

    .right .box__account .name {
        padding: 10px 20px;
        transform: scale(0);
        animation: scaleHeartLetter 1s 1.5s forwards !important;
        width: 280px;
        margin-top: -20px;
        z-index: 10;
    }

    .right .box__account .name span {
        font-size: 1rem;
        margin: 0 20px;
    }


    .content .right .day,
    .content .right .month {
        display: block;
        /* transform: scale(0); */
        outline: none;
    }

    .decorate_star.star1 {
        top: 125px;
        left: 375px;
        animation-delay: 5.2s;
    }

    .decorate_star.star2 {
        top: 80px;
        right: 360px;
        animation-delay: 5.2s;
    }

    .decorate_star.star3 {
        top: 255px;
        left: 300px;
        animation-delay: 5.2s;
    }

    .decorate_star.star4 {
        animation-delay: 5.2s;
    }

    .decorate_star.star5 {
        bottom: 140px;
        left: 350px;
        animation-delay: 5.2s;
    }

    .decorate_flower--one {
        animation-delay: 5.2s;
    }

    .decorate_flower--two {
        display: none;
    }

    .decorate_flower--three {
        top: 45px;
        animation-delay: 5.2s;
    }

    .left .btn {
        animation-delay: 10s !important;
    }

    /* Make Happy Birthday appear first on mobile */
    .started .title .happy span:nth-child(1) {
        animation-delay: 0.5s !important;
    }

    .started .title .happy span:nth-child(2) {
        animation-delay: 0.7s !important;
    }

    .started .title .happy span:nth-child(3) {
        animation-delay: 0.9s !important;
    }

    .started .title .happy span:nth-child(4) {
        animation-delay: 1.1s !important;
    }

    .started .title .happy span:nth-child(5) {
        animation-delay: 1.3s !important;
    }

    .started .title .birthday span:nth-child(1) {
        animation-delay: 1.7s !important;
    }

    .started .title .birthday span:nth-child(2) {
        animation-delay: 1.9s !important;
    }

    .started .title .birthday span:nth-child(3) {
        animation-delay: 2.1s !important;
    }

    .started .title .birthday span:nth-child(4) {
        animation-delay: 2.3s !important;
    }

    .started .title .birthday span:nth-child(5) {
        animation-delay: 2.5s !important;
    }

    .started .title .birthday span:nth-child(6) {
        animation-delay: 2.7s !important;
    }

    .started .title .birthday span:nth-child(7) {
        animation-delay: 2.9s !important;
    }

    .started .title .birthday span:nth-child(8) {
        animation-delay: 3.1s !important;
    }

    .started .right .box__account {
        animation-delay: 4s !important;
    }

    .started .right .box__account .image {
        animation-delay: 5s !important;
    }

    .started .right .box__account .name {
        animation-delay: 5.5s !important;
    }

    .funny_icon {
        display: none;
    }

    .box__letter .letter__border {
        width: 92%;
        height: 80vh;
        max-height: 600px;
        padding: 12px;
    }

    .letter__border .letter {
        padding: 15px;
        overflow-y: auto;
        position: relative;
    }

    .letter__border .letter .title__letter {
        font-size: 2rem;
        margin-bottom: 35px;
    }

    .letter__border .letter .content__letter {
        padding: 0 10px 20px 10px;
        height: auto;
    }

    .text__letter {
        margin-top: 10px !important;
        font-size: 1.1rem !important;
    }

    .content__letter .love__img {
        display: none;
    }

    #mewmew {
        bottom: 30px;
        right: 30px;
        width: 80px;
    }

    .jumping-image {
        width: 80px;
        height: 80px;
    }

    #btn__start {
        font-size: 1.1rem;
        padding: 10px 20px;
    }

    .jumping-image {
        width: 100px;
        height: 100px;
    }

    #btn__start {
        font-size: 1.1rem;
        padding: 8px 20px;
    }
    .y-wrap{
    position: relative;
    display: inline-block;
}

.letter-y{
    position: relative;
}

.hat{
    position: absolute;
    top: -40px;
    left: 5px;
    width: 60px;
    height: auto;
    pointer-events: none;
}
}