body {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin: 0;
}

body.is-loaded {
  background: #000 url(./back.jpg) no-repeat fixed center center / cover;
}

#gameCanvas {
  box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}

#errorPrinter {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 640px;
  padding: 20px;
  transform: translate(-50%, -50%);
  text-align: center;
  text-shadow: 1px 1px 3px #000;
  font-size: 20px;
  color: #fff;
  background: rgba(32, 32, 32, .85);
  z-index: 9;
}

#errorPrinter:empty {
  padding: 0;
}

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

#errorMessage {
  font-size: 18px;
  margin-top: 10px;
  color: #fff;
  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
  white-space: pre-wrap;
}

#errorStack {
  font-size: 12px;
  text-align: left;
  white-space: pre-wrap;
  background: #111;
  margin: 10px -20px 0;
  padding: 10px;
  color: #393;
  max-height: 200px;
  overflow-y: auto;
  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

#errorStack:before {
  display: block;
  content: 'エラーログ（コピペ報告用）';
  color: #393;
  width: 20em;
  border: 1px solid #393;
  border-radius: 2px;
  text-align: center;
  text-shadow: none;
  margin: 0 auto 5px;
}

#retryButton {
  cursor: pointer;
  font-size: 20px;
  color: #fff;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, .25);
  border-radius: 0;
  margin: 20px auto 0;
  padding: 5px 10px;
}

#retryButton:hover {
  opacity: .7;
}

#retryButton:active {
  transform: scale(.95);
}

#fpsCounterBox {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 90px;
  height: 40px;
  background: #222;
  opacity: 0.8;
  z-index: 8;
}

#fpsCounterLabel {
  position: absolute;
  top: 0px;
  left: 0px;
  padding: 5px 10px;
  height: 30px;
  line-height: 32px;
  font-size: 12px;
  font-family: rmmz-numberfont, 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: rmmz-numberfont, monospace;
  color: #fff;
  text-align: right;
}

#loadingSpinner {
  pointer-events: none;
  margin: auto;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  height: 64px;
  z-index: 10;
  background: rgba(0, 0, 0, .75);
  background: linear-gradient(rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 1) 100%);
  animation: fadein 1s ease-in-out;
}

#loadingSpinnerImage {
  width: 50%;
  height: 25%;
  border: 3px solid #fff;
  background: linear-gradient(#5cf0a9 0, #5cf0a9 100%) 0/0 no-repeat #222d1f;
  animation: progressBar 15s ease-out forwards;
  border-radius: 100px;
  box-sizing: border-box;
  box-shadow: 0 0 10px rgb(0, 0, 0, .5);
}

@keyframes fadein {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes progressBar {
  0% {
    background-size: 0;
  }
  10% {
    background-size: 30%;
  }
  20% {
    background-size: 80%;
  }
  100% {
    background-size: 98%;
  }
}

.comment_box {
  font-family: 'MS PGothic', 'IPAMonaPGothic', Arial, 'Menlo', sans-serif;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.comment_box.toripota-opacity {
  opacity: 0.4;
}
