/* Shipsteroids 2013 Studio Vault Cabinet Styles (Sharp 0px Stamp [C] Edition) */
#gameContainer {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  min-height: 460px;
  background-color: #05070c;
  color: #F8FAFC;
  padding: 0;
  margin: 0 auto;
  display: block;
  overflow: hidden;
  position: relative;
  z-index: 0;
  border: 2px solid #F1C40F;
  border-radius: 0;
  outline: none;
}

#gameContainer:focus-within {
  border-color: #00E5FF;
}

#gameContainer > * {
  z-index: 10;
}

#score {
  position: absolute;
  left: 10px;
  top: 10px;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: #F8FAFC;
  pointer-events: none;
}

#hpBar {
  position: absolute;
  width: 2%;
  min-width: 10px;
  height: 80%;
  right: 1%;
  bottom: 10%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  background: rgba(10, 12, 18, 0.7);
}

#hpBar,
#gameContainer svg * {
  pointer-events: none;
}

#currentHp {
  width: 100%;
  height: 100%;
  border-radius: 0;
  position: absolute;
  bottom: 0;
  background: #00ff0c;
  background: linear-gradient(to bottom, #00ff0c 0%, #eff927 50%, #ff0000 100%);
}

#speedUpMessage {
  font-weight: bold;
  font-size: 320%;
  color: #F1C40F;
  pointer-events: none;
  display: none;
  -webkit-animation: blink 0.4s cubic-bezier(0.5, 0, 1, 1) infinite alternate;
  animation: blink 0.4s cubic-bezier(0.5, 0, 1, 1) infinite alternate;
}

#wasd,
#gamepad,
#pauseButton,
#soundButton {
  position: absolute;
  bottom: 0;
  width: 7.5%;
  height: auto;
}

#wasd {
  left: 0;
}

#gamepad {
  left: 5%;
  padding-left: 0.5%;
}

#pauseButton {
  left: 10%;
  padding-left: 0.5%;
  cursor: pointer;
}

#soundButton {
  left: 15%;
  padding-left: 0.5%;
  cursor: pointer;
}

#mainMenu {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

#startButton {
  position: absolute;
  width: 50%;
  height: 100%;
  pointer-events: auto;
  cursor: pointer;
  z-index: 20;
}

#controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 14px;
  background: rgba(7, 9, 14, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 30;
}

#gameContainer .gameModal,
#gameContainer .modal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  background: rgba(10, 12, 18, 0.9);
  border-radius: 0;
}

#gameContainer .hidden {
  display: none !important;
}

.no-js #gameContainer > * {
  display: none !important;
}

#gameContainer canvas,
#gameContainer svg {
  background-color: #000000 !important;
  position: relative !important;
  z-index: 2 !important;
  border-radius: 0;
}

@keyframes blink {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@-webkit-keyframes blink {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
