* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Used when resizing canvas in JS
  to reduce its width & height by this amount */
  --margin-inline: 30px;
  /* Used to overlay information on the canvas at correct size */
  --canvas-margin: 3rem;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "VT323", monospace;
  background-color: #093f5e;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
}

.canvas-container {
  position: relative;
}

canvas {
  max-height: 90vh;

  margin: var(--canvas-margin);
}

.canvas-overlay {
  /* Position over canvas */
  position: absolute;
  top: var(--canvas-margin);
  left: var(--canvas-margin);
  width: calc(100% - var(--canvas-margin) * 2);
  height: calc(100% - var(--canvas-margin) * 2);
}

.hud {
  padding: 0.5rem 1rem;

  font-size: 2rem;
}

.hud .row {
  display: flex;
  justify-content: space-between;
}

.hud-treats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.treat-icon {
  height: 1.5rem;
}

.level-complete {
  font-size: 3rem;
  background-color: rgba(129, 190, 216, 0.5);

  /* Align content in center vertically and horizontally */
  display: flex;
  justify-content: center;
  align-items: center;
}

.right {
  margin: 1rem;
}

.title {
  color: white;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.info-panel {
  background-color: #75afdb;
  font-size: 2rem;

  padding: 2rem;
  width: 33ch;

  display: flex;
  flex-direction: column;

  border-radius: 1rem;
}

.info-panel button {
  background-color: #093f5e;
  border: none;
  color: white;
  font: inherit;
  padding: 0.75rem 3rem;
  border-radius: 0.5rem;
  margin-right: 1rem;
  cursor: pointer;
}

.info-panel button:last-of-type {
  margin-right: 0;
}

.level-display {
  display: flex;
  justify-content: space-between;

  margin-bottom: 2rem;
}

.level-display button {
  border-radius: 200rem;
  padding: 0.5rem 1rem;
}

.level-display button:disabled {
  cursor: default;
  background-color: #42525c;
  color: #a0b2bd;
}

button.delete-btn {
  background-color: #ab0a2a;
}

.unlocked-levels-display {
  font-size: 1.5rem;
}

.center-text {
  text-align: center;
}

.info-display-between {
  display: flex;
  justify-content: space-between;
}

.info-display-bottom {
  margin-top: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btns {
  margin-top: 1rem;
}

.help {
  margin-top: 3rem;
}

.controls {
  margin-top: 2rem;
}

.hidden {
  display: none;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 3rem;
  background-color: #75afdb;
  font-size: 1.3rem;
}

svg {
  width: 1rem;
}

@media (max-width: 1400px) {
  main {
    flex-direction: column-reverse;
  }
}
