* {
  margin: 0;
  padding: 0;
}

body {
  background-image: url('../images/starfieldbg.jpg');
  background-cover: cover;
  color: white;
  display: flex;
  justify-content: space-around;
}

.board {
  height: 700px;
  width: 100%;
  max-width: 700px;
  background-size: cover;
  background-image: url('../images/deathstarbg.png');
  display: none;
  margin-top: 50px;
  position: relative;
}

.player {
  width: 135px;
  height: 140px;
  /* background-image: url('../images/ship.png'); */
  background-image: url('../images/xwing.png');
  position: absolute;
  background-size: contain;
}

.invader {
  width: 40px;
  height: 40px;
  background-size: contain;
  background-image: url('../images/tiefighter.png');
  display: inline-block;
  position: relative;
  margin: 0 20px 20px 20px;
}

.invaders-board {
  width: 600px;
  max-width: 100%;
  position: relative;
  text-align: center;
  top: 60px;
}

.bullet {
  width: 5px;
  height: 30px;
  background-color: red;
  box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 10px red, 0 0 20px red, 0 0 40px red, 0 0 35px red, 0 0 55px red;
  position: absolute;
}

.invaderBullet {
  width: 5px;
  height: 30px;
  background-color: #9fff30;
  box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 10px #9fff30, 0 0 20px #9fff30, 0 0 40px #9fff30, 0 0 35px #9fff30, 0 0 55px #9fff30;
  position: absolute;
}

.laser {
  width: 10px;
  position: absolute;
  background-color: #9fff30;
  box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 10px #9fff30, 0 0 20px #9fff30, 0 0 40px #9fff30, 0 0 35px #9fff30, 0 0 55px #9fff30;
}

.explosion {
  background-image: url('../images/explosion.png');
  width: 100px;
  height: 100px;
}

.hit {
  visibility: hidden;
}

.gameOverMessage {
  color: mintcream;
  width: 700px;
  height: 650px;
  position: relative;
  font-family: monospace;
  text-align: center;
  line-height: 600px;
  box-sizing: border-box;
  background-color: #f5fffa40;
}

.boss {
  width: 200px;
  height: 200px;
  background-image: url('../images/deathstar.png');
  background-size: contain;
  position: absolute;
  transition: left 2s;
}

.fas {
  color: white;
  font-size: 2rem;
  padding: 5px;
  position: fixed;
  top: 5px;
  left: 5px;
  opacity: 0.8;
  float: left;
}

.fa-volume-up {
  visibility: hidden;
}

.fa-volume-off {
}

.menu {
  width: 100%;
  max-width: 700px;
  height: 50px;
  display: flex;
  flex-wrap: wrap;
  background-color: #2196f361;
  justify-content: space-around;
  align-items: center;
}

.score {
  color: mintcream;
  font-family: sans-serif;
  font-size: 1rem;
  border: 2px solid mintcream;
  width: 150px;
  text-decoration: bold;
  padding: 5px;
}

.bossHit {
  width: 200px;
  height: 200px;
  /* background-color: blue; */
  background-size: contain;
  background-image: url('./images/deathstarhit.png');
}

.health-bar{
  background-color: #0000002e;
  width: 100%;
  max-width: 200px;
  height: auto;
}

.boss-bar {
  width: 0;
  height: 20px;
  background-color: #4CAF50;
  border-top: 2px solid #78dc39;
}

.player-bar {
  width: 100;
  height: 20px;

  background-color: #F44336;
  border-top: 2px solid #FF5722;
}

img {
  width: 30px;
  height: 30px;
}

.playerExplosion {
  background-image: contain;
  width: 100px;
  height: 140px;
}


.gameOverButton {
  width: 300px;
  height: 100px;
  border: 3px solid yellow;
  color: yellow;
  opacity: 1;
  box-sizing: border-box;
  cursor: pointer;
  background-color: transparent;
  font-size:  1rem;
  position: absolute;
  top: 350px;
  left: 200px;
  text-align: center;
  line-height: 100px;
}
