body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    text-align: center;
    color: #333;
    overflow-x: hidden;
}

/* Login ekranı */
#loginScreen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    width: 90%;
    max-width: 300px;
}

.login-box input {
    width: 90%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
}

.login-box button {
    margin-top: 15px;
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 8px;
    background: #ff4b7d;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.container {
    padding: 20px;
}

h1 {
    font-size: 2.5rem;
}

.date {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

#counter {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.gallery img, 
.gallery video {
    width: 100%;
    height: 200px; /* SABİT YÜKSEKLİK */
    object-fit: cover; /* taşanı kırp */
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

#modal {
    display: none; /* SADECE BU OLMALI */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);

    justify-content: center;
    align-items: center;

    padding: 20px;
    z-index: 999;
}

/* Ortak medya ayarı */
#modal img,
#modal video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    object-fit: contain;
}

/* Kalp container */
.hearts {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Tek kalp */
.heart {
    position: absolute;
    color: rgba(255, 0, 100, 0.7);
    font-size: 20px;
    animation: floatUp 6s linear infinite;
}

/* Yukarı çıkma animasyonu */
@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1.2);
        opacity: 0;
    }
}

/* Mobil iyileştirme */
@media (max-width: 768px) {

    h1 {
        font-size: 1.8rem;
    }

    .date {
        font-size: 1rem;
    }

    #counter {
        font-size: 1.2rem;
    }

    .container {
        padding: 15px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery img, 
    .gallery video {
        border-radius: 10px;
        height: 140px;
    }

    #modal img {
        max-height: 80vh;
    }
}

/* Daha küçük telefonlar */
@media (max-width: 480px) {
    .gallery img, 
    .gallery video  {
        height: 180px;
        grid-template-columns: 1fr;
    }
}
