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

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

html,
body,
p {
	margin: 0;
	padding: 0;
	font-family: "Rajdhani", sans-serif;
	font-weight: 600;
}

canvas {
	display: block;
	position: fixed;
	z-index: -2;
	top: 0;
	left: 0;
}

img {
	max-width: 100%;
	/* max-height: 100%; */
}

button {
	border: none;
	border-radius: none;
	font-family: unset;
	cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-weight: 500;
}

h1 {
	font-size: 2.5rem;
	text-transform: uppercase;
	font-family: "Erbaum";
}

h2 {
	font-size: 2.2rem;
	font-weight: 400;
}

h3 {
	font-size: 2rem;
}

p,
div,
button,
ul,
li, 
span {
	font-size: 1.2rem;
}

a {
	text-decoration: none;
}

a:visited {
	color: inherit;
}

@media screen and (max-width: 980px) {
	h1 {
		font-size: 2rem;
	}

	h2 {
		font-size: 2rem;
		font-weight: 400;
	}

	h3 {
		font-size: 1.5rem;
	}

	p,
	div,
	button,
	ul,
	li,
	span {
		font-size: 1rem;
	}
}

.hidden {
	display: none !important;
}

.sr-only {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

.anim {
	transition: all 1s ease-in-out;
}

.yellow-border {
	border-radius: 0;
	border: solid 2px #FFA500 ;
	padding: 1rem;
}

.cargando {
	position: fixed;
	z-index: 6;
	background-color: #00ced1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 1rem;
	width: 100vw;
	height: 100vh;
	margin: 0;
}
.cargando h2 {
	font-weight: bold;
}

.estado.inicio {
	margin: auto;
	padding-top: 5svh;
	display: flex;
	flex-direction: column;
	min-height: 90svh;
	justify-content: space-between;
	align-items: center;
	transition: height 0.6 ease-in-out;
}

.card {
	/* border-radius: 0.75rem; */
	display: inline-flex;
	/* padding: 1rem 1.25rem; */
	/* margin: 1.125rem; */
	justify-content: center;
	align-items: center;

	text-align: center;

	color: #103872;

	/* box-shadow: 6px 12px 24px 0px rgba(0, 0, 0, 0.50); */
	transition: all 1s ease-in-out;

	gap: 1rem;
}

.card img {
	max-height: 3rem;
}

/* .title.card {
  background: #FFDEA2;
} */

.description.card {
	/* background: #B6DEFF; */
	margin: 0.6rem;
}

button.card,
a.card {
	background: none;
	font-family: "Erbaum";
	color: #103872;
	text-transform: uppercase;
}

/* .play.card {
  background: #00CED1;
  
  
}

.back.card {
  position: absolute;
  top: 0;
  left: 0;
  margin: 1.25rem;
  
  rotate: 5deg;
  background: #007FFF;
  color:#FFF;
} */

.celular {
	position: fixed;
	z-index: -1;
	top: 10svh;
	left: 3vw;
	max-width: 25vw;
	/* rotate: 10deg; */
}

button.star,
button.exit,
button.terminar {
	display: flex;
	border-radius: 6rem;
	background-color: #b6deff;
	/* padding: 0.75rem; */
	align-items: center;
	vertical-align: center;
	justify-content: center;

	width: 4rem;
	height: 4rem;
}

.star-container {
	position: absolute;
	top: 0;
	margin: 2rem;
	left: 0;

	display: flex;
	flex-direction: row;
	gap: 1rem;
}

button.exit {
	position: absolute;
	top: 0;
	margin: 2rem;
	right: 0;
}

button.star img {
	max-width: 3rem;
}

button.exit img {
	max-width: 2rem;
}

button.terminar{
	width: unset;
	background-color: #FFA500;

	padding: 0 2em;

	font-size: 1.25rem;
	font-weight: 600;
	color: #103872;
	text-transform: uppercase;

	position: absolute;
	top: 0;
	transform: translate(-50%, 0);
	left: 50%;
	margin-top: 2rem;
}

.controls-container {
	display: flex;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;

	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 4rem;

	margin-bottom: 2rem;
}

.controls-container button {
	border-radius: 0.75rem;
}

.navegar {
	background-color: #b6deff;
	padding: 0.75rem 1rem;
}

#subir {
	padding: 0.75rem 1.3rem;
}

.navegar:disabled {
	opacity: 0.5;
	pointer-events: none;
}

#abrir-camara {
	background-color: #00ced1;
	width: 7.5rem;
	/* height: 7.5rem; */

	display: flex;
	align-items: center;
	justify-content: center;
	/* border: solid 4rem #00CED1; */
	/* padding: 0.5rem; */
	padding: min(5%, 2rem) 0.5rem;
	box-sizing: content-box;
}

#obturador {
	background: none;
	padding: 0;
	border: 0;
	width: 8.5rem;
	height: 8.5rem;
	/* padding: 0.5rem; */
	/* box-sizing: content-box; */
}

.infografia {
	height: 100svh;
	width: 100vw;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.cuaderno {
	min-height: 100svh;
	margin: auto;
	display: block;
}

#img-capturada {
	position: fixed;
	z-index: 2;
	top: 10svh;
	left: 5vw;
	rotate: -10deg;
	/* background-position: center; */
	/* background-image: url(./assets/TestImg.jpg); */

	border-radius: 4px;
	border: 2px solid #fff;
	box-shadow: 6px 12px 24px 0px rgba(0, 0, 0, 0.5);

	scale: 0.75;
}

#centro {
	position: fixed;
	z-index: 2;
	translate: -50% -50%;
	max-width: 20vw;
	pointer-events: none;
}

.back:hover,
.play:hover {
	transform: scale(1.1);
}

/* popup creditos */

.popup {
	cursor: pointer;
	display: flex;
	position: fixed;

	width: 40vw;

	text-align: center;
	color: #103872;

	border: none;
	box-shadow: 6px 12px 24px 0px rgba(0, 0, 0, 0.5);

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

	padding: 1rem;

	background: #fafafa;
	background-image: url("./assets/papel.jpg"); /* Replace with your image URL */
	background-size: cover; /* To cover the entire div */
	background-position: center; /* To center the background image */

	/* transition: all 0.8s ease-in; */

}
.popup.centro {
	top: 50%;
	bottom: auto;
	left: 50%; 
	right: auto;
	transform: translate(-50%, -50%) rotate(0); /* Center both horizontally and vertically */
}
.popup.escondido {
	top: auto;
	/* left: auto; */
	left: calc(100vw - 13.5rem);
	top: calc(100vh - 3.2rem);
	/* right: 0; */
	/* transform: translate(0%, 0%) rotate(25deg); Center both horizontally and vertically */
	/* rotate: 25deg; */
}
.popup.escondido:hover {
	/* transform: translate(0%, -8%) rotate(22deg); */
	rotate: 5deg;
}
.popup h1 {
	font-size: 1.2rem;
	width: 100%;
	text-align: start;
	text-transform: uppercase;
	font-family: "Erbaum", "Rubik-Black", sans-serif;
}
.popup p {
	font-family: "Rajdhani";
	line-height: 1.2;
	padding: 0.3em;
	font-size: 1rem;

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

.boton-salir {
	cursor: pointer;
	position: absolute;
	top: 0.5em;
	right: 0.5em;
	font-size: 1.2em;
	width: 2em; /* Adjust the width as needed */
	height: 2em; /* Adjust the height as needed */
}
.boton-salir:hover {
	background-image: url("./boton-salir-hover.svg"); /* Replace with your image URL */
}

@media (max-width: 768px) {
	.popup {
		width: 85%;
		max-width: 95vw;
	}
	.popup.escondido {
		bottom: auto;
		/* top: 95%; */
		/* transform: rotate(15deg); */
	}
	/* .popup.escondido:hover {
		transform: translate(-8%, -8%) rotate(6deg); Center both horizontally and vertically
	} */
	.popup h1 {
		font-size: 18px;
	}
	.close-button {
		font-size: 14px;
	}
}

/* créditos */

.album.container{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 100vw;
	padding: 5vw;
	gap: 1rem;
}

.ficha {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: fit-content;
	padding: 4rem;
	/* margin: 5vw; */
	background-image: url(assets/papel.jpg);
	background-size: cover;

	color: #103872;

	text-align: center;
	rotate: 3deg;
}

.ficha h2 {
	font-family: "Erbaum";
	text-transform: uppercase;
}

.ficha img {
	max-height: 2.5rem;
}

.album.foto {
	border-radius: 4px;
	border: 2px solid #fff;
	box-shadow: 6px 12px 24px 0px rgba(0, 0, 0, 0.5);

	scale: 0.95;
}

.cam-tag {
	position: fixed;
	translate: -50% -50%;
	z-index: 5;
	background-color: #FFA500;
	color: #103872;
	padding: 0.5em 1em;
	border-radius: 5em;
	border: none;
	display: none;

	pointer-events: none;
}

.card-container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

@media (orientation: portrait) {
	#img-capturada {
		z-index: -1;
		top: 5svh;
		rotate: -5deg;
	}
}

@media screen and (max-width: 980px) {
	.estado.inicio {
		min-height: 85vh;
		margin-bottom: 3.5rem;
		/*background-image: url(./assets/fondos/nivel_0a.jpg);
    background-position: center;
    background-size: cover;*/
	}

	.celular {
		display: none;
	}

	.controls-container {
		gap: 1rem;
		box-sizing: border-box;
		padding: 0 1rem;
	}
  
	.description.card { margin: 0 }

  /* .card {
    background-color: #B6DEFF;
  } */
}
