* {
  min-width: 0;
  min-height: 0;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  display: -webkit-box;
  display: -moz-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: box;
  display: flex;
  background: #000;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  overflow: hidden;
}
#loading {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  color: #444;
  font-size: 24px;
  font-family: sans-serif;
  text-transform: uppercase;
  display: -webkit-box;
  display: -moz-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: box;
  display: flex;
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  -o-box-orient: vertical;
  -webkit-flex-flow: column;
  -ms-flex-flow: column;
  flex-flow: column;
  -webkit-box-align: center;
  -moz-box-align: center;
  -o-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -moz-box-pack: center;
  -o-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: #eee;
}
#loading.end a {
  opacity: 0;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: alpha(opacity=0);
}
#loading.start a {
  opacity: 1;
  -ms-filter: none;
  filter: none;
}
#loading a {
  opacity: 0;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: alpha(opacity=0);
  -webkit-transition: opacity 0.3s ease-out;
  -moz-transition: opacity 0.3s ease-out;
  -o-transition: opacity 0.3s ease-out;
  -ms-transition: opacity 0.3s ease-out;
  transition: opacity 0.3s ease-out;
  position: relative;
  text-decoration: none;
  color: inherit;
}
#loading a > * {
  pointer-events: none;
}
#loading img {
  width: 540px;
  height: 160px;
  max-width: 100%;
}
#loading progress {
  background: #c4c8b7;
  border: none;
  width: calc(370% / 540 * 100);
  height: 3px;
  position: absolute;
  bottom: 26px;
  right: calc(30% / 540 * 100);
}
#loading progress::-webkit-progress-bar {
  background: #d0d4c3;
}
#loading progress::-webkit-progress-value {
  background: #a5a49e;
}
#loading progress::-moz-progress-bar {
  background: #a5a49e;
}
#loading .error {
  text-align: center;
  padding: 0 2em;
}
canvas {
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -o-box-flex: 1;
  box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  outline: none;
}
