/* Background Video */

.video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	z-index: -2;
}

video {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
}

.caption {
	position: fixed;
	top: 50%;
	left: 50%;
	height: 512px;
	width: 512px;
	margin: -256px;
	clip-path: url(#logoClipPath);
	background: rgb(181, 181, 181, 0.2);
	backdrop-filter: blur(5px);
	transform: scale(1.2);
	-webkit-transform: scale(1.2);
	cursor: default;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	z-index: -1;
}


/* Main */

section#main {
	--overlay-opacity: 0.33;
	height: 100vh;
}

section#main aside {
	position: absolute;
	display: flex;
	flex-direction: column;
	top: 50%;
	left: 0;
	margin: 0 0 0 35px;
	transform: translateY(-50%) translateZ(0);
	-webkit-transform: translateY(-50%) translateZ(0);
	z-index: 2;
}

section#main aside a {
	display: block;
	width: 45px;
	height: 45px;
	color: var(--text-color);
	margin: 15px 0;
	opacity: .5;
	transition: .25s;
	-webkit-transition: .25s;
}

section#main aside a:hover {
	opacity: 1;
	transform: translateX(8px);
	-webkit-transform: translateX(8px);
}

section#main .welcome {
	position: absolute;
	left: 50%;
	bottom: 15%;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	text-align: center;
	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
}

section#main .welcome>* {
	animation-delay: 1s !important;
}

section#main .welcome p {
	opacity: 1;
	margin-bottom: 50px;
}

section#main .welcome a.button {
	align-self: center;
	margin: 5px 10px;
}

@media screen and (max-width: 1024px) {
	.caption {
		transform: scale(0.85);
		-webkit-transform: scale(0.85);
	}
}

@media screen and (max-width: 768px) {
	.caption {
		transform: scale(0.7);
		-webkit-transform: scale(0.7);
	}

	section#main p {
		line-height: initial;
		margin-bottom: 25px;
	}

	section#main aside {
		flex-direction: row;
		top: unset;
		bottom: 70px;
		left: 50%;
		margin: 0;
		transform: translateX(-50%) translateZ(0);
		-webkit-transform: translateX(-50%) translateZ(0);
	}

	section#main aside a {
		margin: 0 15px;
	}

	section#main aside a:hover {
		transform: translateY(-8px);
		-webkit-transform: translateY(-8px);
	}

	section#main .welcome {
		bottom: 7%;
		/*width: 75%;*/
	}
}

@media screen and (max-width: 370px) {
	.caption {
		transform: scale(0.5);
		-webkit-transform: scale(0.5);
	}
}


/* Upcoming */

section#upcoming {
	display: flex;
	padding-top: 80px;
	padding-bottom: 80px;
}

section#upcoming article {
	justify-content: center;
}

section#upcoming .poster img {
	width: 100%;
	max-width: 450px;
}

section#upcoming .content {
	flex: 60%;
	padding-left: 80px;
}

section#upcoming .content>* {
	margin-bottom: 20px;
}

section#upcoming .content .event-description {
	padding-bottom: 20px;
}

section#upcoming .content .button.active {
	margin-left: 10px;
}

section#upcoming .content .countdown {
	max-width: 520px;
	margin-top: 80px;
}

@media (max-width: 1024px) and (min-width: 768px) {}

@media screen and (max-width: 1024px) {
	section#upcoming {
		padding-bottom: 20px;
	}

	section#upcoming article {
		flex-direction: column;
	}

	section#upcoming .poster {
		padding: 0 80px 30px;
		text-align: center;
	}

	section#upcoming .content {
		padding-left: 0;
	}

	section#upcoming .content .button.active {
		margin-left: 50px;
	}
}

@media screen and (max-width: 768px) {
	section#upcoming .poster {
		padding: 0 0 30px;
		text-align: center;
	}

	section#upcoming .content .buttons {
		display: flex;
		flex-direction: column;
	}

	section#upcoming .content .button.active {
		margin-left: 0;
		margin-top: 30px;
	}
}


/* Countdown */

.countdown {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

.countdown>div {
	/* position: relative; */
	display: flex;
	flex-direction: column;
	flex: 1;
}

.countdown .digits {
	min-width: 76px;
}


/*.countdown>div:not(:last-child)::after {
	position: absolute;
	top: 0;
	right: 20px;
	content: ":";
	font-family: "Poppins";
	font-weight: 400;
	font-size: 60px;
	line-height: 30px;
 color: var(--text-color);
}*/

.countdown .dots {
	/*position: absolute;
	top: 0;
	right: 20px;
	content: ":";*/
	margin: 0 5px;
	text-align: center;
	font-family: "Poppins";
	font-weight: 400;
	font-size: 60px;
	line-height: 30px;
	color: var(--text-color);
}

.countdown .value {
	font-family: "Poppins";
	font-weight: 400;
	font-size: 60px;
	line-height: 30px;
	color: var(--text-color);
}

.countdown .label {
	margin: 20px 5px;
	font-weight: 700;
	font-style: italic;
	font-size: 16px;
	color: var(--main-color);
}

@media screen and (max-width: 768px) {
	.countdown .value {
		font-size: 50px;
	}

	.countdown .digits {
		min-width: unset;
	}
}


/* Gallery */

section#gallery article {
	padding-top: 50px;
	padding-bottom: 80px;
	flex-direction: column;
}

section#gallery article>* {
	margin-bottom: 15px;
}

section#gallery article p {
	width: 50%;
}

section#gallery .gallery {
	margin-bottom: 80px;
}

@media screen and (max-width: 768px) {
	section#gallery article p {
		width: auto;
	}
}


/* Games */

section#games {
	--overlay-opacity: 0.8;
}

section#games .background {
	background-image: url(/resources/backgrounds/background1.jpg);
}

section#games article {
	flex-direction: row;
	align-items: center;
	justify-content: center;
	padding-top: 150px;
	padding-bottom: 100px;
}

section#games article .game {
	width: 265px;
	margin: 10px;
	padding: 10px;
	text-align: center;
}

section#games article .game>* {
	margin-bottom: 20px;
}

section#games article .game .icon {
	/*padding: 0 50px;*/
}

section#games article .game .icon svg {
	width: 100px;
	filter: drop-shadow(0px 0px 10px black);
	-webkit-filter: drop-shadow(0px 0px 10px black);
	transition: .25s;
	-webkit-transition: .25s;
}

section#games article .game a.button {
	margin-top: 10px;
}

section#games article .game p {
	display: none;
}

@media screen and (min-width: 1025px) {
	section#games article .game:hover .icon svg {
		filter: drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.75));
		-webkit-filter: drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.75));
	}
}

@media screen and (max-width: 1220px) {
	section#games article {
		justify-content: space-evenly;
		flex-wrap: wrap;
	}
}

@media screen and (max-width: 1024px) {
	section#games article {
		justify-content: space-evenly;
		flex-wrap: wrap;
		padding-top: 120px;
		padding-bottom: 100px;
	}

	section#games article .game {
		width: 33%;
		margin-bottom: 20px;
	}

	section#games article .game>* {
		margin-bottom: 20px;
	}

	section#games article .game:nth-child(1),
	section#games article .game:nth-child(3),
	section#games article .game:nth-child(5) {
		animation-delay: 0s !important;
	}

	section#games article .game:nth-child(2),
	section#games article .game:nth-child(4) {
		animation-delay: 0.2s !important;
	}
}

@media screen and (max-width: 768px) {
	section#games article {
		padding-top: 80px;
		padding-bottom: 80px;
	}

	section#games article .game {
		width: 66%;
		animation-delay: 0s !important;
	}

	section#games article .game>* {
		margin-bottom: 15px;
	}

	section#games article #table-icon {
		margin-bottom: -20px;
	}
}