@import url(https://fonts.bunny.net/css?family=titillium-web:200,300,400,600,700,900);
body {
	background-image: linear-gradient(180deg, #141414EB 0%, #141414F0 100%), url("img/Background.webp");
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	
	
	color: white;
	font-family: "Titillium Web";
}

/* Font adjustments */
@media (max-width: 3520px) {
	body {
		font-size: 78%;
	}
}
@media (max-width: 3200px) {
	body {
		font-size: 75%;
	}
}
@media (max-width: 2880px) {
	body {
		font-size: 72%;
	}
}
@media (max-width: 2560px) {
	body {
		font-size: 69%;
	}
}
@media (max-width: 2240px) {
	body {
		font-size: 66%;
	}
}
@media (max-width: 1920px) {
	body {
		font-size: 62.5%;
	}
}
@media (max-width: 1600px) {
	body {
		font-size: 56.3%;
	}
}
@media (max-width: 1366px) {
	body {
		font-size: 50%;
	}
}


/* containers */
.main-container {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	max-width: 3000px;
	
	margin: auto;
	padding: 6em;
}
.left {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
}
.right {
	padding-right: 5.2em;
}
.aside-left {
	display: none;
}
@media (width <= 1200px) {
	.aside-left {
		display: flex;
	}
	.right {
		display: none;
	}
}

/* footer */
footer {
	z-index: 11;
}
footer div {
	font-size: 1.4em;
}
footer div:last-child {
	margin-top: 2vh;
}
footer a:hover { 
	color: gray;
}

/* header */
header {
	filter: invert(1);
	width: 22.2em;
	height: 8.5em;
}

/* boxes */
aside {
	display: flex;
	align-items: stretch;
	flex-direction: column;
	row-gap: 2.8em;
	column-gap: .9em;
	overflow: auto;
	height: 100%;
}
aside::-webkit-scrollbar { 
	display: none;  /* Safari and Chrome https://caniuse.com/mdn-css_properties_scrollbar-width */
}
aside a {
	display: block;
}
aside a div.imagebox {
	position: relative;
	min-width: 28.5em;
	min-height: 17.9em;
	background-color: gray;
	background-size: cover;
	border-radius: 7px;
	overflow: hidden;
}
aside a div.imagebox:hover span:first-of-type {
	color: gray;
	transform: translateY(-5px);
}
aside a div.imagebox span:first-of-type {
	position: absolute;
	bottom: 18px;
	left: 24px;
	font-size: 2.4em;
	font-weight: 600;
	transition: ease-in-out 0.2s;
}
aside a div.imagebox span:last-of-type {
	position: absolute;
	right: 0.2ex;
	
	margin-top: -0.7ex;
	
	font-size: 24ex;
	font-weight: 600;
	opacity: 0.35;
	line-height: 1;
}
.box1 {
	background-image: linear-gradient(180deg, #19171C5D 0%, #19171CB5 100%), url("img/Academy.webp");
}
.box2 {
	background-image: linear-gradient(180deg, #19171C5D 0%, #19171CB5 100%), url("img/Services.webp");
}
.box3 {
	background-image: linear-gradient(180deg, #19171C5D 0%, #19171CB5 100%), url("img/Projects.webp");
}
.box4 {
	background-image: linear-gradient(180deg, #19171C5D 0%, #19171CB5 100%), url("img/Jobs.webp");
}
a { 
	color: inherit;
	text-decoration: none;
}

/* middle */
main {
	align-self: center;
}
.error-code {
	text-align: center;
}
.error-code span {
	font-size: 50vh;
	-webkit-text-stroke-color: white;
	-webkit-text-stroke-width: 5px;
	color: transparent;
	position: relative;
	font-weight: 600;
	line-height: 1;
}
.panther {
	position: absolute;
	z-index: 10;
	height: 1.7ex;
	width: auto;
	top: 1.1ex;
	left: 1ex;
}
.error-description {
	position: relative;
	z-index: 20;
}
.error-description span {
	font-size: 4vh;
}

/* mobile view */
@media (width <= 1200px) {
	/* container */
	.main-container {
		flex-direction: column;
		padding-left: 2.5em;
		padding-right: 2.5em;
		padding-top: 4.4em;
		padding-bottom: 5.6em;
	}
	.left {
		padding: 0;
		height: 100%;
	}
	
	/* header */
	header {
		width: 16.2em;
		height: 6.2em;
	}
	
	/* boxes */
	aside {
		flex-direction: row;
		overflow: auto;
		padding: 0;
		justify-content: unset;
		height: auto;
		margin-right: -2.5em;
	}
	aside div.imagebox {
		min-width: 15.7em;
		min-height: 10em;
	}
	aside div.imagebox span:first-of-type {
		bottom: 10px;
		left: 14.5px;
		font-size: 1.8em;
	}
	
	/* middle */
	.error-code span {
		font-size: 30vw;
		-webkit-text-stroke-width: 3px;
	}
	.error-description span { 
		font-size: 4vw;
	}

}
@media (width < 1600px) {
	.error-code span {
		font-size: min(40vh, 40vw);
	}
	.error-description span {
		font-size: min(4vh, 4vw);
	}
}
@media (720px <= width <= 1200px) {
	aside {
		margin: 0 auto;
	}
}

/* Adjustments for the boxes */
@media (height > 860px)  and (1200px < width <= 1600px),
       (height > 920px)  and (1200px < width <= 1920px),
       (height > 980px)  and (1200px < width <= 2240px),
       (height > 1020px) and (1200px < width <= 2560px),
       (height > 1060px) and (1200px < width <= 2880px),
       (height > 1100px) and (1200px < width <= 3200px),
       (height > 1150px) and (1200px < width <= 3520px),
       (height > 1505px) and (1200px < width >  3520px),
       (height > 1505px) and (         width >  3520px) 
{
	aside {
		justify-content: center;
	}
}

/* smaller adjustments */
@media (height < 616px) {
	.aside-left {
		display: none !important;
	}
}
@media (height < 460px) {
	.error-code span {
		font-size: 22vh;
	}
}

@media (width >= 3000px) {
	.maincontainer {
		padding: 0;
	}
}
