* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    font-size: 20px;
    animation: float 4s ease-in infinite;
    opacity: 0;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.word {
    font-size: 60px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 12px;
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-shadow: 
        0 0 20px rgba(255, 105, 180, 0.5),
        0 0 40px rgba(255, 105, 180, 0.3),
        0 0 60px rgba(255, 105, 180, 0.2);
}

.word.show {
    opacity: 1;
    transform: translateY(0);
}

#word1 {
    color: #ff69b4;
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#word2 {
    color: #ff1493;
    font-size: 80px;
    background: linear-gradient(45deg, #ff1493, #ff0066);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#word3 {
    color: #ff0066;
    background: linear-gradient(45deg, #ff0066, #ff1744);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#word4 {
    color: #ff1744;
    font-size: 70px;
    background: linear-gradient(45deg, #ff1744, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-glow 3s ease-in-out infinite alternate;
}

@keyframes rainbow-glow {
    0% {
        filter: drop-shadow(0 0 20px rgba(255, 23, 68, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(233, 30, 99, 0.8));
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(156, 39, 176, 0.7));
    }
}

/* Glow animation for shown words */
.word.show {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.6));
    }
    to {
        filter: drop-shadow(0 0 40px rgba(255, 20, 147, 0.8));
    }
}

/* Sparkle effect */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Photo container styling */
.photo-container {
    opacity: 0;
    transform: scale(0.5) translateY(30px);
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.photo-container.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.photo-frame {
    position: relative;
    padding: 10px;
    background: linear-gradient(45deg, #ff69b4, #ff1493, #ff0066);
    border-radius: 20px;
    box-shadow: 
        0 0 30px rgba(255, 105, 180, 0.5),
        0 0 60px rgba(255, 20, 147, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: pulse-frame 2s ease-in-out infinite;
}

@keyframes pulse-frame {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(255, 105, 180, 0.5),
            0 0 60px rgba(255, 20, 147, 0.3),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(255, 105, 180, 0.7),
            0 0 80px rgba(255, 20, 147, 0.5),
            inset 0 0 20px rgba(255, 255, 255, 0.3);
    }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.photo-frame.single-photo {
    padding: 15px;
    background: linear-gradient(45deg, #ff69b4, #ff1493, #ff0066, #e91e63);
    background-size: 300% 300%;
    animation: gradient-shift 3s ease infinite, pulse-frame 2s ease-in-out infinite;
    border-radius: 30px;
    max-width: 90vw;
}

.photo-frame.single-photo img {
    max-width: 350px;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.photo-caption {
    font-size: 18px;
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
    font-weight: 500;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease 0.5s;
}

.photo-container.show .photo-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .word {
        font-size: 35px;
        letter-spacing: 6px;
    }
    
    #word2 {
        font-size: 50px;
    }
    
    #word4 {
        font-size: 45px;
    }
    
    .photo-frame.single-photo img {
        max-width: 280px;
        max-height: 380px;
    }
    
    .photo-caption {
        font-size: 14px;
    }
}
