.heart {
    position: absolute;
    width: 5vmin; /* Scale from 30px */
    height: 5vmin;
    background-image: url('assets/heart.png');
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
}

.balloon {
    position: absolute;
    width: 20vmin; /* Scale from 160px */
    height: 20vmin;
    background-image: url('assets/balloon.png');
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
}

.flower {
    position: absolute;
    width: 8vmin; /* Scale from 60px */
    height: 8vmin;
    background-image: url('assets/flower.png');
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
}

.flower2 {
    position: absolute;
    width: 6vmin; /* Scale from 40px */
    height: 6vmin;
    background-image: url('assets/flower2.png');
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
}

.sparkle {
    position: absolute;
    width: 3vmin; /* Scale from 20px */
    height: 3vmin;
    background-image: url('assets/sparkle.png');
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
}

#lyrics {
    font-style: italic;
    position: fixed;
    bottom: calc(5vmin + env(safe-area-inset-bottom)); /* Adjusted from 60px for iPhone safe area */
    left: 50%;
    transform: translateX(-50%);
    font-size: 4vmin; /* Scale from 2em */
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 80vw; /* Scale from 80% */
    max-width: 600px;
    z-index: 10; /* Ensure lyrics are above other elements */
    background: rgba(0, 0, 0, 0.5);
}

.slideshow-img {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#animationContent h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 6vmin; /* Scale from 4xl */
    font-weight: 700;
    color: #fff1e6; /* Soft gold for romantic feel */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: calc(5vmin + env(safe-area-inset-top)); /* Near top, avoid notch */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90vw;
    max-width: 600px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3); /* Light background for contrast */
    padding: 1.5vmin;
    border-radius: 5px;
}

/* Media query for iPhone 16 Pro Max (1320x2868, ~460ppi) */
@media only screen and (max-width: 430px) and (min-resolution: 400dpi) {
    .heart {
        width: 4vmin;
        height: 4vmin;
    }
    .balloon {
        width: 15vmin;
        height: 15vmin;
    }
    .flower {
        width: 6vmin;
        height: 6vmin;
    }
    .flower2 {
        width: 4vmin;
        height: 4vmin;
    }
    .sparkle {
        width: 2.5vmin;
        height: 2.5vmin;
    }
    #lyrics {
        font-size: 3.5vmin;
        bottom: calc(4vmin + env(safe-area-inset-bottom));
        width: 85vw;
    }
    .slideshow-img {
        border-radius: 6px; /* Slightly smaller for smaller screen */
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    }
    #animationContent h2 {
        font-size: 5vmin;
        top: calc(4vmin + env(safe-area-inset-top));
        width: 85vw;
        padding: 1vmin;
    }

}