
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%;font-family:Poppins,Arial,sans-serif;background:#081526;color:#fff;overflow:hidden;overflow-y:auto;}
body{
background:linear-gradientlinear-gradient(
180deg,
#FFF8E7,
#FFE082,
#FFD54F
);
}

/* Background */
#stars,#moon,#clouds,#floatingHearts,#confettiContainer{
position:fixed;inset:0;pointer-events:none;
}
#stars{
background-image:
radial-gradient(#fff 1px,transparent 1px),
radial-gradient(#fff 1px,transparent 1px),
radial-gradient(#fff 1px,transparent 1px);
background-size:120px 120px,180px 180px,250px 250px;
background-position:0 0,40px 80px,90px 30px;
opacity:.55;
animation:twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle{
0%{opacity:.25}
100%{opacity:.75}
}
#moon{
width:140px;height:140px;border-radius:50%;
position:fixed;
top:40px;
right:50px;
background:#fff8cc;
box-shadow:0 0 40px #fff4aa,0 0 80px rgba(255,255,180,.4);
}
.scene{
position:absolute;
top:0;
left:0;
width:100%;
min-height:100vh;

display:none;

justify-content:center;
align-items:center;

padding:40px;
overflow-y:auto;
}
.scene.active{display:flex}
.glass,.verificationCard{
width:min(900px,95%);
background:rgba(255,255,255,.08);
backdrop-filter:blur(14px);
border:1px solid rgba(255,255,255,.2);
border-radius:24px;
padding:40px;
text-align:center;
box-shadow:0 20px 60px rgba(0,0,0,.35);
}
#mainHeading{
font-family:Pacifico,cursive;
font-size:3.4rem;
margin-bottom:20px;
color:#ffe6f0;
}
#subHeading{
font-size:1.25rem;
line-height:1.8;
min-height:120px;
}
.hidden{display:none}
button{
margin:10px;
padding:14px 28px;
font-size:1rem;
border:none;
border-radius:40px;
cursor:pointer;
transition:.3s;
font-weight:600;
}
#yesBtn,#blowBtn,#cutCakeBtn,#finalBtn{
background:#ff4f88;
color:#fff;
}
#yesBtn:hover,#blowBtn:hover,#cutCakeBtn:hover,#finalBtn:hover{
transform:translateY(-4px) scale(1.03);
box-shadow:0 10px 30px rgba(255,79,136,.4);
}
#noBtn,.option{
background:#fff;
color:#222;
}
#bulbContainer{
margin-top:40px;
display:flex;
flex-direction:column;
align-items:center;
}
#wire{
width:4px;
height:130px;
background:#ccc;
}
#bulb{
font-size:70px;
cursor:pointer;
filter:drop-shadow(0 0 10px gold);
animation:swing 2.8s ease-in-out infinite;
}
@keyframes swing{
0%,100%{transform:rotate(-8deg)}
50%{transform:rotate(8deg)}
}
.question{
margin:25px 0;
font-size:1.2rem;
}
.options{
display:grid;
gap:15px;
margin-top:20px;
}
.option{
padding:16px;
border-radius:16px;
}
.option:hover{
background:#ffe7f1;
}
#verificationMessage{
margin-top:20px;
font-weight:600;
min-height:30px;
}
.cakeContainer{

    position:relative;

    width:260px;

    margin:auto;

    margin-top:60px;

}

.candle{

    width:12px;

    height:60px;

    background:white;

    margin:auto;

    position:relative;

}

#flame{

    width:18px;

    height:30px;

    background:orange;

    border-radius:50% 50% 50% 50%;

    position:absolute;

    left:-3px;

    top:-25px;

    animation:flicker .18s infinite alternate;

    box-shadow:0 0 20px gold;

}

@keyframes flicker{

from{

transform:scale(1) rotate(-3deg);

}

to{

transform:scale(1.15) rotate(3deg);

}

}

.cakeTop{

width:150px;

height:28px;

background:#fff;

border-radius:15px;

margin:auto;

}

.cakeMiddle{

width:190px;

height:70px;

background:#ff9cc7;

border-radius:10px;

margin:auto;

}

.cakeBottom{

width:230px;

height:70px;

background:#ff73b3;

border-radius:10px;

margin:auto;

}

.cakeStand{

width:260px;

height:12px;

background:#ddd;

border-radius:10px;

margin:auto;

}
.flowerGrid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
margin:30px 0;
}
.flowerCard{
background:rgba(255,255,255,.08);
padding:20px;
border-radius:18px;
transition:.3s;
}
.flowerCard:hover{
transform:translateY(-8px);
}
.flowerImage{
font-size:48px;
}
.photoPlaceholder{
margin:15px auto;
height:160px;
border:2px dashed rgba(255,255,255,.5);
display:flex;
align-items:center;
justify-content:center;
border-radius:14px;
}
.finalMessage{

    font-size:16px;

    line-height:1.8;

}
@media(max-width:768px){
#mainHeading{font-size:2.2rem}
.glass,.verificationCard{padding:24px}
button{width:100%}
.photoPlaceholder{height:120px}
}

/* ===================================================
   FLOWER PAGE
=================================================== */

.flowerContainer{

    width:100%;
    max-width:850px;

    margin:40px auto;

}

.flowerCard{

    background:#fff;

    border-radius:18px;

    padding:18px;

    margin-bottom:25px;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}

.cardContent{

    display:flex;

    align-items:center;

    gap:20px;

}

.photoFrame{

    width:180px;

    height:240px;

    position:relative;

    flex-shrink:0;

    background:#fffaf8;

    border:5px dashed #ffb6c1;

    border-radius:18px;

    padding:8px;

    overflow:hidden;

}

.photo{

    position:absolute;

    top:8px;
    left:8px;

    width:calc(100% - 16px);
    height:calc(100% - 16px);

    object-fit:cover;

    border-radius:12px;

    opacity:0;

    transition:opacity .8s ease;

}

.photo.active{

    opacity:1;

}

.flowerText{

    flex:1;

    color:#444;

}

.flowerText h2{

    font-family:'Pacifico',cursive;

    font-size:32px;

    color:#d94d79;

    line-height:1.4;

    margin-bottom:16px;

}

.flowerText p{

    font-family:'Poppins',sans-serif;

    font-size:17px;

    line-height:1.9;

    color:#555;

}

/* Mobile */

@media(max-width:768px){

.flowerCard{
    
    width:100%;

    padding:20px;

}

.cardContent{

    display:flex;

    flex-direction:column;

    align-items:center;

    text-align:center;

    gap:18px;

}

.photoFrame{

    width:150px;

    height:205px;

}

.flowerText h2{

    font-family:'Pacifico', cursive !important;

    font-size:34px;

    font-weight:400;

    color:#c04b73;

    line-height:1.5;

    margin-bottom:15px;

}

.flowerText p{

    font-size:14px;

    line-height:1.6;

}

}

.cakeArea{

display:flex;

justify-content:center;

align-items:center;

gap:40px;

margin:40px 0;

}

/* FAN */

/* FAN */
/* ==========================
   FAN
========================== */

#fan{

    width:90px;
    height:90px;

    border-radius:50%;
    border:5px solid #999;

    background:white;

    position:relative;

    top:-300px;      /* Move fan upward */

    left:110px;      /* Move fan to the right of cake */

    overflow:hidden;

}

/* THIS IS THE IMPORTANT PART */
.fanBlades{
    position:relative;
    width:100%;
    height:100%;
    top:0;
    left:0;
    transform-origin:center center;
}

.blade{
    position:absolute;
    width:16px;
    height:42px;
    background:#8fd3ff;
    border-radius:20px;

    left:50%;
    top:50%;

    margin-left:-8px;
    margin-top:-42px;

    transform-origin:50% 42px;
}

.blade1{
    transform:rotate(0deg);
}

.blade2{
    transform:rotate(90deg);
}

.blade3{
    transform:rotate(180deg);
}

.blade4{
    transform:rotate(270deg);
}

.fanCenter{
    position:absolute;
    width:12px;
    height:12px;
    background:#666;
    border-radius:50%;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    z-index:50;
}

@keyframes fanSpin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

/* flame */

#flame{

transition:.8s;

}

#fanBtn{

    position:relative;

    left:-60px;

    margin-top:20px;

}

/* ===============================
   Final Page
=============================== */

.endingtitle{

    font-family:'Pacifico',cursive;

    font-size:48px;

    color:#ff5d8f;

    line-height:1.4;

    margin-bottom:30px;

}

.endingsignature{

    font-family:'Pacifico',cursive;

    color:#d46a92;

    font-size:28px;

    margin-top:35px;

    line-height:1.6;

}

@media(max-width:768px){

.endingTitle{

    font-size:34px;

}

.endingSignature{

    font-size:22px;

}

}

/* ==========================================
   FLOWER PAGE HEADING
========================================== */

.flowerPageHeading{

    text-align:center;

    margin-bottom:40px;

}

.flowerTitle{

    font-family:'Pacifico',cursive;

    font-size:52px;

    color:#d94d79;

    letter-spacing:8px;

    text-shadow:2px 2px 12px rgba(255,105,180,.25);

}

.flowerSubtitle{

    margin-top:12px;

    font-family:'Poppins',sans-serif;

    font-size:22px;

    color:#8b5e3c;

    font-weight:500;

    font-style:italic;

}

.flowerTitle{

    font-family:'Pacifico',cursive;

    font-size:28px;

    letter-spacing:2px;

    white-space:nowrap;

}

.flowerSubtitle{

    font-size:16px;

}

/* ===========================
   BEACH INTRO
=========================== */

.beachIntro{

    position:relative;

    width:100%;

    height:100vh;

    background:#000;

    display:flex;

    justify-content:center;

    align-items:center;

    overflow:hidden;

}

.beachPhoto{

    width:100%;

    height:100%;

    object-fit:cover;

    opacity:0;

    animation:fadeBeach 2s forwards;

}

@keyframes fadeBeach{

from{

opacity:0;

}

to{

opacity:1;

}

}

.beachMessage{

    position:absolute;

    bottom:10%;

    width:100%;

    text-align:center;

    color:white;

    font-family:'Pacifico',cursive;

    font-size:38px;

    text-shadow:3px 3px 15px rgba(0,0,0,.7);

    opacity:0;

}

.beachMessage{

    font-size:24px;

    padding:0 20px;

}

#whiteFlash{

position:fixed;

left:0;

top:0;

width:100%;

height:100%;

background:white;

opacity:0;

pointer-events:none;

z-index:9999;

transition:1s;

}

/* Beach Intro */

.beachIntro{

    height:100dvh;

}

.beachPhoto{

    object-fit:contain;

    background:#000;

}

.beachMessage{

    font-size:20px;

    bottom:8%;

    padding:0 18px;

}

/* Fan */

.blade{

    width:20px;

    height:55px;

    margin-left:-10px;

    margin-top:-55px;

    transform-origin:50% 55px;

}

.fanCenter{

    width:18px;

    height:18px;

}

#fanBtn{

    left:0;

    margin-top:15px;

}

.cakeArea{

    flex-direction:column;

    gap:20px;

}

.glass{

    width:94%;

    padding:22px;

    border-radius:18px;

}