* {
  margin: 0;
  padding: 0;
  user-select: none;
}

.container {
  position: relative;
  width: 100%;
  height: 100%;
}

#game-screen {
  width: 100%;
  height: 100%;
  z-index: 0;
}

.ui-group {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.ui-group.hide {
  display: none;
}

.title-screen {
  background-color: rgb(242, 229, 217);
  z-index: 3;
}

.end-screen {
  background-color: rgb(99, 6, 6);
  z-index: 2;
}

.background-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: none;
}

.play-button {
  position: absolute;
  background: none;
  border: none;
}

.play-button img {
  height: 100px;
  transition: filter 0.3s ease-out;
  cursor: pointer;
}

.play-button:hover img {
  filter: invert(100%);
  filter: saturate(0.5);
}

.title-screen .play-button {
  top: 70%;
}

.end-screen .play-button {
  top: 55%;
}

.info-display {
  position: absolute;
  display: grid;
  grid-auto-rows: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  gap: 2px;
}

.end-stats {
  left: 8px;
  bottom: 8px;
  color: red;
}

.game-info {
  left: 8px;
  top: 8px;
  color: cyan;
  font-weight: 600;
  gap: 8px;
}

.debug-info {
  left: 8px;
  bottom: 8px;
  color: greenyellow;
}

#health-bar {
  width: 540px;
  height: 18px;
  appearance: none;
}

#health-bar::-webkit-progress-bar {
  background-color: coral;
  border: 2px solid black;
  border-radius: 6px;
  overflow: hidden;
}

#health-bar::-webkit-progress-value {
  background-color: cyan;
}

#health-bar::-moz-progress-bar {
  background-color: cyan;
}