@font-face {
	font-family: 'titulo';
	src: url('fuentes/Nougat-ExtraBlack.ttf');
	text-shadow: 10px 10px 20px black;
}

body {

	margin: 0;

	background: rgb(0, 134, 11);

	color: white;

	font-family: Arial, sans-serif;
	overflow-x: hidden;

}



/* HEADER */

header {

	z-index: 10;

	text-align: center;

	padding: 1%;
	width: 100%;



	background: #014a07;

	color: white;

	border-bottom: 6px solid #000000;

}

h1 a{
	font-family: 'titulo';
	text-shadow: 10px 10px 20px black;
	-webkit-text-stroke: 2px black;
	font-size: 56px;
	text-decoration: none;
	color: white;
	color: inherit; 

}

h2{
	font-size: 16;
	
	margin-left: 20px;


}



/* CONTENEDOR GENERAL */

.main {

	--base-w: 1200;

  	--base-h: 1000;

  	--scale: min(1, 90vw / var(--base-w)); /* nunca más grande que 1 */

  

  	width: calc(var(--base-w) * 1px * var(--scale));

	height: calc(var(--base-h) * 1px * var(--scale));

	margin: 10 auto;

	overflow: hidden;

	position: relative;

	background: rgb(0, 134, 11);

	display: flex;

	justify-content: center;

}



/* CONTENEDOR DEL JUEGO */

.game-container {
	width: 78%;


	height: auto;        /* deja que se ajuste */
	aspect-ratio: 16 / 10; /* mantiene proporción */
	border: 5px solid #01630a;
	background-color: #000000;
	text-align: center;
	justify-content: center;

	margin-top: 1%;
  }

.game-container span{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 0;

}







footer {

	z-index: 10;
	display: flex;

	text-align: center;
	align-items: center;
	justify-content: center;
	align-content: center;
	



	margin-top: 1%;

	background: #014a07;

	color: white;

	border-top: 4px solid #000000;

	height: 10%;
	width: 100%;
	bottom: 0;


}

section{
	width: 79%;
	background-color: #01630a;
	border-radius: 3%;
	padding-bottom: 5px;
	text-align: left;
	align-items: center;
	margin-left: 10.5%;
	
}

section b{
	font-size: 18px;
	
}

p {
	margin-left: 20px;
	
}
#canvas {
	width: 100%;
	height: auto;       /* mantiene proporción */
	max-width: 100%; 
	z-index: 2;   /* nunca más ancho que el contenedor */
  }



.ad {
	position: fixed;

	 /* altura aproximada del header */

	width: 10%;
	height:100%;





	background: #333;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	z-index: 5;
}

.ad-left {
	left: 0;

}

.ad-right {
	right: 0;

}

.foot{
	width: 80%;

	display: flex;
	align-items: center;
	justify-content: space-between;
	-webkit-text-stroke: 0.1px black;


	gap: 1%;

}

.contacto, .redes, .legales {
	flex: 1;              /* cada bloque ocupa espacio proporcional */
	text-align: center;   /* centra el contenido dentro de cada bloque */
  }

.foot img{
	max-width: 30px;
	max-height: auto;
	padding-left: 8px;
	padding-right: 8px;
	padding-top: 8px;
}

.icons a {
	position: relative; /* necesario para ubicar el tooltip */
	display: inline-block;
  }
.icons a::after {
	content: attr(title);
	position: absolute;
	bottom: 120%;              /* un poco más arriba del ícono */
	left: 50%;
	transform: translateX(-50%);
	
	
	padding: 5px 8px;
	border-radius: 5px;        /* más notorio que 1% */
	
	white-space: nowrap;
	opacity: 0;                /* oculto por defecto */
	pointer-events: none;
	transition: opacity 0.3s;
  }
  
  .icons a:hover::after {
	opacity: 1;
}   

.forms{
	width: 80%;


	border-radius: 3%;
	padding-bottom: 5px;
	text-align: left;
	align-items: center;
	margin-left: 10.5%;


	
}

.forms a {
	margin-top: 10%;
	padding: 1%;
	margin-right: 2%;
	background-color: rgb(152, 3, 3);
	border: 2px solid  rgb(39, 39, 0);
	border-radius: 20%;
	bottom: 0;
	text-decoration: none; /* saca el subrayado */
	color: inherit;        /* hereda el color del padre */
	
}

.legales a{
	text-decoration: none;
	color: white;
	color: inherit; 

	
}

#overlay{
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #333;
	width: 100%;
	height: 100%;

}

#playButton{
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #8a8a8a;
	width: 12%;
	height: 4%;
	border: 4px solid rgb(152, 3, 3);
}

.hilltop{
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10%;
	padding-top:2% ;
	padding-bottom:2% ;
}

/* aparece al hacer hover */


/* OPCIONAL: para debug */

/*

.game-container {

	border: 2px solid red;

}
*/
@media(max-width: 1024px){
	.ad {
		display: none;
	}

	.game-container {
		width:95%;
	
	
		height: auto;        /* deja que se ajuste */
		aspect-ratio: 16 / 10; /* mantiene proporción */
		
		background-color: #000000;
		text-align: center;
		justify-content: center;
	
		margin-top: 1%;
	  }


}




