/* 
    Document   : sudoku.css
    Created on : 06-11-2020, 20:04:00
    Author     : joaquin
    Description: Hoja de estilos para sudoku.
*/

root {
    display: block;
}

body {
    background-color: #f5f5E1;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0 0 0 0;
    border-top:  2px solid #f0f0d2;
    border-left: 2px solid #f0f0d2;
    border-bottom: 2px solid #f0f0d2;
    border-right: 2px solid #f0f0d2;
    border-radius: 10px;
    padding: 2px;  
}

/* Para que no se muestren las barras de desplazamiento */
::-webkit-scrollbar {
    display: none;
}

.contenedorCentrado{
    width: 100%;
    height:100%;

    text-align: center;
    margin: auto;
    /**/
    float: left;
}

.contenedor_con_borde{
    text-align: center;
    margin: 1px 0 1px 0;
    border-top:  5px solid #f0f0d2;
    border-left: 5px solid #f0f0d2;
    border-bottom: 5px solid #f0f0d2;
    border-right: 5px solid #f0f0d2;
    border-radius: 8px;
    height: fit-content;
}

.tablero_casilla_imagen{
    width: 100%; 
    height: 100%;
}

.Boton {
    /* Botón grande como el de NUEVO */
    
    /* Para que Safari no dibuje los botones preconfigurados
    -webkit-appearance: none;
    */
    background-color: #f0f0d2;
    font-size: calc(80vw  / 9 / 2.0);
    width: 100%;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 8px; 
    border-radius: 8px;
    font-weight: bolder;
    color: #0000aa;
    text-transform: uppercase;
    cursor: pointer;
}

/*
CSS para el estado del tablero
*/

.estadoTablero{
    font-size:  calc(90vw  / 9 / 2.5);
    font-weight: bold;
    width: calc(100% - 13px);
    text-align: center;
    margin: 0 auto;
    color: black;
    background-color: #e8e8e8;
    border-radius: 4px;
    border: 1px solid black;
}

.estadoTableroTabla{
    border: 0;
    width: 100%;
    border-collapse: collapse;
}

.estadoTableroTabla td{
    vertical-align: top;
    border: 0px solid black;
    padding: 2px;
}

.estadoTableroTabla td:first-child{
    width: 33.33%;
}
.estadoTableroTabla td:nth-child(2){
    width:33.33%;
}
.estadoTableroTabla td:last-child{
    /* Porcentaje en el caso de tener que escribir la solución */
    width:33.33%;
}

/*
CSS para el teclado
*/

#t02 {
    font-size:  calc(80vw / 9 / 1.2);
    width: 100%;
    margin: 0 auto;
    border-spacing: 5px;
}

.tecla{
    position: relative;
    font-size:  calc(80vw  / 9 / 1.2);
    background: #fff;
    text-align: center;
    border: 1px solid black;
    border-radius: 4px;
    z-index: 1;
    height: calc(80vw  / 9 );
}

.tecla_boton{
    position: absolute;
    font-size:  calc(80vw  / 9 / 1.2);
    width: 100%; 
    height: 100%;  
    z-index: 2;
}

.teclado_casilla_imagen_contenedor{
    top: 0px;
    left: 0px;
    margin: auto;
    position: absolute; 
    z-index: 4;
    width: 100%;
    height: 100%;
}

.teclado_casilla_imagen{
    width: 100%; 
    height: 100%;
}


/*
CSS para los ajustes
*/
.tablaOpciones{
    font-size: medium;
    border: 1px solid black;
    border-radius: 4px;
    width: 100%;
    /*max-width: 40em;*/
    /*border-collapse: collapse;*/
}

.tablaOpciones td{
    vertical-align: top;
    border: 1px solid black;
    border-radius: 2px;
    width: 50%;
}

.tablaOpciones td:first-child{
    width:30%;
}

.botonera {
    text-align: center;
}

.boton_peq {
    display: inline-block;
    width:47%;
    margin-left: 1%;
    margin-right: 1%;
}

/*
Otros
*/

#Instrucciones {
    text-align: justify;
    font-size: small;
    padding: 0px 5px 0px 5px;
    border-top: 1px solid #000000;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    border-left: 1px solid #000000;
    border-radius: 8px;
}
