@import "reset.css";
@import "animations.css";

html,
body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

:root {
  --font-pixelify: "Pixelify Sans", sans-serif;

  --surface: #0a0a0a;

  --color-primary: #800080;
  --color-secondary: #e3963e;
  --color-tertiary: #b2beb5;
}

canvas {
  background-color: var(--surface);
  transition: all;
}

#health-bar {
  width: 160px;
  height: 20px;
  position: absolute;
  left: 10px;
  top: 20px;
  z-index: 100;
  z-index: 2;
  overflow: hidden;
  border: 1px solid purple;
}

#health-bar div {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0%;
  top: 0;
  background-color: red;
  transition: all;
  transition-duration: 200ms;
}

#mana-bar {
  width: 160px;
  height: 20px;
  position: absolute;
  left: 10px;
  bottom: 20px;
  z-index: 100;
  z-index: 2;
  overflow: hidden;
  border: 1px solid purple;
}

#mana-bar div {
  width: 100%;
  height: 100%;
  position: absolute;
  right: 0%;
  top: 0;
  background-color: lightblue;
  transition: all;
  transition-duration: 200ms;
}

#game-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-content: center;
  z-index: 5;
}

#game-menu-collision-box {
  padding: 40px;
}

#game-menu .menu-button-list {
  display: grid;
  gap: 12px;
  padding: 16px;
  justify-content: center;
}

#game-menu h1 {
  color: white;

  user-select: none;

  font-size: 48px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
  font-family: var(--font-pixelify);
}

button {
  cursor: pointer;
}

[class^="btn-"] {
  border-radius: 6px;
  width: 200px;
  height: 40px;
  border: none;
  outline: none;
  font-size: 12px;
  font-weight: bold;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: white;
}

.btn-tertiary {
  background-color: var(--color-tertiary);
  color: white;
}

.hidden {
  display: none !important;
}

#game-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

#death-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-content: center;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  gap: 16px;
  z-index: 10;
  font-family: var(--font-pixelify);
}

#death-screen h1 {
  font-size: 48px;
  margin: 0;
}

#death-screen p {
  font-size: 28px;
  margin: 0;
}

#pause-screen {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  display: grid;
  place-content: center;
  font-family: var(--font-pixelify);
  text-align: center;
  z-index: 10;
  gap: 12px;
}

#pause-screen h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

#pause-screen p {
  font-size: 24px;
  margin-top: 20px;
}
