@import url('https://fonts.googleapis.com/css?family=Press+Start+2P');
.space-container {
  display: block;
  position: relative;
  width: 800px;
  height: 100vh;
  margin: 0 auto;
}
#space {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
#enemies {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
#player {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  cursor: none;
}
#messages {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 500px;
  height: 500px;
  display: none;
}
#messages .score {
  font-family: 'Press Start 2P', cursive;
  position: absolute;
  color: #fff;
  font-size: 18px;
  top: 5px;
  right: 5px;
}
#messages .lives {
  font-family: 'Press Start 2P', cursive;
  position: absolute;
  color: #fff;
  font-size: 18px;
  top: 5px;
  left: 5px;
}
#messages .gameover {
  font-family: 'Press Start 2P', cursive;
  position: absolute;
  color: #fff;
  font-size: 18px;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#messages .level {
  font-family: 'Press Start 2P', cursive;
  position: absolute;
  color: #fff;
  font-size: 18px;
  top: 95%;
  left: 50%;
  transform: translate(-50%, 0);
  font-size: 14px;
}
#beforeGame {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 500px;
  height: 500px;
}
#beforeGame .startGame {
  font-family: 'Press Start 2P', cursive;
  position: absolute;
  color: #fff;
  font-size: 18px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
#beforeGame .rulesButton {
  font-family: 'Press Start 2P', cursive;
  position: absolute;
  color: #fff;
  font-size: 18px;
  font-size: 14px;
  top: 55%;
  left: 50%;
  transform: translate(-50%, 0);
  cursor: pointer;
}
#beforeGame .highScore {
  font-family: 'Press Start 2P', cursive;
  position: absolute;
  color: #fff;
  font-size: 18px;
  font-size: 14px;
  top: 95%;
  left: 50%;
  transform: translate(-50%, 0);
}
#beforeGame .rules {
  display: none;
  font-family: 'Press Start 2P', cursive;
  position: absolute;
  color: #fff;
  font-size: 18px;
  font-size: 14px;
  width: 90%;
  text-align: center;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  line-height: 20px;
}
#beforeGame .rules p {
  margin-bottom: 15px;
}
#beforeGame .rules .rulesBack {
  cursor: pointer;
  color: blue;
}
#beforeGame .rules .rulesBack:hover {
  color: green;
}
