/* FONTS */


/* COLORES */
.blanco {
	color: #fff;
}
.principal  {
	color: #000;
}
.secundario  {
	color: #6b384b;
}
.terciario  {
	color: #dceff6;
}
.gris  {
	color: #333;
}

.fondo_blanco {
	background: #fff;
}
.fondo_principal  {
	background: #000;
}
.fondo_secundario  {
	background: #6b384b;
}
.fondo_terciario  {
	background: #dceff6;
}
.fondo_gris  {
	background: #333;
}

.borde_principal {
	border:1px solid #fff;
}
/* GENERAL */
html, body {
	background: #101010;
	width: 100%;
	height:100%;
	overflow:hidden;
}

body {
	background: #101010;
	color: #fff;
	font-family: 'Kanit', sans-serif;
	line-height: 1.2;
	margin: 0;
	font-size: 20px;
}

* {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: -moz-none;
    -o-user-select: none;
    user-select: none;
}

/* LAYOUT */
#ce-wrapper {
	position: absolute;
	width: 990px;
	height: 566px;
	overflow: hidden;
	margin: auto;
	-ms-transform-origin: top left;
    -webkit-transform-origin: top left;
    transform-origin: top left;
}
#wrapper-contenido {
	position:absolute;
	width:990px; 
	height:566px; 
	overflow:hidden;
	background: transparent;
	margin-top:0px;
	z-index:-1;
}

.contenido {
	position: relative;
	width: 990px;
	min-height: 566px;
	box-sizing: border-box;
	font-size: 14px;
}

.contenido h2 {
	font-size: 22px;
	font-family: Georgia, Arial, sans-serif;
}

/* HEADER */
.header {
	
}

.titulo {
	font-family: 'comic', cursive;
    text-align: center;
    padding-top: 0;
    font-size: 34px;
    margin-left: 10px;
}

/* FOOTER */
#footer {
	position: absolute;
    top: 5px;
    right: 6px;
    width: fit-content;
    height: 40px;
    background: url(../img/footer.png) center top no-repeat;
    background-size: 100% 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
}

/* BUTTONS */
.btn-footer {
	/*width: 50px;*/
    height: 25px;
    margin: 0px 3px;
    background: url(../img/boton-icono.png) top center no-repeat;
    background-size: 100%;
    object-fit: cover;
    /*flex-grow: 1;*/
    margin-top: -5px;
}
.btn-footer:hover {
	cursor: pointer;
	opacity:.8;
}
.btn-footer img {
	margin-top:-3px;
}
#volumen, #ayuda, #info {
	position:absolute;
	width: 100%;
    height: 100%;
	background: rgba(0,0,0,.7);
	z-index: 9999999;
}
.popup-index {
	position: absolute;
    height: auto;
    font-size: 14px;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 25px;
    border-radius: 15px;
    background: rgba(0,0,0,.9);
    z-index: 3;
}
#volumen .popup-index {
	top: 120px;
	left: 260px;
	width: 490px;
}
#ayuda .popup-index {
	top: 120px;
	left: 210px;
	width: 600px;
}
#info .popup-index {
	top: 120px;
	left: 210px;
	width: 600px;
}
#creditos .popup-index {
	top: 50px;
    left: 180px;
    width: 640px;
}
.popup-index .cerrar {
	position:absolute;
	top:10px;
	right:20px;
	font-size:24px;
	cursor:pointer;
}
#volumen .slidecontainer {
	width: 90%;
	display: inline-block;
}
#ayuda .popup {
	top: 110px;
	left: 200px;
	width: 590px;
	font-size:14px;
	align-items:flex-start;
}
#creditos .popup {
	top: 100px;
	left: 100px;
	width: 790px;
	font-size:14px;
	align-items:flex-start;
}
#volumen .popup-index h2, #volumen .popup-index .numero, #ayuda .popup-index h2, #creditos .popup-index h2 {
	font-family: 'comic';
	font-size: 24px;
	margin-top: 0;
}
/* RANGE INPUT FOR VOLUME */
input[type=range] {
	width: 100%;
	margin: 10px 0;
	background-color: transparent;
	-webkit-appearance: none;
  }
  input[type=range]:focus {
	outline: none;
  }
  input[type=range]::-webkit-slider-runnable-track {
	background: #dab7a1;
	border: 1px solid #7f7a00;
	border-radius: 5px;
	width: 100%;
	height: 5px;
	cursor: pointer;
  }
  input[type=range]::-webkit-slider-thumb {
	margin-top: -11px;
	width: 25px;
	height: 25px;
	background: #805d3c;
	border: 1px solid #613f1e;
	border-radius: 22px;
	cursor: pointer;
	-webkit-appearance: none;
  }
  input[type=range]:focus::-webkit-slider-runnable-track {
	background: #ddbda8;
  }
  input[type=range]::-moz-range-track {
	background: #dab7a1;
	border: 1px solid #7f7a00;
	border-radius: 5px;
	width: 100%;
	height: 5px;
	cursor: pointer;
  }
  input[type=range]::-moz-range-thumb {
	width: 25px;
	height: 25px;
	background: #805d3c;
	border: 1px solid #613f1e;
	border-radius: 22px;
	cursor: pointer;
  }
  input[type=range]::-ms-track {
	background: transparent;
	border-color: transparent;
	border-width: 11px 0;
	color: transparent;
	width: 100%;
	height: 5px;
	cursor: pointer;
  }
  input[type=range]::-ms-fill-lower {
	background: #d7b19a;
	border: 1px solid #7f7a00;
	border-radius: 10px;
  }
  input[type=range]::-ms-fill-upper {
	background: #dab7a1;
	border: 1px solid #7f7a00;
	border-radius: 10px;
  }
  input[type=range]::-ms-thumb {
	width: 25px;
	height: 25px;
	background: #805d3c;
	border: 1px solid #613f1e;
	border-radius: 22px;
	cursor: pointer;
	margin-top: 0px;
	/*Needed to keep the Edge thumb centred*/
  }
  input[type=range]:focus::-ms-fill-lower {
	background: #dab7a1;
  }
  input[type=range]:focus::-ms-fill-upper {
	background: #ddbda8;
  }
  @supports (-ms-ime-align:auto) {
	/* Pre-Chromium Edge only styles, selector taken from hhttps://stackoverflow.com/a/32202953/7077589 */
	input[type=range] {
	  margin: 0;
	  /*Edge starts the margin from the thumb, not the track as other browsers do*/
	}
  }

/* INFO */
#info {
	text-align:center;
}
#info h2 {
	font-size:24px;
}
/* CREDITOS */
#creditos {
	position:absolute;
	width: 100%;
    height: 100%;
	background: rgba(0,0,0,.7);
	z-index: 99999;
}
.creditos {
	position: absolute;
    height: auto;
	display: flex;
    align-items: center;
	justify-content: center;
	top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
#cerrar-creditos {
	position: absolute;
    top: 50px;
    right: 35px;
    font-size: 30px;
    z-index: 999;
    color: #333;
    background: rgba(255, 255, 255, .5);
    width: 30px;
    text-align: center;
}
.pagina-creditos {
	width: 920px;
    position: absolute;
    top: 50px;
    left: 35px;
}
.boton-creditos {
	position: absolute;
	top:45%;
	width:60px;
}
/* MENU INFERIOR (MOCHILA Y CUADERNO) */
#menu-bottom {
	position: absolute;
    bottom: 5px;
    left: 10px;
    width: fit-content;
    height: 90px;
	background: url(../img/menu-bottom.png) center top no-repeat;
    background-size: 100% 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
}
/* BUTTONS */
.btn-bottom {
    height: 75%;
    margin: 0px 5px;
    flex-grow: 1;
    margin-top: -10px;
}
.btn-bottom:hover {
	cursor: pointer;
	opacity:.8;
}
.btn-bottom img {
	height:100%;
}
.selector-planta {
	position: absolute;
    width: 86px;
    overflow: hidden;
    top: -100px;
    left: 142px;
	background: rgba(0, 0, 0, .5);
}
.selector-planta img {
	width:100%;
}

/* MOCHILA */
#mochila {
	position:absolute;
	width: 100%;
    height: 100%;
	background: rgba(0,0,0,.7);
	z-index: 99999;
}
.mochila {
	position: absolute;
    height: auto;
	display: flex;
    align-items: center;
	justify-content: center;
	top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.sectores {
    position: relative;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    overflow: hidden;
}

.sector {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 50%, 100% 0, 100% 50%);
    transform-origin: 50% 50%;
	background:#aaa;
}
.sector:nth-child(1) { transform: rotate(0deg) translate(10px); }
.sector:nth-child(2) { transform: rotate(45deg) translate(10px); }
.sector:nth-child(3) { transform: rotate(90deg) translate(10px); }
.sector:nth-child(4) { transform: rotate(135deg) translate(10px); }
.sector:nth-child(5) { transform: rotate(180deg) translate(10px); }
.sector:nth-child(6) { transform: rotate(225deg) translate(10px); }
.sector:nth-child(7) { transform: rotate(270deg) translate(10px); }
.sector:nth-child(8) { transform: rotate(315deg) translate(10px); }

.sector img {
	width: 60px;
    left: 81%;
    top: 29%;
}
.sector:nth-child(1) img { transform: rotate(0deg); }
.sector:nth-child(2) img { transform: rotate(-45deg); }
.sector:nth-child(3) img { transform: rotate(-90deg); }
.sector:nth-child(4) img { transform: rotate(-135deg); }
.sector:nth-child(5) img { transform: rotate(-180deg); }
.sector:nth-child(6) img { transform: rotate(-225deg); }
.sector:nth-child(7) img { transform: rotate(-270deg); }
.sector:nth-child(8) img { transform: rotate(-315deg); }
.sector.inactivo {
	opacity: 1 !important;
	filter: grayscale(.9);
}
.centro {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    background: #333;
    border-radius: 50%;
    transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
    z-index: 2;
    box-shadow: inset 10px 10px 20px 20px rgba(0, 0, 0, .5);
}
.objeto-encontrado {
	position: absolute;
    height: 330px;
    top: 110px;
    left: 350px;
}
.objeto-mochila {
	height: 30px;
    top: 495px;
    left: 45px;
}

/* CUADERNO */
#cuaderno {
	position:absolute;
	width: 100%;
    height: 100%;
	background: rgba(0,0,0,.7);
	z-index: 99999;
}
.cuaderno {
	position: absolute;
    height: auto;
	display: flex;
    align-items: center;
	justify-content: center;
	top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
#cerrar-cuaderno {
	position: absolute;
    top: 50px;
    right: 35px;
    font-size: 30px;
    z-index: 999;
    color: #333;
    background: rgba(255, 255, 255, .5);
    width: 30px;
    text-align: center;
}
.pagina-cuaderno {
	width: 920px;
    position: absolute;
    top: 50px;
    left: 35px;
}
.numpagina {
	position: absolute;
    top: 495px;
    text-align: center;
	font-family: 'comic';
    font-size: 14px;
    width: 20px;
	color:#333;
}
.numpagina.izq {
	left:63px;
}
.numpagina.der {
	right:18px;
}
.boton-cuaderno {
	position: absolute;
	top:45%;
	width:60px;
}
.selfie {
	position: absolute;
	top: -50px;
	left: -30px;
	width: 990px;
	background:#fff;
	z-index:2;

	-webkit-transition: all .3s ease-out;
	-moz-transition: all .3s ease-out;
	-ms-transition: all .3s ease-out;
	-o-transition: all .3s ease-out;
	transition: all .3s ease-out;
}
.marco-selfie {
	position: absolute;
	top: -13%;
    left: -9%;
    width: 124%;
    height: 126%;
}
.selfie.izq {
	top: 70px;
    left: 105px;
    width: 230px;
    transform: rotate(-5deg);
	z-index:1;
}
.selfie.der {
	top: 70px;
	left: auto;
    right: 65px;
    width: 230px;
    transform: rotate(5deg);
	z-index:1;
}
.celo-izq {	
    position: absolute;
    left: -40px;
    top: -50px;
    width: 350px;
}
.celo-der {	
    position: absolute;
    right: -70px;
    top: -50px;
    width: 350px;
}
.sello-mision-completa {	
    position: absolute;
    left: -20px;
    top: -10px;
    width: 130px;
    filter: drop-shadow(1px 1px 0px rgba(0, 0, 0, .5));
}
.sello-mision-completa.der {	
    left: auto;
    right: -30px;
    transform: rotate(50deg);
}
#cuaderno-mano {
	position:absolute;
	width:400px;
	top:600px;
}
#cuaderno-mano img {
	transform: rotate(21deg);
}
#cuaderno-mano.swing {
	-webkit-animation-duration: 2s !important;
  	animation-duration: 2s !important;
}
.titulo-cuaderno {
	position: absolute;
    color: #333;
    top: 240px;
    left: 80px;
    width: 300px;
    font-size: 18px;
	font-weight: bold;
}
.titulo-cuaderno.der {
	left: auto;
	right:40px;
	width:280px;
}
.texto-cuaderno {
	position: absolute;
    color: #333;
    top: 270px;
    left: 80px;
    width: 300px;
    font-size: 17px;
}
.texto-cuaderno.der {
	left: auto;
	right:20px;
}

/* MAPA */
.boton-mapa {
	position: absolute;
	width:48px;
	height:48px;
}
.boton-mapa img {
	width:100%;
	filter: blur(2px);
}
.boton-mapa.visto img {
	filter: blur(0);
}
.boton-mapa.visto:before {
	content: '';
    position: absolute;
    top: 40%;
    left: 42%;
    width: 10px;
    height: 10px;
    background: url(../img/visto.png) center no-repeat;
    background-size: 100%;
    opacity: .5;
    z-index: 2;
}
.mapa-tooltip {
	position: absolute;
    background: #fff;
    color: #333;
    font-size: 8px;
    padding: 3px;
    border-radius: 5px;
    text-align: center;
	display:none;
	transform-origin: bottom;
}
.mapa-tooltip:before {
	font-family: 'Font Awesome 5 Pro';
    content: '\f0d7';
    color: #fff;
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    font-size: 16px;
    font-weight: 900;
}
.boton-mapa:hover .mapa-tooltip {
	display: block;
}

  /* Debug */
  #menu-debug {
	position:fixed;
	top:0;
	left:0;
	width:150px;
	height:100%;
	overflow:auto;
	background:rgba(0,0,0,.9);
	color:#fff;
	font-size:12px;

	z-index:1000;
  }
  #menu-debug.collapsed {
	left:-200px;
  }
  #menu-debug ul {
	list-style-type: none;
  }
  #menu-debug div div p {
	margin-left:20px;
  }
  .btn-debug {
	cursor:pointer;
  }