@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap');

:root {
	--padding-primary: 60px;
	--light-color: #fff;
	--dark-color: #111;
	--primary-color: ##e74c3c;
}


* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}

body {
	overflow-x: hidden;
}

section {
	padding: var(--padding-primary);
	padding-top: 100px;
	height: 100vh;
	background-color: var(--light-color);
	background-image: url("https://www.transparenttextures.com/patterns/45-degree-fabric-light.png");
	/* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
}

section header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100px;
	padding: 20px var(--padding-primary);
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 10000;
}

section header .logo {
	position: relative;
	font-size: 28px;
	color: var(--dark-color);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 700;
	opacity: 0;
	animation: slideLeft 0.5s ease-in-out forwards;
}

section header .toggle {
	position: relative;
	width: 30px;
	height: 30px;
	background: url(images/menu.png);
	background-size: 30px;
	background-position: center;
	background-repeat: no-repeat;
	cursor: pointer;
	z-index: 10000;
	opacity: 0;
	animation: slideRight 0.8s ease-in-out forwards;
	animation-delay: 0.5s;
}

section header .toggle.active {
	background: url(images/close.png);
	background-size: 25px;
	background-position: center;
	background-repeat: no-repeat;
}

.navigation {
	position: absolute;
	display: flex;
	right: 150px;
	opacity: 0;
	visibility: hidden;
	transition: 0.5s;
}

.navigation.active {
	opacity: 1;
	visibility: visible;
}

.navigation li {
	list-style: none;
}

.navigation li a {
	color: var(--dark-color);
	text-decoration: none;
	font-size: 16px;
	margin: 0 20px;
	font-weight: 600;
	display: inline-block;
	opacity: 0;
	text-transform: uppercase;
}

.navigation.active li a {
	animation: slideRight 0.5s ease-in-out forwards;
	animation-delay: calc(0.2s * var(--i));
}

section .container {
	position: absolute;
	display: flex;
	height: calc(100% - 200px);
	width: calc(100% - (2 * var(--padding-primary)));
	z-index: 100;
	user-select: none;
}

section .container .box {
	position: relative;
	width: 25%;
	height: 100%;
	background: var(--light-color);
	overflow: hidden;
	border-right: 10px solid var(--light-color);
}

section .container .box:last-child {
	border-right: none;
}

section .container .box .imgBx {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	transition: 0.5s;
	opacity: 0;
	animation: slideRight 0.5s ease-in-out forwards;
	animation-delay: calc(0.2s * var(--i));
}

section .container .box .imgBx.active {
	position: fixed;
	top: 100px;
	left: var(--padding-primary);
	width: calc(100% - (2 * var(--padding-primary)));
	height: calc(100% - 200px);
	z-index: 1000;
	filter: grayscale(0);
	opacity: 1;
}

section .container .box .imgBx img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: 0.5s;
}

section .container .box .imgBx:hover img,
section .container .box .imgBx:focus img {
	transform: scale(1.2);
}

section .container .box .imgBx.active:hover img {
	transform: scale(1);
}

.footer {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 0 var(--padding-primary);
	height: 100px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.sci {
	position: relative;
	display: flex;
}

.sci li {
	list-style: none;
}

.sci li a {
	color: var(--dark-color);
	text-decoration: none;
	text-transform: uppercase;
	font-weight: 600;
	margin-right: 25px;
	display: inline-block;
	opacity: 0;
	animation: slideLeft 0.5s ease-in-out forwards;
	animation-delay: calc(0.2s * var(--i));
}

.sci li:last-child a {
	margin-right: 0;
}

.copyrightText {
	color: var(--dark-color);
	font-weight: 500;
	opacity: 0;
	animation: slideRight 0.5s ease-in-out forwards;
	animation-delay: 2.5s;
}

.copyrightText a {
	text-decoration: none;
	color: var(--dark-color);
	font-weight: inherit;
}

a:not(.logo):hover {
	color: #e74c3c;
}

@keyframes slideRight {
	0% {
		transform: translateX(150px);
		opacity: 0;
	}

	100% {
		transform: translateX(0px);
		opacity: 1;
	}
}

@keyframes slideLeft {
	0% {
		transform: translateX(-150px);
		opacity: 0;
	}

	100% {
		transform: translateX(0px);
		opacity: 1;
	}
}

@media (max-width: 768px) {
	section {
		padding: 80px 20px;
	}

	section header {
		height: 70px;
		padding: 10px 20px;
	}

	.navigation {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		background: var(--light-color);
	}

	.navigation li a {
		color: var(--dark-color);
		text-decoration: none;
		font-size: 20px;
		margin: 5px 10px;
		letter-spacing: 1px;
		display: inline-block;
		font-weight: 600;
		text-transform: uppercase;
	}

	section .container {
		flex-direction: column;
		flex-wrap: wrap;
		width: calc(100% - 30px);
		height: calc(100% - 170px);
	}

	section .container .box {
		width: 100%;
		height: 25%;
		border-bottom: 10px solid var(--light-color);
	}

	section .container .box .imgBx.active {
		top: 70px;
		left: 20px;
		width: calc(100% - 40px);
		height: calc(100% - 160px);
	}

	section .container .box:last-child {
		border-right: 10px solid var(--light-color);
	}

	.footer {
		width: 100%;
		padding: 0 20px;
		flex-direction: column;
		justify-content: center;
	}
}

@media (max-width: 400px) {
	section header .logo {
		font-size: 20px;
	}

	.sci li a {
		font-size: 12px;
	}
}