/* --- MODERN & PREMIUM TASARIM --- */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

body {
    font-family: 'Montserrat', sans-serif; /* Modern Font */
    /* Hareketli, yumuşak bir arka plan */
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
    color: #333;
    padding: 20px;
}

/* Arka plan renk animasyonu */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#container {
    background: rgba(255, 255, 255, 0.85); /* Buzlu Cam Efekti */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari için */
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); /* Yumuşak Gölge */
    max-width: 90%;
    width: 400px;
}

/* Başlık */
#header {
    color: #1a1a1a;
    font-weight: 800;
    font-size: 1.6em;
    margin-bottom: 30px;
    line-height: 1.4;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

/* Ana Aksiyon Düğmesi */
#main-button {
    background: linear-gradient(135deg, #cb2d3e, #ef473a); /* Kırmızı Gradyan */
    color: white;
    font-size: 1.2em;
    padding: 20px 30px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(203, 45, 62, 0.4); /* Renkli Gölge */
    font-weight: 700;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Montserrat', sans-serif;
}

#main-button:active {
    transform: scale(0.95);
    box-shadow: 0 5px 10px rgba(203, 45, 62, 0.4);
}

/* Oyun Alanı */
#game-container {
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
    background-color: #fafafa;
}

canvas {
    width: 100%;
    display: block;
}

/* Müzik Butonu (Sağ Üst) */
#music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: #333;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

/* WhatsApp Butonu */
.contact-btn {
    display: block;
    margin-top: 25px;
    background: linear-gradient(135deg, #25D366, #128C7E); /* WP Gradyan */
    color: white;
    padding: 15px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.contact-btn:active {
    transform: scale(0.98);
}
/* --- SİNEMA BÖLÜMÜ (SOL ÜST & MODAL) --- */

/* Film Butonu (Sol Üste Sabit) */
#cinema-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: white;
    color: #333;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

#cinema-btn:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
}

/* Açılır Pencere (Modal) Arka Planı */
.modal {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    z-index: 2000; /* En üst katman */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); /* Siyah transparan */
    backdrop-filter: blur(5px); /* Arkası bulanık olsun */
    align-items: center;
    justify-content: center;
}

/* Pencerenin Kendisi */
.modal-content {
    background-color: white;
    padding: 40px 30px;
    border-radius: 25px;
    width: 85%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: popup 0.3s ease-out;
}

/* Açılma Animasyonu */
@keyframes popup {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Kapatma Çarpısı */
.close-btn {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
/* --- SON ÇARE BUTONU (SAĞ ÜST KÖŞE) --- */
/* --- SON ÇARE BUTONU (SAĞ ÜST KÖŞE) --- */
#last-resort-btn {
    position: fixed;
    top: 75px; /* Müzik butonunun hemen altına indirdik */
    right: 20px;
    background: #CC0033; /* Koyu Kırmızı (Uyarı Hissi) */
    color: white;
    border: 2px solid #FFC107; /* Sarı Çerçeve */
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

#last-resort-btn:hover {
    transform: scale(1.05);
    background-color: #990022;
}

/* Modal Kapatma Butonu: OH ŞİMDİ TAMAM metni için yer açalım */
.modal-content button {
    padding: 12px 30px !important;
    white-space: nowrap; /* Metin alt satıra geçmesin */
}