body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #ff9ecf, #ffd6e8, #c9a7ff);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
}

#countdown {
    display: none;
    margin-top: 20px;
}

#countNumber {
    font-size: 80px;
    color: yellow;
    text-shadow: 0 0 20px gold;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    width: 90%;
    max-width: 500px;
    margin: 30px auto;
}

h1 {
    color: white;
    font-size: 48px;
    text-shadow: 0 0 15px hotpink;
}

.message {
    color: white;
    font-size: 22px;
    margin: 20px 0;
}

button {
    background: hotpink;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 20px;
    border-radius: 30px;
    cursor: pointer;
}

button:hover {
    transform: scale(1.08);
}

#surpriseMessage {
    margin-top: 25px;
    color: yellow;
    font-size: 24px;
    font-weight: bold;
}.balloon {
    position: absolute;
    width: 70px;
    height: 90px;
    border-radius: 50%;
    animation: float 8s linear infinite;
}

.balloon::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 80px;
    background: white;
    left: 50%;
    top: 90px;
}

.balloon1 {
    background: #ff4d6d;
    left: 10%;
    animation-delay: 0s;
}

.balloon2 {
    background: #4dabf7;
    left: 30%;
    animation-delay: 2s;
}

.balloon3 {
    background: #ffd43b;
    left: 50%;
    animation-delay: 4s;
}

.balloon4 {
    background: #69db7c;
    left: 70%;
    animation-delay: 1s;
}

.balloon5 {
    background: #da77f2;
    left: 90%;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        bottom: -120px;
        transform: translateX(0);
    }

    100% {
        bottom: 110%;
        transform: translateX(-20px);
    }
}.shine {
    position: absolute;
    width: 18px;
    height: 35px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    top: 18px;
    left: 16px;
    transform: rotate(-20deg);
}.lights {
    position: absolute;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.lights span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: yellow;
    box-shadow: 0 0 15px yellow;
    animation: blink 1s infinite alternate;
}

.lights span:nth-child(2) {
    background: red;
    box-shadow: 0 0 15px red;
    animation-delay: 0.2s;
}

.lights span:nth-child(3) {
    background: cyan;
    box-shadow: 0 0 15px cyan;
    animation-delay: 0.4s;
}

.lights span:nth-child(4) {
    background: lime;
    box-shadow: 0 0 15px lime;
    animation-delay: 0.6s;
}

.lights span:nth-child(5) {
    background: orange;
    box-shadow: 0 0 15px orange;
    animation-delay: 0.8s;
}

@keyframes blink {
    from {
        opacity: 0.3;
    }
    to {
        opacity: 1;
    }
}.confetti span {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 18px;
    animation: fall 6s linear infinite;
}

.confetti span:nth-child(1) { left: 10%; background: #ff4d6d; animation-delay: 0s; }
.confetti span:nth-child(2) { left: 22%; background: #ffd43b; animation-delay: 1s; }
.confetti span:nth-child(3) { left: 35%; background: #4dabf7; animation-delay: 2s; }
.confetti span:nth-child(4) { left: 48%; background: #69db7c; animation-delay: 3s; }
.confetti span:nth-child(5) { left: 61%; background: #da77f2; animation-delay: 4s; }
.confetti span:nth-child(6) { left: 74%; background: #ff922b; animation-delay: 2.5s; }
.confetti span:nth-child(7) { left: 87%; background: #22b8cf; animation-delay: 1.5s; }
.confetti span:nth-child(8) { left: 95%; background: #f06595; animation-delay: 3.5s; }

@keyframes fall {
    from {
        transform: translateY(-20px) rotate(0deg);
    }
    to {
        transform: translateY(110vh) rotate(720deg);
    }
}.cake {
    width: 220px;
    margin: 20px 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}.gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.gallery img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid white;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255,255,255,0.7);
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.1);
}.slideshow {
    margin: 25px auto;
    width: 250px;
}

.slideshow img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid white;
    box-shadow: 0 0 20px rgba(255,255,255,0.8);
}#surpriseBtn {
    display: none;
}

#slideshow {
    display: none;
}

#startBtn {
    display: inline-block;
}

#fireworks {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.firework {
    position: absolute;
    width: 12px;
    height: 12px;
    background: yellow;
    border-radius: 50%;
    animation: explode 1s ease-out forwards;
}
@keyframes explode {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(8);
        opacity: 0;
    }
}
#birthdayLetter {
    display: none;
    margin: 25px auto;
    max-width: 350px;
    padding: 25px;
    background: linear-gradient(135deg, #fff0f6, #ffe4ec);
    border: 3px solid hotpink;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
    color: #5a2a2a;
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    animation: fadeIn 1.5s ease;
}

#birthdayLetter h2 {
    color: deeppink;
    font-size: 28px;
    margin-bottom: 15px;
}

#letterText {
    color: #5a2a2a;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
#envelope {
    display:none;
    margin: 30px auto;
    width: 180px;
    height: 120px;
    cursor: pointer;
    animation: pop 1s ease;
}

.envelope-body {
    background: #ff9ecf;
    width: 180px;
    height: 120px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    box-shadow: 0 0 20px pink;
}

@keyframes pop {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
#hearts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.heart {
    position: absolute;
    bottom: -20px;
    font-size: 25px;
    animation: floatHeart 6s linear forwards;
}

@keyframes floatHeart {

    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-110vh) scale(1.8);
        opacity: 0;
    }

}
#finalScreen {
    text-align: center;
    color: white;
    animation: glow 2s infinite alternate;
}

#finalScreen h1 {
    font-size: 50px;
    color: yellow;
}

#finalScreen p {
    font-size: 22px;
}

#replayBtn {
    margin-top: 20px;
}


@keyframes glow {

    from {
        text-shadow: 0 0 10px pink;
    }

    to {
        text-shadow: 0 0 30px yellow;
    }

}