@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500&family=Tangerine:wght@700&display=swap");

html,
body {
	margin: 0;
	padding: 0;
	overflow-y: hidden;
	touch-action: manipulation;
	font-family: "Rajdhani", "Erbaum", sans-serif, "Tangerine";
}
canvas {
	display: block;
	position: fixed;
}
a {
	text-decoration: none;
}
#cruz-inicio {
	cursor: pointer;
	display: none;
	position: fixed;
	background-color: #ffa500;
	width: 3rem;
	height: 3rem;
	top: 1rem;
	left: 1rem;
	z-index: 999;

	background-size: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-image: url("../IslaSumergida/data/cruz.svg");

	transition: 0.1s ease-in;
}
#cruz-inicio:hover {
	transform: scale(1.1);
}

/* popup */
.popup-img {
	width: auto;
	height: 100%;
	max-width: 100%;
	max-height: 50vh;
	object-fit: contain;
	border: 3px solid black;
	border-radius: 10px; 
	box-sizing: border-box;
}
.contenedor-botones {
	display: flex;
	justify-content: space-around;
	flex-flow: row wrap;
	width: 100%;
	gap: 1em;
	padding: 0.5em;
}
.texto-cuerpo {
	font-family: "Rubik";
	font-weight: 900;
	font-size: 1rem;
	color: var(--blanco);
	text-transform: uppercase;
	text-align: center;
	transition: font-size 0.3s ease-in-out;
}
.texto-cuerpo:hover {
	font-size: 1.2em;
}
.popup {
	display: none;
	position: fixed;
	z-index: 999;

	width: 80vw;

	top: 50%; /* Center vertically */
	left: 50%; /* Center horizontally */
	transform: translate(-50%, -50%); /* Center both horizontally and vertically */

	text-align: center;

	border: 0.5em solid #959595;
	border-radius: 2em;

	transition: top 0.3s ease-in-out;
	box-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.2), inset 0.1em 0.1em 0 rgba(0, 0, 0, 0.4), inset -0.1em -0.1em 0 rgba(0, 0, 0, 0.4);

	flex-flow: column nowrap;
	align-items: center;
	justify-content: center;

	padding: 1.5em;

	background: rgb(217, 217, 217);
	background: -moz-radial-gradient(circle, rgba(217, 217, 217, 1) 59%, rgba(152, 152, 152, 1) 100%);
	background: -webkit-radial-gradient(circle, rgba(217, 217, 217, 1) 59%, rgba(152, 152, 152, 1) 100%);
	background: radial-gradient(circle, rgba(217, 217, 217, 1) 59%, rgba(152, 152, 152, 1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#d9d9d9",endColorstr="#989898",GradientType=1);
}
.popup.show {
	display: flex;
	top: 50%;
}
.popup h1 {
	font-size: 1.2rem;
	width: 80%;
	color: #000;
	text-transform: uppercase;
	font-family: "Erbaum", sans-serif;
	padding-top: 0;
}
.popup p {
	font-family: "Rajdhani";
	line-height: 1.5;
	padding: 0.5em;
	font-size: 1.1rem;

	max-height: 70vh;
	overflow-y: auto;
}

.boton-salir {
	position: absolute;
	top: 1em;
	right: 1em;
	width: 2em; /* Adjust the width as needed */
	height: 2em; /* Adjust the height as needed */
	background-image: url("./data/UI/boton-salir.svg"); /* Replace with your image URL */
	background-size: cover; /* To cover the entire div */
	background-position: center; /* To center the background image */
}
.boton-salir:hover {
	background-image: url("./data/UI/boton-salir-hover.svg"); /* Replace with your image URL */
}
.boton-video {
	font-family: "Erbaum", sans-serif;

	width: 20vw;
	height: 2.5em;

	color: #fff;

	border: 0.2em solid rgb(255, 165, 0);
	border-radius: 0.3em;

	background: rgb(255, 165, 0);
	background: -moz-radial-gradient(circle, rgba(255, 165, 0, 1) 59%, rgba(255, 145, 0, 1) 100%);
	background: -webkit-radial-gradient(circle, rgba(255, 165, 0, 1) 59%, rgba(255, 145, 0, 1) 100%);
	background: radial-gradient(circle, rgba(255, 165, 0, 1) 59%, rgba(255, 145, 0, 1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffa500",endColorstr="#ff8f00",GradientType=1);
}

/* pagina inicio */
#menuInicio {
	width: 100vw;
	height: 100vh;
	z-index: 800;
	background-color: firebrick;
}
#inicio-contenedor {
	width: 100vw;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;

	background: rgb(23, 22, 21);
	background: -moz-linear-gradient(0deg, rgba(23, 22, 21, 1) 50%, rgba(182, 222, 255, 1) 50%);
	background: -webkit-linear-gradient(0deg, rgba(23, 22, 21, 1) 50%, rgba(182, 222, 255, 1) 50%);
	background: linear-gradient(0deg, rgba(23, 22, 21, 1) 50%, rgba(182, 222, 255, 1) 50%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#171615",endColorstr="#b6deff",GradientType=1);
}
#inicio-titulo {
	position: fixed;
	left: 7vw;
	top: 5vw;
	display: flex;
	flex-flow: row nowrap;
	font-family: "Erbaum", sans-serif;
	transition: all 0.3s ease; /* Add a transition */
}
#foto-inicio {
	width: 100vw;
	height: auto;
}
.icono {
	width: 5em;
	height: 5em;

	background-size: 100%;
	background-position: center;
	background-repeat: no-repeat;
	background-image: url("./data/UI/timon.svg");
}
.texto {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 6em;
	height: 100%;
	text-align: left;
	margin-top: auto;
	color: #103872;
	font-size: 2.5em;
	text-transform: uppercase;
	padding-bottom: 0.2em;
}
#botones-inicio {
	position: fixed;
	display: flex;
	flex-flow: column nowrap;
	justify-content: space-between;
	align-items: center;
	left: 8vw;
	bottom: 5vw;
	gap: 1em;
}
.descripcion {
	position: fixed;
	left: 7vw;
	top: 35vh;
	font-family: "Erbaum", sans-serif;
	color: #fff;
	text-align: center;
	max-width: 40vw;
	font-size: 1.2em;
	transition: all 0.5 ease-in-out;
}

#icono-jugar {
	background-image: url("../islaSumergida/data/inicio/flecha.svg");
}

#icono-salir {
	background-image: url("../islaSumergida/data/inicio/cangrejo.svg");
}

.contenedor-boton {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: center;
	transition: 0.1s ease-in;
}

.contenedor-boton .icono {
	height: 3em;
	width: 3em;

	background-size: 100%;
	background-position: center;
	background-repeat: no-repeat;
	background-image: url("./data/inicio/estrella.svg");
}

.contenedor-boton:hover,
#cruz-inicio:hover,
#cruz-infografia:hover {
	transform: scale(1.1);
}

.jugar {
	cursor: pointer;
	background: none;

	color: #fff;

	padding-left: 0.5em;
	width: 5em;
	height: 3em;

	text-align: left;
	margin-top: auto;
	font-size: 1.6em;
	text-transform: uppercase;
	border: none;
	font-family: "Erbaum", sans-serif;
}

#boton-salir a {
	color: #fff;
}

@media (max-width: 768px) {
	.popup {
		width: 95%;
		max-width: 70vw;
	}
	.popup h1 {
		font-size: 18px;
	}
	.close-button {
		font-size: 14px;
	}
	.boton-video {
		width: 60vw;
	}
	.texto {
		font-size: 2em;
	}
	.icono {
		width: 4em;
		height: 4em;
	}
	.descripcion {
		position: fixed;
		left: 7vw;
		top: 20vh;
		font-family: "Erbaum", sans-serif;
		color: #103872;
		text-align: center;
		max-width: 50vw;
		font-size: 1em;
	}
}

audio {
	display: none;
}

/* LOADER */
#loader {
	position: absolute;
	z-index: 999;
	width: 100vw;
	height: 100vh;
	background-color: #00ced1;
	color: #103872;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	font-family: "Erbaum", sans-serif;
	font-size: 2rem;
}
#radar {
	width: 185px;
	height: 185px;
	background-image: url(../../wp-content/themes/PampaAzul/assets/fondo/misc/Radar2.svg);
	background-size: contain;
	background-repeat: no-repeat;
	left: 60px;
	bottom: 25px;
	max-width: 25vh;
	max-height: 25%;
	min-width: 15vh;
	min-height: 15%;
}

#radar-luz {
	position: relative;
	left: 50%;
	transform-origin: 0% 100%;
	animation: radar 5s linear infinite;
	height: 50%;
}

@keyframes radar {
	from {
		transform: 0deg;
	}
	to {
		rotate: 360deg;
	}
}
