* {
  box-sizing: border-box;
}

body {
  height: 100vh;
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  color: white;
  background-image: url('../assets/space-background.webp');
}

#header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
  background-color: rgba(0, 0, 0, 0.76);
  background-image: url(../assets/preview-411962-722lundHsI-high_0000.jpg);
  background-repeat: no-repeat;
  background-position: center;
}

h1 {
  font-size: 40px;
  align-items: center;
  padding: 20px;
  /* border: 3px solid rgba(255, 255, 255, 0.628); */
  border-radius: 10px;
  color: rgb(120, 200, 255);
  background-color: rgba(4, 4, 95, 0.817);
  background-image: url(../assets/preview-411962-722lundHsI-high_0000.jpg);
  text-decoration: overline;
}


#interface-container {
  display: flex;
  justify-content: space-around;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.76);
}

#button-container {
  display: flex;
  align-items: center;
  margin: 0;
  height: 100%;
}

.grid-wrapper {
  height: 40vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid {
  align-items: center;
  /* box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2); */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  height: 600px;
  width: 800px;
  background-image: url('../assets/BlueTechInsideResized3.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.grid div {
  /* border: 1px solid lightgrey; */
  flex-grow: 1;
  height: calc(100% / 12);
  width: calc(100% / 14);
  /* color: black; */
}
#grid-border {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 660px;
  width: 860px;
  background-image: url('../assets/BlueTechFrameResized2.png');
  background-repeat: no-repeat;
  background-size: cover;
}

/* #start-button{
  display: flex;
  background-image: url(../assets/button1.jpeg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  height: 30px;
  width: 100px;
  border: 2px solid black;
} */

#lives-container{
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 200px;
  height: 60px;
}

.life {
  height: 35px;
  width: 35px;
  margin-right: 10px;
  background-image: url(../assets/life-hex.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

button {
  margin: 15px;
  padding: 5px 15px;
  border-radius: 5px;
  font-family: 'Orbitron', sans-serif;
  color: rgb(120, 200, 255);
  background-color: rgba(0, 0, 0, 0.499);
}

.enemy {
  background-image: url(../assets/invader-blue.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.player {
  background-image: url(../assets/playerSpaceship.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.player-projectile {
  background-image: url(../assets/laser-blue5.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.enemy-projectile {
  background-image: url(../assets/laser-red.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Modal  */

.modal {
  display: none; 
  position: fixed; 
  z-index: 1; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.4); 
}

.modal-content {
  background-color: rgba(4, 4, 95, 0.587);
  margin: 20% auto; 
  padding: 20px;
  border: 2px solid rgb(120, 200, 255);
  border-radius: 4px;
  width: 50%; 
  text-align: center;
}

.close {
  color: rgb(120, 200, 255);
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: white;
  text-decoration: none;
  cursor: pointer;
}
