* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

html {
	background-color: #222;
	padding: 0;
	margin: 0;
}

body {
	color: #eee;
	font-family: helvetica, arial, sans-serif;
	margin: 0;
	font-size: 10pt;
	line-height: 1.3;
}

h1 {
	color: #ccc;
	font-size: 16px;
	font-weight: normal;
	text-transform: uppercase;
	margin: 10px 0 6px 0;
}

.panel {
	margin-bottom: 32px;
	padding: 8px;
	background-color: rgba(0,0,0,0.5);
}

.option {
	padding: 4px 0 4px 0;
}

label {
	color: #fff;
	font-weight: bold;
	cursor: pointer;
}

#no-webgl-notice {
	text-align: center;
	font-size: 24px;
	padding: 64px 24px;
	color: #ffbc6c;
}

#rotate-to-play
{
position:absolute;
width:100%;
height:100%;
background:#000;
text-align: center;
margin-bottom: 48px;
}

@font-face
{
font-family: "arcade";
src: url("media/fonts/arcade2.ttf");
}

#overlay
{
position:absolute;
top:0px;
left:0px;
transform-origin:0px 0px;
text-align:center;
font-family:arcade;
font-size:20px;
}

#menu
{
position:absolute;
top:0px;
left:0px;
width:640px;
height:480px;
background:url(media/frontpage.jpg);
font-size:20px;
text-align:center;
text-shadow:2px 2px #000;
//animation: animatedbg 20s linear infinite;
display:none;
}

@keyframes animatedbg
{
0% { background-position: 0 0; }
50% { background-position: -320px 0; }
100% { background-position: -640px 0; }
}

#levelup
{
position:absolute;
top:0px;
left:0px;
width:640px;
height:480px;
font-size:20px;
text-align:center;
background-image:url(media/frontpage.jpg);
display:none;
}

#levelup td
{
text-align:center;
cursor:pointer;
border:1px solid #fff;
border-radius:4px;
width:80px;
height:68px;
background:#6f6ff6;
color:#ef1;
}

#back_button
{
position:absolute;
top:0px;
right:0px;
font-size:32px;
cursor:pointer;
}

#audio_button
{
position:absolute;
top:34px;
right:0px;
font-size:32px;
cursor:pointer;
}

.rating_bg
{

background-image:url(media/diamond.png);
background-size:25px;
background-repeat:no-repeat;
background-position:center;
font-size:18px;
text-shadow:2px 2px #000;
color:#0f0;
}

#health_meter
{
position:absolute;
top:58px;
left:204px;
width:162px;
height:19px;
background-image:url(media/healthmeter.png);
}

#health_meter_bg
{
position:absolute;
top:58px;
left:204px;
width:162px;
height:19px;
background-image:url(media/healthempty.png);
}

#ammo_div
{
position:absolute;
top:59px;
left:28px;
font-size:14px;
}

#hud
{
position:absolute;
top:0px;
left:0px;
width:640px;
//height:480px;
font-size:20px;
text-align:center;
text-shadow:2px 2px #000;
display:none;
}

#info
{
position:absolute;
top:100px;
left:15px;
width:600px;
height:100px;
border:1px solid #000;
border-radius:8px;
text-align:center;
background:rgba(255,255,255,0.7);
color:#f00;
padding:0px;
display:none;
}

#complete
{
position: absolute;
top:76px;
left:15px;
width:600px;
height:141px;
border:1px solid #000;
border-radius:8px;
text-align:center;
background:rgba(255,255,255,0.7);
color:#f00;
padding-top:40px;
}

.mc_button
{
height: 40px;
width: 400px;
outline: 2px solid black;
position: relative;
margin-bottom: 11px;
display: inline-block;
background-color: #6f6f6f;
background-repeat: repeat;
padding:5px;
font-family: arcade;
font-size:19px;
font-weight:normal;
text-align: center;
color: white;
text-shadow: 3px 3px #4C4C4C;
border-bottom: 4px solid #565656;
border-right: 2px solid #565656;
border-left: 2px solid #AAA;
border-top: 2px solid #AAA;
box-sizing: border-box;
cursor:pointer;
text-decoration:none;
}

.mc_button span
{
position: relative;
line-height: 40px;
bottom: 3px;
}

.mc_button:hover
{
border-bottom: 4px solid #59639A;
border-right: 2px solid #59639A;
border-left: 2px solid #BDC6FF;
border-top: 2px solid #BDC6FF;
background-color: #7c86be;
color: #FFFFA0;
}

a
{
text-decoration:none;
color:#fff;
}

/* 
	Display or hide certain elements depending on platform (mobile/desktop),
	orientation (landscape/portrait) and webgl support.
	The body classes .mobile or .desktop and .webgl or .no-webgl are set in
	JavaScript in the lib/game/main.js
*/

@media all and (orientation:portrait) { body.mobile .landscape-only { display: none; } }
@media all and (orientation:landscape) { body.mobile .portrait-only { display: none; } }

body.mobile .desktop-only { display: none; }
body.desktop .mobile-only { display: none; }

body.webgl .no-webgl-only { display: none; }
body.no-webgl .webgl-only { display: none; }

body.desktop {
	padding: 0px;
	width: 640px;
	margin: 0px;
   position:absolute;
   overflow:hidden;
}

body.mobile {
	padding: 0;
	width: auto;
	font-size: 8px;
}

body.desktop #canvas {
	width: 640px;
	height: 480px;
	background-color: #000;
}

body.mobile #canvas {
	position: fixed;
	width: 100%;
	height: 100%;
	background-color: #000;
}

#cross {
   position:absolute;
   top:200px;
   left:200px;
   }

#menuheader
{
position:absolute;
top:0px;
left:0px;
width:100%;
text-align:center;
}

#preload_div
{
position:absolute;
top:0px;
left:0px;
width:640px;
height:480px;
background-image:url(media/frontpage.jpg);
text-align:center;
font-family:arcade;
}

#preload_continue
{
border:1px solid #000;
border-radius: 4px;
background: rgba(0,255,0,0.7);
font-size: 21px;
padding:3px 9px 3px 9px;
color:#00f;
cursor:pointer;
}