@font-face {
	font-family: clearsans;
	src: url(/fonts/clear_sans.ttf);
}

body {
	margin: 0;
	font-family: clearsans;
	color: #00e5bf;
	font-size: 12pt;
	/*background: radial-gradient(circle,  rgb(14, 14, 14) 25%, rgb(22, 11, 11) 100%);*/
	background-color: #0e0e10;
	background-attachment: fixed;
}

/* CONTAINER */

#container {
	width: 50vw;
	margin-top: 15vh;
	margin-bottom: 15vh;
	margin-left: 50%;
	transform: translateX(-50%);
}

/* TOP */

#top {
	position: relative;
	height: 5vw;
	background-color: #1f1f23;
}

#moonrise-logo {
	position: absolute;
	height: 70%;
	left: 50%;
	top: 40%;
	transform: translate(-50%, -50%);
}

#icon-container {
	position: absolute;
	bottom: 6%;
	left: 50%;
	transform: translateX(-50%);
}

.icon img {
	display: inline-block;
	width: 1vw;
	margin: 0 0.3vw 0 0.3vw;
}

/* CENTER */

#center {
	display: flex;
	flex-flow: row wrap;
	width: 100%;
}

.hidden {
	overflow: hidden;
	display: none;
}

.game {
	position: relative;
	background-color: black;
	background-repeat: no-repeat;
	background-size: cover;

	width: calc(50vw / 4);
	height: calc(50vw / 4);
}

.wide {
	position: relative;
	background-color: black;
	background-repeat: no-repeat;
	background-size: cover;

	width: calc(50vw);
	height: calc(50vw / 2);
}

.logo {
	position: absolute;
	background-color: #00000077;
	width: 100%;
	height: 100%;
	transition: 0.4s;
	opacity: 1;
}

.logo img {
	position: relative;
	width: 80%;
	height: 80%;
	max-width: calc(50vw / 3);
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	object-fit: contain;
}

.links {
	position: absolute;
	display: flex;
	flex-flow: row wrap;
	align-content: flex-end;

	width: 100%;
	height: 100%;
}

.btn {
	margin-left: 0.5vw;
	margin-bottom: 0.5vw;
	pointer-events: all;
	width: 2vw;
	height: 2vw;
	cursor: pointer;
}

.btn img {
	width: 100%;
	height: 100%;
}

.btn img:hover {
	position: relative;
	width: 110%;
	height: 110%;
	left: -5%;
	top: -5%;
}

.game video {
	position: absolute;
	width: 100%;
	height: 100%;
}

/* BOTTOM */

#bottom {
	position: relative;
	height: 5vw;
	background-color: #1f1f23;
}

#bottom div {
	position: absolute;
	bottom: 0.5vw;
	left: 0.5vw;
}

#bottom div.right {
	right: 0.5vw;
	text-align: right;
}

#bottom p {
	margin: 5px 0 5px 0;
	font-size: 0.8vw;
}

/* FLEX */

@media screen and (max-width: 1920px) {
	#container {
		width: 960px;
	}

	#top {
		height: calc(1920px * 0.05);
	}

	#bottom {
		height: calc(1920px * 0.05);
	}

	.logo img {
		max-width: calc(960px / 3);
	}

	.icon img {
		width: calc(1920px * 0.01);
		margin: 0 calc(1920px * 0.003) 0 calc(1920px * 0.003);
	}

	.game {
		width: calc(1920px * 0.5 / 4);
		height: calc(1920px * 0.5 / 4);
	}

	.wide {
		width: calc(1920px * 0.5);
		height: calc(1920px * 0.5 / 2);
	}

	.btn {
		margin-left: calc(1920px * 0.005);
		margin-bottom: calc(1920px * 0.005);
		width: calc(1920px * 0.02);
		height: calc(1920px * 0.02);
	}

	#bottom div {
		bottom: calc(1920px * 0.005);
		left: calc(1920px * 0.005);
	}

	#bottom div.right {
		right: calc(1920px * 0.005);
	}

	#bottom p {
		font-size: calc(1920px * 0.008);
	}
}

@media screen and (max-width: 960px) {
	#container {
		margin-top: 0px;
		margin-bottom: 0px;
		width: 100vw;
	}

	#top {
		height: 35vw;
	}

	#bottom {
		height: 25vw;
	}

	#moonrise-logo {
		width: 80vw;
	}

	.logo img {
		max-width: calc(100vw / 3);
	}

	.icon img {
		width: 8vw;
		margin: 0 1vw 0 1vw;
	}

	.game {
		width: calc(100vw / 2);
		height: calc(100vw / 2);
	}

	.wide {
		width: calc(100vw);
		height: calc(100vw / 2);
	}

	.btn {
		margin-left: 2vw;
		margin-bottom: 2vw;
		width: 8vw;
		height: 8vw;
	}

	#bottom div {
		bottom: 2vw;
		left: 2vw;
	}

	#bottom div.right {
		right: 2vw;
	}

	#bottom p {
		font-size: 3.2vw;
	}
}
