@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

/* --- CANLI ARKA PLAN & GENEL AYARLAR --- */
body {
    font-family: 'Poppins', sans-serif;
    /* Canlı Mor-Mavi Gradyan */
    background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%); 
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.95); /* Arkası hafif görünen beyaz */
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    min-height: 650px;
}

/* --- YAN YANA MENÜ --- */
.menu-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.98), rgba(240,240,255,0.95));
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 25px;
}

.menu-overlay h1 {
    font-size: 3.5rem;
    color: #4A00E0; /* Tema rengi */
    margin-bottom: 50px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
    text-align: center;
}

/* Butonları yan yana dizen ayar */
.menu-buttons {
    display: flex;
    flex-direction: row; /* Yan yana */
    gap: 20px;
    flex-wrap: wrap; /* Sığmazsa aşağı kaydır */
    justify-content: center;
    width: 100%;
}

.menu-btn {
    padding: 30px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    /* Buton renkleri */
    background: linear-gradient(45deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    width: 280px; /* Sabit genişlik */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Her butona farklı renk verelim */
.menu-btn:nth-child(1) { background: linear-gradient(45deg, #FF512F 0%, #DD2476 100%); } /* Kırmızı/Pembe */
.menu-btn:nth-child(2) { background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%); } /* Mavi */
.menu-btn:nth-child(3) { background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%); } /* Turuncu/Mor */

.menu-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* --- HEADER & STATS --- */
header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 15px;
}
#game-title { font-size: 1.5rem; color: #4A00E0; margin-left: 15px; font-weight: 800; }

.back-btn {
    background: #333; color: white; border: none; padding: 10px 20px;
    border-radius: 10px; cursor: pointer; font-weight: 600;
}
.stats { display: flex; gap: 15px; }
.stat-box {
    background: #f8f9fa; padding: 10px 25px; border-radius: 15px;
    font-weight: 800; font-size: 1.3rem; color: #333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.timer-box { color: #e74c3c; }

/* --- OYUN ALANI --- */
.game-control { font-size: 1.8rem; margin-bottom: 20px; font-weight: 700; color: #333; text-align: center; }
#target-display { color: #4A00E0; text-decoration: underline; }

input#game-input {
    padding: 15px; font-size: 1.5rem; width: 60%;
    border: 3px solid #ddd; border-radius: 15px; text-align: center; outline: none;
    font-family: 'Poppins', sans-serif;
    transition: 0.3s;
}
input#game-input:focus { border-color: #4A00E0; box-shadow: 0 0 15px rgba(74, 0, 224, 0.2); }
#typed-feedback { font-size: 1.2rem; margin-top: 10px; min-height: 30px; font-weight: 600; }

/* --- HARİTA --- */
.map-container { width: 100%; display: flex; justify-content: center; }
svg { width: 100%; height: auto; max-height: 520px; filter: drop-shadow(0 10px 10px rgba(0,0,0,0.1)); }
path { fill: #e0e0e0; stroke: #fff; stroke-width: 1.5px; cursor: pointer; transition: all 0.2s; }
path:hover { fill: #c0c0c0; transform: translateY(-3px); }
path.correct { fill: #00b894 !important; stroke: #00b894; }
path.wrong { fill: #d63031 !important; animation: shake 0.4s; }

/* --- MODAL --- */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); justify-content: center; align-items: center; z-index: 999;
}
.modal-content {
    background: white; padding: 40px; border-radius: 20px; text-align: center; width: 90%; max-width: 400px;
    animation: popIn 0.3s ease;
}
.btn { padding: 15px 30px; margin: 10px; font-size: 1rem; border: none; border-radius: 10px; cursor: pointer; font-weight: bold; background: #4A00E0; color: white; }
.btn:hover { opacity: 0.9; transform: scale(1.05); }

@keyframes popIn { from { transform: scale(0.5); } to { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }