* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Arial', serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.heart {
    font-size: 150px;
    cursor: pointer;
    animation: pulse 1.5s ease-in-out infinite;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10;
}

.heart:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.heart.explode {
    animation: explode 0.6s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.message {
    position: absolute;
    color: white;
    text-align: center;
    z-index: 5;
    animation: fadeInScale 1.5s ease-in forwards;
    max-width: 90%;
    padding: 5px;
    max-height: 100vh;
}

.message.hidden {
    display: none;
}

.title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 182, 193, 0.6),
        0 0 30px rgba(255, 105, 180, 0.4);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 182, 193, 0.6),
            0 0 30px rgba(255, 105, 180, 0.4);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 1),
            0 0 30px rgba(255, 182, 193, 0.8),
            0 0 40px rgba(255, 105, 180, 0.6);
    }
}

.poem {
    font-size: 22px;
    line-height: 1.8;
    font-style: italic;
    opacity: 0;
    animation: fadeIn 2s ease-in forwards 0.5s;
}

.poem-line {
    margin: 2px 0;
    opacity: 0;
    animation: slideIn 0.8s ease-out forwards;
}

.poem-line:nth-child(1) { animation-delay: 1s; }
.poem-line:nth-child(2) { animation-delay: 1.2s; }
.poem-line:nth-child(3) { animation-delay: 1.4s; }
.poem-line:nth-child(4) { animation-delay: 1.6s; }
.poem-line:nth-child(6) { animation-delay: 1.8s; }
.poem-line:nth-child(7) { animation-delay: 2s; }
.poem-line:nth-child(8) { animation-delay: 2.2s; }
.poem-line:nth-child(9) { animation-delay: 2.4s; }
.poem-line:nth-child(10) { animation-delay: 2.6s; }
.poem-line:nth-child(12) { animation-delay: 2.8s; }
.poem-line:nth-child(13) { animation-delay: 3s; }
.poem-line:nth-child(14) { animation-delay: 3.2s; }
.poem-line:nth-child(15) { animation-delay: 3.4s; }
.poem-line:nth-child(17) { animation-delay: 3.6s; }
.poem-line:nth-child(18) { animation-delay: 3.8s; }
.poem-line:nth-child(19) { animation-delay: 4s; }
.poem-line:nth-child(20) { animation-delay: 4.2s; }
.poem-line:nth-child(21) { animation-delay: 4.4s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.particle {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 15;
}

@keyframes particleExplosion {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Flash effect for explosion */
.flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,182,193,0.4) 40%, transparent 70%);
    z-index: 20;
    pointer-events: none;
    animation: flash 0.5s ease-out forwards;
}

@keyframes flash {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Screen shake effect */
body.shake {
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-10px, -10px) rotate(-2deg); }
    20% { transform: translate(10px, 10px) rotate(2deg); }
    30% { transform: translate(-10px, 10px) rotate(-2deg); }
    40% { transform: translate(10px, -10px) rotate(2deg); }
    50% { transform: translate(-10px, -10px) rotate(-2deg); }
    60% { transform: translate(10px, 10px) rotate(2deg); }
    70% { transform: translate(-10px, 10px) rotate(-2deg); }
    80% { transform: translate(10px, -10px) rotate(2deg); }
    90% { transform: translate(-5px, -5px) rotate(-1deg); }
}

/* Floating hearts background */
.floating-hearts {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    font-size: 30px;
    opacity: 0.3;
    animation: float-up linear forwards;
}

@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .heart {
        font-size: 100px;
    }
    
    .title {
        font-size: 30px;
    }
    
    .poem {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .heart {
        font-size: 80px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .poem {
        font-size: 10px;
    }
}
