body
{
	background-color: #000000;
	margin: 0;
	overflow: hidden;
	color: #ffffff;

	-webkit-touch-callout: none; 
	-webkit-user-select: none; 
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

body *
{
	box-sizing: border-box;
}

canvas:first-child
{
	position: absolute;
}

#credits-title,
#click-to-start,
#click-to-retry,
#click-to-resume
{
	bottom: 0;
	color: #222222;
	font-family: "Courier New",Courier,monospace;
	position: absolute;
	text-align: center;
	font-size: 2em;
	opacity: 0;
	padding: 0.4em 0.8em;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

#credits-title
{
	z-index: 10;
}

#click-to-start,
#click-to-retry,
#click-to-resume
{
	width: 30%;
	font-size: 2.5em;
	bottom: 0.5em;
	color: #000000;
	left: 35%;
	padding: 0.5em 0;
	bottom: 0;
}

#click-to-retry,
#click-to-resume
{
	color: #ffffff;
}

#click-to-resume
{
	opacity: 1;
}

#fullscreen
{
	width: auto;
	right: 0;
	bottom: 0;
	position: absolute;
	font-family: "Courier New",Courier,monospace;
	font-size: 1.5em;
	font-weight: bold;
	color: white;
	text-align: center;
	width: 48px;
	height: 48px;
	cursor: pointer;
	background-image: url(assets/img/fullscreen.png);
	background-position: center center;
	background-size: 24px 24px;
	background-repeat: no-repeat;
	opacity: 0.8;
	display: none;
	z-index: 1500;
}

.game-full-screen #fullscreen
{
	background-image: url(assets/img/fullscreen-collapse.png);
}

#main-cont
{
	position: absolute;
	left: 50%;
	top: 50%;
	font-family: 'Josefin Sans', sans-serif;
	overflow: hidden;
}

#load-splash
{
	z-index: 100;
	background-color: black;
	text-align: center;
	background-image: url(assets/img/logo-name.png);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: auto 45%;
	transition: opacity 0.2s ease;
	width: 100%;
	height: 100%;
	position: absolute;
}

#load-splash-out 
{
    background-color: #333333;
    height: 10px;
    left: 40%;
	right: 40%;
    position: absolute;
    top: 75%;
    border-radius: 4px;
    overflow: hidden;
}

#load-splash-in
{
    background-color: #aaaaaa;
    height: 100%;
    width: 0;
}

#load-splash span
{
    display: block;
    margin-top: -10%;
    position: absolute;
    text-align: center;
    top: 50%;
    width: 100%;
}

#intro-cont,
#game-over
{
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	transition: opacity 0.5s ease, transform 0.2s ease;
}

#intro-curtain
{
	position: absolute;
	background-color: black;
	width: 100%;
	height: 100%;
	transition: opacity 0.5s ease;
}

#intro-title
{
	position: absolute;
	font-size: 10em;
	height: 2em;
	top: 50%;
	width: 100%;
	margin-top: -1em;
	z-index: 50;
}

#intro-title > div
{
	position: absolute;
}

#intro-title-0
{
	right: 50%;
	margin-right: 0.5em;
	top: 0;
}

#intro-title-1
{
	left: 50%;
	margin-left: 0.5em;
	bottom: 0;
}

#intro-text,
#message-text
{
	position: absolute;
	font-size: 4em;
	z-index: 50;
	top: 0.75em;
	text-align: right;
	right: 1em;
}

#intro-text > div,
#intro-title span
{
	opacity: 0;
	transition: opacity 0.2s ease;
}

.show-credits #intro-cont
{
	transform: translate(0, -100%);
}

#credits
{
	position: absolute;
	width: 100%;
	height: 100%;
	top: 100%;
	background-color: rgba(0,0,0,0.8);
	color: #cccccc;
	font-size: 3em;
	padding: 0 1em;
}

a
{
	color: #dddddd;
}

a:hover
{
	color: #eeeeee;
}

p
{
	font-family: Verdana, sans-serif;
	font-size: 0.6em;
	margin: 0.5em 0;
}

h1, h2, h3, h4, h5, h6
{
	color: #eeeeee;
	margin: 1em 0 0.3em 0;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a
{
	color: #eeeeee;
}

#how-to-play
{
	position: absolute;
	width: 8em;
	height: 5.5em;
	top: 2.5em;
	font-size: 3em;
	transition: opacity 0.2s ease;
	opacity: 0;
	right: 4em;
}

.how-to-key
{
	text-align: center;
	position: absolute;
	width: 2.5em;
	height: 2.5em;
}

#how-to-key-A
{
	left: 0;
	bottom: 0;
}

#how-to-key-W
{
	left: 50%;
	top: 0;
	margin-left: -1.25em;
}

#how-to-key-D
{
	right: 0;
	bottom: 0;
}

.how-to-key > div:first-child
{
	height: 2.5em;
	width: 2.5em;
	border: 0.1em solid;
	border-radius: 0.4em;
	line-height: 2em;
	position: relative;
}

.how-to-key > div:first-child span
{
	display: block;
	height: 1.5em;
	line-height: 1.5em;
	width: 1.5em;
	position: absolute;
}

.how-to-key > div:first-child span:first-child
{
	left: 0;
	top: 0;
}

.how-to-key > div:first-child span:last-child
{
	right: 0;
	bottom: 0;
}

.how-to-key > div:last-child
{
	padding: 0.2em 0;
	position: absolute;
	width: 2.5em;
}

#how-to-key-A > div:last-child
{
	right: 3em;
	top: 0;
}

#how-to-key-W > div:last-child
{
	bottom: 2.75em;
}

#how-to-key-D > div:last-child
{
	left: 3em;
	top: 0;
}

#how-to-info
{
	width: 100%;
	text-align: center;
	top: 6.5em;
	position: absolute;
}

#how-to-life
{
	display: inline-block;
	background-color: #aa2222;
	height: 1em;
	width: 1em;
	border-radius: 1em;
	margin: 0.1em 0.2em -0.1em 0.2em;
}

#click-to-retry
{
	opacity: 1;
}

#game-over
{
	color: #dddddd;
	display: none;
	z-index: 75;
}

#game-over-message,
#game-over-hiscore
{
	font-size: 4em;
	text-align: center;
	position: absolute;
	width: 100%;
	padding: 0.5em 0;
}

#game-over-message
{
	bottom: 65%;
}

#game-over-hiscore
{
	top: 35%;
}

#game-over-hiscore:before
{
	display: block;
	content: "";
	border-top: 1px solid;
	width: 4em;
	position: absolute;
	left: 50%;
	margin-left: -2em;
	margin-top: -0.5em;
}

#final-score,
#best-score
{
	color: #aa2222;
	font-weight: bold;
}

#game-paused
{
	background-color: rgba(0,0,0,0.8);
	color: #cccccc;
	opacity: 0;
	z-index: 1000;
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	display: none;
}

#game-paused-message
{
	width: 100%;
	text-align: center;
	font-size: 4em;
	font-weight: bold;
	line-height: 4em;
	top: 50%;
	margin-top: -2em;
	position: absolute;
}

#message-text
{
	opacity: 0;
	transition: opacity 0.2s ease;
}