@charset "utf-8";

body,p{margin:0; color:white;}
html,body{height:100%; width:100%;}
.red{color: red !important;}
a{color: #25cfce !important;}
a:focus{outline: none;}
a:hover{color: #25cfce !important;}


/*============ Popup Screen ============*/
.popup{
	width: 100%;
	height: 100%;
	background: url(../images/bg.png) repeat !important;
	text-align: center;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index:1;
}
.popup * { text-align: center; text-transform: uppercase !important; }
.popup h1 { width: 100%; }
.popup a { text-decoration: none; }
.popup img{
	max-width: calc(100% - 20px);
	max-height: 100%;
	margin: 10px;
	margin-top: 10%;
	margin-bottom: 10%;
}

.popup:not(#home){ display: none;padding-top:10%;}

/*============ Home Screen ============*/
#splash{
	width: 100%;
	height: 100%;
	background:white;
	position: absolute;
	text-align: center;
  	z-index: 99999;
}
#splash img{
	max-width: 100%;
	max-height: 100%;
}

.spinner{
	margin: 100px auto 0;
	width: 70px;
	height: 70px;
	text-align: center;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 30px;
	margin: auto;
}

.spinner > div {
	width: 18px;
	height: 18px;
	background-color: gray;
	border-radius: 100%;
	display: inline-block;
	-moz-animation: bouncedelay 1.4s infinite ease-in-out;
	animation: bouncedelay 1.4s infinite ease-in-out;
	-moz-animation-fill-mode: both;
	animation-fill-mode: both;
}

.spinner .bounce1 {
	-moz-animation-delay: -0.32s;
	animation-delay: -0.32s;
}
.spinner .bounce2 {
	-moz-animation-delay: -0.16s;
	animation-delay: -0.16s;
}

#high_score {padding-top: 20%; height: 100%; }
#help {
	padding:5%;
	width:90% !important;
	height:90% !important;
}
#help p {
	text-transform:none !important;
	text-align:left;
	font-size:1.3em;
}

/*============ Game Screen ============*/
#game{
	background-color: transparent;
	width: 100%;
	height: 100%;
	z-index:-1;
}

#game_screen{
	width: 100%;
	height: 90%;
	position: absolute;
	top: 0;
	background: transparent;
}
#life{
	position:absolute;
	top:10px;
	left:15px;
	z-index:0;
}
.heart{
	width:15px;
	height:15px;
}

canvas {
	position: absolute;
	top: 0px;
	left: 0px;
	background: transparent;
}
#background { z-index: -2; }
#main { z-index: -1; }
#ship { z-index: 0; }

#shipCanvas > img {
	max-width: 100%;
	max-height: 100%;
}

/*============ Score Board ============*/
#score_board{
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 10%;
	background-color: #000;
	color: #ccc;
	font-size: 1.3em;
	z-index:0;
	text-align:center;
}

#score_board > div { float: left; line-height: 40px; width: 50%; }
#score_board > div:first-child:after { content: '|'; display: inline-block; position: absolute; left: 50%; }

@-moz-keyframes bouncedelay {
  0%,
  80%,
  100% {
    -moz-transform: scale(0);
  }
  40% {
    -moz-transform: scale(1);
  }
}
@keyframes bouncedelay {
  0%,
  80%,
  100% {
    transform: scale(0);
    -moz-transform: scale(0);
  }
  40% {
    transform: scale(1);
    -moz-transform: scale(1);
  }
}