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

body {
    background: radial-gradient(circle at center, #3b0764, #1e1b4b);
    min-height: 100vh;
    font-family: 'Nunito', sans-serif;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    color: #ede9fe;
    overflow-x: hidden;
}

.heart-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}
.heart-bg span {
    position: absolute;
    font-size: 25px;
    color: #f472b6;
    opacity: 0.15;
    animation: float 15s infinite;
}

@keyframes float { 
    0%, 100% { transform: translateY(0) rotate(0deg); } 
    50% { transform: translateY(-30px) rotate(15deg); } 
}

.letter-container {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 1;
    position: relative;
    margin-bottom: 100px;
}

h1 {
    font-family: 'Dancing Script', cursive;
    color: #f472b6;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5rem;
}

.poem-start {
    margin: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(244, 114, 182, 0.5);
    letter-spacing: 3px;
    border-top: 1px solid rgba(244, 114, 182, 0.2);
    padding-top: 15px;
}

#content p {
    line-height: 1.9;
    margin-bottom: 25px;
    color: #e9d5ff;
}

.divider {
    text-align: center;
    font-size: 1.2rem;
    margin: 30px 0;
    color: #f472b6;
    opacity: 0.6;
}











.tulip-container {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 130px;
    height: 190px;
    z-index: 999;
    animation: bounce 3.5s ease-in-out infinite;
}

.tulip-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 15px 25px rgba(236, 72, 153, 0.4));
}

.stem {
    animation: sway 4.5s ease-in-out infinite;
    transform-origin: 60px 170px;
}

.leaf {
    animation: leaf-sway 5s ease-in-out infinite;
    transform-origin: 60px 130px;
}

.petal {
    animation: bloom 4s ease-in-out infinite;
    transform-origin: 60px 95px;
}

@media (max-width: 768px) {
    body {
        padding: 40px 15px;
    }
    .letter-container {
        padding: 30px 20px;
        margin-bottom: 40px;
    }
    .tulip-container {
        width: 90px;
        height: 130px;
        bottom: 7px;
        right: 3px;
    }
    h1 {
        font-size: 2rem;
    }
}

@keyframes sway {
    0%, 100% { transform: rotate(-1.5deg); }
    50%      { transform: rotate(1.5deg); }
}

@keyframes leaf-sway {
    0%, 100% { transform: rotate(-12deg); }
    50%      { transform: rotate(12deg); }
}

@keyframes bloom {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50%      { transform: scale(1.06) rotate(2deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
