<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Happy Birthday My Jooo! 💜</title>
<style>
* {
box-sizing: border-box;
}
html {
min-height: 100%;
background: #45205f !important;
}
body {
margin: 0;
min-height: 100vh;
overflow-x: hidden;
font-family: Georgia, "Times New Roman", serif;
color: #fff7ff;
text-align: center;
background-color: #45205f !important;
background-image: radial-gradient(
ellipse at 50% 15%,
#a875c9 0%,
#8651a9 25%,
#69358b 50%,
#4b246b 75%,
#321343 100%
) !important;
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
}
/* SILVER SHINY DUST */
#dust {
position: fixed;
inset: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
/* MAIN CONTENT */
.container {
position: relative;
z-index: 2;
width: 92%;
max-width: 520px;
margin: auto;
padding: 35px 0 50px;
}
.subtitle {
font-size: 12px;
letter-spacing: 4px;
color: #ffe2ff;
text-shadow: 0 0 12px #e5aaff;
}
h1 {
font-size: clamp(32px, 8vw, 46px);
line-height: 1.2;
color: #fffaff;
text-shadow: 0 0 12px #ffcaff, 0 0 30px #d78bff;
animation: glow 2s infinite alternate;
}
@keyframes glow {
to {
text-shadow: 0 0 22px white, 0 0 42px #e0a0ff;
}
}
.intro {
line-height: 1.8;
color: #ffeaff;
}
/* FLYING BUTTERFLIES */
.butterfly {
position: fixed;
z-index: 3;
left: -55px;
font-size: 30px;
pointer-events: none;
filter: drop-shadow(0 0 10px #ffcaff);
animation: fly 14s linear infinite;
}
.b1 { top: 14%; animation-delay: 0s; }
.b2 { top: 39%; animation-delay: 3.5s; font-size: 25px; }
.b3 { top: 65%; animation-delay: 7s; font-size: 35px; }
.b4 { top: 82%; animation-delay: 10s; font-size: 26px; }
@keyframes fly {
0% { transform: translate(0, 0) rotate(-15deg); }
25% { transform: translate(30vw, -40px) rotate(15deg); }
50% { transform: translate(60vw, 25px) rotate(-10deg); }
75% { transform: translate(85vw, -35px) rotate(15deg); }
100% { transform: translate(120vw, 0) rotate(-15deg); }
}
/* BEAUTIFUL PURPLE CAKE */
.cake-area {
height: 290px;
display: flex;
justify-content: center;
align-items: flex-end;
padding-bottom: 30px;
margin: 10px auto;
background: transparent;
}
.cake {
position: relative;
width: 240px;
height: 220px;
flex-shrink: 0;
animation: cakeFloat 3s ease-in-out infinite;
filter: drop-shadow(0 10px 16px #180824);
}
@keyframes cakeFloat {
50% { transform: translateY(-7px); }
}
.plate {
position: absolute;
bottom: 0;
left: -15px;
width: 270px;
height: 23px;
border-radius: 50%;
background: linear-gradient(#fff7ff, #d7a4ef, #81509f);
box-shadow: 0 0 20px #e5b1ff;
}
.layer {
position: absolute;
border: 2px solid #ffeaff;
box-shadow: inset 0 3px 8px #ffffff55;
}
.bottom {
bottom: 15px;
left: 0;
width: 240px;
height: 68px;
border-radius: 12px 12px 20px 20px;
background: linear-gradient(
90deg, #913ba0, #efb1e9 30%, #d66ed5 70%, #873b98
);
}
.middle {
bottom: 77px;
left: 19px;
width: 202px;
height: 55px;
border-radius: 12px 12px 17px 17px;
background: linear-gradient(
90deg, #c16bd7, #fff0ff 35%, #dfa1f2 75%, #a752c9
);
}
.top {
bottom: 124px;
left: 42px;
width: 156px;
height: 39px;
border-radius: 50% 50% 10px 10px;
background: linear-gradient(
90deg, #b969d6, #fff0ff 40%, #dda0ef
);
overflow: hidden;
}
.icing {
position: absolute;
top: 5px;
left: 0;
width: 100%;
height: 17px;
border-radius: 50%;
background: linear-gradient(#fff, #f1d5ff);
}
/* ICING DRIPS STAY INSIDE THE TOP LAYER */
.drip {
position: absolute;
top: 12px;
width: 13px;
height: 18px;
border-radius: 0 0 10px 10px;
background: #f8e4ff;
}
.d1 { left: 20px; }
.d2 { left: 55px; height: 15px; }
.d3 { left: 95px; height: 18px; }
.d4 { left: 130px; height: 15px; }
/* EXACTLY THREE ALIGNED CANDLES */
.candle {
position: absolute;
bottom: 158px;
width: 13px;
height: 39px;
border: 1px solid white;
border-radius: 3px;
background: repeating-linear-gradient(
45deg, white 0 5px, #d58bec 5px 10px
);
z-index: 3;
}
.c1 { left: 60px; }
.c2 { left: 113.5px; }
.c3 { left: 167px; }
/* ONE FLAME PER CANDLE */
.flame {
position: absolute;
width: 12px;
height: 20px;
top: -23px;
left: 0;
border-radius: 50% 50% 40% 40%;
background: radial-gradient(
ellipse at center bottom,
white 0 15%, #fff19a 40%, #ff9037 80%
);
box-shadow: 0 0 14px #ffe88a, 0 0 22px #ffad52;
animation: flicker .6s infinite alternate;
}
@keyframes flicker {
to { transform: rotate(7deg) scale(.85); }
}
.caption {
font-size: 12px;
letter-spacing: 2px;
color: #ffe3ff;
}
/* BIRTHDAY MESSAGE BUTTON */
button {
border: 1px solid #fff2ff;
border-radius: 30px;
padding: 14px 22px;
background: linear-gradient(
135deg, #ffe3ff, #d49aef, #b66bdb
);
color: #451958;
font-family: Georgia, serif;
font-weight: bold;
font-size: 15px;
cursor: pointer;
box-shadow: 0 0 20px #dba4ff;
}
button:hover {
box-shadow: 0 0 32px #ffd6ff;
}
/* HIDDEN MESSAGE */
#letter {
display: none;
margin-top: 26px;
padding: 23px 19px;
text-align: left;
border: 1px solid #efcaff;
border-radius: 20px;
background: rgba(48, 20, 70, .98);
box-shadow: 0 0 25px #b76ce0;
animation: reveal 1s ease;
}
@keyframes reveal {
from { opacity: 0; transform: translateY(18px); }
to { opacity: 1; transform: translateY(0); }
}
#letter h2 {
text-align: center;
color: #ffe3ff;
font-size: 25px;
text-shadow: 0 0 12px #e5a5ff;
}
#letter p {
font-size: 16px;
line-height: 1.9;
color: #fff5ff;
overflow-wrap: anywhere;
}
.signature {
text-align: right;
color: #ffd7ff !important;
font-style: italic;
}
.footer {
margin-top: 30px;
font-size: 12px;
color: #f0d4ff;
}
@media (max-width: 380px) {
#letter { padding: 18px 14px; }
#letter p { font-size: 15px; }
}
</style>
</head>
<body>
<canvas id="dust"></canvas>
<div class="butterfly b1">🦋</div>
<div class="butterfly b2">🦋</div>
<div class="butterfly b3">🦋</div>
<div class="butterfly b4">🦋</div>
<main class="container">
<div class="subtitle">HAPPY NA BIRTHDAY MO PA!🫶</div>
<h1>Happy Birthday<br> Jooo! 💜</h1>
<p class="intro">
A little surprise, made just for you.<br>
May your wishes reach the stars!
</p>
<div class="cake-area">
<div class="cake">
<div class="plate"></div>
<div class="layer bottom"></div>
<div class="layer middle"></div>
<div class="layer top">
<div class="icing"></div>
<div class="drip d1"></div>
<div class="drip d2"></div>
<div class="drip d3"></div>
<div class="drip d4"></div>
</div>
<!-- THREE CANDLES WITH THEIR OWN FLAMES -->
<div class="candle c1"><div class="flame"></div></div>
<div class="candle c2"><div class="flame"></div></div>
<div class="candle c3"><div class="flame"></div></div>
</div>
</div>
<p class="caption">BLOW YOUR CAKE JOOO!</p>
<p style="line-height:1.8;color:#ffeaff">
Make a wish, Jooo!<br>
You deserve a beautiful life. 💜
</p>
<button id="openBtn" onclick="openLetter()">
💌 Open Your Birthday Message
</button>
<section id="letter">
<h2>Happy Birthday, Jooo! 💜</h2>
<p>
Happy birthday jooo! Today is your birthday and be happy always
no matter what happened to your life I'm here to listen and to
pray your all wishes will be come true, you are a amazing person
that I know that would not make everyone feel left out, you are
unique. You like a star that keep shine whenever you where, you
are so talkative tho, that's why.... wishing you a healthy life
and a good future!
</p>
<p class="signature">
From your cutiieeee friend:))
</p>
</section>
<div class="footer">
BY YOUR CUTIEEE FRIEND 🫶🫶
</div>
</main>
<script>
/* ANIMATED SILVER SHINY DUST */
const canvas = document.getElementById("dust");
const ctx = canvas.getContext("2d");
let particles = [];
function resize() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
particles = Array.from({ length: 130 }, () => ({
x: Math.random() * canvas.width,
y: Math.random() * canvas.height,
r: Math.random() * 2 + .5,
speed: Math.random() * .6 + .15,
alpha: Math.random()
}));
}
function animate() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
particles.forEach(p => {
p.y -= p.speed;
p.alpha += (Math.random() - .5) * .07;
p.alpha = Math.max(.2, Math.min(1, p.alpha));
ctx.beginPath();
ctx.arc(p.x, p.y, p.r, 0, Math.PI * 2);
ctx.fillStyle = `rgba(255, 238, 255, ${p.alpha})`;
ctx.shadowBlur = 12;
ctx.shadowColor = "#e8baff";
ctx.fill();
if (p.y < 0) {
p.y = canvas.height;
p.x = Math.random() * canvas.width;
}
});
requestAnimationFrame(animate);
}
/* OPEN THE BIRTHDAY MESSAGE */
function openLetter() {
const letter = document.getElementById("letter");
const button = document.getElementById("openBtn");
letter.style.display = "block";
button.style.display = "none";
letter.scrollIntoView({
behavior: "smooth",
block: "start"
});
}
window.addEventListener("resize", resize);
resize();
animate();
</script>
</body>
</html>