.infoButtons button{
    margin-bottom: 10px;
}
.sudoku-container {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sudoku-grid {
    display: grid;
    grid-template-columns: repeat(9, 50px);
    grid-template-rows: repeat(9, 50px);
    /* gap: 1px; */
    border: 3px solid black;
    width: fit-content;
}

.sudoku_cell {
   
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-size: 20px;
    background-color: white;
    border: 1px solid #ddd;
    position: relative;
    box-sizing: border-box;
}

.sudoku_cell.sudoku_selected {
    border: 2px solid rgba(226, 194, 112);
}

.sudoku_candidates {
    position: absolute;
    bottom: 1px;
    font-size: 10px;
    color: #666;
    z-index: 1;
}

.sudoku_user_input {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    z-index: 2;
    background-color: transparent;
    outline: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: text;
    box-sizing: border-box;
    

}

.sudoku_cell.sudoku_error {
    background:
        linear-gradient(to bottom right, transparent 49%, #f0204f 49%, #f0204f 51%, transparent 51%),
        linear-gradient(to bottom left, transparent 49%, #f0204f 49%, #f0204f 51%, transparent 51%);

}

.sudoku_cell.sudoku_hint {
    justify-content: center;
    color: rgb(170, 133, 42);
    background-color: #8f8e8e;
    font-weight: bold;
    box-sizing: border-box;

}

.sudoku_cell.sudoku_fixed {
    background-color: #d3d3d3;
    font-weight: bold;
    pointer-events: none;
    box-sizing: border-box;

}
.sudoku_cell.sudoku_surrender{
    background-color: #989898;
    font-weight: bold;
    pointer-events: none;
    box-sizing: border-box;
    color: #af0202;
}

 .sudoku_cell.sudoku_cell_validate {
    color: rgb(80 145 89);
    background-color: #ebe8e8;
    font-weight: bold;    
    box-sizing: border-box;
    justify-content: center;
}


.sudoku_cell:nth-child(3n) {
    border-right: 2px solid black;
}

/* Agrega bordes horizontales en cada tercera fila */
.sudoku_cell:nth-child(n+19):nth-child(-n+27),
.sudoku_cell:nth-child(n+46):nth-child(-n+54) {
    border-bottom: 2px solid black;
}

/* Elimina el borde izquierdo en la primera celda de cada fila para evitar el borde doble */
.sudoku_cell:nth-child(9n+1) {
    border-left: none;
}
.sudoku_cell:nth-child(9n) {
    border-right: none;
}


@media (max-width: 768px) {

    .sudoku-grid {
        grid-template-columns: repeat(9, 35px);
        grid-template-rows: repeat(9, 35px);
       
    }
    .sudoku_user_input {
        width: 30px;
        height: 30px;
       line-height: 30px;
      
    }

}