body {
  overflow: hidden;
  margin: 0;
  font-family: 'GAMEFONT';
  user-select: none;
}

img {
  -webkit-user-drag: none;
}

#gameCanvas {
  transition: filter 0.2s, opacity 0.2s;
}

#errorPrinter {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 640px;
  height: 100px;
  transform: translate(-50%, -50%);
  text-align: center;
  text-shadow: 1px 1px 3px #000;
  font-size: 20px;
  color: #fff;
}

#errorName {
  color: #ff0;
  font-weight: bold;
  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

#errorMessage {
  color: #fff;
  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

#retryButton {
  font-size: 20px;
  color: #fff;
  background-color: #000;
  border-radius: 8px;
  margin: 20px;
  padding: 10px;
}

#fpsCounterBox {
  position: absolute;
  left: 0;
  top: 35px;
  width: 90px;
  height: 40px;
  background: #222;
  opacity: 0.8;
  z-index: 999;
  pointer-events: none;
}

#fpsCounterLabel {
  position: absolute;
  top: 0px;
  left: 0px;
  padding: 5px 10px;
  height: 30px;
  line-height: 32px;
  font-size: 12px;
  font-family: 'GAMEFONT', sans-serif;
  color: #fff;
  text-align: left;
}

#fpsCounterNumber {
  position: absolute;
  top: 0px;
  right: 0px;
  padding: 5px 10px;
  height: 30px;
  line-height: 30px;
  font-size: 24px;
  font-family: 'GAMEFONT', monospace;
  color: #fff;
  text-align: right;
}

#loadingSpinner {
  z-index: 10;
  position: fixed;
  bottom: 0;
  left: 0;
  height: 5px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#loadingSpinnerImage {
  height: 100%;
  width: 100%;
  background: #fff;
  animation: fadein 2s ease, loading 3s linear alternate infinite;
}

@keyframes fadein {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes loading {
  0% {
    transform: scaleX(0);
    background: #fff;
  }

  33% {
    transform: scaleX(1);
  }

  66% {
    transform: scaleX(0);
    background: #f5c1bb;
  }

  100% {
    transform: scaleX(1);
  }
}