/* Estilos globales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    margin-top: auto;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

#timer {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

#sudoku-board {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(9, 1fr);
    gap: 2px;
    margin-bottom: 20px;
    max-width: 450px;
    width: 100%;
}

.cell {
    width: 100%;
    height: 50px;
    font-size: 24px;
    text-align: center;
    background-color: #fff;
    border: 1px solid #ccc;
    outline: none;
    cursor: pointer;
    color: #333;
}

.cell.filled {
    background-color: #f0f0f0;
    color: #333;
    font-weight: bold;
}

.cell.invalid {
    background-color: #ffcccc;
}

.cell.highlight {
    background-color: #d9f7ff;
}

/* Líneas más gruesas para separar las cuadrículas 3x3 */
.cell:nth-child(3n+1) {
    border-left: 3px solid #333;
}

.cell:nth-child(3n) {
    border-right: 3px solid #333;
}

.cell:nth-child(-n+9) {
    border-top: 3px solid #333;
}

.cell:nth-last-child(-n+9) {
    border-bottom: 3px solid #333;
}

button, select {
    margin-top: 10px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover, select:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/*  IDIOMA */

.language-selector {
    margin-top: 10px;
}

.language-selector select {
    padding: 5px;
    font-size: 16px;
}

/* ADS*/

.ads1 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ads2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.ads3 {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 10px;
}



/* Diseño responsivo */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .cell {
        font-size: 18px;
        height: 40px;
    }
}
