/* Variables CSS globales */
:root {
    --base-font-size: 23px;
}

/* Bordes y rellenos incluidos en el alto y ancho de los elementos  */
* {
    box-sizing: border-box;
}

html {
    font-family: "Darker Grotesque", "Courier New";
    font-size: var(--base-font-size);
}

/* formato de los elementos generales de la p¨¢gina */
body.text {
    line-height: 1;
    background-image: url("../../paginas/files/fondo01.jpg");
    /* user-select: none; */
    counter-reset: ejercicio ejemplo ecuaci¨®n figura ta;
    display: block;
    margin: 6px;
}
#capitulo {
    padding: 5px;
}
h1.text, h2.text, h3.text, h4.text, h5.text, h6.text {
    color: #7c93c7;
    font-weight: bold;
    text-shadow: -1px 0 black, 0 -1px black, 1px 0 black, 0 1px black, 4px 4px 8px black;
}
h1.text {
    text-align:center;
    font-size:1.8em;
    counter-reset:ejemplo;
}
h2.text {
    font-size:1.6em;
}
h3.text {
    font-size:1.5em;
}
h4.text {
    font-size:1.4em;
}
h5.text {
    font-size:1.3em;
}
h6.text {
    font-size:1.2em;
}
p.text {
    text-align:justify;
    text-indent:0.5cm;
    hyphens: auto;
}
strong.style1 {
    color:green;
}
ul.text {
    margin-left:1.1cm;
}
ul.concept {
    list-style-type:none;
}
b.style1 {
    color:blue;
}
i.style1 {
    color:blue;
}
a.text {
    text-decoration-style: dashed;
}
ol.text {
    text-align:justify;
}
ol.text li::marker {
    font-weight: bold;
}
sub, sup {
    font-size: 0.7rem;
}
sup {
    vertical-align: text-top;
}
sub {
    vertical-align: text-bottom;
}
span.textocodigo {
    font-family: "Roboto Mono", monospace;
    font-size: 0.8rem;
}

.letras {
    list-style-type:lower-alpha;
}
li.text {
    margin-bottom:10px;
}
.ejercicio>button, #generarPrueba button {
    color: white;
    cursor: pointer;
    box-shadow: 3px 3px 3px #73a9b1;
    font-size: 1em;
    font-family: 'Darker Grotesque';
    font-weight: bolder;
    background-color: #8ecef9;
    border-radius: 62px;
    border-color: #e3fbd7;
    padding: 0px 30px 4px 30px;
    margin: 5px 0px 15px 0px;
    text-shadow: 1px 0 black, -1px 0 black, 0 -1px black, 0 1px black, 1px 1px 3px black;
    transition: transform 0.1s;
}
.ejercicio>button:hover, #generarPrueba button:hover {
    transform: matrix(1.05, 0, 0, 1.05, 5, 0);
    background-color: #4aa8e8f5;
}
.ejercicio>button:disabled, #generarPrueba button:disabled {
    background-color: #d6dcd3;
    box-shadow: 5px 5px 10px #bbc5b5;
    pointer-events: none;
}
/*#generarPrueba {*/
/*    visibility: hidden;*/
/*}*/
/*#generarPrueba + p {*/
/*    visibility: hidden;*/
/*}*/

/* Formato de los p¨¢rrafos tipo ejemplo */
p.ejemplo {
    text-indent: -0.45cm;
    text-align: justify;
    margin-bottom: 6px;
    margin-left: 1cm;
}
span.ejemplo:before {
    counter-increment: ejemplo;
    content: counter(ejemplo) ".";
    color: #00f;
    font-weight: bold;
}
span.ejemplo {
    display:inline-block;
    width:0.45cm;
}
p.ejemplosn {
    margin-left: 1cm;
    text-indent: 0cm;
    text-align: justify;
}

/* Formato de los p¨¢rrafos tipo ejercicio */
p.ejercicio {
    text-indent: -0.45cm;
    text-align: justify;
    padding-left: 0cm;
    counter-reset: pregunta;
    margin-bottom: 6px;
    margin-left: 1cm;
}
div.ejercicio {
    counter-increment:ejercicio;
    counter-reset: pregunta;
}
span.ejercicio:before {
    content:counter(ejercicio)".";
    font-weight: bold;
    color: green;
    top: 1px;
}
span.ejercicio {
    display: inline-block;
    width: 0.45cm;
}
/*P¨¢rrafo tipo ejercicio, pero sin numeraci¨®n */
p.ejerciciosn {
    margin-left: 1cm;
    text-indent: 0cm;
    margin-top: 0px;
    margin-bottom: 6px;
    text-align: justify;
}
span.sinnumero {
    display:inline-block;
    width:0.3cm;
}

/*Formato de los p¨¢rrafos tipo pregunta */
p.pregunta {
    text-indent:-0.42cm;
    margin-left:1cm;
    text-align: justify;
}
span.pregunta:before {
    counter-increment:pregunta;
    content:counter(pregunta, lower-latin)")";
}
span.pregunta {
    display:inline-block;
	width:0.42cm;
}
/* P¨¢rrafo de tipo pregunta pero sin la numeraci¨®n (sin el inciso) */
p.preguntasn {
    margin-left:1cm;
    text-align: justify;
}

/*Formato de las opciones de tipo simple */
p.opcionSimple {
    margin-left: 2.2cm;
    text-indent: -0.75cm;
}
span.opcionSimple {
    display: inline-block;
	width:0.19cm;
}
p.opcionSimple.correcta {
    background-color: #A8DAB9;
}
p.opcionSimple.erronea {
    background-color: #FFB7B7;
}

/*Formato de las opciones de tipo m¨²ltiple */
p.opcionMultiple {
    margin-left: 2.2cm;
    text-indent: -0.75cm;
}
span.opcionMultiple {
    display: inline-block;
    width:0.19cm;
}
p.opcionMultiple.correcta {
    background-color: #A8DAB9;
}
p.opcionMultiple.erronea {
    background-color: #FFB7B7;
}


/*Formato del contenedor, campo y opciones de las preguntas de tipo Arrastrar y Dato */
div.arrastrar {
    display: inline-block;
    width: auto;
    min-width: 50px;
    background-color: white;
    margin: solid blue 0.5px;
}
span.campo_arrastrar {
    cursor: pointer;
    display: inline-block;
    width: auto;
    min-width: 0.87rem;
    text-align: center;
    padding-left: 0px;
    text-indent: 0px;
    height: 1.35rem;
    border: solid 1px blue;
    vertical-align: middle;
    background-color: rgb(221, 240, 255);
}
span.campo_arrastrar.correcta {
    background-color: #A8DAB9;
}
span.campo_arrastrar.erronea {
    background-color: #FFB7B7;
}
span.campo_dato {
    cursor: pointer;
    display: inline-block;
    vertical-align: baseline;
    width: 100%;
    min-width: 4.35rem;
    max-width: 208.70rem;
    height: 100%;
    min-height: 0.81rem;
    background-color: rgb(221, 240, 255);
}
span.campo_dato.correcta {
    background-color: #A8DAB9;
}
.dato_col1 {
    max-width: 300px;
    min-width: 100px;
}
span.campo_dato.erronea {
    background-color: #FFB7B7;
}
#divOpciones.mostrar {
    display: block;
}
#divOpciones {
    cursor: pointer;
    display: none;
    position: absolute;
    width: auto;
    height: auto;
    padding: 2px 7px;
    background-color: rgb(238, 247, 253);
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.7);
    z-index: 30;
}
#divOpciones p {
    margin: 5px 2px;
}
#divOpciones p:hover {
    background-color: cadetblue;
    color: white;
}
#divOpciones p:focus {
    background-color: cadetblue;
    color: white;
}
div.dato {
    width: 100%;
    height: auto;
    overflow-x: auto;
    overflow-y: clip;
}
table.dato{
	margin-left: auto;
	margin-right: auto;
	border-collapse: collapse;
}
table.dato td {
    border: solid black 1px;
}
table.dato td:nth-child(odd) {
    text-align: right;
    padding: 2px 7px;
}
table.dato td:nth-child(even) {
    padding: 2px 7px;
    background-color: rgb(221, 240, 255);
}

/*Formato de las opciones de tipo Literal */
span.campo_literal {
    background-color: rgb(221, 240, 255);
    display: inline-block;
    min-width: 20px;
    width: auto;
    height: 26px;
    line-height: 20px;
    padding: 0px 0px 0px 0px;
    border: solid 1px blue;
    text-indent: 0px;
    text-align: left;
}
span.campo_literal.correcta {
	background-color: #A8DAB9;
}
span.campo_literal.erronea {
	background-color: #FFB7B7; 
}
span.tituloEjercicio {
	color: green;
	font-size: 1.3em;
}

/*Formato de los elementos gr¨¢ficos y de video */
div.img {
    text-align: center;
}
video, img {
    max-width: 100%;
    height: auto;
}
img.text {
    vertical-align: middle;
}
p.ecuacion, p.figura, p.ecuacionsn, p.figurasn, p.video {
    display: flex;
    justify-content: center;
    text-indent: 0px;
    text-align: center;
    margin-top: 0px;
    overflow-x: auto;
}
div.ecuacion, div.figura, div.ecuacionsn, div.figurasn, div.video {
    display: flex;
    justify-content: center;
    text-indent: 0px;
    text-align: center;
    margin-top: 0px;
    overflow-x: auto;
}
div.figura {
    white-space: pre;
    color: darkgreen;
    margin-top: 20px;
}
p.figura {
    white-space: pre;
    color: darkgreen;
    margin-top: 20px;
}
p.figura:after {
    counter-increment: figura;
    content: "Figura " counter(figura);
}
div.figura:after {
    counter-increment: figura;
    content: "Figura " counter(figura);
}
p.figinstruccion {
    text-align: left;
    width: 95vw;
    overflow-x: auto;
}
video.ejemplo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1cm;
    width: 553px;
    height: 528px;
}
dfn.style1 {
    color:green;
    font-weight: 500;
}
p.center {
    text-align : center;
}

/* Formato de las ecuaciones */
.katex {
    font-size: 0.85rem;
}
table.ecuacion, table.ecuacionsn {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}
table[class^=ecuacion] td:first-child {
    overflow-x: auto;
    padding: 0;
}
table.ecuacion td:last-child {
    width: 1.3rem;
    text-align:right;
    padding: 0;
}
table.ecuacionsn td:last-child {
    width: 0;
    padding: 0;
}
table.ecuacion td:last-child:after {
    counter-increment: ecuaci¨®n;
    content:"("counter(ecuaci¨®n)")";  
}

/* Formato del contenedor de gr¨¢ficos tipo Mermaid */
div.mermaid {
    display: block;
}

svg[id|=mermaid] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*Formato de las tablas del texto */
.table {
    overflow-x: auto;
}
.table table {
    /* table-layout: fixed; */
    border-collapse: collapse;
    box-shadow: 4px 4px 10px grey;
    margin-top: 2px;
    margin-bottom: 6px;
    /* width: 500px; */
}
/* @media screen and (max-width: 550px) {
    .table table {
        width: 370px;
    }
} */
.table caption {
    color: #7793a7;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow:  1px 0 black, -1px 0 black, 0 1px black, 0 -1px black, 4px 4px 8px #3a3838;
    padding-bottom: 10px;
}
.table tr {
    background-color: white;
}
.table tr:nth-child(even) {
    background-color: #f2f2f2;
}
.table tr:hover {
    background-color: #ddd;
}
.table tbody td {
    padding: 7px 5px;
    hyphens: auto;
}
.table tr td:first-child {
    word-break: break-all;
}
.table th {
    color: white;
    text-shadow: 1px 1px 2px black, 0 0 15px black;
    background-color: #59b6d9;
    padding: 10px 10px;
}
.borderAll th, .borderAll tbody td {
    border:  1px solid rgba(0,0,0,0.2);
}
.table .pie {
    color: rgba(0,0,0,0.7);
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
}
.borderHorizontal th {
    border-top: solid 1px rgba(207, 56, 56, 0.2);
    border-bottom: solid 1px rgba(0,0,0,0.2);
}
.borderHorizontal td {
    border-bottom: solid 1px rgba(0,0,0,0.2);
}
.borderVertical td, .borderVertical th {
    border-left: solid 1px rgba(0,0,0,0.2);
}
.borderVertical td:last-of-type {
    border-right: solid 1px rgba(0,0,0,0.2);
}
.table td.center {
    text-align: center;
}
.table td.right {
    text-align: right;
    padding: 0 20px 0 0;
}
.table td.left {
    text-align: left;
    padding-left: 10px;
    text-indent: 5px;
}
table td.texto  {
    text-align: justify;
}

/*Clases que hacen el elemento invisible y visible*/
.invisible {
    display: none;
}
.visible {
    display: block;
}


/* Estilos para el formulario que permite introducir los datos del estudiante */
#divRegistrarEstudiante {
    display: flex;
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: rgb(255,255,255,0.7);
    z-index: 25;
}
#divRegistrarEstudiante>div {
    box-shadow: 5px 5px 10px 2px grey;
    font-family: serif;
    font-size: 14px;
    width: 350px;
    padding:15px 10px;
    background-color:white;
    border-radius: 15px;
}
#divRegistrarEstudiante label {
    display: inline-block;
    width: 131px;
    text-align: right;
}
#divRegistrarEstudiante input {
    padding-left:5px;
    margin:5px 0px;
}
#divRegistrarEstudiante button {
    display: block;
    margin: 20px auto 0px auto;
    width: 100px;
}

/* Estilos del div que muestra un mensaje de alerta */
#divAlerta { /* Fondo de la alerta */
    position:fixed;
    left:0px;
    top:0px;
    width:100%;
    height:100%;
    background-color: rgb(255,255,255,0.7);
    align-items: center;
    justify-content: center;
    display:none;
    z-index: 30;
}
#divAlerta>div { /* Ventana de alerta */
    width: 350px;
    max-height: 600px;
    background-color: #b5f476;
    font-size: 1.15em;
    color: darkblue;
    text-align: justify;
    border-radius: 20px;
    box-shadow: 5px 5px 12px 2px grey;
    padding: 5px 25px;
}
#divAlerta>div>div:first-child { /* T¨ªtulo de la ventana de alerta */
    font-size: 1.4em;
    text-align: center;
    padding-top: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 3px 2px 5px black;
}
#divAlerta>div>div:nth-child(2) { /* Div que contiene el bot¨®n Aceptar */
    padding-top:20px;
    padding-bottom:20px;
}
#divAlerta button { /* Formato del bot¨®n Aceptar */
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    padding: 7px 30px;
    border-radius: 15px;
    background-color: rgb(255,255,255,0.5);
    cursor: pointer;
    border: none;
    box-shadow: 3px 3px 10px 1px grey;
}
#divAlerta button:hover {
    background-color: rgb(0,0,0,0.5);
    color: white;
    box-shadow: 5px 5px 10px 0px #d8ffb4;
}

/* Estilos del div que muestra un mensaje de confirmaci¨®n */
#divConfirmar { /* Fondo de la ventana confirmar */
    position:fixed;
    left:0px;
    top:0px;
    width:100%;
    height:100%;
    background-color: rgb(255,255,255,0.7);
    align-items: center;
    justify-content: center;
    display:none;
    z-index: 29;
}
#divConfirmar>div { /* Ventana confirmar */
    overflow: hidden;
    width: 350px;
    max-height: 600px;
    background-color: #b5f476;
    font-size: 1.15em;
    color: darkblue;
    text-align: justify;
    border-radius: 20px;
    box-shadow: 5px 5px 12px 2px grey;
    padding: 5px 25px;
}
#divConfirmar>div>div:first-child { /* T¨ªtulo de la ventana confirmar */
    font-size: 1.4em;
    text-align: center;
    padding-top: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px black;
}
#divConfirmar>div>div:nth-child(2) { /* Mensaje de la ventana confirmar */
    padding-top: 20px;
    padding-bottom: 6px;
}
#divConfirmar>div>div:nth-child(3) { /* Div que contiene los botones Guardar, No Guardar y Cancelar */
    padding-top: 0;
    padding-bottom: 23px;
    text-align: center;
}
#divConfirmar button { /* Formato de los botones de la ventana confirmar */
    padding: 7px 5px;
    border-radius: 15px;
    background-color: rgb(255,255,255,.5);
    cursor: pointer;
    border: none;
    box-shadow: 3px 3px 10px 1px grey;
}
#divConfirmar button:hover {
    background-color: rgb(0,0,0,0.5);
    color: white;
    box-shadow: 5px 5px 10px 0px #d8ffb4;
}

/* Estilos del div que muestra el cuadro de d¨ªalogo */
/* Fondo de la ventana de di¨¢logo */
#divDialogo {
    display: flex;
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100vh;
    background-color: rgb(255,255,255,0.7);
    align-items: center;
    justify-content: center;
    display: none;
    z-index: 29;
}
#divDialogo>div {
    overflow: hidden;
    width: 17rem;
    max-height: 600px;
    background-color: #b5f476;
    font-size: 1.1rem;
    color: darkblue;
    text-align: justify;
    border-radius: 20px;
    box-shadow: 5px 5px 12px 2px grey;
    padding: 25px 25px;
}
/* T¨ªtulo de la ventana de di¨¢logo */
#divDialogo>div>div:first-child {
    font-size: 1.7rem;
    text-align: center;
    padding-top: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px black;
}
/* Mensaje de la ventana de di¨¢logo */
#divDialogo>div>div:nth-child(2) {
    padding-top: 0.87rem;
    padding-bottom: 0.87rem;
}
/* Input de la ventana de di¨¢logo */
#divDialogo>div>input {
    display: block;
    width: 14rem;
    color: blue;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.87rem;
    font-size: 1.0rem;
    text-align: center;
}
/* Div que contiene los botones Aceptar y Cancelar */
#divDialogo>div>div:nth-child(4) {
    text-align: center;
    height: 2.17rem;
}
/* Formato de los botones de la ventana de di¨¢logo */
#divDialogo button {
    padding: 7px;
    width: 4rem;
    font-size: medium;
    border-radius: 15px;
    background-color: rgb(255,255,255,0.5);
    cursor: pointer;
    border: none;
    box-shadow: 3px 3px 10px 1px grey;
}
#divDialogo button:hover {
    background-color: rgb(0,0,0,0.5);
    color: white;
    box-shadow: 5px 5px 10px 0px #d8ffb4;
}
/* Margen izquierdo (separaci¨®n) del segundo bot¨®n del cuadro de di¨¢logo */
#divDialogo button:nth-child(2) {
    margin-left: 1.74rem;
}
/* Estilos del div que muestra un mensaje de espera */
#divMensaje {
    position:fixed;
    left:0px;
    top:0px;
    width:100%;
    height:100%;
    background-color: rgb(255,255,255,0.7);
    align-items: center;
    justify-content: center;
    display:none;
}
#divMensaje>div {
    width: 350px;
    max-height: 600px;
    background-color: #b5f476;
    font-size: 1.15em;
    color: darkblue;
    text-align: justify;
    border-radius: 20px;
    box-shadow: 5px 5px 12px 2px grey;
    padding: 25px 25px;
}

/* Estilos para los elementos de clase accordion */
.accordion {
    background-color: #d6dcd3;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    margin-top: 15px;
    text-align: left;
    border: none;
    font-size: 1.3em;
    font-weight: bold;
    box-shadow: 5px 5px 10px #bbc5b5;
    text-shadow: 1px 0 black, -1px 0 black, 0 -1px black, 0 1px black, 0px 0px 4px black;
    width: 100%;
    transition: 0.4s;
}
.accordion:after {
    content: '+';
    float: right;
    margin-left: 5px;
}
.active:after {
    content: "\2212";
}
.active, .accordion:hover {
    background-color: rgb(118, 190, 212);
}
.panel {
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

/* Formato para los input text de solo lectura, que muestran informaci¨®n */
.itmostrar {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    height: 1.55rem;
    text-align: center;
}
.itNota, itPuntos {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    height: 1.55rem;
    text-align: center;
    width: 3rem;
}
/* Ancho de los input text de notas/puntos */
.notas {
    width: 3rem;
}
/* Ancho de los input text de tiempo */
.tiempo {
    width: 5rem;
}
/* Label correspondiente a la nota del cap¨ªtulo */
.lnotacapitulo {
    width: 6.31rem;
    display: inline-block;
    text-align: right;
    margin-top: 0.87rem;
}
/* Formato para el input text de solo lectura que muestra la nota del cap¨ªtulo */
.itnotacapitulo {
    width: 3rem;
    text-align: center;
    margin-left: 0.44rem;
    font-family: 'Darker Grotesque';
    font-size: 1rem;
    font-weight: 500;
}