/* styles.css */
body {
  font-family:
    "Orbitron",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  background-color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

canvas {
  position: absolute;
  top: 0px;
  left: 0px;
  background: transparent;
  width: 100%;
  height: 100%;
}

#background {
  z-index: -4;
}
#starfield {
  z-index: -3;
}
#main {
  z-index: -2;
}
#ship {
  z-index: -1;
}
#explosions {
  z-index: 0;
}

.score {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #fff;
  font-family:
    "Orbitron",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  cursor: default;
  z-index: 5;
}

.overlay-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 30px;
  cursor: default;
  display: none;
  background: rgba(0, 0, 0, 0.85);
  padding: 30px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  text-align: center;
  z-index: 10;
}

.overlay-screen p {
  margin-bottom: 0;
  margin-top: 15px;
}
.overlay-screen span {
  font-size: 20px;
  cursor: pointer;
  margin: 0 15px;
  display: inline-block;
}
.overlay-screen span:hover {
  color: #ffd700;
}
.text-screen p {
  font-size: 16px;
  font-family: sans-serif;
  line-height: 1.5;
  margin: 20px 0;
}
.input-name {
  padding: 10px;
  font-size: 16px;
  text-align: center;
  margin-top: 15px;
  width: 80%;
}

#splash-screen {
  background-color: #000;
  border: none;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 30;
}

#lives-container {
  color: #fff;
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 5;
}
#lives {
  display: inline;
}
#lives img {
  margin: 0 2px;
}

.controls-hint {
  position: absolute;
  bottom: 10px;
  color: #888;
  font-family: sans-serif;
  font-size: 12px;
  width: 100%;
  text-align: center;
  z-index: 5;
}

#highscore-list {
  text-align: left;
  font-size: 20px;
  margin-top: 20px;
  padding-left: 20px;
}
.demo-mode canvas {
  filter: brightness(0.35) blur(2px);
  transition: filter 0.5s ease-in-out;
}

@keyframes piscar {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.fade-in {
  opacity: 0;
  animation: fadeInAnimation 2s ease-in forwards;
}
@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#lives-container,
.score,
.controls-hint {
  display: none;
}
