/*=========================================
        GOOGLE FONT
=========================================*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


/*=========================================
        RESET
=========================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    width:100%;
    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    overflow:hidden;

    background:
    radial-gradient(circle at top,
    #4a123f 0%,
    #25102d 35%,
    #120916 70%,
    #070707 100%);

    color:white;

    position:relative;

}


/*=========================================
        FLOATING SPARKLES
=========================================*/

.sparkles{

    position:absolute;

    width:100%;
    height:100%;

    overflow:hidden;

    pointer-events:none;

}

.sparkles span{

    position:absolute;

    width:6px;
    height:6px;

    background:white;

    border-radius:50%;

    opacity:.7;

    animation: sparkle 10s linear infinite;

}

.sparkles span:nth-child(1){

    top:10%;
    left:15%;

    animation-delay:0s;

}

.sparkles span:nth-child(2){

    top:22%;
    left:70%;

    animation-delay:2s;

}

.sparkles span:nth-child(3){

    top:75%;
    left:30%;

    animation-delay:4s;

}

.sparkles span:nth-child(4){

    top:60%;
    left:80%;

    animation-delay:1s;

}

.sparkles span:nth-child(5){

    top:82%;
    left:60%;

    animation-delay:5s;

}

.sparkles span:nth-child(6){

    top:38%;
    left:50%;

    animation-delay:3s;

}

.sparkles span:nth-child(7){

    top:15%;
    left:90%;

    animation-delay:6s;

}

.sparkles span:nth-child(8){

    top:90%;
    left:12%;

    animation-delay:2.5s;

}


/*=========================================
        MAIN CARD
=========================================*/

.container{

    width:90%;
    max-width:420px;

    text-align:center;

    padding:35px;

    border-radius:35px;

    background:rgba(255,255,255,.05);

    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.08);

    box-shadow:

    0 20px 45px rgba(0,0,0,.45),

    0 0 45px rgba(255,105,180,.08);

}
/*=========================================
        ENVELOPE
=========================================*/

.envelope{

    width:170px;
    height:115px;

    margin:0 auto 35px;

    position:relative;

    animation:float 3s ease-in-out infinite;

}

.letter{

    position:absolute;

    width:150px;
    height:95px;

    background:white;

    left:50%;
    top:10px;

    transform:translateX(-50%);

    border-radius:8px;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:38px;

    box-shadow:0 15px 25px rgba(0,0,0,.25);

    z-index:1;

}

.top{

    position:absolute;

    width:0;
    height:0;

    border-left:85px solid transparent;
    border-right:85px solid transparent;
    border-top:60px solid #ff9ecf;

    top:0;

    z-index:2;

}
.envelope.open .top{
    transform: rotateX(180deg);
    transform-origin: top;
    transition: 0.8s;
}

.envelope.open .letter{
    transform: translateY(-170px);
    transition: 1s;
}

/*=========================================
        TEXT
=========================================*/

h1{

    font-size:34px;

    line-height:1.3;

    color:#ffd5ec;

}

p{

    margin-top:18px;

    line-height:1.8;

    color:#f3dce8;

    font-size:15px;

}


/*=========================================
        BUTTON
=========================================*/

#openBtn{

    margin-top:30px;

    border:none;

    outline:none;

    cursor:pointer;

    padding:16px 36px;

    border-radius:40px;

    font-size:17px;

    font-weight:600;

    color:white;

    background:linear-gradient(
    45deg,
    #ff5ba7,
    #ff8ac5);

    box-shadow:

    0 10px 30px rgba(255,91,167,.35);

    transition:.35s;

}

#openBtn:hover{

    transform:translateY(-5px) scale(1.04);

    box-shadow:

    0 15px 40px rgba(255,91,167,.5);

}


/*=========================================
        ANIMATIONS
=========================================*/

 @keyframes float{

    0%{

        transform:translateY(0px);

    }

    50%{

        transform:translateY(-12px);

    }

    100%{

        transform:translateY(0px);

    }

}

 @keyframes sparkle{

    0%{

        opacity:.2;
        transform:scale(.5);

    }

    50%{

        opacity:1;
        transform:scale(1.3);

    }

    100%{

        opacity:.2;
        transform:scale(.5);

    }

}


/*=========================================
        MOBILE
=========================================*/

@media(max-width:480px){

h1{

font-size:28px;

}

p{

font-size:14px;

}

.envelope{

transform:scale(.9);

}

}
/*=========================================
        OVERLAY
=========================================*/

.overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.82);

    backdrop-filter:blur(8px);

    display:flex;

    justify-content:center;

    align-items:center;

    opacity:0;

    visibility:hidden;

    transition:.6s;

    z-index:999;

}

.overlay.show{

    opacity:1;

    visibility:visible;

}

/*=========================================
        BIG LETTER
=========================================*/

.big-letter{

    width:90%;

    max-width:420px;

    transform:scale(.7);

    transition:.6s;

}

.overlay.show .big-letter{

    transform:scale(1);

}

/*=========================================
        PAPER
=========================================*/

.paper-full{

    background:rgba(255,255,255,.97);

    color:#222;

    padding:28px 30px;

    border-radius:22px;

    text-align:center;

    backdrop-filter:blur(12px);

    box-shadow:
        0 20px 60px rgba(0,0,0,.35),
        0 0 35px rgba(255,105,180,.20);

}

.paper-full h2{

    color:#ff4f96;

    margin-bottom:14px;

    font-size:30px;

    font-weight:700;

    text-shadow:
        0 0 15px rgba(255,79,150,.25);

}

#typing{

   min-height:110px;

    font-size:17px;

    line-height:1.55;

    color:#2d2d2d;

    font-weight:500;

    letter-spacing:.2px;

    text-align:left;

    white-space:pre-line;

    text-shadow:
        0 0 1px rgba(255,255,255,.4);

}

/*=========================================
        SMALL LETTER
=========================================*/

.paper{

    width:100%;

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

}

.paper h2{

    font-size:18px;

    color:#ff5ca8;

}

.preview{

    margin-top:10px;

    font-size:13px;

    color:#666;

}
/*====================================
          BUTTERFLY
====================================*/

#butterflyScene{

    margin-top:25px;

    display:flex;
    justify-content:center;

}

#butterfly{

   width:170px;

opacity:0;

transform:
translateX(-180px)
translateY(60px)
scale(.2)
rotate(-40deg);

transition:1.8s cubic-bezier(.22,1,.36,1);
filter: drop-shadow(0 0 18px #ff7ab7);

}




#butterfly.show{

opacity:1;

transform:
translateX(0)
translateY(0)
scale(1)
rotate(0deg);

animation:
flyIn 2s forwards,
floatButterfly 3s ease-in-out infinite,
landing 2s ease-in-out forwards;
}

/* BODY */

#body{

    fill:#3f2a45;

}

#head{

    fill:#3f2a45;

}

/* WINGS */

#wingLT,
#wingLB,
#wingRT,
#wingRB{

    fill:url(#wingGradient);

    stroke:#ff4f96;

    stroke-width:3;

    filter:drop-shadow(0 0 12px #ff9ac9);

}

/* ANTENNA */

#antL,
#antR{

    fill:none;

    stroke:#333;

    stroke-width:2;

    stroke-linecap:round;

}
/*==============================
        WING ANIMATION
==============================*/

#wingLT{

    transform-origin:110px 110px;

    animation:leftWing 1.2s ease-in-out infinite;

}

#wingLB{

    transform-origin:110px 110px;

    animation:leftWing 1.2s ease-in-out infinite;

}

#wingRT{

    transform-origin:110px 110px;

    animation:rightWing 1.2s ease-in-out infinite;

}

#wingRB{

    transform-origin:110px 110px;

    animation:rightWing 1.2s ease-in-out infinite;

}

@keyframes leftWing{

0%{

transform:rotate(0deg);

}

50%{

transform:rotate(-18deg);

}

100%{

transform:rotate(0deg);

}

}

@keyframes rightWing{

0%{

transform:rotate(0deg);

}

50%{

transform:rotate(18deg);

}

100%{

transform:rotate(0deg);

}

}

/*==============================
      BUTTERFLY PREMIUM
==============================*/

.shine{

    fill:white;

    opacity:.35;

}

.dot{

    fill:#ffd6e8;

}



#wingLT,
#wingLB,
#wingRT,
#wingRB{

filter:
drop-shadow(0 0 12px #ff5ea9)
drop-shadow(0 0 22px #ffb8d8);

}
/*=========================
      SPARKLES
=========================*/

#sparkles{

position:absolute;

width:220px;

height:220px;

left:50%;

transform:translateX(-50%);

pointer-events:none;

}

#sparkles span{

position:absolute;

width:8px;

height:8px;

background:white;

border-radius:50%;

box-shadow:

0 0 8px white,

0 0 18px #ff8cc7;

opacity:0;

animation:spark 2s infinite;

}

#sparkles span:nth-child(1){

top:20px;
left:40px;
animation-delay:.1s;

}

#sparkles span:nth-child(2){

top:40px;
left:170px;
animation-delay:.5s;

}

#sparkles span:nth-child(3){

top:90px;
left:20px;
animation-delay:.8s;

}

#sparkles span:nth-child(4){

top:140px;
left:180px;
animation-delay:1.2s;

}

#sparkles span:nth-child(5){

top:60px;
left:90px;
animation-delay:1.5s;

}

#sparkles span:nth-child(6){

top:160px;
left:70px;
animation-delay:1.8s;

}

#sparkles span:nth-child(7){

top:100px;
left:190px;
animation-delay:2s;

}

#sparkles span:nth-child(8){

top:10px;
left:120px;
animation-delay:2.3s;

}

@keyframes spark{

0%{

opacity:0;

transform:scale(.2);

}

50%{

opacity:1;

transform:scale(1.4);

}

100%{

opacity:0;

transform:scale(.2);

}

}
/*=========================
      PINK PARTICLES
=========================*/

#particles{

position:absolute;

width:220px;

height:220px;

left:50%;

transform:translateX(-50%);

pointer-events:none;

}

#particles span{

position:absolute;

width:10px;

height:10px;

border-radius:50%;

background:#ff78b5;

opacity:0;

animation:particleFloat 3s infinite;

filter:blur(.5px);

}

#particles span:nth-child(1){left:40px;top:170px;animation-delay:.2s;}
#particles span:nth-child(2){left:70px;top:180px;animation-delay:.8s;}
#particles span:nth-child(3){left:100px;top:160px;animation-delay:1.3s;}
#particles span:nth-child(4){left:130px;top:185px;animation-delay:1.9s;}
#particles span:nth-child(5){left:160px;top:175px;animation-delay:2.5s;}

@keyframes particleFloat{

0%{

opacity:0;

transform: translateY(0) scale(.3);

}

20%{

opacity:1;

}

100%{

opacity:0;

transform: translateY(-120px) scale(1.2);

}

}
@keyframes appear{

0%{
    opacity:0;
    transform:scale(.2) rotate(-15deg);
}

70%{
    opacity:1;
    transform:scale(1.1) rotate(4deg);
}

100%{
    opacity:1;
    transform:scale(1) rotate(0deg);
}

}

@keyframes flyIn{

0%{

transform: translateX(-180px) translateY(60px) rotate(-40deg) scale(.2);

}

35%{

transform: translateX(-60px) translateY(-20px) rotate(-10deg) scale(.7);

}

70%{

transform: translateX(15px) translateY(8px) rotate(4deg) scale(1.05);

}

100%{

transform: translateX(0) translateY(0) rotate(0deg) scale(1);

}
}
/*==============================
      FAIRY DUST
==============================*/

#trail{

position:absolute;

width:220px;

height:220px;

left:50%;

transform:translateX(-50%);

pointer-events:none;

}

#trail span{

position:absolute;

width:6px;

height:6px;

border-radius:50%;

background:#ffd6f1;

box-shadow:
0 0 10px #ff8cc8;

animation:dust 2.5s infinite;

}

#trail span:nth-child(1){left:60px;top:120px;animation-delay:.1s;}
#trail span:nth-child(2){left:80px;top:135px;animation-delay:.4s;}
#trail span:nth-child(3){left:100px;top:150px;animation-delay:.7s;}
#trail span:nth-child(4){left:120px;top:130px;animation-delay:1s;}
#trail span:nth-child(5){left:140px;top:145px;animation-delay:1.3s;}
#trail span:nth-child(6){left:160px;top:125px;animation-delay:1.6s;}

@keyframes dust{

0%{
    opacity:0;
    transform: scale(.2);
}

40%{
    opacity:1;
}

100%{
    opacity:0;
    transform: translateY(-35px) scale(1.4);
}

}

/*=========================================
      BUTTERFLY LANDING
=========================================*/

#butterfly.show{

    animation:
    flyIn 2s forwards,
    floatButterfly 3s ease-in-out infinite 2s,
    landing 2s ease-in-out forwards;

}

@keyframes landing{

0%{

transform:
translateX(-180px)
translateY(60px)
rotate(-35deg)
scale(.25);

}

35%{

transform:
translateX(-90px)
translateY(-20px)
rotate(-12deg)
scale(.6);

}

70%{

transform:
translateX(15px)
translateY(10px)
rotate(5deg)
scale(1.08);

}

85%{

transform:
translateX(0)
translateY(-8px)
rotate(-2deg)
scale(1);

}

100%{

transform:
translateX(0)
translateY(0)
rotate(0deg)
scale(1);

}

}

/*=========================================
      BUTTERFLY BREATHING
=========================================*/

#body,
#head{

    animation:breath 2.8s ease-in-out infinite;

}

@keyframes breath{

0%{

transform:scale(1);

}

50%{

transform:scale(1.04);

}

100%{

transform:scale(1);

}

}

/*=========================================
          FALLING PETALS
=========================================*/

#petals{

position:absolute;

left:50%;

top:250px;

width:220px;

height:260px;

transform:translateX(-50%);

pointer-events:none;

}

#petals span{

position:absolute;

width:10px;

height:16px;

background:#ffc6df;

border-radius:60% 60% 60% 60%;

opacity:.85;

box-shadow:0 0 10px #ff8bc8;

animation:petalFall linear infinite;

}

#petals span:nth-child(1){

left:20px;

animation-duration:5s;

animation-delay:.2s;

}

#petals span:nth-child(2){

left:55px;

animation-duration:6s;

animation-delay:1s;

}

#petals span:nth-child(3){

left:90px;

animation-duration:5.4s;

animation-delay:2s;

}

#petals span:nth-child(4){

left:120px;

animation-duration:6.5s;

animation-delay:1.4s;

}

#petals span:nth-child(5){

left:150px;

animation-duration:5.8s;

animation-delay:.7s;

}

#petals span:nth-child(6){

left:180px;

animation-duration:6.2s;

animation-delay:2.2s;

}

#petals span:nth-child(7){

left:70px;

animation-duration:5.5s;

animation-delay:3s;

}

#petals span:nth-child(8){

left:135px;

animation-duration:6.4s;

animation-delay:4s;

}

@keyframes petalFall{

0%{

transform:
translateY(-20px)
rotate(0deg);

opacity:0;

}

10%{

opacity:1;

}

100%{

transform:
translateY(240px)
translateX(20px)
rotate(360deg);

opacity:0;

}

}

/*=========================================
        MAGIC GLOW
=========================================*/

#magicGlow{

position:absolute;

left:50%;

top:335px;

width:180px;

height:180px;

transform:translateX(-50%);

border-radius:50%;

background:radial-gradient(circle,
rgba(255,120,180,.45),
rgba(255,120,180,.12),
transparent 75%);

filter:blur(18px);

animation:glowPulse 3s ease-in-out infinite;

pointer-events:none;

z-index:-1;

}

@keyframes glowPulse{

0%{

transform:translateX(-50%) scale(.85);

opacity:.45;

}

50%{

transform:translateX(-50%) scale(1.15);

opacity:1;

}

100%{

transform:translateX(-50%) scale(.85);

opacity:.45;

}

}

/*=========================================
      FLOATING HEARTS
=========================================*/

#tinyHearts{

position:absolute;

left:50%;

top:320px;

width:220px;

height:220px;

transform:translateX(-50%);

pointer-events:none;

}

#tinyHearts span{

position:absolute;

font-size:14px;

color:#ff4f96;

opacity:0;

text-shadow:0 0 12px #ff84c3;

animation:heartFloat 4s infinite;

}

#tinyHearts span:nth-child(1){

left:40px;

animation-delay:0s;

}

#tinyHearts span:nth-child(2){

left:80px;

animation-delay:.8s;

}

#tinyHearts span:nth-child(3){

left:120px;

animation-delay:1.6s;

}

#tinyHearts span:nth-child(4){

left:160px;

animation-delay:2.4s;

}

#tinyHearts span:nth-child(5){

left:95px;

animation-delay:3.2s;

}

@keyframes heartFloat{

0%{

opacity:0;

transform:translateY(20px) scale(.5);

}

20%{

opacity:1;

}

100%{

opacity:0;

transform:translateY(-80px) scale(1.2);

}

}

/*=========================================
      CINEMATIC POLISH
=========================================*/

.paper-full{

animation:paperGlow 5s ease-in-out infinite;

}

@keyframes paperGlow{

0%{

box-shadow:
0 0 25px rgba(255,120,180,.12);

}

50%{

box-shadow:
0 0 55px rgba(255,120,180,.28);

}

100%{

box-shadow:
0 0 25px rgba(255,120,180,.12);

}

}

#typing{

animation:textBreath 4s ease-in-out infinite;

}

@keyframes textBreath{

0%{

opacity:.85;

}

50%{

opacity:1;

}

100%{

opacity:.85;

}

}

/*=========================================
          PHOTO SLIDESHOW
=========================================*/

#slideshow{

position:fixed;

inset:0;

background:rgba(0,0,0,.95);

display:flex;

justify-content:center;

align-items:center;

flex-direction:column;

opacity:0;

visibility:hidden;

transition:1s;

z-index:5000;

}

#slideshow.show{

opacity:1;

visibility:visible;

}

.slide{
    position:absolute;
    width:420px;
    background:#fff;
    padding:18px;

    display:flex;
flex-direction:column;

    border-radius:12px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.45);

    transform:
        scale(.8)
        rotate(-6deg);

    opacity:0;

   transition:
    opacity 1.8s ease,
    transform 1.8s ease;
}

.slide.active{

 opacity:1;

    transform:
        scale(1)
        rotate(0deg);

}

.slide img{

 width:100%;

    height:430px;

    object-fit:cover;

    border-radius:10px;

    display:block;
    flex-shrink:0;

    animation: kenburns 8s ease-in-out forwards;

}

.caption{

    margin-top:12px;

    padding:12px 8px;

    background:#fff;

    border-top:1px solid #eee;

    font-size:18px;

    color:#444;

    font-family:'Poppins',sans-serif;

    font-weight:500;

    line-height:1.5;

    text-align:center;

}

/* ==========================
   FINAL PROPOSAL
========================== */

#finalProposal{
    position:fixed;
    inset:0;
    background:rgba(10,10,20,.96);
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    text-align:center;
    padding:40px;

    opacity:0;
    visibility:hidden;
    transition:1s;

    z-index:6000;
}

#finalProposal.show{

    opacity:1;

    visibility:visible;

}

c
/* ==========================
      CAMERA FLASH
========================== */

#flash{

    position:fixed;

    inset:0;

    background:white;

    opacity:0;

    pointer-events:none;

    z-index:9999;

}

#flash.show{

    animation:cameraFlash .35s ease;
}

@keyframes cameraFlash{

    0%{
        opacity:0;
    }

    20%{
        opacity:.95;
    }

    100%{
        opacity:0;
    }

}

/* ==========================
      SLIDESHOW PETALS
========================== */

#slideshowPetals{

    position:absolute;
    inset:0;
    overflow:hidden;
    pointer-events:none;
    z-index:5;

}

#slideshowPetals span{

    position:absolute;

    width:16px;
    height:16px;

    background:#ff9fc8;

    border-radius:60% 40% 60% 40%;

    opacity:.85;

    animation:petalFall 10s linear infinite;

}

#slideshowPetals span:nth-child(1){left:8%;animation-delay:0s;}
#slideshowPetals span:nth-child(2){left:18%;animation-delay:2s;}
#slideshowPetals span:nth-child(3){left:35%;animation-delay:1s;}
#slideshowPetals span:nth-child(4){left:48%;animation-delay:4s;}
#slideshowPetals span:nth-child(5){left:63%;animation-delay:3s;}
#slideshowPetals span:nth-child(6){left:74%;animation-delay:5s;}
#slideshowPetals span:nth-child(7){left:86%;animation-delay:2.5s;}
#slideshowPetals span:nth-child(8){left:94%;animation-delay:6s;}

@keyframes petalFall{

    0%{

        transform:
            translateY(-40px)
            rotate(0deg);

    }

    100%{

        transform:
            translateY(650px)
            translateX(40px)
            rotate(360deg);

    }

}

/* ==========================
      YES CELEBRATION
========================== */

#celebration{

    position:absolute;
    inset:0;

    pointer-events:none;

    overflow:hidden;

}

#celebration span{

    position:absolute;

    font-size:30px;

    opacity:0;

}

#celebration.show span{

    animation:celebrate 3s ease forwards;

}

#celebration span:nth-child(1){left:10%;animation-delay:.1s;}
#celebration span:nth-child(2){left:20%;animation-delay:.3s;}
#celebration span:nth-child(3){left:30%;animation-delay:.5s;}
#celebration span:nth-child(4){left:40%;animation-delay:.7s;}
#celebration span:nth-child(5){left:50%;animation-delay:.9s;}
#celebration span:nth-child(6){left:60%;animation-delay:1.1s;}
#celebration span:nth-child(7){left:70%;animation-delay:1.3s;}
#celebration span:nth-child(8){left:80%;animation-delay:1.5s;}
#celebration span:nth-child(9){left:90%;animation-delay:1.7s;}
#celebration span:nth-child(10){left:50%;animation-delay:2s;}

@keyframes celebrate{

    0%{

        transform:translateY(120px) scale(.3) rotate(0deg);

        opacity:0;

    }

    20%{

        opacity:1;

    }

    100%{

        transform:translateY(-500px) scale(1.4) rotate(360deg);

        opacity:0;

    }

}

/* ==========================
      REAL CONFETTI
========================== */

#confetti{

    position:absolute;
    inset:0;

    overflow:hidden;

    pointer-events:none;

    z-index:999;

}

.confetti{

    position:absolute;

    width:10px;
    height:16px;

    opacity:0;

    border-radius:2px;

}

.confetti.show{

    animation:confettiFall 4s linear forwards;

}

@keyframes confettiFall{

    0%{

        opacity:1;

        transform:
        translate3d(0,-80px,0)
        rotate(0deg)
        scale(.5);

    }

    20%{

        transform:
        translate3d(-30px,140px,0)
        rotate(180deg)
        scale(1);

    }

    40%{

        transform:
        translate3d(40px,300px,0)
        rotate(360deg);

    }

    60%{

        transform:
        translate3d(-50px,480px,0)
        rotate(720deg);

    }

    80%{

        transform:
        translate3d(35px,700px,0)
        rotate(980deg);

    }

    100%{

        opacity:0;

        transform:
        translate3d(-25px,1000px,0)
        rotate(1440deg);

    }

}

   /* ==========================
        HEART RAIN
========================== */

#heartRain{

    position:absolute;

    inset:0;

    overflow:hidden;

    pointer-events:none;

    z-index:998;

}

.fHeart{

    position:absolute;

    font-size:22px;

    opacity:0;

}

.fHeart.show{

    animation:heartRain 5s linear forwards;

}

@keyframes heartRain{

    0%{

        opacity:0;

        transform:
        translateY(80px)
        scale(.3);

    }

    20%{

        opacity:1;

    }

    100%{

        opacity:0;

        transform:
        translateY(-900px)
        scale(1.6);

    }

}
/* ==========================
     GOLDEN PARTICLES
========================== */

#goldParticles{

    position:absolute;

    inset:0;

    overflow:hidden;

    pointer-events:none;

    z-index:997;

}

.gold{

    position:absolute;

    width:6px;

    height:6px;

    border-radius:50%;

    background:#ffd54f;

    box-shadow:

    0 0 10px #ffd54f,

    0 0 20px gold,

    0 0 35px #fff3a0;

    opacity:0;

}

.gold.show{

    animation:goldFloat 6s linear forwards;

}

@keyframes goldFloat{

    0%{

        opacity:0;

        transform:
        translateY(80px)
        scale(.2);

    }

    20%{

        opacity:1;

    }

    100%{

        opacity:0;

        transform:
        translateY(-850px)
        translateX(80px)
        scale(2);

    }

}
/*==========================
    FLYING BUTTERFLIES
==========================*/

#flyingButterflies{

    position:absolute;
    inset:0;

    overflow:hidden;

    pointer-events:none;

    z-index:1000;

}

.flyButterfly{

    position:absolute;

    font-size:42px;

    opacity:0;

    filter:
    drop-shadow(0 0 10px #ff80c0);

}

.flyButterfly.show{

    animation:flyButterfly 8s linear forwards;

}

@keyframes flyButterfly{

    0%{

        opacity:0;

        transform:
        translate(-120px,600px)
        rotate(0deg)
        scale(.3);

    }

    15%{

        opacity:1;

    }

    40%{

        transform:
        translate(250px,350px)
        rotate(15deg)
        scale(.8);

    }

    70%{

        transform:
        translate(700px,120px)
        rotate(-20deg)
        scale(1);

    }

    100%{

        opacity:0;

        transform:
        translate(1400px,-180px)
        rotate(30deg)
        scale(.7);

    }

}

/*==============================
        MAGIC AURA
==============================*/

#magicAura{

    position:fixed;

    inset:0;

    pointer-events:none;

    background:

    radial-gradient(circle at center,

    rgba(255,80,170,.22),

    rgba(255,220,120,.08),

    transparent 70%);

    mix-blend-mode:screen;

    opacity:0;

    z-index:996;

}

#magicAura.show{

    animation:auraGlow 5s ease-in-out infinite;

}

@keyframes auraGlow{

0%{

opacity:.25;

transform:scale(1);

filter:hue-rotate(0deg);

}

25%{

opacity:.55;

transform:scale(1.05);

filter:hue-rotate(40deg);

}

50%{

opacity:.75;

transform:scale(1.1);

filter:hue-rotate(90deg);

}

75%{

opacity:.55;

transform:scale(1.05);

filter:hue-rotate(180deg);

}

100%{

opacity:.25;

transform:scale(1);

filter:hue-rotate(360deg);

}

}

/*==============================
        NAME REVEAL
==============================*/

#nameReveal{

    font-size:34px;

    color:#ff4f96;

    min-height:90px;

    line-height:1.5;

    white-space:pre-line;

}

#nameReveal.glow{

    animation:nameGlow 2s infinite;

}

@keyframes nameGlow{

0%,100%{

text-shadow:
0 0 15px hotpink;

}

50%{

text-shadow:
0 0 35px #ffd54f,
0 0 55px hotpink;

}

}

#finalHeading{

    min-height:120px;

    line-height:1.5;

    transition:.5s;

}

/*==============================
        FINAL NOTE
==============================*/

#finalNote{

    margin-top:28px;

    font-size:18px;

    line-height:1.8;

    color:#f6e6ef;

    text-align:center;

    opacity:0;

    transform:translateY(15px);

    transition:.8s ease;

    font-style:italic;

}

#finalNote.show{

    opacity:1;

    transform:translateY(0);

}

/*==============================
        MEMORY WALL
==============================*/

#memoryWall{

position:fixed;

inset:0;

background: rgba(10,10,10,.96);
backdrop-filter: blur(8px);

display:flex;

justify-content:center;

align-items:center;
flex-direction:column;

opacity:0;

visibility:hidden;

transition:1s;

z-index:9999;

}

#memoryWall.show{

opacity:1;

visibility:visible;

}

.memoryTitle{

position:absolute;

top:55px;

width:100%;

text-align:center;

font-size:42px;

font-weight:800;

color:#fff;

line-height:1.5;

letter-spacing:1px;

text-shadow:
0 0 15px #ff5ca8,
0 0 35px rgba(255,92,168,.7);

opacity:0;

transition:1s;

}

#memoryWall.show .memoryTitle{

opacity:1;

transition-delay:3s;

}

.memory{

position:absolute;

width:220px;

height:280px; 

background:white;

padding:10px;

border-radius:8px;

box-shadow:0 20px 45px rgba(0,0,0,.45);

opacity:0;

transform:scale(.5) rotate(-15deg);

transition:1s;
cursor:pointer;

overflow:hidden;

object-fit:cover;
height:280px;
border:3px solid white;
filter:drop-shadow(0 0 25px rgba(255,120,180,.45));
overflow:hidden;

}

.memory:hover{

transform:scale(1.08) rotate(0deg);

box-shadow:0 30px 60px rgba(255,105,180,.45);

transition:.35s;

}
#memoryWall.show .memory{

    opacity:1;

    animation:photoDrop 1.8s ease forwards;

}

.p1{
left:10%;
top:18%;
--rot:-10deg;
animation-delay:.3s;
}



.p2{
left:32%;
top:48%;
--rot:8deg;
animation-delay:.8s;
}

.p3{
left:55%;
top:20%;
--rot:-6deg;
animation-delay:1.3s;
}

.p4{
left:70%;
top:50%;
--rot:10deg;
animation-delay:1.8s;
}

.p5{
left:43%;
top:68%;
--rot:-4deg;
animation-delay:2.3s;
}

/*==============================
        MEMORY WALL
==============================*/




.memory img{

    width:100%;
    display:block;

}




/* Animation */

#memoryWall.show .memory{

opacity:1;

animation:
photoDrop .8s ease forwards,
photoFloat 3s ease-in-out infinite;

}

.p1{animation-delay:.2s;}
.p2{animation-delay:.7s;}
.p3{animation-delay:1.2s;}
.p4{animation-delay:1.7s;}
.p5{animation-delay:2.2s;}



@keyframes photoDrop{

0%{

opacity:0;
transform:translateY(-250px) rotate(-20deg) scale(.6);

}

70%{

transform:translateY(20px) rotate(5deg) scale(1.05);

}

100%{

opacity:1;
transform:translateY(0) rotate(0deg) scale(1);

}

}

/* ===========================
   ENDING SCREEN
=========================== */

#endingScreen{
    position:fixed;
    inset:0;
    background:#000;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;

    opacity:0;
    visibility:hidden;
    transition:1s;

    z-index:10000;
}

#endingScreen.show{
    opacity:1;
    visibility:visible;

    animation: endingFade 1.2s ease;
}

#endingScreen h1{
    color:#fff;
    font-size:56px;
    margin-bottom:20px;
}

#endingScreen p{
    color:#ddd;
    font-size:28px;
    line-height:1.6;
}

.madeWith{
    margin-top:60px;
    color:#888;
    font-size:20px;
}

@keyframes photoFloat{

0%{
transform:translateY(0px) rotate(var(--rot));
}

50%{
transform:translateY(-10px) rotate(var(--rot));
}

100%{
transform:translateY(0px) rotate(var(--rot));
}

}

/* ==========================
   BIG YES / NO BUTTONS
========================== */

#yesBtn,
#noBtn{

    padding:20px 55px;

    min-width:210px;

    font-size:24px;

    font-weight:700;

    border:none;

    border-radius:60px;

    cursor:pointer;

    transition:.35s;

}

#yesBtn{

    background:#ff4f96;

    color:white;

}

#noBtn{

    background:white;

    color:#444;

}

#yesBtn:hover,
#noBtn:hover{

    transform:scale(1.08);

    box-shadow:0 0 25px rgba(255,105,180,.45);

}

.memory{
animation:
photoDrop .8s ease forwards,
floatPhoto 3s ease-in-out infinite;
}

@keyframes floatPhoto{

0%{
transform:translateY(0px) rotate(-2deg);
}

50%{
transform:translateY(-8px) rotate(2deg);
}

100%{
transform:translateY(0px) rotate(-2deg);
}

}

@keyframes endingFade{

from{
opacity:0;
transform:translateY(25px);
}

to{
opacity:1;
transform:translateY(0);
}

}

/* ==========================
   MOBILE RESPONSIVE
========================== */

@media (max-width:768px){

.container{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;

    width:100%;
    min-height:100vh;

    padding:25px;
    gap:20px;
}

.envelope{
    margin:0 auto 30px;
}

.container h1{

    font-size:34px;

    line-height:1.2;

    margin-top:20px;

}

.container p{

    width:95%;

    font-size:18px;

    line-height:1.6;

    margin:auto;

}

#openBtn{
    width:260px;
    max-width:none;
    padding:18px 25px;
    font-size:20px;
}

.paper-full{
    width:92%;
    height:88vh;
    padding:25px;
    overflow-y:auto;
}

.paper-full h2{
    font-size:42px;
}

.paper-full p{
    font-size:28px;
    line-height:1.5;
}

.slide{
    width:92%;
    max-width:360px;
}

.slide img{
    width:100%;
    height:auto;
}
.caption{
    width:90%;
    font-size:20px;
}

#finalProposal{
    padding:20px;
}

#finalProposal h1{
    font-size:44px;
}

#finalProposal h2{
    font-size:28px;
}

#finalProposal p{
    font-size:20px;
}

.proposalBtns{
    display:flex;
    gap:15px;
}

.proposalBtns button{
    flex:1;
    font-size:20px;
    padding:18px 0;
}

.memory{
    width:130px;
    height:180px;
}

.memoryTitle{
    font-size:24px;
    width:90%;
}

#endingScreen h1{
    font-size:44px;
}

#endingScreen p{
    font-size:22px;
}

.madeWith{
    font-size:18px;
}

}