/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/*---------------------------------------------------------------------*/
* {
	text-decoration: none;
}
body {
	font-family: 'Montserrat', sans-serif;
}
:root {
	--backgroundColor: rgb(24, 28, 48);
	--creamColor: rgb(230, 221, 196);
	--colorShadowGreen: rgb(103, 137, 131);
	--gameCardsBackground: rgb(128,128,128);
	--textColorBeige: rgb(230, 221, 196);
	--titleColorGreen: rgb(103, 137, 131);
	--titleColorWhite: rgb(238, 238, 238);
	--blackColor: rgb(0,0,0);
	--grayColor: rgb(128,128,128);
	--darkGrayColor: rgb(52,52,52);
	--strokeColor:rgb(76, 163, 255);
}

/*----------------------------------- HEADER -----------------------------------*/

nav {
	background-color: var(--backgroundColor);
	display: flex;
	justify-content: space-between;
	padding: 0 2rem;
}

nav ul {
	display: flex;
}
nav ul li {
	padding: 2rem 1rem;
}
nav ul li a {
	background-color: var(--creamColor);
	padding: 0.7rem ;
	border-radius: 12px;
	box-shadow: 2px 3px var(--colorShadowGreen);
	color: var(--blackColor);
}
nav ul li:active {
	transform: translate(2px, 3px);
}
nav ul li a:active{
	box-shadow: 0 0;
}
nav #mon1,
nav #tec1 {
	animation: logoPartOne ease-in 3s;
}
nav #mon2,
nav #tec2{
	animation: logoPartTwo ease-in 3s;
}

header {
	background-image: url(./assets/imagenes/codigo.jpg);
	background-size: cover;
	background-attachment: fixed;
	background-repeat: no-repeat;
	min-height: 500px;
	display: flex;
	justify-content: center;
	align-items: center;
}

header h1 {
	color: var(--titleColorWhite);
	font-size:  64px;
	text-shadow: 2px 2px var(--grayColor), 6px 6px var(--blackColor);
	text-align: center;
}

/*----------------------------------- MAIN -----------------------------------*/

main {
	background-color: var(--backgroundColor);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-content: center;
	padding: 2rem;
}
main h2 {
	color: var(--titleColorGreen);
	text-align: center;
	font-size: 40px;
	font-weight: 600;
	margin-bottom: 2rem;
}
main .restart-button {
	margin: 2rem auto;
	padding: 0.7rem 6rem ;
	border-radius: 12px;
	border: none;
	background-color: var(--creamColor);
	box-shadow: 2px 3px var(--colorShadowGreen);
	color: var(--blackColor);
}
main .restart-button:active {
	transform: translate(2px, 3px);
	box-shadow: 0 0;
}
.card-container {
	display: flex;
	justify-content: space-evenly;
}
.game-cards {
	display: flex;
	justify-content: center;
	margin-bottom: 2rem;
}
.content-card {
	display: flex;
	justify-content: space-between;
	flex-direction: column;
	align-items: center;
	border: 5px solid var(--colorShadowGreen);
	width: 350px;
	height: 400px;
	background-color: var(--creamColor);
	margin: 100px 0;
}
.card {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--titleColorWhite);
	width: 275px;
	height: 400px;
	background-color: var(--grayColor);
	border: 2px solid var(--blackColor);
	text-align: center;
}
.card:hover {
	background-color: var(--darkGrayColor);
}
.card img {
	width: 100%;
	height: 100%;
}
.hide {
	display: none;
}
.content-card img {
	width: 100%;
}
.content-card a {
	background-color: var(--backgroundColor);
	color: var(--creamColor);
	padding: 0.5rem 2rem;
	border: none;
	border-radius: 10px;
	margin-bottom: 1rem;
	box-shadow: 2px 3px var(--colorShadowGreen);
}
.content-card a:active {
	box-shadow: 0 0;
	transform: translate(2px, 3px);
}
.grid-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	padding: 3rem;
	gap: 20px;
}
.grid-container h2 {
	padding: 1.5rem;
}
.grid-container p {
	color: var(--creamColor);
	padding: 1.5rem;
}
/*----------------------------------- VIDEO -----------------------------------*/
.video-section {
	margin: 8rem 0;
}
.video-section,
.video-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.video-container{
	width: 100%;
	position: relative;
}
.video-container .video-controls {
	position: absolute;
	display: flex;
	justify-content: space-between;
	backdrop-filter: blur(20px);
	padding: 1rem;
	width: 50%;
	bottom: 0;
}
.video-container .timer {
	display: inline-block;
	color: black;
	font-size: 2rem;
}
.video-container button {
	background-color: rgba(25,25,25,0);
	border: none;
}
.video-start  svg, 
.video-pause svg {
	fill: transparent;
	stroke-width: 2;
	stroke: var(--strokeColor);
	width: 32px;
	height: 32px;
	transition: stroke-width 0.3s, filter 0.3s;
}
.video-start:hover svg,
.video-pause:hover svg {
	stroke-width: 3;
	filter: drop-shadow(3px 5px 2px var(--strokeColor));
}
video {
	width: 70%;
	background-color: var(--blackColor);
}
.images-container {
	display: flex;
	justify-content: center;
}
/*----------------------------------- FOOTER -----------------------------------*/

footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 2rem;
	background-color: var(--colorShadowGreen);
	color: var(--backgroundColor);
}
.footer-logo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 300px;
}
.footer-logo img {
	height: 80px;
}
.footer-logo  h3 {
	width: 150px;
	text-align: center;
}


/*----------------------------------- ANIMATION -----------------------------------*/

@keyframes logoPartOne {
	0%{
		transform: translate(0,-10px);
		opacity: 0;
	}
	20% {
		transform: translate(0,-10px);
		opacity: 0;
	}
	30% {
		transform: translate(0,0px);
		opacity: 1;
	}
	90% {
		transform: translate(0,0);
		opacity: 1;
	}
	100% {
		transform: translate(0,0);
		opacity: 1;
	}
}

@keyframes logoPartTwo {
	0% {
		transform: translate(0,-10px);
		opacity: 0;
	}
	30% {
		transform: translate(0,-10px);
		opacity: 0;
	}
	40% {
		transform: translate(0,0);
		opacity: 1;
	}
	90% {
		transform: translate(0,0);
		opacity: 1;
	}
	100% {
		transform: translate(0,0);
		opacity: 1;
	}
}