@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800;900&display=swap');

:root {
	--principal: #024059;
	--secundario: #026873;
	--blanco: #dfe8eb;
	--azulOscuro: #061123;
	--colorOro: #ffe7a7;
}

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	font-family: Raleway, "Helvetica Neue", Helvetica, Arial;
}

body {
	max-width: 100%;
	background-color: var(--principal);
}

img {
	max-width: 100%;
}

h3 {
	font-weight: 400;
}

p {
	padding-left: 15px;
	letter-spacing: 2px;
	padding-bottom: 15px;
	font-size: 12px;
}

.reglas {
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
	line-height: 15px;
	color: var(--blanco);
}

.reglas img {
	max-width: 30%;
}

.texto {
	max-width: 70%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.texto h1 {
	font-size: 8vw;
	margin: 0 0 10px 0;
}

.texto p {
	margin-top: 10px;
	font-size: 3vw;
}

.mensaje {
	margin: 20px auto;
	max-width: 90%;
	padding: 20px;
	border-radius: 20px;
	background-color: var(--secundario);
	margin-top: 10px;
}

.mensaje p {
	font-size: 3vw;
	color: var(--blanco);
}

.flex-conteiner {
	display: flex;
	align-items: center;
	flex-direction: column;
	height: 100vh;
	width: 100%;
}


.laberinto {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-template-rows: repeat(5, 1fr);
	grid-column-gap: 3px;
	grid-row-gap: 3px;
	height: 600px;
	max-width: 600px;
}

.juego {
	text-align: center;
	width: 100%;
	height: 100%;
	padding-top: 30px;
	font-size: 40px;
	text-transform: uppercase;
	cursor: help;
	transition: 1s;
	transition-delay: 0.1s;
	background-image: url(img/signo.jpg);
	background-repeat: no-repeat;
	background-size: 100% 100%;

}

.juego1 {
	display: block;;
	text-align: center;
	padding-top: 30px;
	background: #fff;
	color: #fff;
	font-size: 40px;
	text-transform: uppercase;
	cursor: help;
	transition: 1s;
	transition-delay: 0.1s;
	background: #000;
}

.o {
    display: block;
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
    align-self: auto;
    order: 0;
    color: #000;
    transition: transform 1s;
    transform-style: preserve-3d;
}

.juego1, .verde, .fail, .salida {
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

.juego1 {
	background-image: url(img/Owl.jpg);
}

.verde {
	background-image: url(img/verde.jpg);

}

.fail {
	background-image: url(img/fail.jpg);

}

.boton-container {
	margin: 20px 0;
	display: flex;
	justify-content: center;
}

.boton {
	text-decoration: none;
	border-width: 1px;
	border: solid 2px var(--colorOro);
	padding: 20px;
	border-radius: 20px;
	background-color: var(--azulOscuro);
	color: var(--colorOro);
	font-weight: 700;
	transition: all 0.3s;
}

.boton:hover {
	cursor: pointer;
	border: solid 2px var(--azulOscuro);
	color: var(--azulOscuro);
	background-color: var(--colorOro);
}

.salida {
	background-image: url(img/salida.jpg);
	background-repeat: no-repeat;
	background-size: 100% 100%;

}

.footer {
	margin: 40px auto 0 auto;
	max-width: 100%;
	padding: 20px;
	background-color: var(--secundario);
}

.footer h3 {
	text-align: center;
	font-size: 3vw;
	color: var(--blanco);
}


/* MEDIA QUERIES */

@media (min-width: 768px) {
	main {
		margin: auto;
		max-width: 1200px;
	}

	.header {
		justify-content: center;
	}
	

	.reglas img {
		max-width: 10%;
	}
	
	.texto {
		max-width: 30%;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	
	.texto h1 {
		font-size: 2vw;
		margin: 0 0 10px 0;
	}
	
	.texto p {
		margin-top: 10px;
		font-size: 1vw;
	}
	
	.mensaje p {
		font-size: 1.5vw;
	}

	.laberinto {
		margin: 0 auto;
	}

	.footer h3 {
		text-align: center;
		font-size: 1.5vw;
		color: var(--blanco);
	}
	
}
