@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Dancing Script', cursive;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    text-align: center;
    padding: 2rem;
    position: relative;
    width: 100%;
    max-width: 800px;
}

.heart {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ff4b4b" d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') no-repeat center center;
    background-size: contain;
    opacity: 0;
    animation: floatHeart 20s linear infinite;
}

@keyframes floatHeart {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
        opacity: 1;
    }
    90% {
        transform: translate(-50%, -50%) scale(1) rotate(720deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0) rotate(1080deg);
        opacity: 0;
    }
}

.content {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.title {
    color: #ff4b4b;
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.message {
    margin: 2rem 0;
}

.text {
    font-size: 1.8rem;
    color: #666;
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text:nth-child(1) {
    animation-delay: 0.5s;
}

.text:nth-child(2) {
    animation-delay: 1s;
}

.text:nth-child(3) {
    animation-delay: 1.5s;
}

.text:nth-child(4) {
    animation-delay: 2s;
}

.text:nth-child(5) {
    animation-delay: 2.5s;
}

.text:nth-child(6) {
    animation-delay: 3s;
}

.love-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #ff4b4b;
    color: white;
    border-radius: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 75, 75, 0.3);
}

.love-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 75, 75, 0.4);
}

.love-button:active {
    transform: translateY(0);
}

/* Responsive Design */

@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    .content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    .title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    .text {
        font-size: 1.5rem;
    }
    .love-button {
        padding: 0.8rem 1.6rem;
        font-size: 1.3rem;
    }
    .heart {
        width: 80px;
        height: 80px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0.8rem;
    }
    .content {
        padding: 1.2rem;
        margin: 0 0.5rem;
    }
    .title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    .text {
        font-size: 1.2rem;
        margin: 0.8rem 0;
    }
    .love-button {
        padding: 0.7rem 1.4rem;
        font-size: 1.1rem;
    }
    .heart {
        width: 60px;
        height: 60px;
    }
}

/* Fix for very small screens */

@media screen and (max-width: 320px) {
    .title {
        font-size: 1.8rem;
    }
    .text {
        font-size: 1rem;
    }
    .love-button {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}