html {
  height: 100%;
}

body {
  background: #000;
  padding: 0;
  margin: 0;
  height: 100%;
}

body.load-error {
  background-image: url(./assets/images/f25490ae7aa43495d79babe80ce53636.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50%;
}
body.load-error .error-message {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #fff;
  text-align: center;
}

.error-message pre {
  white-space: normal;
  padding: 1em;
  background-color: #000000a6;
}

* {
  box-sizing: border-box;
}

body.dragging {
  cursor: grabbing;
}

body > canvas {
  position: absolute;
  display: block;
  image-rendering: crisp-edges;
  margin: auto;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

nav {
  background-color: #000000;
  border-bottom: 0.1em dashed #8a8a8a6b;
  display: flex;
  justify-content: space-around;
  position: fixed;
  top: 0;
  text-align: center;
  width: 100vw;
  padding: 0.3rem 1rem;
  overflow: hidden;
  max-width: 100%;
  flex-wrap: wrap;
  font-size: 1.2vw;
}

@media screen and (max-width: 900px) {
  nav {
    font-size: 3vw;
  }
}


nav a {
  margin: 0.1em 0.3em 0.8em 0.3em;
  color: #eee;
  text-decoration: none;
  position: relative;
  padding: 0 2em;
}

nav a::after {
  content: attr(title);
  font-family: monospace;
  color: #8a8a8a;
  font-size: 0.5em;
  position: absolute;
  left: 0;
  bottom: -1em;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

nav a:hover::after {
  border: 0.1em dashed;
  left: -0.08em;
  bottom: -1.08em;
  color: #fff;
}
