body {
    margin: 0;
    font-family: "Segoe UI", arial, sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #ffd6e0, #fff);
    color: #333;
    overflow-x: hidden;
}

/* Tombol play musik */
#play-btn {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #ff5c8a;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s ease;
}
#play-btn:hover {
    transform: scale(1.05);
    background: #ff3366;
}

/* Gift box */
#gift-box {
    margin-top: 100px;
    cursor: pointer;
}
#gift-box img {
    width: 200px;
    transition: transform 0.3s ease;
}
#gift-box img:hover {
    transform: scale(1.1);
}

/* Foto */
.photo {
    max-width: 90%;
    margin: 20px 0;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Message */
.message {
    max-width: 720px;
    margin: 30px auto;
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    font-size: 1.1em;
    line-height: 1.6;
    text-align: left;
}

/* Animasi fade-in */
.fade-in {
    opacity: 0;
    animation: fadeIn 2s forwards;
}
.fade-in.delay { animation-delay: 1s; }
.fade-in.delay2 { animation-delay: 2s; }
.fade-in.delay3 { animation-delay: 3s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

/* === Animasi gift & message === */
.hide {
    animation: fadeOut 0.8s forwards;
}
@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

#surprise-message {
    display: none;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease;
}
#surprise-message.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}


.animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* Ubah z-index menjadi 0 */
}

.balloon {
    position: absolute;
    bottom: -150px;
    width: 100px;
    animation: balloonRise 10s forwards infinite;
    opacity: 0;
}
.balloon1 { left: 10%; animation-delay: 1s; }
.balloon2 { left: 50%; animation-delay: 3s; }
.balloon3 { left: 80%; animation-delay: 5s; }

@keyframes balloonRise {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 1; }
}

/* --- Efek Confetti & Hati --- */
.confetti, .heart {
    position: absolute;
    animation: fall linear forwards;
    opacity: 0;
    z-index: 10;
}

.confetti {
    width: 10px;
    height: 10px;
    background-color: #ffb3ba;
    border-radius: 50%;
}

.heart {
    width: 20px;
    height: 20px;
    background-color: #e06c75;
    transform: rotate(-45deg);
}
.heart:before, .heart:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #e06c75;
    border-radius: 50%;
}
.heart:before { top: -10px; left: 0; }
.heart:after { left: 10px; top: 0; }

@keyframes fall {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(100vh);
        opacity: 1;
    }
}

/* --- Tampilan Pesan dan Kado --- */
#surprise-message {
    display: none;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease;
    z-index: 20; /* Tambahkan z-index agar pesan di atas animasi */
}
#surprise-message.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}

#gift-box {
    margin-top: 100px;
    cursor: pointer;
    z-index: 20; /* Tambahkan z-index agar kado di atas animasi */
}
#gift-box img {
    width: 200px;
    transition: transform 0.3s ease;
}
#gift-box img:hover {
    transform: scale(1.1);
}