<!DOCTYPE html>
<html lang="ar">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Happy 19th Birthday Joudyy!</title>
<style>
* { box-sizing: border-box; }
body {
margin: 0;
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #ffe0ed, #eee2ff);
color: #684568;
text-align: center;
min-height: 100vh;
}
.screen {
display: none;
min-height: 100vh;
padding: 35px 18px;
justify-content: center;
align-items: center;
flex-direction: column;
}
#home { display: flex; }
h1 { color: #c05291; font-size: 30px; }
h2 { color: #a34c91; }
p { font-size: 18px; line-height: 1.8; }
button {
border: none;
border-radius: 25px;
padding: 13px 25px;
margin: 10px;
background: #d76ca9;
color: white;
font-size: 17px;
cursor: pointer;
box-shadow: 0 4px 10px #c98caf55;
}
button:active { transform: scale(.96); }
.gift {
font-size: 65px;
background: #ffffff99;
border-radius: 20px;
padding: 15px;
margin: 10px;
cursor: pointer;
border: 2px solid #f4b6d5;
}
#candles {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 13px;
max-width: 350px;
margin: 20px auto;
}
.candle {
font-size: 35px;
background: #ffffff99;
border-radius: 12px;
padding: 10px 3px;
cursor: pointer;
}
.candle.off { opacity: .35; }
.message {
display: none;
background: #fff8fc;
border: 2px dashed #e8a4c8;
border-radius: 18px;
padding: 20px;
max-width: 400px;
margin: 15px auto;
line-height: 1.8;
font-size: 18px;
}
.envelope {
font-size: 100px;
cursor: pointer;
margin: 20px;
}
.small { font-size: 15px; color: #98758f; }
.heart { font-size: 28px; }
</style>
</head>
<body>
<!-- الصفحة الأولى -->
<section class="screen" id="home">
<div class="heart">💗 🌷 ✨ 💗</div>
<h1>Hey Joudyy!</h1>
<p>Someone has a little surprise for you...</p>
<div style="font-size:100px">🎁</div>
<p>Are you ready to open it?</p>
<button onclick="showScreen('birthday')">Open your surprise 💝</button>
<p class="small">A little world made just for you ♡</p>
</section>
<!-- الصفحة الثانية: عيد الميلاد والشموع -->
<section class="screen" id="birthday">
<div class="heart">🎀 🌸 🎀</div>
<h1>Happy 19th Birthday!</h1>
<h2>Joudyy turns NINETEEN! 🎂</h2>
<p>19 candles for 19 beautiful years!<br>Tap every candle to blow it out 🕯️</p>
<div id="candles"></div>
<p id="candleCount">Candles left: 19</p>
<p id="wish" class="message">✨ Make a wish, beautiful girl! ✨</p>
<button id="afterCandles" style="display:none" onclick="showScreen('gifts')">
Continue to your gifts 🎁
</button>
</section>
<!-- الصفحة الثالثة: الهدايا -->
<section class="screen" id="gifts">
<h1>Three little gifts for you! 🎁</h1>
<p>Choose a gift and discover what's inside 💗</p>
<div style="display:flex;justify-content:center;flex-wrap:wrap">
<div class="gift" onclick="openGift(1)">🎁</div>
<div class="gift" onclick="openGift(2)">🎀</div>
<div class="gift" onclick="openGift(3)">💝</div>
</div>
<div class="message" id="giftMessage"></div>
<button onclick="showScreen('letter')">One last surprise 💌</button>
</section>
<!-- الصفحة الرابعة: الرسالة -->
<section class="screen" id="letter">
<h1>A letter for you 💌</h1>
<p>There's something special waiting inside...</p>
<div class="envelope" onclick="openLetter()">💌</div>
<p class="small">Tap the envelope to open it ♡</p>
<div class="message" id="letterMessage">
<h2>Dear Joudyy, 💗</h2>
Happy birthday to you! 🌷
<br><br>
I hope your 19th year is filled with happiness,
beautiful memories, unexpected surprises,
and all the little things that make you smile.
<br><br>
Never stop being your lovely self.
You deserve all the happiness in the world!
<br><br>
With lots of love, always. 💕
</div>
<button onclick="showScreen('final')">One final thing... ✨</button>
</section>
<!-- الصفحة الأخيرة -->
<section class="screen" id="final">
<div style="font-size:65px">🌸💗🎂💗🌸</div>
<h1>Happy Birthday, Joudyy!</h1>
<h2>Welcome to chapter 19! ✨</h2>
<p>
May this year be as lovely as your heart,<br>
as bright as your smile,<br>
and full of beautiful beginnings.
</p>
<div style="font-size:45px">🎀 🦋 🌷 ⭐</div>
<h2>Love you! ♡</h2>
<button onclick="showScreen('home')">Replay the surprise 🔄</button>
</section>
<script>
function showScreen(id) {
document.querySelectorAll('.screen').forEach(function(screen) {
screen.style.display = 'none';
});
document.getElementById(id).style.display = 'flex';
}
var candlesLeft = 19;
var candleArea = document.getElementById('candles');
for (let i = 0; i < 19; i++) {
let candle = document.createElement('div');
candle.className = 'candle';
candle.innerHTML = '🕯️';
candle.onclick = function() {
if (!candle.classList.contains('off')) {
candle.classList.add('off');
candle.innerHTML = '💨';
candlesLeft--;
document.getElementById('candleCount').innerHTML =
'Candles left: ' + candlesLeft;
if (candlesLeft === 0) {
document.getElementById('wish').style.display = 'block';
document.getElementById('afterCandles').style.display = 'inline-block';
}
}
};
candleArea.appendChild(candle);
}
function openGift(number) {
var messages = {
1: '🌷 Your first gift: A garden full of flowers, because you deserve beauty every day!',
2: '🦋 Your second gift: A year full of adventures, laughter and unforgettable memories!',
3: '💗 Your third gift: Endless happiness, love, peace and all your dreams coming true!'
};
var box = document.getElementById('giftMessage');
box.innerHTML = messages[number];
box.style.display = 'block';
}
function openLetter() {
document.getElementById('letterMessage').style.display = 'block';
}
</script>
</body>
</html>