/* Tüm elemanlarda kutu boyutlamasını düzenler */
* {
    box-sizing: border-box;
}

/* Genel gövde (body) stili */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 800px;
    margin: 0;
    background-color: #f4f4f4;
    overflow: auto; /* Gövde için kaydırma desteği */
}

/* Oyun konteyneri stili */
.game-container {
    text-align: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    width: 420px;
    overflow: auto; /* Oyun konteyneri için kaydırma desteği */
}

/* Oyun başlatma butonlarının bulunduğu setup kısmı */
#setup-container {
    margin-bottom: 20px;
}

#setup-container button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
}

#setup-container button:hover {
    background-color: #45a049;
}

/* Oyun alanı */
#game-area {
    text-align: center;
}

/* Tahmin kutularının bulunduğu alan */
#word-grid-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;

}

/* Her tahmin satırı */
.word-row {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

/* Harf kutularının genel stili */
.letter-box {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin: 5px;
    text-transform: uppercase; /* Harfler büyük olacak */
    box-sizing: border-box;
}

/* Doğru harf ve doğru yer için kutu rengi (Yeşil) */
.letter-box.correct {
    background-color: #6aaa64;
    color: white;
}

/* Doğru harf ama yanlış yer için kutu rengi (Sarı) */
.letter-box.present {
    background-color: #c9b458;
    color: white;
}

/* Yanlış harf için kutu rengi (Gri) */
.letter-box.absent {
    background-color: #d3d6da;
    color: white;
}

/* Tahmin giriş alanı */
#guess-input {
    padding: 10px;
    font-size: 16px;
    width: 80%;
    max-width: 300px;
    text-transform: uppercase; /* Girilen harfler büyük olacak */
}

/* Butonların genel stili */
button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
}

button:hover {
    background-color: #45a049;
}

/* Sonuç mesajının stili */
#result {
    margin-top: 20px;
    font-size: 18px;
}

/* Kalan deneme sayısının stili */
#attempts-left {
    margin-top: 10px;
    font-size: 16px;
    color: #555;
}

/* Yeni oyun butonunun bulunduğu konteyner */
#new-game-container {
    margin-top: 20px;
}

/* Bilgilendirme kutucuklarının stili */
.green-box, .yellow-box, .red-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.green-box {
    background-color: #6aaa64;
}

.yellow-box {
    background-color: #c9b458;
}

.red-box {
    background-color: #d3d6da;
}

/* Açıklama metni */
#hint {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
    text-align: left;
}

/* Mobil için responsive ayarlar */
@media (max-width: 600px) {
    .letter-box {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    #guess-input {
        width: 80%;
    }

    button {
        font-size: 14px;
        padding: 8px 16px;
    }
}
