/* Reset default browser styles. Based on Josh Comeau's reset and the Condensed Universal Reset*/
/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 8. Avoid text overflows */
p,
label,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p,
label {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/* Wipe out all padding and sizes */
* {
  vertical-align: baseline;
  border: 0 none;
  outline: 0;
  padding: 0;
  margin: 0;
}

#debug_info {
  color: azure;
  background-color: rgba(85, 85, 85, 0.5);
  display: flex;
  justify-content: space-between;
}

#HUD {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}
#HUD #screen_controls {
  background-color: rgba(85, 85, 85, 0.5);
  padding: 1vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
#HUD #screen_controls #vertical_movement_buttons {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1vh;
}
#HUD #screen_controls #vertical_movement_buttons :first-child {
  margin-bottom: 1vh;
}
#HUD #screen_controls button {
  height: 10vh;
  width: 10vh;
  background-color: #999;
  border: 2px solid #933;
  border-radius: 2vh;
  font-weight: bold;
  font-size: xx-large;
}
#HUD #screen_controls button:active, #HUD #screen_controls button.active {
  background-color: #222;
}
@media not (pointer: coarse) {
  #HUD #screen_controls {
    visibility: hidden;
  }
}

#pop_up_page {
  background-color: rgba(101, 121, 101, 0.8);
  text-align: center;
  margin: 5vh 25vw;
  height: 90vh;
  padding: 2rem;
  border-radius: 1rem;
}

canvas {
  position: absolute;
  width: 100dvh;
  height: 100dvw;
  top: 0;
  left: 0;
  transform-origin: top left;
  transform: rotate(90deg) scaleY(-1);
  z-index: 1;
}

#overlay {
  position: absolute;
  width: 100dvw;
  height: 100dvh;
  z-index: 2;
  pointer-events: none;
}
#overlay button {
  pointer-events: auto;
}
