/* -- Main Page Content -------------------------------------------------------------- */
body {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-content: center;
	align-items: flex-start;
	background: black;
}
canvas {
	width: 100%;
	height: 100%;
	background: url("../images/hallway_tall.webp") no-repeat center center;
	background-size: cover;
}
footer > p {
	text-align: center;
	font: bold normal normal 25px/normal dungeon;
}
footer > p > span {
	font: bold normal normal 25px/normal Helvetica,sans-serif;
}
main,header,article,footer {
	flex-basis: 750px;
	max-width: 750px;
	min-width: 750px;
}
body,header,article,footer,p,nav,ul,li,a {
	margin: 0;
	padding: 0;
}
.display-inblock {
	display: inline-block;
}
.overflow-hidden {
	overflow: hidden;
}
#content {
	transition: opacity 0.5s;
}
#video-bg {
	transform: translate(-50%, -50%);
	object-fit: cover;
	overflow: hidden;
	position: fixed;
	height: auto;
	width: 100%;
	left: 50%;
	top: 50%;
	z-index: -2;
}
#viewport {
	top: 0;
	left: 0;
	width: 100%;
	z-index: -2;
	height: 100%;
	display: block;
	position: fixed;
	pointer-events: none;
}
@font-face {
  font-family: Blackcastle;
  src: url(../fonts/blackcastle.ttf);
}
@font-face {
  font-family: Draconis;
  src: url(../fonts/draconis.ttf);
}


/* -- Loading Screen ----------------------------------------------------------------- */
#loader {
	position: fixed;
	z-index: 1003;
	width: 100%;
	height: 100%;
	background: #000000;
	transition: opacity 2s;
}
#loader div.effect {
	width: inherit;
	height: inherit;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	-webkit-animation: fadeIn 2s;
	animation: fadeIn 2s;
}
#loader div.logo {
	width: 100vw;
	height: 50vh;
	margin-bottom: 20px;
	background: url("../images/banner.webp") no-repeat center center;
	background-size: contain;
}
#loader div.ring {
	width: 15vmin;
	height: 15vmin;
	border: 5px solid #E0130E;
	border-radius: 50%;
	border-top-color: transparent;
	border-bottom-color: transparent;
	animation: rotate 2s linear infinite;
}
#loader noscript {
	color: white;
	margin-top: 20px;
}


/* -- Navigation Buttons ------------------------------------------------------------- */
nav.nav {
	position: sticky;
	bottom: 0;
	align-self: flex-end;
	height: 100%;
}
nav.nav ul {
	box-shadow: 0px 0px 9px rgba(0,0,0,0.75);
	list-style: none;
	position: relative;
	display: inline-table;
}
nav.nav ul ul {
	display: none;
}
nav.nav ul li {
	background: url("../images/button.webp") no-repeat center center;
	background-size: 100% 100%;

	font: normal 25px/normal Draconis;
	color: #ffffff;

	width: 75px;
	height: 75px;
	border-radius: 3px;
}
nav.nav ul li a {
	color: inherit;
	text-decoration: none;
	height: 100%;

	display: -webkit-box;
	display: -webkit-flex;
			display: flex;

	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;

	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
		flex-direction: column;

	align-content: center;
	text-align: center;
}
nav.nav ul li ul {
	margin: 0;
}
nav.nav ul ul li {
	float: none;
	position: relative;
}
nav.nav ul ul ul {
	position: absolute;
	left: 100%;
	top: 0px;
}

@media (hover) {
	nav.nav ul li:hover {
		cursor: pointer;
		box-shadow: 0px 0px 9px rgba(0,0,0,0.75);
	}
	nav.nav ul li:hover > ul {
		cursor: pointer;
		display: block;
		position: absolute;
		bottom: 100%;
	}
	nav.nav ul li:hover > a {
		cursor: pointer;
		color: #999999;
	}
}


/* -- Display Specific Styles -------------------------------------------------------- */
@media only screen and (orientation: landscape) {
	/* Desktop Styles for Landscape */
}
@media only screen and (orientation: portrait) {
	/* Desktop Styles for Portrait */
}
@media screen and (max-device-width: 480px) {
	/* Mobile Styles in Both Modes */
	nav.nav ul li {
		font: bold normal normal 50px/normal dungeon;
		width: 110px;
		height:110px;
	}
}
@media screen and (max-device-width: 720px) and (orientation: portrait) {
	/* Mobile Styles in Portrait Mode */
}
@media screen and (max-device-height: 720px) and (orientation: landscape) {
	/* Mobile Styles in Landscape Mode */
}


/* -- Animations --------------------------------------------------------------------- */
@keyframes fadeIn {
	0% {opacity: 0;}
	100% {opacity: 1;}
}
@-webkit-keyframes fadeIn {
	0% {opacity: 0;}
	100% {opacity: 1;}
}
@keyframes fadeOut {
	0% {opacity: 1;}
	100% {opacity: 0;}
}
@-webkit-keyframes fadeOut {
	0% {opacity: 1;}
	100% {opacity: 0;}
}
@keyframes rotate {
	100%{ transform: rotate(360deg); }
}
@-webkit-keyframes rotate {
	100%{ transform: rotate(360deg); }
}