

:root {
	--rosa: #fd91a7;
	--fucsia: #f5336b;
	--rojo: #e82827;
	--naranja: #fa6e1f;
	--amarillo: #f6dc1e;
	--oro: #f7a719;
	--verde: #179b6d;
	--celeste: #44c4f3;
	--azul: #0058f6;
	--blanco: #fff;
	--negro: #000;
}

@font-face {
	font-family: "Erbaum";
	src: url("../data/fonts/Erbaum-Medium.woff2") format("woff2"), url("../data/fonts/Erbaum-Medium.woff") format("woff");
	font-weight: 400;
	font-style: normal;
}

html,
body {
	background-color: var(--azul);
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-family: "Rubik", "Erbaum", "Rajdhani", sans-serif;
	font-size: 16px;
}

audio {
	display: none;
}

a {
	text-decoration: none;
}

/* boton salir */
#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("../data/cruz.svg");

	transition: 0.1s ease-in;
}

#cruz-inicio:hover {
	transform: scale(1.1);
}

/* inicio */
#pantallaInicio {
	position: absolute;
	width: 100vw;
	height: 100vh;
	background-color: var(--azul);
}

.col {
	flex-direction: column;
}
.row {
	flex-direction: row;
	padding-top: 0.5rem;
}
.boton-jugar {
	font-family: "Erbaum";
	font-size: 1.4rem;
	padding-left: 0.5rem;
}
.boton-play {
	width: 2.2rem;
	height: 2.2rem;
	background-image: url(../data/inicio/flecha.svg);
}
.full-width {
	flex-grow: inherit;
}
.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}
.bloque-simple {
	width: 25vw;
	height: 20vh;
	background-color: var(--azul);
}
.bloque-ancho {
	width: 50vw;
	height: 20vh;
	background-color: var(--verde);
}
.bloque-alto {
	width: 25vw;
	height: 40vh;
	background-color: var(--amarillo);
}
.bloque-grande {
	width: 50vw;
	height: 60vh;
	background-color: var(--azul);
}
.texto-titulo {
	font-family: "Rubik";
	font-weight: 900;
	font-size: 1.3rem;
	color: var(--blanco);
	text-transform: uppercase;
	text-align: center;
	transition: font-size 0.3s ease-in-out;
}
.texto-titulo:hover {
	font-size: 1.4em;
}
.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-extra {
	font-family: "Rubik";
	font-weight: 900;
	font-size: 1rem;
	color: var(--blanco);
	text-align: center;
	text-transform: uppercase;
	transition: font-size 0.3s ease-in-out;
}
.texto-cuerpo:hover,
.texto-extra:hover {
	font-size: 1.2em;
}
.fondo-imagen {
	background-size: 80%;
	background-repeat: no-repeat;
	background-position: center;
	transition: background-position 0.3s ease-in-out;
}
.fondo-imagen:hover {
	background-position: right; /* Move the background image to the right on hover */
}
.escalar {
	cursor: pointer;
	transition: transform 0.3s ease-in-out, background-color 0.2s ease-out, font-size 0.3s ease-in-out;
}
#boton-cazar:hover,
#boton-dormir:hover {
	transform: translate(0%, -15%);
	background-color: var(--azul);
}

#logo {
	position: absolute;
	top: 0;
	left: 0;
	background-color: var(--blanco);
}
#logo a {
	cursor: pointer;
	max-width: 50%;
	height: 100%;
	margin: 0;
	transition: transform 0.3s ease-in-out;
}
#logo img {
	width: 100%;
	height: 100%;
}
#logo a:hover {
	transform: translate(0%, -10%);
}
#fondoPampaAzul {
	background-color: #007fff;
	height: 100%;
	padding-right: 0.4em;
	padding-left: 0.4em;
}
#pez {
	position: absolute;
	top: 20vh;
	left: 0;
	background-color: var(--amarillo);
	background-image: url("../data/inicio/pez.svg");
}
#salir {
	position: absolute;
	top: 40vh;
	left: 0;
	background-color: #007fff;
	color: var(--blanco);
	transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
#salir:hover {
	transform: translate(0%, 2%) scale(1.1);
	background-color: var(--azul);
	color: var(--blanco);
}
#texto-salir {
	font-family: "Erbaum";
	font-size: 1.5rem;
	color: inherit;
	height: max-content;
}
#cangrejo {
	width: 3rem;
	height: 3rem;
	background-image: url(../data/inicio/cangrejo.svg);
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	padding-left: 2em;
}
#orca {
	position: absolute;
	top: 60vh;
	left: 0;
	background-color: var(--oro);
	background-image: url("../data/inicio/orca.svg");
}
#situaciones {
	position: absolute;
	top: 0;
	left: 25vw;
	background-color: var(--fucsia);
}
#inventar {
	position: absolute;
	top: 0;
	left: 75vw;
	background-color: var(--verde);
	flex-flow: row wrap;
}
#pagina {
	cursor: pointer;
	max-width: 90%;
}
#googlePlay {
	cursor: pointer;
	width: 2rem;
	height: 2rem;
	background-image: url(../data/inicio/googleplay.svg);
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	padding-left: 2rem;
	transition: background-position 0.3s ease-in-out;
}
#googlePlay:hover {
	background-position: left; /* Move the background image to the right on hover */
}
#appStore {
	cursor: pointer;
	width: 2rem;
	height: 2rem;
	background-image: url(../data/inicio/apple.svg);
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	padding-left: 2rem;
	transition: background-position 0.3s ease-in-out;
}
#appStore:hover {
	background-position: right; /* Move the background image to the right on hover */
}
#elefante-marino {
	position: absolute;
	top: 20vh;
	left: 75vw;
	background-color: var(--naranja);
}
#espacio-elefante {
	position: absolute;
	top: 20vh;
	left: 25vw;
	background-color: var(--azul);
}
#boton-dormir {
	position: absolute;
	top: 80vh;
	left: 25vw;
	background-color: var(--rojo);
}
#boton-cazar {
	position: absolute;
	top: 80vh;
	left: 50vw;
	background-color: var(--naranja);
}
#ballena {
	position: absolute;
	top: 40vh;
	left: 75vw;
	background-color: var(--rosa);
	background-image: url("../data/inicio/ballena.svg");
}
#calamar {
	position: absolute;
	top: 80vh;
	left: 75vw;
	background-color: var(--celeste);
	background-image: url("../data/inicio/calamar.svg");
}

/* svg */

#svg-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%; /* Set height to 100% to fill the elefante div */
	overflow: hidden;
}

svg {
	max-width: 100%;
	max-height: 100%;
}

@media only screen and (max-width: 800px) {
	.bloque-simple p {
		max-width: 90%;
		margin: 0;
		padding: 0;
	}
	.bloque-simple {
		width: 50vw;
		height: 10vh;
	}
	.bloque-ancho {
		width: 100vw;
		height: 10vh;
	}
	#pez {
		top: 90vh;
		left: 0;
		width: 100vw;
		background-size: 0%;
	}
	.bloque-alto,
	#calamar {
		display: none;
	}
	.bloque-grande {
		width: 100vw;
		height: 40vh;
	}
	#logo {
		top: 0;
		left: 50vw;
		/*flex-direction: column;
		gap: 1em;*/
	}
	#logo a {
		max-width: 50%;
		margin: 0 0.1em;
	}
	#salir {
		top: 0;
		left: 0;
	}
	.texto-titulo {
		height: 10vh;
	}
	#situaciones {
		top: 10vh;
		left: 0;
	}
	#elefante-marino {
		display: none;
	}
	#espacio-elefante {
		top: 20vh;
		left: 0vw;
	}
	#boton-dormir {
		top: 60vh;
		height: 15vh;
		left: 0vw;
	}
	#boton-cazar {
		top: 60vh;
		height: 15vh;
		left: 50vw;
	}
	#inventar {
		width: 100vw;
		height: 15vh;
		top: 75vh;
		left: 0;
	}
	.texto-extra {
		font-size: 1rem;
	}
	#texto-salir {
		font-size: 1.2rem;
	}
	#cangrejo {
		width: 2rem;
		height: 2rem;
		padding-left: 0.1rem;
	}
}

/* popup */

.popup {
	display: none;
	position: fixed;
	top: 50%; /* Center vertically */
	left: 50%; /* Center horizontally */
	transform: translate(-50%, -50%); /* Center both horizontally and vertically */

	text-align: center;

	border: 1vw solid #fff;

	transition: top 0.3s ease-in-out;

	width: 80vw;

	box-shadow: 1em 1em 0 rgba(0, 0, 0, 0.2);
}

.popupCentro {
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	justify-content: center;

	padding: 1.5em;

	background-color: var(--celeste);

	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	transition: background-position 0.3s ease-in-out;
	background-image: url(../data/ilustraciones/fondo-popup.jpg);
}

.popup.show {
	display: block;
	top: 50%;
}

.popup h1 {
	width: 80%;
	color: #007fff;
	text-transform: uppercase;
	font-family: "Erbaum", "Rubik-Black", sans-serif;

	background-color: white;
	box-shadow: inset 0.2em 0.1em 0 rgba(0, 0, 0, 0.2);

	padding-top: 0.3em;
}

.popup p {
	font-family: "Rajdhani";
	line-height: 1.5;
	padding: 1em;
	font-size: 1.1rem;

	background-color: white;
	box-shadow: inset 0.2em 0.1em 0 rgba(0, 0, 0, 0.2);

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

.contenedor-botones {
	width: 100%;
	gap: 1em;
}

.close-button {
	background-color: var(--naranja);
	color: white;
	border: none;
	padding: 1em;
	cursor: pointer;
	font-size: 16px;
	text-transform: uppercase;
	font-family: "Rubik", sans-serif;
}

.close-button:hover {
	background-color: var(--azul);
}

@media (max-width: 768px) {
	.popup {
		width: 85%;
	}
	.popup h1 {
		font-size: 18px;
	}
	.close-button {
		font-size: 14px;
	}
}

