/* Base styles */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    font-family: 'Arial', sans-serif;
    color: white;
    text-align: center;
}

.container {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 1rem;
    animation: fadeIn 1s ease-out;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

.content {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.8s ease-out;
}

.heart {
    font-size: 4rem;
    animation: pulse 1.5s ease infinite;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.heart:hover {
    transform: scale(1.2);
}

.heart::before,
.heart::after {
    content: '❤️';
    position: absolute;
    font-size: 2rem;
    pointer-events: none;
    animation: floatingHeart 2s ease-out infinite;
    opacity: 0;
}

.heart:hover::before {
    animation-delay: 0.3s;
    left: -20px;
}

.heart:hover::after {
    animation-delay: 0.6s;
    right: -20px;
}

.message {
    font-size: 1.5rem;
    line-height: 1.6;
    margin: 2rem 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message:hover {
    transform: scale(1.02);
}

.message-text {
    flex: 1;
}

.audio-icon {
    font-size: 1.2rem;
    opacity: 0.8;
    animation: pulse-soft 2s infinite ease-in-out;
}

.audio-icon.playing {
    animation: playing-waves 1s infinite ease-in-out;
    color: #ff69b4;
}

.audio-icon {
    font-size: 1.2rem;
    opacity: 0.8;
    animation: pulse-soft 2s infinite ease-in-out;
}

.audio-icon.playing {
    animation: playing-waves 1s infinite ease-in-out;
    color: #ff69b4;
}

@keyframes pulse-soft {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes playing-waves {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}


.footer {
    font-size: 1rem;
    opacity: 0;
    margin-top: 2rem;
    animation: fadeIn 1s ease-out 1s forwards;
}

.valentine-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
    border-radius: 20px; 
}

.container.show-photo .valentine-photo {
    opacity: 1;
    pointer-events: auto;
}

.container.show-photo .content {
    opacity: 0;
    pointer-events: none;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.8; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatingHeart {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(0, -100px);
        opacity: 0;
    }
}




