/* Genel Sayfa Stilleri ve Arka Plan */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    height: 100vh;
    overflow: hidden; /* Sayfanın kaymasını engeller */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ana Mesaj Konteyneri */
.main-content {
    text-align: center;
    z-index: 10; /* Kalplerin üzerinde kalması için */
    position: relative;
}

/* "Sizi Seviyorum" Yazısının Stili */
.love-message {
    font-family: 'Pacifico', cursive; /* El yazısı gibi görünen şık bir font */
    color: white;
    font-size: 6rem; /* Yazı boyutu */
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4); /* Yazıya gölge ekleyerek belirginleştirir */
    animation: pulse 2.5s infinite ease-in-out; /* Yazıya atan bir kalp efekti verir */
}

/* Yazı için atan kalp animasyonu */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Uçuşan Kalplerin Stili */
.heart {
    width: 30px;
    height: 30px;
    position: absolute;
    background-color: #ff4757; /* Canlı bir kırmızı */
    transform: rotate(-45deg);
    animation: fall 10s linear infinite;
    opacity: 0.8;
}

.heart::before,
.heart::after {
    content: '';
    width: 30px;
    height: 30px;
    background-color: #ff4757;
    border-radius: 50%;
    position: absolute;
}

.heart::before {
    top: -15px;
    left: 0;
}

.heart::after {
    top: 0;
    left: 15px;
}

/* Kalplerin düşme animasyonu */
@keyframes fall {
    0% {
        top: -10%;
        transform: rotate(-45deg) rotateY(0deg);
    }
    100% {
        top: 110%;
        transform: rotate(-45deg) rotateY(720deg); /* Dönerken düşme efekti */
    }
}

/* Her bir kalbin farklı bir yerden, hızda ve gecikmeyle başlaması için ayarlar */
.heart:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; }
.heart:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: -5s; }
.heart:nth-child(3) { left: 30%; animation-duration: 6s; animation-delay: -2s; }
.heart:nth-child(4) { left: 40%; animation-duration: 10s; animation-delay: -7s; }
.heart:nth-child(5) { left: 50%; animation-duration: 7s; animation-delay: -1s; }
.heart:nth-child(6) { left: 60%; animation-duration: 9s; animation-delay: -3s; }
.heart:nth-child(7) { left: 70%; animation-duration: 11s; animation-delay: -6s; }
.heart:nth-child(8) { left: 80%; animation-duration: 5s; animation-delay: -4s; }
.heart:nth-child(9) { left: 90%; animation-duration: 13s; animation-delay: -8s; }
.heart:nth-child(10) { left: 5%; animation-duration: 8s; animation-delay: -9s; }


/* Mobil cihazlar için yazı boyutunu ayarlama */
@media (max-width: 600px) {
    .love-message {
        font-size: 3.5rem;
    }
}