/* =========================
   Global Styles
   ========================= */
body {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    margin: 40px 20px 0 20px;
    background-color: #f9f9f9;
    color: #333;
}

h1.title {
    font-size: 35px;
    margin-bottom: 20px;
}

/* =========================
   Language Selector
   ========================= */
#languageSelector {
    margin-bottom: 20px;
}

#languageSelector select {
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
}

/* =========================
   Mode Select Section
   ========================= */
#modeSelect {
    margin-bottom: 20px;
}

#modeSelect button {
    padding: 12px 20px;
    margin: 5px;
    font-size: 18px;
    cursor: pointer;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

#modeSelect button:hover,
#modeSelect button:focus {
    background-color: #333;
    color: #fff;
    outline: none;
}

/* =========================
   Game Container
   ========================= */
#gameContainer.hidden {
    display: none;
}

#statusText {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* =========================
   Game Grid
   ========================= */
#game {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 5px;
    margin: 20px auto;
    justify-content: center;
}

.cell {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    border-radius: 5px;
}

.cell:hover,
.cell:focus {
    background-color: #eee;
    transform: scale(1.05);
    outline: none;
}

/* =========================
   Reset Button
   ========================= */
#resetBtn {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

#resetBtn:hover,
#resetBtn:focus {
    background-color: #333;
    color: #fff;
    outline: none;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 400px) {
    #game {
        grid-template-columns: repeat(3, 70px);
        gap: 4px;
    }

    .cell {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }

    #modeSelect button,
    #resetBtn {
        font-size: 16px;
        padding: 10px 15px;
    }
}