/* 
    Document   : crucigramas.css
    Created on : 02-jul-2018, 12:37:19
    Author     : joaquin
    Description: Hoja de estilos para crucigramas.
*/

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;
}

.contenedorDefiniciones{
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;

    /*
    float: inside hace que el contenedor
    se ocupe todo el ancho.
    */
    float: inside;
    text-align: center;
    margin: 5px 0 0 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;
}

/*
Ajusta el alto para que quepa
la definición con un tope de
4 líneas

.definicion_seleccionada_old{     
    font-size: large;
    font-family:arial;
    font-weight:normal; 
    text-align: left;

    height: fit-content;
    min-height: 1.1em;
    max-height: 4em;

    line-height: 1em;
}
*/

.definicion_seleccionada{
    font-size: large;
    font-family:arial;
    font-weight:normal;
    text-align: left;

    line-height: 1em;
    height: 3em;
}

.definicion_seleccionada_horizontal{
    color:  darkgreen;
}

.definicion_seleccionada_vertical{
    color: darkblue;
}

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

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

.fila_cabecera{
    color:black;
    font-size:12px;
    font-family:arial;
    font-weight:bold;
    text-align:center;
}

.columna_cabecera{
    color:black;
    font-size:12px;
    font-family:arial;
    font-weight:bold;
    text-align:center;
}

.Cabecera {
    border-radius: 8px;
    background-color: #f0f0d2;
    margin: 0 0 0 0px;
    width: 100%;
    height: 35px;
}

.Cabecera img{
    width:32px;
    height:32px;
}

.Pie {
    border-radius: 8px;
    background-color: #f0f0d2;
    margin: 0 0 0 0px;
    width: 100%;
    height: 35px;
    text-align: center;
    font-size: x-small;
}

.Boton {
    /* Para que Safari no dibuje los botones preconfigurados
    -webkit-appearance: none;
    */
    background-color: #f0f0d2;
    font-size: medium;
    font-weight:bold;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 8px;
    font-family: Verdana, Geneva, sans-serif;
    font-weight: bolder;
    color: #0000aa;
    text-transform: uppercase;
    cursor: pointer;
}

.botonera {
    text-align: center;
}

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

.parametro_etiqueta{
    font-size:small;
    font-family:arial;
    font-weight:bold;
    text-align: right;
    margin: 5px 0 0 0;
}
.parametro_valor{
    font-size:small;
    font-family:arial;
    font-weight:bold;
    text-align: left;
    margin: 5px 0 0 0;
}

.tablaDefiniciones{
    font-size: small;
    font-family:arial;
    border: 1px solid black;
    border-radius: 4px;
    width: 100%;
    /*border-collapse: collapse;*/
}

.tablaDefiniciones td{
    vertical-align: top;
    border: 1px solid black;
    border-radius: 2px;
}

.tablaDefiniciones td:first-child{
    width: 5%;
    /* El resto para la definició y solución (en su caso) */
}

.Resuelto td:last-child{
    /* Porcentaje en el caso de tener que escribir la solución */
    width:15%;
}

/*
Segunda columna de la tabla
.Resuelto td:nth-child(2){
    width:95%;
}
*/
.botonIrAPalabraCompleta{
    font-size:small;
    font-family:arial;
    font-weight:normal;
    /* Texto negro sobre fondo body */
    background: #f5f5E1;
    color: #000000;
    cursor: pointer;
    border-radius: 0.6em;
    border-color: #f5f5E1;
    width: 100%;
}

.botonIrAPalabraCompletaEnCurso{
    font-size:small;
    font-family:arial;
    font-weight:normal;
    /* Texto negro sobre fondo palabra seleccionada amarillo */
    background: #F6EB61;
    color: #000000;
    cursor: pointer;
    border-radius: 0.6em;
    border-color: #F6EB61;
    width: 100%;
}

.botonIrAPalabraIncompleta{
    font-size:small;
    font-family:arial;
    font-weight:normal;
    /* Texto negro sobre fondo naranja */
    background: #FFA420;
    color: #000000;
    cursor: pointer;
    border-radius: 0.6em;
    width: 100%;
}

.crucigrama_resuelto_v2_ajustado {
    border-radius: 8px;
    color: #000000;
    /* background-color: #d8d8d8; */
    /* background-color: #0000ff; */
    background: #f5f5E1;
    text-align: center;
    font-size: small;
    font-weight:bold;
    margin: 0 calc(5.0vw - 13px) 0 calc(5.0vw - 13px);
    width: auto;
    /* border: 2px solid #bbbbbb; */
}


/* */
.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%;
}

.tablaOpcionesTitulares{
    font-size: medium;
}

#Version{
    font-size: x-small;
    float: right;
    text-align: right;
    margin-top: 18px;
}

#Titulo{
    font-family: Arial Narrow, sans-serif;
    font-weight:bold;
    font-size:large;
    float: left;
    margin-left:10px;
    line-height: 35px;
}

#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;
}

#t01 {
    /*background-color: #f0f0d2;*/
    position: relative;
    text-align: left;
    margin:auto;
    padding: 4px;
    /*border-radius: 8px;*/
    /*border: 2px solid #f0f0d2;*/
}

#ImagenLogo{
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 2px;
    margin-left: 4px;
    font-size: x-large;
    font-weight: bolder;
    vertical-align:top;
    float: left;
}

/*
CSS para el teclado
*/

.teclado{
    text-align: center;
    margin: 5px 0 0 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;
}

#t02 {
    font-size: large;
    width: 100%;
    text-align: left;
    margin:auto;
    border-spacing: 5px;
}


@media screen and (min-width: 1000px) {
    /*
    Si es una pantalla mediana, utiliza el xx% central.
    Para que las teclas no sean demasiado anchas en pantallas grandes.
    */
    #t02 {
        width: 60%;
        text-align: left;
        margin:auto;
        border-spacing: 5px;
    }
}

.tecla{
    position: relative;
    font-size: large;
    color: #404040;
    background: #fff;
    font-family: Arial Narrow, sans-serif;
    font-weight:bold;
    text-align: center;
    border: 1px solid black;
    border-radius: 4px;
    z-index: 1;
    width:10%;
    height: 1.7rem;
}

.tecla_vacia{
    position: relative;
    font-size: large;
    color: #606060;
    background: transparent;
    font-family:arial;
    font-weight:bold;
    text-align: center;
    border: 1px solid black;
    border-radius: 4px;
    z-index: 1;
}

.tecla_boton{
    position: absolute;
    font-size: large;
    width: 100%;
    height: 100%;
    z-index: 2;
}
/*
FIN CSS para el teclado
*/

/*
CSS para listar area
*/
.area{
    /*
    margin-bottom: 10px;
    width: 100%;
    font-weight:bold;
    font-size: small;
    text-align: center;
    */
    background: blue;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius:4px;
    color: red;
    display: inline-block;
    line-height: 1.6em;
}
/*
FIN CSS para listar area
*/

/*
CSS para las casillas del crucigrama.
*/
.contenedor_crucigrama {
    /*background-color: rgb(130, 210, 235);*/
    /*background-color: #f0f0d2;*/
    /*width: 100%;*/
    /* 
    Un xx% del área de visualización vertical (vh)
    */
    max-height: 50vh;
    /* */
    float: inside;
    /*scrollbar-width: none;*/
    overflow-y: scroll;
    overflow-x: scroll;
    border-radius: 8px;
    border: 2px solid #f0f0d2;
}

@media all and (orientation: portrait) {
    .contenedor_crucigrama {
        /* 
        Un xx% del área de visualización horizontal (vw)
        */
        /*max-height: 90vw; 19-03-2022 */
        max-height: 95vw;
        /* */
    }
}
@media all and (orientation: landscape) {
    .contenedor_crucigrama {
        /* 
        Un xx% del área de visualización vertical (vh)
        */
        /*max-height: 55vh; 19-03-2022 */
        max-height: 65vh;
        /* */
    }
}

/*
Para la lista de abreviaturas
*/

.interior{
    display:none;
} /* oculta las listas anidadas */
input:checked ~ ul{
    display:block;
}

#lista_abrev * {
    list-style:none;
}
#lista_abrev li{
    line-height:110%;
}
#lista_abrev li a{
    color:#222;
    text-decoration:none;
}
#lista_abrev li a:before{
    content:"\025b8";
    color:#ddd;
    margin-right:4px;
}
#lista_abrev input[name="list"] {
    position: absolute;
    left: -1000em;
}
#lista_abrev label{
    font-size: small;
    font-weight: bold;
}
#lista_abrev label:before{
    content:"\025b8";
    margin-right:4px;
}
#lista_abrev input:checked ~ label:before{
    content:"\025be";
}
#lista_abrev .interior{
    display: none;
}
#lista_abrev input:checked ~ ul{
    display:block;
}

/*
Apuntes
*/

/*
Para sustituir tablas por div y css
===================================
Cambiar <table> por <div class="tabla">
Cambiar <tr> por <div class="fila">
Cambiar <td> por <div class="columna">
*/
.tabla{
    display: table;
}
.fila{
    display: table-row;
}
.columna{
    display: table-cell;
}