* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  background: #fff;
  font-size: 17.6vh;
}

body {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  color: #fff;
  text-align: center;
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  background: #f95240 url("./assets/main-bg.png");
}

img {
  width: 100%;
}

#canvas {
  position: fixed;
  inset: 0;
  margin: auto;
  outline: none;
}

.hide {
  display: none;
}

.loading {
  width: 100%;
  height: 100%;
  background: #f05a50;
}

.loading .main {
  width: 60%;
  margin: 0 auto;
}

.loading .main img {
  width: 60%;
  margin: 1rem auto 0;
}

.loading .title {
  font-size: .3rem;
}

.loading .text {
  font-size: .15rem;
}

.loading .bar {
  width: 100%;
  height: .12rem;
  margin: .1rem 0;
  border: 3px solid #fff;
  border-radius: .6rem;
}

.loading .bar .sub {
  width: 98%;
  height: .1rem;
  margin: .008rem auto 0;
}

.loading .bar .percent {
  width: 0;
  height: 100%;
  border-radius: .6rem;
  background: #fff;
}

.content {
  position: relative;
  height: 100vh;
  margin: 0 auto;
}

.landing .title {
  width: 60%;
}

.landing .action-2 {
  position: absolute;
  bottom: .2rem;
  width: 100%;
}

.landing .start {
  width: 65%;
  cursor: pointer;
  border-radius: .15rem;
}

.landing .start:focus,
.over-button-b:focus {
  outline: 4px solid #fff;
  outline-offset: 6px;
}

.slideTop {
  animation: slide-top 1s ease-in-out;
}

.slideBottom {
  animation: slide-bottom 1s ease-in-out;
}

.swing {
  animation: swing 2s ease-in-out alternate infinite;
}

@keyframes slide-top {
  to { transform: translate3d(0, -100%, 0); }
}

@keyframes slide-bottom {
  to { transform: translate3d(0, 200%, 0); }
}

@keyframes swing {
  from {
    transform: rotate(5deg);
    transform-origin: top center;
  }
  to {
    transform: rotate(-5deg);
    transform-origin: top center;
  }
}

.modal .mask {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .6;
  background: #000;
}

.modal .modal-content {
  position: fixed;
  top: 0;
  width: 90%;
  height: 100%;
  margin-top: .3rem;
}

.modal .main {
  width: 85%;
  margin: 0 auto;
}

.modal .container {
  position: relative;
}

.modal .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.modal .modal-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  margin-top: -.4rem;
}

.modal .over-img {
  width: 80%;
  margin: .8rem auto 0;
}

.modal .over-score {
  margin-top: -.2rem;
  color: #ff735c;
  font-size: .5rem;
  text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff;
}

.modal .tip {
  color: #9b724e;
  font-size: .16rem;
}

.modal .over-button-b {
  width: 70%;
  margin: .1rem auto 0;
  cursor: pointer;
}

.display-font {
  font-family: Impact, "Arial Black", sans-serif;
  letter-spacing: .02em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .swing {
    animation-duration: 3.5s;
  }
}
