@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
	margin: 0;
	box-sizing: border-box;
}

::-webkit-scrollbar {
	width: 15px;
}

::-webkit-scrollbar-track {
	background: var(--header-background-color);
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(transparent, var(--highlight-color));
	border-radius: 10px;
}

body {
	/* Inserir imagem de fundo */
	background-image: url(../imgs/fundo.png);
	background-repeat: no-repeat;
}

h1 {
	font-family: 'Press Start 2P',cursive;
	font-size: 1.8em;
	color: #439f4f;
	text-align: center;
	margin-top: 2px;
	text-shadow: 1px 1px 3px black;
}

#container {
	width: 950px;
	height: auto;
	position: relative;
	margin-top: 150px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}


#fundoGame {
	width: 950px;
	height: 630px;
	background-image: url(../imgs/fundo_game.jpg);
	border-color: #FFF;
	border-style: solid;
}

#jogador {
	width: 256px;
	height: 66px;
	position: absolute;
	left: 8px;
	top: 179px;
	background-image: url(../imgs/apache.png);

}

#inimigo1 {
	width: 256px;
	height: 66px;
	position: absolute;
	left: 689px;
	top: 253px;
	background-image: url(../imgs/inimigo1.png);

}

#inimigo2 {
	width: 165px;
	height: 70px;
	position: absolute;
	left: 775px;
	top: 447px;
	background-image: url(../imgs/inimigo2.png);
}

#amigo {
	width: 44px;
	height: 51px;
	position: absolute;
	left: 10px;
	top: 464px;
	background-image: url(../imgs/amigo.png);
}

#inicio {
	font-family: 'Press Start 2P',cursive;
	font-size: 0.8em;
	color: #FFF;
	text-align: left;
	width: 450px;
	height: 220px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 150px;
	padding: 10px;
	border: none;
	background:rgba(12, 12, 12, 0.637);
}

.texto {
	padding: 10px;
	margin-right: 5px;
	margin-top: 2px;
}

.click {
	width: 100%;
	cursor: pointer;
	text-align: center;
	font-family: 'Press Start 2P',cursive;
	font-size: 1em;
	text-shadow: 1px 1px 3px black;
	color: gold;
	animation: start 1.5s linear infinite;
}

@keyframes start {
	0% {
		opacity: 0;
	}

	50% {
		opacity: 0.7;
	}

	100% {
		opacity: 0;
	}
}

.anima1 {
	/* animações */
	background-image: url(../imgs/helicoptero.png);
	animation: play .5s steps(2) infinite;
	/*Compatibilidade de Browser*/
	-webkit-animation: play .5s steps(2) infinite;
	/* Chrome */
	-moz-animation: play .5s steps(2) infinite;
	/* Mozilla */
	-ms-animation: play .5s steps(2) infinite;
	/* Explorer */
	-o-animation: play .5s steps(2) infinite;
	/* Opera */

}

@keyframes play {
	from {
		background-position: 0px;
	}

	/* ponto inicial da animação */
	to {
		background-position: -512px;
	}

	/* ponto final da animação */
}

@-webkit-keyframes play {
	from {
		background-position: 0px;
	}

	to {
		background-position: -512px;
	}
}

@-moz-keyframes play {
	from {
		background-position: 0px;
	}

	to {
		background-position: -512px;
	}
}

@-ms-keyframes play {
	from {
		background-position: 0px;
	}

	to {
		background-position: -512px;
	}
}

@-o-keyframes play {
	from {
		background-position: 0px;
	}

	to {
		background-position: -512px;
	}
}

.anima2 {
	background-image: url(../imgs/inimigo1.png);
	animation: play .5s steps(2) infinite;
	-webkit-animation: play .5s steps(2) infinite;
	-moz-animation: play .5s steps(2) infinite;
	-ms-animation: play .5s steps(2) infinite;
	-o-animation: play .5s steps(2) infinite;
}

.anima3 {
	background-image: url(../imgs/amigo.png);
	animation: play2 .9s steps(12) infinite;
	-webkit-animation: play2 .9s steps(12) infinite;
	-moz-animation: play2 .9s steps(12) infinite;
	-ms-animation: play2 .9s steps(12) infinite;
	-o-animation: play2 .9s steps(12) infinite;
}

@keyframes play2 {
	from {
		background-position: 0px;
	}

	to {
		background-position: -528px;
	}
}

@-webkit-keyframes play2 {
	from {
		background-position: 0px;
	}

	to {
		background-position: -528px;
	}
}

@-moz-keyframes play2 {
	from {
		background-position: 0px;
	}

	to {
		background-position: -528px;
	}
}

@-ms-keyframes play2 {
	from {
		background-position: 0px;
	}

	to {
		background-position: -528px;
	}
}

@-o-keyframes play2 {
	from {
		background-position: 0px;
	}

	to {
		background-position: -528px;
	}
}


#disparo {
	width: 50px;
	height: 8px;
	position: absolute;
	background-image: url(../imgs/disparo.png);
}

#explosao1 {
	width: 15px;
	height: 87px;
	position: absolute;

}

#explosao2 {
	width: 15px;
	height: 87px;
	position: absolute;

}

#explosao3 {
	width: 44px;
	height: 51px;
	position: absolute;
}

.anima4 {
	width: 44px;
	height: 51px;
	background-image: url(../imgs/amigo_morte.png);
	animation: play3 .5s steps(7) infinite;

	-webkit-animation: play3 .5s steps(7) infinite;
	-moz-animation: play3 .5s steps(7) infinite;
	-ms-animation: play3 .5s steps(7) infinite;
	-o-animation: play3 .5s steps(7) infinite;
}

@keyframes play3 {
	from {
		background-position: 0px;
	}

	to {
		background-position: -308px;
	}
}

@-webkit-keyframes play3 {
	from {
		background-position: 0px;
	}

	to {
		background-position: -308px;
	}
}

@-moz-keyframes play3 {
	from {
		background-position: 0px;
	}

	to {
		background-position: -308px;
	}
}

@-ms-keyframes play3 {
	from {
		background-position: 0px;
	}

	to {
		background-position: -308px;
	}
}

@-o-keyframes play3 {
	from {
		background-position: 0px;
	}

	to {
		background-position: -308px;
	}
}

#placar {
	width: 450px;
	height: 50px;
	position: absolute;
	left: 5px;
	top: 590px;
}

h2 {
	font-family: 'Press Start 2P',cursive;
	font-size: 0.8em;
	color: #FFF
}

#energia {
	width: 140px;
	height: 38px;
	position: absolute;
	left: 750px;
	top: 7px;
}

h3 {
	font-family: 'Press Start 2P',cursive;
	font-size: 1em;
	color: gold;
	animation: start 1.5s linear infinite;
	margin-top: 65px;
	text-shadow: 1px 1px 3px black;
}

#fim {
	font-family: 'Press Start 2P',cursive;
	font-size: 0.8em;
	color: #439f4f;
	width: 450px;
	height: 180px;
	background-color: rgba(12, 12, 12, 0.637);
	margin-left: auto;
	margin-right: auto;
	margin-top: 150px;
	text-align: center;
	padding: 10px;
	text-shadow: 1px 1px 3px black;
}

#fim p {
	margin-top: 20px;
	color: #fff;
}