:root {
    --azul: #0b96b1;
    --morado: #352659;

    --anchoBoton: 880rem;
    --altoBoton: 205rem;
    --esquinaBoton: 41rem;
    --bordeBoton: 7rem;

    --anchoCaja: var(--anchoBoton);
    --altoCaja: 98rem;
    --esquinaCaja: 20rem;
    --bordeCaja: 3rem;
}
* {
	box-sizing: border-box;
}
html, body {
	width: 100vw;
    max-width: 100%;
	margin: 0;
}
html {
    font-size: calc(100vh / 1920);
}
body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(var(--azul), #692e81 47.7%, var(--morado));
    min-height: 100vh;
}
body[data-pagina=pagPortada], body[data-pagina=pagFormulario], body[data-pagina=pagFin] {
    background:
        no-repeat top 200rem left / auto 75% url("../img/fondo.png"),
        linear-gradient(var(--azul), #692e81 47.7%, var(--morado));
}

header {
    position: relative;
    width: 100%;
    height: 250rem;
}
header img {
    position: absolute;
    top: 120rem;
    left: 100rem;
    width: 380rem;
}

.boton {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: var(--anchoBoton);
    cursor: pointer;
    --colorBorde: var(--morado);
}
.boton > div:nth-child(1), .boton > div:nth-child(3), .boton > div:nth-child(4), .boton > div:nth-child(6), .boton > div:nth-child(7), .boton > div:nth-child(9) {
    width: var(--esquinaBoton);
}
.boton > div:nth-child(1), .boton > div:nth-child(2), .boton > div:nth-child(3), .boton > div:nth-child(7), .boton > div:nth-child(8), .boton > div:nth-child(9) {
    height: var(--esquinaBoton);
}
.boton > div:nth-child(2), .boton > div:nth-child(5), .boton > div:nth-child(8) {
    width: calc(100% - 2 * var(--esquinaBoton));
}
.boton > div:nth-child(4), .boton > div:nth-child(5), .boton > div:nth-child(6) {
    height: calc(var(--altoBoton) - 2 * var(--esquinaBoton));
}
.boton > div:nth-child(1) {
    border-right: solid var(--bordeBoton) var(--colorBorde);
    border-bottom: solid var(--bordeBoton) var(--colorBorde);
}
.boton > div:nth-child(2) {
    border-top: solid var(--bordeBoton) var(--colorBorde);
}
.boton > div:nth-child(3) {
    border-left: solid var(--bordeBoton) var(--colorBorde);
    border-bottom: solid var(--bordeBoton) var(--colorBorde);
}
.boton > div:nth-child(4) {
    border-left: solid var(--bordeBoton) var(--colorBorde);
}
.boton > div:nth-child(6) {
    border-right: solid var(--bordeBoton) var(--colorBorde);
}
.boton > div:nth-child(7) {
    border-right: solid var(--bordeBoton) var(--colorBorde);
    border-top: solid var(--bordeBoton) var(--colorBorde);
}
.boton > div:nth-child(8) {
    border-bottom: solid var(--bordeBoton) var(--colorBorde);
}
.boton > div:nth-child(9) {
    border-left: solid var(--bordeBoton) var(--colorBorde);
    border-top: solid var(--bordeBoton) var(--colorBorde);
}
.boton > div:nth-child(5) {
    pointer-events: none;
    position: relative;
    color: #fff;
    font-family: "PP NeueBit";
    font-weight: bold;
    font-size: 225.4rem;
    line-height: 1;
    text-align: center;
}
.boton > div:nth-child(5) > span {
    position: relative;
    top: -75rem;
}
.boton:hover, .boton:active {
    --colorBorde: #fff;
}
.boton.textoPeque > div:nth-child(5) {
    font-size: 130rem;
}
.boton.textoPeque > div:nth-child(5) > span {
    top: -25rem;
}

.caja {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: var(--anchoBoton);
    --colorFondo: #fff;
    --colorBorde: var(--morado);
}
.caja > div:nth-child(1), .caja > div:nth-child(3), .caja > div:nth-child(4), .caja > div:nth-child(6), .caja > div:nth-child(7), .caja > div:nth-child(9) {
    width: var(--esquinaCaja);
}
.caja > div:nth-child(1), .caja > div:nth-child(2), .caja > div:nth-child(3), .caja > div:nth-child(7), .caja > div:nth-child(8), .caja > div:nth-child(9) {
    height: var(--esquinaCaja);
}
.caja > div:nth-child(2), .caja > div:nth-child(5), .caja > div:nth-child(8) {
    width: calc(100% - 2 * var(--esquinaCaja));
}
.caja > div:nth-child(4), .caja > div:nth-child(5), .caja > div:nth-child(6) {
    min-height: calc(var(--altoCaja) - 2 * var(--esquinaCaja));
}
.caja > div:nth-child(2), .caja > div:nth-child(4), .caja > div:nth-child(5), .caja > div:nth-child(6), .caja > div:nth-child(8) {
    background-color: var(--colorFondo);
}
.caja > div:nth-child(1) {
    border-right: solid var(--bordeCaja) var(--colorBorde);
    border-bottom: solid var(--bordeCaja) var(--colorBorde);
}
.caja > div:nth-child(2) {
    border-top: solid var(--bordeCaja) var(--colorBorde);
}
.caja > div:nth-child(3) {
    border-left: solid var(--bordeCaja) var(--colorBorde);
    border-bottom: solid var(--bordeCaja) var(--colorBorde);
}
.caja > div:nth-child(4) {
    border-left: solid var(--bordeCaja) var(--colorBorde);
}
.caja > div:nth-child(6) {
    border-right: solid var(--bordeCaja) var(--colorBorde);
}
.caja > div:nth-child(7) {
    border-right: solid var(--bordeCaja) var(--colorBorde);
    border-top: solid var(--bordeCaja) var(--colorBorde);
}
.caja > div:nth-child(8) {
    border-bottom: solid var(--bordeCaja) var(--colorBorde);
}
.caja > div:nth-child(9) {
    border-left: solid var(--bordeCaja) var(--colorBorde);
    border-top: solid var(--bordeCaja) var(--colorBorde);
}
.caja > div:nth-child(5) > input {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border: none;
    background: none;
    padding: 19rem 80rem;
    font-family: "PP Fraktion Sans";
    font-weight: 300;
    font-size: 60rem;
    line-height: 1;
    color: var(--azul);
}

.tituloGrande {
    position: relative;
    font-family: "PP NeueBit";
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    font-size: 370.7rem;
    line-height: 260rem;
    margin-top: -100rem;
}
.tituloPeque {
    position: relative;
    font-family: "PP NeueBit";
    font-weight: bold;
    font-size: 189rem;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    margin-top: -80rem;
}
.tituloPeque.aviso {
    margin: 0 100rem;
    text-align: center;
}
.chapu {
    position: relative;
    top: -0.125em;
}
.texto {
    font-family: "PP NeueBit";
    font-weight: normal;
    font-size: 80rem;
    line-height: 1;
    color: #fff;
    width: var(--anchoBoton);
}

.pagina {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
}
.pagina.visible {
    display: flex;
}
.pagina.off {
    pointer-events: none;
    opacity: 0;
}
.pagina.transition {
    transition-duration: .4s;
}

#pagIdiomas {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
}
#pagIdiomas .boton:first-child {
    margin-bottom: 60rem;
}

#pagPortada .textos {
    width: calc(var(--anchoBoton) - 2 * var(--esquinaBoton));
    margin: 40rem 0 80rem 0;
}
#pagPortada .subtitulo {
    font-family: "PP Fraktion Sans";
    font-weight: 300;
    font-size: 68.8rem;
    line-height: 82.5rem;
    color: #fff;
    margin-bottom: 80rem;
}
#pagPortada .subtitulo b {
    font-weight: bold;
}
#pagPortada .juega {
    font-family: "PP Fraktion Sans";
    font-weight: 300;
    font-size: 60rem;
    text-decoration: underline;
    color: var(--azul);
}

#pagFormulario .caja {
    margin-top: 38rem;
}

#pagIntro .boton {
    margin-top: 200rem;
}

.pagPregunta .respuestas {
    margin: 20rem 0 80rem 0;
}
.pagPregunta .respuesta {
    margin-top: 26rem;
    cursor: pointer;
}
.pagPregunta .respuesta:hover, .pagPregunta .respuesta:active {
    --colorBorde: var(--azul);
}
.pagPregunta .respuesta.ok {
    --colorFondo: #0f0;
}
.pagPregunta .respuesta.ko {
    --colorFondo: #f00;
}
.pagPregunta .respuesta > div:nth-child(5) {
    font-family: "PP Fraktion Sans";
    font-weight: bold;
    font-size: 42rem;
    line-height: 50rem;
    color: var(--colorBorde);
    padding: 0 52rem;
    pointer-events: none;
}
.pagPregunta .respuesta .letra {
    height: 100%;
    display: block;
    float: left;
    margin-right: 8rem;
}
.pagPregunta .botonKo {
    position: relative;
    top: calc(0rem - var(--altoBoton));
}

#pagFin .tituloPeque {
    width: var(--anchoBoton);
    line-height: 140rem;
    margin-bottom: 40rem;
}

@media(max-aspect-ratio: 0.75) {
    html {
        font-size: 0.07vw;
    }
}