/***  RESETS ***/
html,body,div,canvas { margin: 0; padding: 0; }
::-moz-selection { color: #333; text-shadow: none; }
::selection {  color: #333; text-shadow: none; }
.clear:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
.clear { display: inline-table; clear: both; }
/* Hides from IE-mac \*/ * html .clear { height: 1%; } .clear { display: block; } /* End hide from IE-mac */

.selectDisable {
	-webkit-user-select: none;
	-webkit-user-drag: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-o-user-select: none;
	user-select: none;
	user-drag: none;
}

/*** LAYOUT ***/
html {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	font-size: 22px;
}

body {
	margin: 0;
	padding: 0;
	width: 100%;
	min-height: 100vh;
	overflow-x: hidden;
	overflow-y: auto;
	background-color: #000;
	font-family: "Trebuchet MS", Helvetica, Verdana, Arial, sans-serif;
	display: flex;
	flex-direction: column;
}

/*** GAME LAYOUT ***/
#webglContent {
	position: relative;
	width: 100%;
	height: min(100vh, 56.25vw);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	background-color: transparent;
	z-index: 10;
	flex-shrink: 0;
}

#gameContainer {
	position: relative;
	margin: 0 auto;
	width: min(100vw, calc(100vh * 16 / 9));
	height: min(100vh, 56.25vw);
	z-index: 3;
}

#gameContainer canvas {
	display: block;
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
}

#splashContainer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	z-index: 5;
	pointer-events: none;
}

#splashContent {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

#splashContent img.img {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.loadingcircle {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 220px;
	height: 120px;
	margin-left: -110px;
	margin-top: -60px;
	animation: spin 2s linear infinite;
	z-index: 3;
}

/*** LOADING ***/
div#bgBar {
	position: relative;
	max-width: 20%;
	margin: auto;
	height: auto;
	display: block;
	font-size: 100%;
	background-color: #333;
	border-radius: 8px;
	border-style: solid;
	border-width: 1px;
	border-color: rgba(255,255,255,0.4);
}

div#progressBar {
	width: 0%;
	height: 1rem;
	background-color: #0b55bc;
	border-radius: 8px;
	z-index: 3;
}

#progress_message {
	z-index: 3;
	position: absolute;
	text-align: center;
	width: 100%;
	height: 2.6%;
	border-radius: 4px;
	color: rgba(255,255,255,1);
	line-height: 0.9em;
	font-size: 0.9em;
	font-weight: bold;
	-webkit-text-stroke: 0.8px rgba(0,0,0,0.6);
}

#loadingBox {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, 40%);
	width: 100%;
	max-width: 600px;
	z-index: 3;
}

#loadingText {
	position: absolute;
	color: white;
	top: 110%;
	left: 50%;
	margin-right: -50%;
	transform: translate(-50%, -50%);
	width: 1500px;
	height: 3%;
	text-align: center;
	font-size: 1.5vw;
}

p#loadingInfo {
	color: #999;
	letter-spacing: 1px;
	position: relative;
	width: 100%;
	font-family: "Monaco", sans-serif;
	text-align: center;
	font-size: 18px;
	margin-top: 20px;
}

/*** FOOTER ***/
#footer {
	position: relative;
	color: #FFF;
	height: 90px;
	text-align: center;
	width: 100%;
	background-color: #000;
	z-index: 1;
	flex-shrink: 0;
}

#copy {
	text-align: center;
	font-size: 14px;
	clear: both;
}

.termStuff {
	text-align: center;
	font-size: 12px;
	margin: 0 auto;
}

.termStuff a, .termStuff a:visited {
	text-decoration: none;
	text-align: center;
	color: #FFF;
	font-size: 12px;
	margin: 0 5px 15px 5px;
}

/*** MISC ***/
.loader {
	position: absolute;
	top: -175%;
	left: 100%;
	margin-right: -50%;
	z-index: 4;
	border: 1vw solid #f3f3f3;
	border-top: 1vw solid #3498db;
	border-radius: 50%;
	transform: translate(25%, 100%);
	width: 2vw;
	height: 2vw;
	animation: spin 2s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/*** RESPONSIVE ***/
@media only screen and (max-width: 900px) {
	html { font-size: 20px; }
}
@media only screen and (max-width: 800px) {
	html { font-size: 18px; }
	p#loadingInfo { display: none; }
}
@media only screen and (max-width: 700px) {
	html { font-size: 14px; }
}
@media only screen and (max-width: 600px) {
	div#bgBar { max-width: 75%; }
	div#gameLogo { padding: 20px 0; }
}