/* Genel Stil */
body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background-color: black;
    font-family: Arial, sans-serif;
}

canvas {
    display: block;
    background-color: white;
    width: 100%;
    height: 100%;
}

/* Menü Stilleri */
.menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: rgba(20, 20, 20, 0.85);
    padding: 30px;
    border-radius: 15px;
    color: white;
    min-width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    /* backdrop-filter: blur(5px); */
}

/* Başlangıç Menüsü Özel Stilleri */
#startMenu h1 {
    color: #00ff00;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

#startMenu p {
    color: #ccffcc;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Oyun Bitti Menüsü Özel Stilleri */
#gameOverMenu {
    /* display: none; Bu JS ile kontrol ediliyor */
}

#gameOverMenu h1 {
    color: #ff3333;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

#gameOverMenu p {
    color: #ccffcc;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* Genel Menü Buton Stilleri (Ana sayfadakine benzer) */
.menu button {
    padding: 12px 25px;
    font-size: 1rem;
    margin: 8px;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s ease;
}

.menu button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Çeviri Butonları Stili */
#translate-buttons {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.translate-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    background-color: #6c757d;
}

.translate-btn:hover {
    background-color: #5a6268;
}

/* Responsive Tasarım İyileştirmeleri */
@media (max-width: 768px) {
    .menu {
        padding: 20px;
        min-width: 250px;
    }
    #startMenu h1, #gameOverMenu h1 {
        font-size: 2rem;
    }

    #startMenu p, #gameOverMenu p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .menu button {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin: 5px;
    }
    .translate-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .menu {
        padding: 15px;
        min-width: 90%;
        border-radius: 10px;
    }
    #startMenu h1, #gameOverMenu h1 {
        font-size: 1.6rem;
    }

    #startMenu p, #gameOverMenu p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .menu button {
        padding: 8px 16px;
        font-size: 0.8rem;
        width: 80%;
        display: block;
        margin: 8px auto;
    }
    #translate-buttons {
        margin-top: 15px;
        padding-top: 10px;
    }
    .translate-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        width: auto;
        display: inline-block;
        margin: 5px;
    }
}

/* Yükleme Göstergesi Stili */
#loadingIndicator {
    /* .menu stillerini miras alır ama bazılarını override edebiliriz */
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    z-index: 100; /* Diğer menülerin üzerinde olsun */
}

#loadingIndicator p {
    font-size: 1.5rem;
    color: #ddd;
}