/* Game */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

body { margin: 0; font-family: sans-serif; }
#container { width: 100%; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
#game { width: 100vw; height: 100vh; max-width: 1200px; max-height: 900px; }
canvas { width: 100%; height: 100%; display: block; }
canvas + * { z-index: 2; }

/* Loading */
.loader {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.loader .logo {
    display: block;
    max-width: 70vw;
    max-height: 70vh;
}
.loader .progress {
    margin: 1.5em;
    border: 1px solid #FFF;
    width: 30vw;
    display: none;
}
.loader .full {
    margin: 2px;
    background: white;
    height: 1em;
    transform-origin: top left;
}