body {
  margin: 0;
  background: #000;
  color: #666;
  font-size: 100%;
  font-family: Verdana, Geneva, sans-serif;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

html:-moz-full-screen {
  background: #000;
}

html:-webkit-full-screen {
  background: #000;
}

html:fullscreen {
  background: #000;
}

*, *::after, *::before {
  box-sizing: border-box;
}

.loading:after {
  content: "...";
  text-align: center;
  padding-top: 50vh;
  display: block;
  width: 100vw;
  height: 100vh;
}

#canvas {
  position: relative;
  opacity: 0;
  transition: opacity 0.3s;
  order: -1;
  margin-top: 1rem;
}

.loaded #canvas {
  opacity: 1;
}

.pixel {
  position: absolute;
  width: 10%;
  height: 50%;
  border-radius: 50%;
  /*transition: left .2s linear, top .2s linear;*/
  transition: left .2s, top .2s;
}

.pixel#blank {
  opacity: 0;
}

#fs-btn {
  position: fixed;
  right: 20px;
  top: 20px;
  text-indent: -9999px;
  background: url(../images/fs.png) no-repeat;
  width: 24px;
  height: 18px;
  cursor: pointer;
  transition: all 0.2s;
  opacity: .5;
}

#fs-btn:hover {
  transform: scale(1.125);
}

header {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  padding: 0 1rem;
  opacity: 0;
  transition: opacity .3s;
  color: #666;
}

.loaded header {
  opacity: 1;
}

header * {
  font-size: 0.675rem;
  margin: 0;
  font-weight: normal;
}

.legend {
    margin: 0 auto;
  text-align: center;
}
.legend h1{
  padding: 0 2rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .3s;
}

a.control {
  color: #aaa;
}

a:hover {
  color: #ccc;
}
