:root {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

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

body {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Quicksand', sans-serif;
    overflow: hidden;
    background-color: #f0f4f8;
    position: relative;
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(
            circle at var(--mouse-x) var(--mouse-y), 
            rgba(255, 183, 178, 0.8), 
            transparent 50%
        ),
        radial-gradient(
            circle at calc(100% - var(--mouse-x)) calc(100% - var(--mouse-y)), 
            rgba(199, 206, 234, 0.8), 
            transparent 50%
        ),
        linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #a18cd1 100%);
    background-size: 100% 100%;
}

#rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.falling-img {
    position: absolute;
    top: -100px;
    opacity: 0.9;
    pointer-events: none;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0.9;
    }
}

.card {
    position: relative;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 3.5rem;
    width: 90%;
    max-width: 550px;
    text-align: center;
    color: #4a3b55; 
    z-index: 10;
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.content h1 {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #2d2436;
    line-height: 1.2;
    text-shadow: 2px 2px 0px rgba(255,255,255,0.4);
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    color: #d65db1; 
    margin-bottom: 1.5rem;
    font-style: italic;
}

.body-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4a3b55;
    margin-bottom: 2rem;
    font-weight: 500;
}

.signature {
    font-family: 'Pacifico', cursive;
    font-size: 1.5rem;
    color: #d65db1;
    transform: rotate(-2deg);
    display: inline-block;
}

@media (max-width: 600px) {
    .card {
        padding: 2rem;
        width: 88%;
    }

    .content h1 {
        font-size: 2.2rem;
    }

    .body-text {
        font-size: 1rem;
    }
}