<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#fff9f2">
<meta name="description" content="A little birthday surprise, made with love.">
<title>A Little Birthday Surprise</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<script src="config.js"></script>
<script src="script.js" defer></script>
</head>
<body>
<div class="ambient ambient-one" aria-hidden="true"></div>
<div class="ambient ambient-two" aria-hidden="true"></div>
<main>
<section class="opening" id="opening" aria-labelledby="opening-title">
<div class="opening-sparkle sparkle-one" aria-hidden="true">✦</div>
<div class="opening-sparkle sparkle-two" aria-hidden="true">✧</div>
<div class="envelope-wrap">
<p class="eyebrow">A LITTLE SOMETHING FOR YOU</p>
<div class="envelope" aria-hidden="true">
<div class="envelope-letter"><span>With love</span><b>♥</b></div>
<div class="envelope-back"></div>
<div class="envelope-front"></div>
<div class="envelope-flap"></div>
<div class="wax-seal">♥</div>
</div>
<p class="envelope-recipient" id="envelope-recipient">For you, always</p>
<h1 id="opening-title">You have a special<br>letter waiting for you.</h1>
<button class="primary-button" id="open-letter" type="button">
Open Your Letter <span aria-hidden="true">↗</span>
</button>
<p class="tiny-note">A little moment, made just for you</p>
</div>
</section>
<section class="birthday-page" id="birthday-page" aria-hidden="true">
<header class="top-note"><span>✦</span> A DAY AS LOVELY AS YOU <span>✦</span></header>
<section class="hero section-shell" aria-labelledby="birthday-title">
<div class="hero-copy">
<p class="eyebrow">TODAY IS ALL ABOUT YOU</p>
<h2 id="birthday-title">Happy Birthday,<br><em id="recipient-name">Beautiful</em><span class="pink-dot">.</span></h2>
<p class="hero-subtitle">A new year, a new chapter, and a thousand little reasons to smile.</p>
<a class="text-link" href="#letter">A note from me <span aria-hidden="true">↓</span></a>
</div>
<div class="photo-area">
<div class="photo-sparkle photo-sparkle-a" aria-hidden="true">✧</div>
<div class="photo-sparkle photo-sparkle-b" aria-hidden="true">✦</div>
<figure class="polaroid">
<div class="photo-frame" id="photo-frame">
<img id="main-photo" alt="A favorite photo of the birthday person" hidden>
<div class="photo-placeholder" id="photo-placeholder">
<span class="placeholder-flower" aria-hidden="true">✿</span>
<span class="placeholder-initial" id="placeholder-initial">Y</span>
<span class="placeholder-caption">your lovely moment</span>
</div>
</div>
<figcaption>one of my favorite people ♡</figcaption>
</figure>
<span class="photo-tape" aria-hidden="true"></span>
</div>
<span class="floating-heart heart-one" aria-hidden="true">♡</span>
<span class="floating-heart heart-two" aria-hidden="true">♥</span>
</section>
<section class="letter-section section-shell" id="letter">
<div class="section-flourish" aria-hidden="true">✿ ✧ ✿</div>
<p class="eyebrow">A FEW WORDS FOR YOU</p>
<h3>A little birthday note</h3>
<div class="letter-card">
<span class="quote-mark" aria-hidden="true">“</span>
<p id="birthday-message" class="message-text"></p>
<div class="letter-signoff">
<span>With all my love,</span>
<strong id="sender-name">Someone special</strong>
<span class="signature-heart" aria-hidden="true">♡</span>
</div>
</div>
</section>
<section class="cake-section section-shell" id="cake-section">
<div class="section-flourish" aria-hidden="true">✧ ♡ ✧</div>
<p class="eyebrow">ONE LAST LITTLE THING</p>
<h3>Make a Wish!</h3>
<p class="cake-instruction" id="cake-instruction">Take a deep breath, make a wish, then tap the candle.</p>
<div class="cake-scene">
<div class="cake-sparkle cake-sparkle-left" aria-hidden="true">✦</div>
<div class="cake-sparkle cake-sparkle-right" aria-hidden="true">✧</div>
<div class="candle" id="candle" role="button" tabindex="0" aria-label="Blow out the birthday candle" aria-pressed="false">
<span class="flame" id="flame" aria-hidden="true"></span>
<span class="wick"></span>
<span class="candle-body"></span>
</div>
<div class="cake">
<div class="cake-icing"></div>
<div class="cake-top"></div>
<div class="cake-side"><span>♡</span><span>✿</span><span>♡</span></div>
<div class="cake-plate"></div>
</div>
</div>
<div class="closing-message" id="closing-message" aria-live="polite" hidden>
<span class="closing-heart" aria-hidden="true">♥</span>
<p id="closing-text"></p>
<strong id="closing-signature"></strong>
</div>
<footer>MADE WITH A LITTLE EXTRA LOVE <span aria-hidden="true">♡</span></footer>
</section>
</section>
</main>
<div class="music-control" id="music-control" hidden>
<button type="button" id="music-toggle" aria-label="Pause background music" title="Play or pause music">
<span id="music-icon" aria-hidden="true">Ⅱ</span>
</button>
<button type="button" id="mute-toggle" aria-label="Mute background music" title="Mute or unmute music">
<span id="mute-icon" aria-hidden="true">♫</span>
</button>
<span class="music-label" id="music-label">A little soundtrack</span>
</div>
<div id="youtube-player" class="youtube-player" aria-hidden="true"></div>
<div class="confetti-layer" id="confetti-layer" aria-hidden="true"></div>
</body>
</html>