body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    background-color: #f4f7f6;
    padding: 20px;
}

h1 {
    color: #333;
}

/* --- İSİM GİRİŞ EKRANI STİLLERİ --- */
.isim-giris-ekrani {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.isim-formu .input-group {
    margin-bottom: 15px;
    text-align: left;
}

.isim-formu label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.isim-formu input[type="text"], .isim-formu select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.isim-formu input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 10px;
}

/* --- OYUN DURUMU VE SKOR --- */
.durum {
    margin: 20px auto;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    max-width: 900px;
}

.skor-tablosu {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-top: 1px dashed #ccc;
    margin-top: 10px;
}

.skor-tablosu p {
    margin: 0;
    font-size: 1em;
}

/* --- RENK TANIMLARI --- */
.kirmizi-text { color: red; font-weight: bold; }
.mavi-text { color: blue; font-weight: bold; }
.yesil-text { color: green; font-weight: bold; }
.sari-text { color: orange; font-weight: bold; }
.kazanan { color: darkgreen; }


/* --- OYUN TAHTASI GÖRSELİ --- */
.oyun-tahtasi {
    background-image: url('oyun_tahtasi.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    width: 900px; 
    height: 600px; 
    margin: 30px auto;
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); 
}

.kutu {
    width: 65px; 
    height: 65px;
    border: 1px solid rgba(255, 255, 255, 0.0);
    background-color: transparent;
    position: absolute; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    font-size: 0; 
    transition: all 0.2s;
    z-index: 1; 
}

/* Seçilebilir Kutulara vurgu (Tıklanabilirliği gösterir) */
.secilebilir {
    background-color: rgba(255, 255, 0, 0.3); 
    border-color: green;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
    cursor: pointer;
    z-index: 5; 
    border: 2px solid green;
}

/* --- KUTU KONUMLARI (Görsele göre elle ayarlanmıştır) --- */
/* Merkez Kısım */
#kutu-1 { top: 515px; left: 415px; } 
#kutu-2 { top: 450px; left: 415px; } 

/* Sol Kısım */
#kutu-3 { top: 385px; left: 350px; } 
#kutu-5 { top: 385px; left: 215px; } 
#kutu-6 { top: 385px; left: 150px; }
#kutu-7 { top: 320px; left: 150px; }
#kutu-8 { top: 255px; left: 150px; }
#kutu-9 { top: 190px; left: 150px; }
#kutu-10 { top: 130px; left: 50px; } 

/* Sağ Kısım */
#kutu-4 { top: 385px; left: 480px; } 
#kutu-11 { top: 385px; left: 615px; } 
#kutu-12 { top: 385px; left: 680px; }
#kutu-13 { top: 320px; left: 680px; } 
#kutu-14 { top: 255px; left: 680px; }
#kutu-15 { top: 190px; left: 680px; }
#kutu-16 { top: 130px; left: 785px; } 

/* --- PİYON STİLLERİ --- */
.piyon-alani {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.piyon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    position: absolute;
    line-height: 25px;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
    border: 2px solid #333;
    z-index: 10; 
}

/* Piyon Pozisyonları (Çoklu oyuncu için) */
.piyon.kirmizi { background-color: red; top: 2px; left: 2px; }
.piyon.mavi { background-color: blue; bottom: 2px; right: 2px; }
.piyon.yesil { background-color: green; top: 2px; right: 2px; }
.piyon.sari { background-color: orange; bottom: 2px; left: 2px; }

/* Bitiş kutularındaki piyonların ortalanması */
.kutu[id="kutu-10"] .piyon,
.kutu[id="kutu-16"] .piyon {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}