/* ==========================
   GOOGLE STYLE RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    background:
    linear-gradient(
    135deg,
    #ffd6e7 0%,
    #ffe9f2 30%,
    #fff6dc 100%
    );

    min-height:100vh;

    overflow-x:hidden;

    color:#444;
}

/* ==========================
      FLOATING HEARTS
========================== */

.hearts{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:100%;

    pointer-events:none;

    overflow:hidden;

    z-index:1;

}

.heart{

    position:absolute;

    animation:fall linear infinite;

    opacity:.8;

    user-select:none;

}

@keyframes fall{

0%{

transform:
translateY(-120px)
rotate(0deg);

opacity:0;

}

10%{

opacity:1;

}

100%{

transform:
translateY(120vh)
rotate(360deg);

opacity:.8;

}

}

/* ==========================
        HERO
========================== */

.hero{

width:100%;

min-height:100vh;

display:flex;

justify-content:center;

align-items:center;

padding:30px;

position:relative;

z-index:5;

}

.hero-content{

width:100%;

max-width:700px;

padding:50px;

border-radius:35px;

background:
rgba(255,255,255,.25);

backdrop-filter:blur(15px);

box-shadow:

0 15px 45px
rgba(0,0,0,.12);

text-align:center;

animation:fadeHero
1.5s ease;

}

/* ==========================
      FLOAT EMOJI
========================== */

.emoji{

font-size:90px;

margin-bottom:20px;

animation:float 3s ease-in-out infinite;

}

@keyframes float{

0%{

transform:
translateY(0);

}

50%{

transform:
translateY(-18px);

}

100%{

transform:
translateY(0);

}

}

/* ==========================
        TITLE
========================== */

.hero h1{

font-family:'Caveat',cursive;

font-size:72px;

color:#ff4f87;

margin-bottom:10px;

}

.hero h2{

font-size:28px;

font-weight:600;

margin-bottom:20px;

color:#444;

}

.hero p{

font-size:18px;

line-height:1.8;

margin-bottom:35px;

color:#666;

}

/* ==========================
      BUTTON
========================== */

.hero button{

padding:

18px
50px;

border:none;

border-radius:60px;

background:

linear-gradient(

135deg,

#ff5d9e,

#ff86b4

);

color:white;

font-size:18px;

font-weight:bold;

cursor:pointer;

transition:.35s;

box-shadow:

0 10px 25px

rgba(255,95,158,.4);

}

.hero button:hover{

transform:

translateY(-5px)
scale(1.05);

box-shadow:

0 15px 35px

rgba(255,95,158,.5);

}

/* ==========================
     LETTER SECTION
========================== */

.letter-section{

padding:

80px 20px;

display:flex;

flex-direction:column;

align-items:center;

justify-content:center;

position:relative;

z-index:5;

}

.hidden{

display:none;

}

/* ==========================
    SCROLL BUTTON
========================== */

#scrollTop{

position:fixed;

bottom:30px;

right:25px;

width:55px;

height:55px;

border:none;

border-radius:50%;

background:#ff5f9e;

color:white;

font-size:22px;

cursor:pointer;

display:none;

z-index:999;

box-shadow:

0 10px 20px

rgba(0,0,0,.25);

transition:.3s;

}

#scrollTop:hover{

transform:scale(1.12);

}

/* ==========================
    FADE ANIMATION
========================== */

@keyframes fadeHero{

from{

opacity:0;

transform:

translateY(60px);

}

to{

opacity:1;

transform:

translateY(0);

}

}

/* ==========================
    RESPONSIVE
========================== */

@media(max-width:768px){

.hero-content{

padding:35px 25px;

}

.hero h1{

font-size:56px;

}

.hero h2{

font-size:22px;

}

.hero p{

font-size:16px;

}

.hero button{

width:100%;

padding:16px;

}

.emoji{

font-size:70px;

}

}
/* ===================================================
   ENVELOPE
=================================================== */

.envelope{

    width:340px;

    height:230px;

    position:relative;

    margin:60px auto;

    cursor:pointer;

    perspective:1200px;

    transition:.5s;

}

.back{

    position:absolute;

    width:100%;

    height:100%;

    background:#ffc8d8;

    border-radius:18px;

    box-shadow:
    0 15px 40px rgba(0,0,0,.18);

}

.front{

    position:absolute;

    width:0;

    height:0;

    border-left:170px solid transparent;

    border-right:170px solid transparent;

    border-top:115px solid #ff8fb1;

    top:0;

    left:0;

    transform-origin:top;

    transition:1s;

    z-index:5;

}

.note{

    position:absolute;

    width:100%;

    top:50%;

    left:50%;

    transform:translate(-50%,-50%);

    text-align:center;

    font-weight:bold;

    color:white;

    font-size:22px;

    z-index:2;

    text-shadow:0 2px 8px rgba(0,0,0,.2);

}

.envelope:hover{

    transform:translateY(-8px);

}


/* ===================================================
   CARD
=================================================== */

.card{

    width:100%;

    max-width:760px;

    margin-top:50px;

    padding:45px;

    border-radius:30px;

    background:rgba(255,255,255,.82);

    backdrop-filter:blur(18px);

    box-shadow:

    0 20px 60px rgba(0,0,0,.15);

    display:none;

    animation:cardFade 1s;

}

.card h2{

    text-align:center;

    color:#ff4f87;

    margin-bottom:20px;

    font-size:34px;

    font-family:'Caveat',cursive;

}

.icons{

    text-align:center;

    font-size:70px;

    margin-bottom:15px;

}


/* ===================================================
   MESSAGE
=================================================== */

#message{

    white-space:pre-line;

    font-size:18px;

    line-height:2;

    color:#555;

    text-align:left;

    min-height:300px;

    margin-top:15px;

}

#cursor{

display:inline-block;

width:2px;

animation:blink .7s infinite;

color:#ff4f87;

font-weight:bold;

}
#loading{

position:fixed;

inset:0;

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

background:#fff7fb;

z-index:99999;

transition:.6s;

}

.loading-heart{

font-size:70px;

animation:loadingHeart 1s infinite alternate;

}

@keyframes loadingHeart{

from{

transform:scale(1);

}

to{

transform:scale(1.2);

}

}
#musicIndicator{

position:fixed;

top:20px;

right:20px;

padding:10px 18px;

background:rgba(255,255,255,.8);

backdrop-filter:blur(10px);

border-radius:50px;

font-size:14px;

z-index:999;

box-shadow:0 10px 25px rgba(0,0,0,.12);

}
#overlay{

position:fixed;

inset:0;

background:rgba(0,0,0,.4);

display:none;

z-index:990;

}
#confetti{

position:fixed;

inset:0;

pointer-events:none;

overflow:hidden;

z-index:995;

}

@keyframes blink{

50%{

opacity:0;

}

}


/* ===================================================
   BUTTON
=================================================== */

#forgiveBtn{

    display:block;

    margin:40px auto 0;

    padding:16px 50px;

    border:none;

    border-radius:60px;

    background:

    linear-gradient(

    135deg,

    #ff5d9e,

    #ff86b4

    );

    color:white;

    font-size:18px;

    font-weight:bold;

    cursor:pointer;

    transition:.3s;

    box-shadow:

    0 10px 25px rgba(255,95,158,.35);

}

#forgiveBtn:hover{

    transform:

    translateY(-4px)

    scale(1.05);

}


/* ===================================================
   FOOTER
=================================================== */

.footer{

    margin-top:30px;

    text-align:center;

    color:#888;

    font-size:14px;

}


/* ===================================================
   POPUP
=================================================== */

.popup{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    display:none;

    justify-content:center;

    align-items:center;

    padding:20px;

    z-index:999;

}

.popup-box{

    width:100%;

    max-width:450px;

    background:white;

    border-radius:25px;

    padding:45px;

    text-align:center;

    animation:popupShow .5s;

}

.popup-emoji{

    font-size:65px;

    margin-bottom:10px;

}

.popup-box h2{

    color:#ff4f87;

    margin-bottom:15px;

}

.popup-box p{

    line-height:1.8;

    color:#555;

}

#closePopup{

    margin-top:30px;

    padding:14px 35px;

    border:none;

    border-radius:50px;

    background:#ff5f9e;

    color:white;

    cursor:pointer;

    font-size:16px;

}


/* ===================================================
   ANIMATION
=================================================== */

@keyframes popupShow{

from{

opacity:0;

transform:

translateY(40px)

scale(.8);

}

to{

opacity:1;

transform:

translateY(0)

scale(1);

}

}

@keyframes cardFade{

from{

opacity:0;

transform:

translateY(50px);

}

to{

opacity:1;

transform:

translateY(0);

}

}


/* ===================================================
   MOBILE
=================================================== */

@media(max-width:768px){

.envelope{

width:280px;

height:190px;

}

.front{

border-left:140px solid transparent;

border-right:140px solid transparent;

border-top:95px solid #ff8fb1;

}

.note{

font-size:18px;

}

.card{

padding:30px 22px;

}

.card h2{

font-size:28px;

}

.icons{

font-size:55px;

}

#message{

font-size:16px;

line-height:1.9;

}

.popup-box{

padding:30px;

}

}
/* ===========================================
   BACKGROUND ANIMATION
=========================================== */

body::before{
    content:"";
    position:fixed;
    inset:0;
    background:
    radial-gradient(circle at top left,
    rgba(255,255,255,.45),
    transparent 40%),

    radial-gradient(circle at bottom right,
    rgba(255,180,210,.25),
    transparent 40%);
    z-index:-2;
}

body::after{

    content:"";

    position:fixed;

    inset:0;

    background:

    linear-gradient(
    120deg,
    rgba(255,255,255,.12),
    rgba(255,255,255,0)
    );

    animation:bgMove 20s linear infinite;

    z-index:-1;

}

@keyframes bgMove{

0%{

transform:translateX(-10%) translateY(-5%);

}

50%{

transform:translateX(5%) translateY(3%);

}

100%{

transform:translateX(-10%) translateY(-5%);

}

}

/* ===========================================
   CARD EFFECT
=========================================== */

.card{

transition:.5s;

}

.card:hover{

transform:translateY(-6px);

box-shadow:

0 30px 70px rgba(0,0,0,.18);

}

/* ===========================================
   BUTTON GLOW
=========================================== */

.hero button,
#forgiveBtn,
#closePopup{

position:relative;

overflow:hidden;

}

.hero button::before,
#forgiveBtn::before,
#closePopup::before{

content:"";

position:absolute;

top:0;

left:-120%;

width:60%;

height:100%;

background:

rgba(255,255,255,.35);

transform:skewX(-30deg);

transition:.8s;

}

.hero button:hover::before,
#forgiveBtn:hover::before,
#closePopup:hover::before{

left:130%;

}

/* ===========================================
   ENVELOPE ANIMATION
=========================================== */

.envelope.open{

animation:shake .8s;

}

@keyframes shake{

0%{

transform:rotate(0deg);

}

20%{

transform:rotate(-3deg);

}

40%{

transform:rotate(3deg);

}

60%{

transform:rotate(-2deg);

}

80%{

transform:rotate(2deg);

}

100%{

transform:rotate(0deg);

}

}

.front.open{

transform:rotateX(180deg);

}

/* ===========================================
   POPUP EFFECT
=========================================== */

.popup.show{

display:flex;

animation:fadePopup .5s;

}

@keyframes fadePopup{

from{

opacity:0;

}

to{

opacity:1;

}

}

/* ===========================================
   ICON FLOAT
=========================================== */

.icons{

animation:iconFloat 4s ease-in-out infinite;

}

@keyframes iconFloat{

0%{

transform:translateY(0);

}

50%{

transform:translateY(-10px);

}

100%{

transform:translateY(0);

}

}

/* ===========================================
   TITLE GLOW
=========================================== */

.hero h1{

text-shadow:

0 0 15px rgba(255,90,150,.35);

}

.card h2{

text-shadow:

0 0 12px rgba(255,120,170,.3);

}

/* ===========================================
   CUSTOM SCROLLBAR
=========================================== */

::-webkit-scrollbar{

width:10px;

}

::-webkit-scrollbar-track{

background:#ffe8f0;

}

::-webkit-scrollbar-thumb{

background:#ff8fb1;

border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

background:#ff5d9e;

}

/* ===========================================
   SELECTION
=========================================== */

::selection{

background:#ff82ad;

color:white;

}

/* ===========================================
   HEART HOVER
=========================================== */

.heart{

transition:.5s;

}

.heart:hover{

transform:scale(1.4);

}

/* ===========================================
   FADE IN
=========================================== */

.fadeIn{

animation:fadeIn .8s;

}

@keyframes fadeIn{

from{

opacity:0;

transform:translateY(30px);

}

to{

opacity:1;

transform:translateY(0);

}

}

/* ===========================================
   RESPONSIVE
=========================================== */

@media(max-width:480px){

.hero h1{

font-size:46px;

}

.hero h2{

font-size:19px;

}

.hero p{

font-size:15px;

}

.emoji{

font-size:60px;

}

.envelope{

width:240px;

height:165px;

}

.front{

border-left:120px solid transparent;
border-right:120px solid transparent;
border-top:82px solid #ff8fb1;

}

.note{

font-size:16px;

}

.card{

padding:25px 18px;

}

.card h2{

font-size:24px;

}

#message{

font-size:15px;

line-height:1.8;

}

}

/* ===========================================
   DESKTOP
=========================================== */

@media(min-width:1200px){

.hero-content{

max-width:900px;

}

.card{

max-width:850px;

}

}

/* ===========================================
   THE END
=========================================== */