@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;
}
:root{
    --color-pink: #fdf5f6; /* Soft Blush */
    --color-bg2: #fbe6e8;
    --color-bg3: #fae1e6;
    --color-white: #ffffff;
    --color-black: #4a3b3c; /* Soft dark brown/rose */
    --color-text-pink: #d98a96; /* Rose Gold/Pink */
    --color-heart: #ff758c; 
    --color-bg-letter: rgba(255, 255, 255, 0.4); /* Glassmorphism */
    --color-border: rgba(255, 255, 255, 0.7);
    --shadow-soft: 0 10px 30px rgba(217, 138, 150, 0.2);
    --shadow-hover: 0 20px 40px rgba(217, 138, 150, 0.4);
}
html{
    height: 100%;
    font-family: 'Outfit', sans-serif;
}
body {
    position: relative;
    font-size: 16px;
    margin: 0;
    padding: 0;
    height: 100%;
    /* Holographic pearl animated gradient */
    background: linear-gradient(-45deg, #fdfbfb, #fff0f3, #f3e5f5, #e0c3fc, #ffecd2);
    background-size: 400% 400%;
    animation: minimalInsaneBG 15s ease infinite;
    color: var(--color-black);
    font-family: 'Outfit', sans-serif;
}

@keyframes minimalInsaneBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#wrapper{
    position: relative;
    background-color: transparent;
    background: rgba(255, 255, 255, 0.15); /* Premium glass overlay */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 100vh; /* Make wrapper full screen to allow scrolling below */
    z-index: 1;
    overflow: hidden;
}

/* ---- Crazy "Happy 19" Background Text ---- */
.bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.85;
    user-select: none;
    animation: bgTextFloat 6s ease-in-out infinite;
}

.bg-text-happy {
    font-family: 'Dancing Script', cursive;
    font-size: 18vw;
    font-weight: 700;
    background: linear-gradient(
        135deg,
        rgba(255, 117, 140, 0.35),
        rgba(224, 195, 252, 0.4),
        rgba(255, 236, 210, 0.35),
        rgba(255, 117, 140, 0.5)
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bgTextShimmer 8s ease infinite;
    filter: drop-shadow(0 0 40px rgba(255, 117, 140, 0.25));
}

.bg-text-19 {
    font-family: 'Playfair Display', serif;
    font-size: 30vw;
    font-weight: 700;
    background: linear-gradient(
        -45deg,
        rgba(255, 117, 140, 0.3),
        rgba(224, 195, 252, 0.4),
        rgba(255, 158, 181, 0.45),
        rgba(255, 236, 210, 0.35)
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bgTextShimmer 6s ease infinite reverse;
    filter: drop-shadow(0 0 60px rgba(224, 195, 252, 0.3));
    letter-spacing: -0.02em;
}

@keyframes bgTextShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bgTextFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -52%) scale(1.02); }
}
.flag__birthday{
    display: flex;
    justify-content: space-between;
    transform: translateY(-200px);
    animation: translateYFlag 0.4s 0.5s forwards;
}
@keyframes translateYFlag{
    to{
        transform: translateY(-10px);
    }
}
.flag__birthday .flag__left{
    transform: rotate(-10deg) translate(-20px,30px);
}
.flag__birthday .flag__right{
    transform: rotate(10deg) translate(20px,30px) scaleX(-1);
}
.content{
    width: 100%;
    position: relative;
    display: flex;
    padding-top: 3rem;
}
.content .left, .content .right{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.content .left{
    width: 40%;
}
.content .right{
    width: 60%;
}
.left .btn{
    transform: scale(0);
    animation: scaleCricle 0.5s 4s forwards ease-in-out;
}
#btn__letter{
    position: relative;
    margin-top: 30px;
    background-color: var(--color-text-pink);
    outline: none;
    padding: 5px 15px;
    font-size: 1rem;
    border-radius: 50px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transform: scale(1);
    transition: all .5s ease-in-out;
    box-shadow: var(--shadow-soft);
    animation: heartbeat 2s infinite ease-in-out;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.05); }
    20% { transform: scale(1); }
    30% { transform: scale(1.05); }
    40% { transform: scale(1); }
}
#btn__letter:active{
    transform: scale(0.7);
}
#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: "Playfair Display", serif;
    font-size: 3.5rem;
    flex-direction: column;
    perspective: 1000px;
}
.title .happy, .title .birthday{
    position: relative;
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.8), 
                -2px -2px 10px rgba(255, 255, 255, 0.8);
    font-weight: bold;
    display: flex;
    justify-content: center;
}
.title .happy{
    color: var(--color-black);
}
.title .happy span, .title .birthday span{
    transform: translateY(50px);
    opacity: 0;
    visibility: hidden;
    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: 45px;
    top: -350px;
    transform: rotate(-40deg);
    z-index: -1;
    animation: topHat 1s 1.75s 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: "Outfit", sans-serif;
    
}
.date__of__birth{
    border: 3px solid var(--color-black);
    position: relative;
    transform: translateY(-100px);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    width: 0px;
    animation: dateOfBirth 1.25s 2.25s 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 20px;
    bottom: -20px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    background-color: var(--color-bg2);
    font-family: 'Playfair Display', serif;
    box-shadow: var(--shadow-soft);
}
.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.7rem;
}
.right .box__account{
    position: relative;
    transform: translateY(700px);
    animation: topBoxImage 2s 1.75s forwards ease-in;
}
@keyframes topBoxImage{
    to{
        transform: translateY(0);
    }
}
.content .right .image{
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 30px; /* Modern rounded corners */
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 8px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-soft);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Framer-like spring */
    backdrop-filter: blur(10px);
}
.content .right .image:hover{
    transform: translateY(-20px) scale(1.05) rotate(2deg);
    box-shadow: var(--shadow-hover);
    border: 8px solid rgba(255, 255, 255, 0.8);
}
.content .right .image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Ensure face is visible */
    transition: transform 0.6s ease;
}
.content .right .image:hover img{
    transform: scale(1.1);
}
.cricle{
    position: absolute;
    top: 20px;
    right: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0);
    animation: scaleCricle 0.75s 3.75s forwards ease-in-out;
}
@keyframes scaleCricle {
    0%{
        transform: scale(0);
    }
    10%{
        transform: scale(1.3);
    }
    20%{
        transform: scale(0.7);
    }
    30%,100%{
        transform: scale(1);
    }

}
.text__cricle{
    width: 100px;
    height: 100px;
    background-color: var(--color-text-pink);
    border-radius: 50%;
    border: 5px solid var(--color-black);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotateCricle 5s linear infinite;
}
@keyframes rotateCricle{
    to{
        transform: rotate(360deg);
    }
}
.text__cricle span{
    top: 0%;
    left: 50%;
    position: absolute;
    color: var(--color-black);
    transform: rotate(calc(var(--i) * 24deg));
    transform-origin: 0 45px;
    font-family: "Outfit", sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.7rem;
}
.fa-heart{
    color: var(--color-heart);
    filter: drop-shadow(0 0 3px var(--color-heart));
    animation: scaleHeart 1s infinite linear;
}
.cricle .fa-heart{
    position: absolute;
    transform: scale(0.85);
}
@keyframes scaleHeart{
    50%{
        transform: scale(1.2);
    }
}
.right .balloon_one{
    position: absolute;
    top: -70px;
    left: -70px;
    animation: balloon1 2s infinite linear;
}
@keyframes balloon1{
    0%, 50%,100%{
        transform-origin: bottom right;
        transform: rotate(0deg);
    }
    25%{
        transform-origin: bottom right;
        transform: rotate(3deg);
    }
    75%{
        transform-origin: bottom right;
        transform: rotate(-3deg);
    }
}
.right .balloon_two{
    position: absolute;
    top: 170px;
    right: -65px;
    z-index: -1;
    transform: rotate(10deg);
    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%);
    animation: scaleCricle 0.75s var(--t) forwards, 
            scaleStar 0.5s 4s 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);
    animation: scaleCricle 0.75s var(--t) forwards ease-in-out;
}
.decorate_flower--two{
    position: absolute;
    top: 225px;
    left: 540px;
    transform: scale(0);
    animation: scaleCricle 0.75s var(--t) forwards ease-in-out;
}
.decorate_flower--three{
    position: absolute;
    top: 150px;
    right: 235px;
    transform: scale(0);
    animation: scaleCricle 0.75s var(--t) forwards ease-in-out;
}
.smiley__icon{
    position: absolute;
    bottom: 180px;
    left: 600px;
    transform: scale(0);
    animation: scaleCricle 0.75s 3.75s forwards ease-in-out;
}


.box__letter{
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,.6);
    backdrop-filter: blur(20px); /* Cinematic blur */
    width: 100%;
    height: 100%;
    z-index: 10;
    display: none;
}
.box__letter .letter__border{
    position: absolute;
    width: 55vw;
    height: 450px;
    background-color: var(--color-bg-letter);
    backdrop-filter: blur(15px);
    border: 1px solid var(--color-border);
    border-radius: 27px;
    padding: 17px;
    box-shadow: var(--shadow-soft);
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(0.8);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Cinematic scale */
    display: none;
}
.box__letter .letter__border.active{
    display: block;
    transform: translate(-50%,-50%) scale(1);
    opacity: 1;
}
.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: transparent;
    border-radius: 10px;
    padding-top: 15px;
}
.letter__border .letter .title__letter{
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 2.8rem;
    color: var(--color-black);
}
.title__letter .fa-solid{
    margin-left: 5px;
    font-size: 1.3rem;
}
.letter__border .letter .content__letter{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    padding-top: 1.5rem;
    padding-bottom: 70px;
}
.letter__border .letter .content__letter .left{
    position: relative;
    width: 50%;
    height: 100%;
    padding: 1.7rem;
    border-right: 3px solid var(--color-border);
}
.content__letter .left #heart__letter{
    opacity: 0;
    width: 100%;
}
#heart__letter.animationOp{
    animation: opacityHeart 1s 1s forwards;
}
@keyframes opacityHeart{
    to{
        opacity: 1;
    }
}
.content__letter .left .heart{
    position: absolute;
    opacity: 0;
}
.content__letter .left .heart.animation{
    animation: scaleHeartLetter 1s var(--t) infinite ease-in-out;
}
@keyframes scaleHeartLetter{
    0%{
        opacity: 1;
        transform: scale(0);
    }
    10%{
        opacity: 1;
        transform: scale(1.3);
    }
    20%{
        opacity: 1;
        transform: scale(0.7);
    }
    30%,100%{
        opacity: 1;
        transform: scale(1);
    }
    
}
.content__letter .left .heart_1{
    top: 90px;
    left: 30px;
}
.content__letter .left .heart_2{
    top: 20px;
    right: 70px;
}
.content__letter .left .heart_3{
    bottom: 50px;
    left: 145px;
}
.content__letter .left .heart_4{
    top: 140px;
    right: 35px;
}
.content__letter .right{
    position: relative;
    width: 50%;
}
.content__letter .right .love__img{
    opacity: 0;
    position: absolute;
    right: 20px;
    top: -100px;
}
.love__img.animationOp{
    animation: opacityHeart 1s 1s forwards;
}
.content__letter .right .text__letter{
    margin-top: 60px;
    padding: 20px 15px 10px 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--color-black);
}
.content__letter .right #mewmew{
    position: absolute;
    bottom: 0;
    right: 0;
    opacity: 0;
}
#mewmew.animationOp{
    animation: opacityHeart 1s 1s forwards;
}


#copy {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
}

#copy a {
    text-decoration: none;
    color: #191919d7;
}

#copy p {
    color: #4275ff;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
}

/* --- Timeline Gallery --- */
#photo-timeline {
    position: relative;
    padding: 100px 20px;
    background: linear-gradient(to bottom, transparent, rgba(15, 10, 20, 0.95) 15%, #0a060d);
    overflow: hidden;
}

.timeline-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #ff9eb5;
    margin-bottom: 80px;
    text-shadow: 0 0 15px rgba(255, 117, 140, 0.8), 0 0 30px rgba(255, 117, 140, 0.4);
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-bitmoji {
    position: absolute;
    top: 0;
    left: 50%;
    /* Transform handled by JS */
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid var(--color-white);
    background-color: var(--color-bg2);
    z-index: 5;
    overflow: hidden;
    /* 3D styling for bitmoji */
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.5),
        inset 0 -5px 15px rgba(0,0,0,0.3),
        inset 0 5px 15px rgba(255,255,255,0.9),
        0 0 25px rgba(255, 117, 140, 0.9);
    transform-style: preserve-3d;
    perspective: 500px;
}

.timeline-bitmoji img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Center vertical line (Narrow Loose Thread) */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 60px;
    background: url("data:image/svg+xml,%3Csvg width='60' height='740' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 30 0 C 12 70, 0 115, 0 185 C 0 255, 12 300, 30 370 C 48 440, 60 485, 60 555 C 60 625, 48 670, 30 740' stroke='rgba(255,255,255,0.6)' stroke-width='4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") repeat-y;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -30px;
    z-index: 0;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12.5px;
    background-color: var(--color-bg2);
    border: 4px solid var(--color-text-pink);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px rgba(255, 117, 140, 0.8);
}

.timeline-item.left {
    left: 0;
    flex-direction: row-reverse;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.left::after {
    right: -12.5px;
}

.timeline-item.right::after {
    left: -12.5px;
}

.timeline-photo {
    width: 70%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 5px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    transition: transform 0.5s ease;
}

.timeline-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.timeline-photo:hover {
    border-color: rgba(255,255,255,0.8);
    box-shadow: 0 25px 50px rgba(255,117,140,0.5);
    z-index: 10;
}

.timeline-text {
    width: 30%;
    padding: 20px 30px;
    color: var(--color-white);
    text-align: left;
}

.timeline-item.left .timeline-text {
    text-align: right;
}

.timeline-text h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 117, 140, 0.9), 0 0 20px rgba(255, 117, 140, 0.7), 0 0 30px rgba(255, 117, 140, 0.5);
    margin-bottom: 10px;
}

.timeline-text p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: #ffd700;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Responsive Timeline */
@media screen and (max-width: 768px) {
    .timeline-container::after {
        left: 31px;
        width: 40px;
        margin-left: -20px;
        background: url("data:image/svg+xml,%3Csvg width='40' height='740' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 20 0 C 8 70, 0 115, 0 185 C 0 255, 8 300, 20 370 C 32 440, 40 485, 40 555 C 40 625, 32 670, 20 740' stroke='rgba(255,255,255,0.6)' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") repeat-y;
    }
    
    .timeline-bitmoji {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        flex-direction: column !important;
        align-items: flex-start;
    }
    
    .timeline-item.left, .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left::after, .timeline-item.right::after {
        left: 18px;
        top: 30%;
    }
    
    .timeline-photo {
        width: 100%;
        height: 350px;
    }
    
    .timeline-text {
        width: 100%;
        padding: 20px 0;
        text-align: left !important;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-white);
    font-family: 'Outfit', sans-serif;
    animation: pulseBounce 2s infinite ease-in-out;
    z-index: 5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.scroll-indicator i {
    font-size: 2rem;
    margin-top: 10px;
}

@keyframes pulseBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
}





@media screen and (max-width: 658px)   {

    .flag__birthday .flag__left {
        transform: rotate(-10deg) translate(-119px,3px);
    }

    .flag__birthday .flag__right {
        transform: rotate(10deg) translate(-106px,39px) scaleX(-1);
    }

    .content {
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 25px;
        align-items: center;
        padding-top: 2rem;
    }

    .title {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        font-family: "Titan One", sans-serif;
        font-size: 1.5rem;
        letter-spacing: 8px;
        flex-direction: column;
        perspective: 1000px;
    }

    #btn__letter {
        position: relative;
        margin-top: 17px;
        width: 209px;
        background-color: var(--color-text-pink);
        outline: none;
        padding: 6px 4px;
        font-size: 1rem;
        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;
        /* transform: scale(1); */
        transition: all .5s ease-in-out;
    }

    .cricle {
        position: absolute;
        top: 10px;
        right: -54px;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: scale(0);
        animation: scaleCricle 3s 15s forwards ease-in-out;
    }

    .title .hat {
        position: absolute;
        right: -98px;
        top: -51px !important;
        transform: rotate(-40deg);
        z-index: -1;
        animation: topHat 4s 7s forwards ease;
    }

    .box__letter .letter__border {
        position: absolute;
        width: 90vw;
        height: 315px;
        background-color: var(--color-white);
        border-radius: 27px;
        padding: 17px;
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        display: none;
    }

    .letter__border .letter {
        width: 100%;
        height: 100%;
        background-color: var(--color-bg-letter);
        border-radius: 10px;
        padding-top: 15px;
    }

    .letter__border .letter .title__letter {
        text-align: center;
        font-family: 'Dancing Script', cursive;
        font-weight: bold;
        font-size: 1.4rem;
    }

    .letter__border .letter .content__letter {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        padding-top: .7rem;
        padding-bottom: 70px;
    }

    .content__letter .right .text__letter {
        margin-top: -14px;
        padding: 20px 15px 10px 15px;
        font-family: 'Dancing Script', cursive;
        font-size: .8rem;
    }

    .content__letter .right .love__img {
        opacity: 0;
        position: absolute;
        right: 126px;
        top: 167px;
    }

    .love__img img {
 
            width: 84px;

    }

    .content .right .image {
        position: relative;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        overflow: hidden;
        display: flex;
        align-items: center;
        border: 6px solid var(--color-black);
    }

    .name {
        position: absolute;
        padding: 0px 3px;
        bottom: -6px;
        border: 3px solid var(--color-black);
    }

    .name span {
        font-size: 1rem;
    }

    .right .balloon_one {
        position: absolute;
        top: 10px;
        left: -77px;
        animation: balloon1 2s infinite linear;
    }

    .right .balloon_one img{
        width: 76px !important;
    }


}







.boxMail{
    position: fixed;
    background: rgb(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    opacity: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.3);
    visibility: hidden;
    transition: all 0.5s;
    z-index: 100000000;
}
.boxMail.active{
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.boxMail .boxMail-container{
    position: absolute;
    width: 750px;
    height: 550px;
    display: flex;
    margin: 0;
    transform: scale(0.9);
    -webkit-perspective: 2000px;
    perspective: 2000px;
    transition: all 0.5s;
}
.boxMail.active .boxMail-container{
    transform: scale(0.9) rotate(-5deg);
    filter: drop-shadow(0 0 10px #FF7882);
}
.boxMail.active .boxMail-container .card1{
    transform: translate(-187px, -250px) rotateY(-140deg);
}
.boxMail .boxMail-container .card1,
.boxMail .boxMail-container .card2{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid black;
}
.boxMail .boxMail-container .card1 {
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, #FF7882, #FF7882 63%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.boxMail-container .card1{
    z-index: 1;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transform-origin: left;
    transition: all 1s ease-in-out;
}
.boxMail .boxMail-container .card1 .userImg{
    position: relative;
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    cursor: pointer;
    margin-bottom: 20px;
}
.boxMail .boxMail-container .card1 .userImg img{
    position: absolute;
    object-fit: cover;
    width: calc(100%);
    height: calc(100%);
}
.boxMail .boxMail-container .card1 h3{
    font-family: 'Dancing Script', cursive;
    font-size: 40px;
    text-transform: uppercase;
    width: 80%;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 5px;
    transform: rotate(-5deg);
    text-shadow: 0 0 5px white,
                0 0 10px white;
}
.boxMail .boxMail-container .card2{
    position: relative;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, #e0e0e0, #ffffff 30%);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transform-origin: left;
    transition: all 1s;
}
.boxMail .boxMail-container .card2 .card2-content {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #FF7882;
    transition: all 1s;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: "Inter", serif;
    color: #fff;
}
.boxMail.active .boxMail-container .card2-content{
    transform: translate(20px, 20px);
    box-shadow: -1px -1px 5px rgb(0, 0, 0, 0.4);
}
.boxMail .boxMail-container .card2 h3{
    font-family: 'Dancing Script', cursive;
    padding: 20px 0px 10px 60px;
    opacity: 0;
    visibility: hidden;
    font-size: 25px;
    text-shadow: 0 0 8px #FF7882;
}
.boxMail.active .boxMail-container .card2 h3{
    animation: texth3 3s forwards;
    animation-delay: 1.5s;
    transition: 1s;
}
@keyframes texth3{
    0%{
        opacity: 1;
        visibility: visible;
        padding: 20px 0px 10px 60px;
    }
    100%{
        opacity: 1;
        visibility: visible;
        padding: 20px 0px 10px 152px; 
    }
}
.boxMail .boxMail-container .card2 h2{
    font-family: 'Dancing Script', cursive;
    padding: 0px 20px 20px 20px;
    text-indent: 20px;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0;
}
.boxMail.active .boxMail-container .card2 h2{
    animation: texth2 2s forwards;
    animation-delay: 2.5s;
    transition: 1s;
}
@keyframes texth2{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}
.boxMail .boxMail-container .card2 .card2-content .imageCute2{
    position: absolute;
    top: 5px;
    left: 20px;
    opacity: 0;
    transition: 1s;
}
.boxMail.active .boxMail-container .card2 .card2-content .imageCute2{
    animation: cute3 1s linear infinite,
                cute4 3s 1.5s forwards;
    animation-delay: 1.5s;
    transition: 1s;
}
@keyframes cute3{
    0%{
        opacity: 1;
        transform: rotate(0deg);
    }
    25%{
        opacity: 1;
        transform: rotate(5deg);
    }
    50%{
        opacity: 1;
        transform: rotate(0deg);
    }
    75%{
        opacity: 1;
        transform: rotate(-5deg);
    }
    100%{
        opacity: 1;
        transform: rotate(0deg);
    }
}
@keyframes cute4{
    0%{
        left: 20px;
    }
    100%{
        left: 100px;
    }
}
.boxMail .boxMail-container .card2 .card2-content .imageCute2 img{
    width: 40px;
}
.boxMail .fa-xmark{
    position: fixed;
    top: 0;
    right: 0;
    font-size: 30px;
    padding: 10px 25px;
    cursor: pointer;
    color: white;
    z-index: 10000000000000000;
}

/* Custom scrollbar for the letter */
.boxMail .boxMail-container .card2 .card2-content::-webkit-scrollbar {
    width: 6px;
}
.boxMail .boxMail-container .card2 .card2-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}
.boxMail .boxMail-container .card2 .card2-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.4);
    border-radius: 3px;
}
.boxMail .boxMail-container .card2 .card2-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.6);
}

/* Mobile responsiveness for the letter */
@media screen and (max-width: 768px) {
    .boxMail .boxMail-container {
        width: 95vw;
        height: 80vh;
        flex-direction: column;
    }
    .boxMail .boxMail-container .card1,
    .boxMail .boxMail-container .card2 {
        position: relative;
        width: 100%;
        height: 50%;
        top: auto;
        left: auto;
        transform: none;
    }
    .boxMail .boxMail-container .card1 {
        width: 100%;
        height: 35%;
    }
    .boxMail .boxMail-container .card2 {
        width: 100%;
        height: 65%;
    }
    .boxMail .boxMail-container:hover .card1 {
        transform: none;
    }
    .boxMail .boxMail-container:hover {
        transform: none;
        filter: none;
    }
    .boxMail .boxMail-container .card1 h3 {
        font-size: 24px;
    }
    .boxMail .boxMail-container .card2 h2 {
        font-size: 14px;
        padding: 0px 15px 15px 15px;
    }
    .boxMail .boxMail-container .card2 h3 {
        padding: 15px 0px 5px 20px;
        font-size: 20px;
        opacity: 1;
        visibility: visible;
    }
    .boxMail .boxMail-container .card2 h2 {
        opacity: 1;
    }
}