/* Temel Ayarlar */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #fce4ec; /* Orijinal arka plan rengi */
    height: 100vh;
    overflow: hidden; /* Sayfa kaymasını engelle */
}

/* Ana düzen kapsayıcısı */
.main-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Üst, orta ve altı dağıt */
    align-items: center;
    height: 100%;
    padding: 20px 0; /* Üstten ve alttan biraz boşluk */
    box-sizing: border-box;
}

/* --- ÜST KISIM: Başlık --- */
.main-title {
    color: #333;
    font-size: 2.5em;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* --- ORTA KISIM: Fotoğraf Slider --- */
.photo-slider-frame {
    width: 280px;
    height: 400px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2), 0 5px 15px rgba(0,0,0,0.1); /* Şık gölge */
    border: 8px solid #fff; /* Beyaz çerçeve */
    position: relative;
    overflow: hidden; /* Taşmaları gizle */
    background-color: #fff;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; /* Başlangıçta görünmez */
    transition: opacity 1s ease-in-out; /* Yumuşak geçiş efekti */
}

.slide.active {
    opacity: 1; /* Sadece aktif olan görünür */
}

/* --- ALT KISIM: Buton Alanı ve Sınırları --- */
/* Bu alan "Hayır" butonunun kaçabileceği yeni kafestir */
.buttons-boundary-area {
    position: relative; /* KRİTİK: Kaçan buton için referans noktası */
    width: 80%; /* Ekranın %80'i kadar genişlik */
    max-width: 600px;
    height: 150px; /* Butonların hareket alanı yüksekliği */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Sınırları görmek istersen aşağıdaki yorumu kaldır: */
    /* border: 2px dashed rgba(0,0,0,0.1); */
}

.buttons-container {
    display: flex;
    gap: 30px;
    /* Butonların başlangıçta ortada durması için statik pozisyon */
}

/* Buton Genel Stilleri (Değişmedi) */
button {
    padding: 12px 30px;
    border: none;
    border-radius: 50px; /* Daha yuvarlak modern butonlar */
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 12px rgba(0,0,0,0.2);
}

/* Evet Butonu Stili */
#yes-button {
    background-color: #ff69b4;
    color: white;
    /* Artık absolute değil, akış içinde */
}

/* Hayır Butonu Stili */
#no-button {
    background-color: #f44336;
    color: white;
    position: absolute; /* KRİTİK: Kaçabilmesi için mutlak pozisyon */
    /* Başlangıç pozisyonunu JS ayarlayacak veya CSS ile ortalayabiliriz */
    right: 20%; /* Başlangıçta biraz sağda dursun */
    transition: all 0.2s ease-out; /* Kaçış hızı */
}

/* --- Cevap Ekranı Stilleri (Değişmedi) --- */
#answer-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 105, 180, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 100;
    transition: opacity 0.5s;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.answer-text {
    font-size: 4em;
    font-weight: 900;
    text-align: center;
    animation: pulse 1s infinite alternate;
}

.emoji {
    font-size: 6em;
    margin-top: 20px;
    animation: bounce 1s infinite;
}

/* Animasyonlar */
@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}