body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: url('https://img.freepik.com/vector-gratis/tema-san-valentin-corazones-cielo-rosa_1308-38030.jpg?sent=ais&hybrid&w=740') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Arial', sans-serif;
    text-align: center;
    overflow: hidden;
    position: relative;
}

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

.message {
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
    font-size: 28px;
    color: #d63384;
    font-weight: bold;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    animation: bounce is infinite;
}

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

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

.hearts {
    position: absolute;
    top: 20%;
    left: 10%;
    z-index: -1;
    font-size: 50px;
    color: #ff99b6;
    animation: floatHearts 5s ease-in-out infinite;
}

.hearts:nth-child(2) { left: 25%; animation-duration: 6s; }
.hearts:nth-child(3) { left: 40%; animation-duration: 6s; }
.hearts:nth-child(4) { left: 60%; animation-duration: 6s; }
.hearts:nth-child(5) { left: 75%; animation-duration: 6s; }

.text-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.charming-text {
    position: absolute;
    font-size: 18px;
    font-family: 'Cursive', sans-serif;
    color: #d63384;
    animation: fadeInText 6s ease-in-out infinite;
    z-index: 1;
    padding: 10px 20px;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 80vw;
    word-wrap: break-word;
}

.charming-text:nth-child(1) { top: 15%; left: 5%; text-align: left; animation-duration: 6s; }
.charming-text:nth-child(2) { top: 25%; left: 5%; text-align: left; animation-duration: 7s; }
.charming-text:nth-child(3) { top: 35%; left: 5%; text-align: left; animation-duration: 8s; }
.charming-text:nth-child(4) { top: 15%; left: 5%; text-align: right; animation-duration: 6s; }
.charming-text:nth-child(5) { top: 25%; left: 5%; text-align: right; animation-duration: 7s; }
.charming-text:nth-child(6) { top: 35%; left: 5%; text-align: right; animation-duration: 8s; }

@keyframes fadeInText {
    0% { opacity: 0;}
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.flowers {
    position: absolute;
    bottom: 10px;
    animation: flowerAnimation 5s ease-in-out infinite;
    font-size: 10px;
}

@keyframes flowerAnimation {
    0% { transform: translateY(0); opacity: 0; }
    50% { transform: translateY(-50px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0; }
}

.flowers:nth-child(1) { left: 10%; animation-duration: 6s ;}
.flowers:nth-child(2) { left: 30%; animation-duration: 7s ;}
.flowers:nth-child(3) { left: 50%; animation-duration: 8s ;}
.flowers:nth-child(4) { left: 70%; animation-duration: 9s ;}
.flowers:nth-child(5) { left: 90%; animation-duration: 10s ;}

.bubbles {
    position: absolute;
    bottom: 10px;
    font-size: 25px;
    color: #ff99b6;
    animation: bubbleAnimation 7s ease-in-out infinite;
}

@keyframes bubbleAnimation {
    0% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(-100px) scale(1.3); opacity: 0.4; }
    0% { transform: translateY(0) scale(1); opacity: 0.8; }
}

#bubbles-text {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.text-bubble {
    position: absolute;
    font-size: 18px;
    font-family: 'Cursive', sans-serif;
    color: #d63384;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: floatText 8s ease-in-out forwards;
    white-space: nowrap;
}

@keyframes floatText {
    0% { opacity: 0; transform: scale(0.5) translateY(0px); }
    50% { opacity: 1; transform: scale(1.2) translateY(-50px); }
    100% { opacity: 0; transform: scale(1) translateY(-100px); }

}

@media (max-width: 768px) {
    Body {
        background-size: 100% 100%;
        background-position: center top;
    }

.message {font-size: 24px; padding: 20px;}
.charming-text {font-size: 16px; padding: 8px 16px;}
.flowers {font-size: 25px;}
.bubbles {font-size: 20px;}

}