body {
    margin: 0;
    background: black;
    color: white;
    overflow: hidden;
}

.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-screen[hidden] {
    display: none;
}

/* the canvas *must not* have any border or padding, or mouse coords will be wrong */
#canvas {
    border: 0px none;
    background-color: black;
    display: block;
    margin: auto;
    /* Needs to have a non-zero size so SDL2 initialized correctly. */
    width: 1px;
    height: 1px;
}

/* Spinner from https://loading.io/css/ */
.lds-heart {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
  transform: rotate(45deg);
  transform-origin: 32px 32px;
}
.lds-heart div {
  top: 23px;
  left: 19px;
  position: absolute;
  width: 26px;
  height: 26px;
  background: #fcf;
  animation: lds-heart 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}
.lds-heart div:after,
.lds-heart div:before {
  content: " ";
  position: absolute;
  display: block;
  width: 26px;
  height: 26px;
  background: #fcf;
}
.lds-heart div:before {
  left: -17px;
  border-radius: 50% 0 0 50%;
}
.lds-heart div:after {
  top: -17px;
  border-radius: 50% 50% 0 0;
}
@keyframes lds-heart {
  0% {
    transform: scale(0.95);
  }
  5% {
    transform: scale(1.1);
  }
  39% {
    transform: scale(0.85);
  }
  45% {
    transform: scale(1);
  }
  60% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(0.9);
  }
}
