html {
    margin: 0;
    padding: 0;
    background-color: #999999;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
    background-color: #999999;
    width: 100%;
    height: 100%;
    font-family: "Verdana", "Arial", sans-serif;
    font: 16px/1.8 sans-serif;
}

.textoModalAyuda {
    font-size: 2.3vmin;
}

.textoModalAyuda canvas {
    display: block;
    margin: 0 auto;
}

h1 {
    font: 10px/1 "Verdana", "Arial", sans-serif;
    display: block;
    margin-left: 5%;
    margin-top: 2.5%;
    color: white;
}

.contenedor {
    background-color: white;
    margin: auto;
    width: 145vmin;
    max-width: 100%;
    height: 100vmin;
    max-height: 68vw;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.cabecera {
    width: 100%;
    height: 8.5%;
    padding: 0;
    background-color: #b1bf2f;
}

.cabeceraIzq {
    width: 80%;
    height: 100%;
    float: left;
}

.cabeceraDere {
    width: 19%;
    height: 100%;
    float: right;
    margin-right: -5%;
}

.cabeceraDere img {
    width: 26%;
    margin: 2%;
    margin-top: 3%;
}

.botonInfo {
    cursor: pointer;
}


/* Para la ventana de dialogo */

.dialogoInfo {
  background-color: #fff;
  color: black;
  width: 100%;
  height: 92%;
  bottom: 0;
  margin: 0;
  padding: 0;
  position: absolute;
}

.dialogoAccion {
    float: right;
    margin: 2%;
}

#cerrar {
    width: 6vmin;
    height: 6vmin;
    margin-right: 1%;
    min-width: 0px;
    padding: 0px;
    background-color: transparent;
    border: 0px;
    cursor: pointer;
}

#cerrar img {
    width: 5vmin;
}

.textoAyudaTitulo,
.textoDatos1,
.textoDatos2 {
    margin-left: 10%;
}

.textoDerechos {
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
    font-size: 2vmin;
}

.textoAyudaTitulo {
    font-weight: 700;
}

.explicacionRecurso {
    height: 35%;
    margin-left: 10%;
    margin-top: 5%;
    margin-right: 10%;
}

.creditos {
    height: 60%;
}

.calculadora {
    z-index: 1;
    position: absolute;
    left: 30%;
    top: 15%;
    max-height: 50%;
}


/* Estilos para el contenedor del juego */

.juego {
    width: 90%;
    margin: auto;
    margin-top: 2%;
}

.textoExplicacion {
    width: 90%;
    font-size: 2.3vmin;
    margin-bottom: 0%;
}

.contenidoIzq {
    width: 70%;
    height: 90%;
    margin-top: 3%;
    float: left;
}

canvas {
    vertical-align: middle;
}

#cvTides2 {
    width: 90%;
    height: 90%;
}

.contenidoDere {
    width: 30%;
    height: 90%;
    margin-top: 3%;
    float: left;
    font-size: 2vmin;
}

.textoExplicacion2 {
    width: 90%;
    margin-left: 2%;
    margin-top: 2%;
    font-size: 2vmin;
}

.textoExplicacion3 {
    width: 100%;
    margin-left: 0%;
    font-size: 2vmin;
    text-align: center;
}


/* Los botones */

.botonera {
    /* Botonera original abajo, fijada */
    width: 100%;
    max-height: 20%;
    display: inline-flex;
    margin-right: 5%;
    margin-left: 4%;
    position: absolute;
    bottom: 0;
}

#botones {
    width: 100%;
}

#botonesIzq {
    float: left;
    width: 30%;
}

#btnRun {
    margin-top: 1.3vmin;
    height: 7.5vmin;
    width: 90%;
}

#botonesDere {
    float: left;
    margin-left: 5%;
    width: 60%;
}

.centrado {
    text-align: center;
    margin-top: 0px;
}

.botonAmarillo {
    font-family: Verdana, sans-serif;
    font-size: 1.8vmin;
    text-align: center;
    line-height: initial;
    -webkit-transition-duration: 0.4s;
    transition-duration: 0.4s;
    cursor: pointer;
    background-color: white;
    color: black;
    border: 0.2vmin solid black;
    border-radius: 1vmin;
    font-weight: 300;
    margin-left: 5%;
    margin-right: 5%;
    height: 5vmin;
    min-width: 40%;
    text-transform: none;
}

.botonAmarillo:hover {
    background-color: #b1bf2f;
    color: black;
}

.mostrar {
    width: 100%;
    float: left;
    margin-top: 5%;
}

.cajaCheck {
    margin: 0;
    line-height: 2.5vmin;
}

.textoMostrar {
    margin-top: -5%;
}


/* Dropdown Button */

.dropbtn {
    background-color: white;
    color: #b1bf2f;
    padding-left: 2%;
    padding-right: 2%;
    padding-top: 1%;
    padding-bottom: 1%;
    cursor: pointer;
    margin-left: 0%;
    margin-right: 5%;
    margin-top: 5%;
    border: 0.2vmin solid #b1bf2f;
    border-radius: 1vmin;
    width: 65%;
    font-size: 2vmin;
}


/* Dropdown button on hover & focus */

.dropbtn:hover,
.dropbtn:focus {
    background-color: #b1bf2f;
    color: white;
}


/* The container <div> - needed to position the dropdown content */

.dropdown {
    position: relative;
    display: inline-block;
    width: 90%;
    margin-left: 1%;
    margin-bottom: 2%;
}


/* Dropdown Content (Hidden by Default) */

.dropdown-content {
    display: none;
    position: absolute;
    top: auto;
    bottom: 100%;
    background-color: #f1f1f1;
    min-width: 65%;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    color:black;
    margin-left: 0%;
}


/* Links inside the dropdown */

.dropdown-content p {
    display: block;
    width: 100%;
    margin-left: 0%;
    font-size: 2vmin;
    text-align: center;
    cursor: pointer;
}


/* Change color of dropdown links on hover */

.dropdown-content p:hover {
    background-color: #ddd
}


/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */

.show {
    display: block;
}

.oculto {
    display: none;
}


/* Rounded sliders */

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.rangeSlider {
    -webkit-appearance: none;
    width: 15%;
    height: 2.5vmin;
    border-radius: 13px;
    background: #d3d3d3;
    outline: none;
    opacity: 1;
    -webkit-transition: .2s;
    transition: opacity .2s;
    float: left;
    margin-right: 5%;
    margin-top: 0%;
}

.rangeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 2.3vmin;
    height: 2.3vmin;
    border-radius: 50%;
    border: #454545 5px;
    background: #454545;
    cursor: pointer;
}

.rangeSlider::-moz-range-thumb {
    width: 2.3vmin;
    height: 2.3vmin;
    border-radius: 50%;
    border: #454545 5px;
    background: #454545;
    cursor: pointer;
}

.activo::-webkit-slider-thumb,
.activo::-moz-range-thumb {
    background: #b1bf2f !important;
    border: #b1bf2f 5px;
}

.activo::-webkit-slider-thumb {
    background: #b1bf2f !important;
    border: #b1bf2f 5px;
}


/*Para moviles y resoluciones pequeñas */

@media only screen and (max-width: 960px),
screen and (orientation:portrait) {
    html {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .botonAmarillo {
        margin-top: 1%;
        height: 4vmin;
        font-size: 1.5vmin;
    }
    .textoExplicacion,
    #textoBotonRecalcular,
    .textoFrecuenciasTabla,
    table,
    .divRepeticiones>p,
    .textoExplicacion2,
    #textoNumRepeticiones,
    #repeticiones,
    #preguntaApartadoNotas {
        font-size: 1.5vmin !important;
        line-height: 2.5vmin;
    }
    .textoExplicacion2 {
        margin-top: 5%;
    }
    .contenidoDere {
        font-size: 1.5vmin !important;
        line-height: 1vmin;
    }
    button {
        font-size: 1.5vmin !important;
    }
    #botonesDere {
        margin-top: 3%;
    }
}