#main_wrapper {
	background-color: #000529;
	position: relative;
	height: 600px;
	width: 600px;
	overflow: hidden; 
	display: block;
	margin: 0 auto;
}
#main_wrapper .background {
	background-repeat: repeat;
	background-size: 254px 256px;
	background-position: 0px 0px;
	width: 100%;
	height: 100%;
	
	position: absolute;
	left: 0;
	top: 0;
}
#main_wrapper #background1.background {
	background-image: url( '../img/starBackground2.png' );
	animation: BACKGROUND 1s linear 0s infinite;
	opacity: .4;
}
#main_wrapper #background2.background {
	background-image: url( '../img/starBackground3.png' );
	animation: BACKGROUND 25s linear 0s infinite;
	opacity: .5;
}
#main_wrapper #background3.background {
	background-image: url( '../img/starBackground4.png' );
	animation: BACKGROUND 15s linear 0s infinite;
	opacity: .6;
}
@-webkit-keyframes BACKGROUND {
	from {
		background-position-y: 0px;
	}
	to { 
		background-position-y: 256px;
	}
}

#spaceship {
	background-image: url( '../img/player.png' );
	background-repeat: no-repeat;
	background-size: 148.5px 37.5px;
	background-position: -49.5px 0px;
	
	width: 49.5px; 
	height: 37.5px;
	
	position: absolute;
	left: 288px;
	top: 340px;
}
#spaceship[data-direction="left"] {
	background-position-x: 0px;
}
#spaceship[data-direction="right"] {
	background-position-x: -100px;
}


.bullet {
	background-size: 4.5px 16.5px;
	background-repeat: no-repeat;
	
	width: 4.5px;
	height: 16.5px;
	
	position: absolute;
	left: -100px;
	top: -100px;
}
.bullet {
	background-image: url( '../img/laserGreen.png' );
}
.bullet[data-powerup="true"] {
	background-image: url( '../img/laserRed.png' );
}

.bullet_shot {
	background-size: 28px 27px;
	background-repeat: no-repeat;
	
	width: 28px;
	height: 27px;
	
	position: absolute;
	left: -100px;
	top: -100px;
	
	opacity: 0;
	animation: FADEOUT .1s linear 0s 1, ROTATE 1s linear 0s 1;
}
.bullet_shot {
	background-image: url( '../img/laserGreenShot.png' );
}
.bullet_shot[data-powerup="true"] {
	background-image: url( '../img/laserRedShot.png' );
}
@-webkit-keyframes FADEOUT {
	from {
		opacity: 1;
	}
	to { 
		opacity: 0;
	}
}
@-webkit-keyframes ROTATE {
	from {
		transform: rotate( 0deg );
	}
	to { 
		transform: rotate( 360deg );
	}
}

.meteor {
	background-repeat: no-repeat;
	position: absolute;
	left: -100px;
	top: -100px;
	animation: ROTATE 10s linear 0s infinite;
}
.meteor[data-type="small"] {
	background-image: url( '../img/meteorSmall.png' );
	background-size: 44px 42px;
	width: 44px;
	height: 42px;
}
.meteor[data-type="big"] {
	background-image: url( '../img/meteorBig.png' );
	background-size: 68px 55.5px;
	width: 68px;
	height: 55.5px;
}

[data-destroyed="true"] {
	display: none;
}

.powerup,
.life {
	background-image: url( '../img/powerups.png' );
	background-size: 100px 25px;
	background-repeat: no-repeat;
	
	width: 25px;
	height: 25px;
	position: absolute;
	left: 0;
	top: 10px;
	z-index: 98;
}
.life {
	background-position: 0px 0px;
}

.powerup {
	border-radius: 50%;
}
.powerup[data-type="power"] {
	background-position: -25px 0px;
	box-shadow: 0px 0px 20px #da0000;
}
.powerup[data-type="shield"] {
	background-position: -50px 0px;
	box-shadow: 0px 0px 20px #0076da;
}
.powerup[data-type="speed"] {
	background-position: -75px 0px;
	box-shadow: 0px 0px 20px #1eda00;
}

#shield[data-active="true"] {
	content: '';
	display: block;
	
	position: absolute;
	margin-left: -13px;
	margin-top: -18px;
	
	background-image: url( '../img/shield.png' );
	background-size: 75.5px 59px;
	background-repeat: no-repeat;
	
	width: 75.5px; 
	height: 59px;
	z-index: 10;
}

#score {
	position: absolute;
	right: 25px;
	top: 10px;
	z-index: 98;
	
	font-size: 22px;
	color: #ffffff;
	font-weight: 600;
	font-family: monospace;
}

#gameover {
	background-color: rgba( 0, 0, 0, .6 );
	color: #ffffff;
	position: absolute;
	height: 100%;
	width: 100%;
	left: 0;
	top: 0;
	z-index: 99;
	
	font-size: 50px;
	line-height: 100%;
	padding: 275px 0;
	text-align: center;
	font-family: monospace;
}
#gameover .score {
	font-size: 32px;
}

.alien {
	background-image: url( '../img/enemyShip.png' );
	background-repeat: no-repeat;
	background-size: 49px 25px;
	background-position: 0px 0px;
	
	width: 49px; 
	height: 25px;
	
	position: absolute;
	left: 0px;
	top: 0px;
}