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

html,
body {
  padding: 0;
  margin: 0;
  height: 100%;
  overflow: hidden;
}

h1,
h2,
p,
button {
  font-family: "Press Start 2P", system-ui;
  font-weight: 400;
  font-style: normal;
  color: #fff;
}

h1,
p {
  text-shadow: 0px 0px 12px rgba(255, 255, 255, 0.75);
}

h1 {
  margin-top: 243px;
  font-size: 48px;
}

body {
  text-align: center;
  background-image: url(../images/background.jpg);
  background-size: cover;
  background-position: center center;
  padding: 24px;
  box-sizing: border-box;
}

#game-start-screen {
  padding: 0;
}

.screen-header {
  margin-bottom: 192px;
}

#game-container {
  display: none;
  padding: 20px 0px;
}

#game-screen,
#launch-screen {
  display: none;
  align-content: center;
  padding: 20px 0px;
  margin: auto;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(128, 213, 255, 0.5);
  box-shadow: inset 0px 0px 48px 64px rgba(128, 213, 255, 0.05);
  background-color: rgba(255, 255, 255, 0.05);
}

#launch-screen {
  height: 600px;
  width: 500px;
  margin: 20px auto;
  gap: 40px;
  flex-direction: column;
  justify-content: center;
}

#launch-screen p {
  font-size: 24px;
  margin: none;
}

#launch-screen img {
  display: block;
  max-width: 160px;
  height: auto;
  margin: 0 auto;
}

#game-stats {
  display: flex;
  padding: 0 24px;
  gap: 24px;
  max-width: 500px;
  margin: auto;
  box-sizing: border-box;
}

#game-stats p {
  width: 100%;
}

.explosion {
  animation: 0.25s infinite alternate explode;
}

@keyframes explode {
  0% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(1);
  }
  51% {
    transform: scaleX(-1);
  }
  100% {
    transform: scaleX(-1);
  }
}

#game-end-screen {
  display: none;
}

button {
  position: relative;
  font-size: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: #d9f9ff;
  box-shadow: 0 0 24px rgba(128, 212, 255, 0.5),
    inset 0 -2px 0 rgba(0, 32, 65, 0.1), inset 0 2px 0 rgba(255, 255, 255, 1);
  color: #004080;
  text-shadow: 0 0 8px rgba(255, 255, 255, 1), 0 1px 0 rgba(255, 255, 255, 1),
    0 -1px 0 rgba(0, 32, 65, 1);
  padding: 16px 24px;
  border: 0;
  cursor: pointer;
}

button::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 4px;
  width: 4px;
  height: calc(100% - 8px);
  background: #d9f9ff;
  box-shadow: inset 0 -2px 0 rgba(0, 32, 65, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 1);
}

button::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 4px;
  width: 4px;
  height: calc(100% - 8px);
  background: #d9f9ff;
  box-shadow: inset 0 -2px 0 rgba(0, 32, 65, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 1);
}

.highscore,
.highScore {
  font-size: 16px;
  color: #e53956;
  text-shadow: 0 0 12px rgba(255, 127, 148, 0.75);
}

.yourScore,
.yourScoreValue {
  font-size: 24px;
  color: #80ffaa;
  text-shadow: 0 0 12px rgba(128, 255, 170, 0.75);
}

.newHighscore {
  display: none;
}
