@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Poppins:wght@300;400&display=swap');

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed; /* Mobilde scroll oluşmasını kesin engeller */
    touch-action: none; /* Mobilde kaydırma (scroll) hareketini devredışı bırakır */
}

body {
    /* iOS cihazlarda arkaplan bozulmasın diye arkaplan rengi fallback yapıldı ve attachment kaldırıldı */
    background-color: #a3c995;
    background-image: linear-gradient(135deg, #a3c995, #689f58);
    font-family: 'Poppins', sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer; /* iOS cihazlarda ekrana tıklamayı algılaması için çok önemlidir */
}

#greeting {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 25;
    pointer-events: none;
    color: #880e4f;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);

    /* Başlangıçta gizli ve yumuşak geçişli olacak */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;

    /* Yuvarlak ve transparan gri arka plan */
    background-color: rgba(220, 220, 220, 0.65);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    padding: 30px;
    min-width: 320px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#greeting h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

#greeting p {
    font-size: 1.5rem;
    font-weight: 300;
}

@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.fade-in-text {
    animation: fadeInText 0.8s ease forwards;
}

#click-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #2e7d32;
    background-color: rgba(255, 235, 150, 0.9);
    padding: 10px 25px;
    border-radius: 30px;
    z-index: 20;
    pointer-events: none;
    animation: pulse 1.5s infinite;
    box-shadow: 0 4px 15px rgba(255, 202, 40, 0.4);
    transition: opacity 0.5s ease-out;
    font-weight: 600;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.flower {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease-out;
    z-index: 5;
}

#memory-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

.memory-photo {
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity; /* iOS'ta performans ve pürüzsüz kırpma için modern yöntem */
    overflow: hidden;
    z-index: 1;
}

/* Mobil cihazlar için yazı boyutu ayarı ve mobil arka planı */
@media (max-width: 600px) {
    body {
        /* Galaxy A54 ve benzeri güncel telefon ekranları için özel kalibre edilmiş canlı yeşil tonu */
        background-color: #8cb57e;
        background-image: linear-gradient(135deg, #8cb57e, #558c46);
    }
    #greeting {
        /* A54 gibi geniş ve uzun ekranlarda kutunun şekli bozulmasın diye duyarlı (vw) ölçü kullanıldı */
        min-width: 70vw;
        min-height: 70vw;
        padding: 25px;
    }
    #greeting h1 {
        font-size: 2.2rem;
    }
    #greeting p {
        font-size: 1.1rem;
    }
    #memory-gallery {
        /* Mobil ayarı kaldırıldı, artık full ekran çalışıyor */
    }
    .memory-photo {
        border-width: 3px;
    }
}