@font-face {
  font-family: ApercuBold;
  src: url('../fonts/ApercuBold.ttf');
}

@font-face {
  font-family: ApercuRegular;
  src: url('../fonts/ApercuRegular.ttf');
}

body {
  margin: 0;
  background-image: url('../images/tablet_BG.jpg');
  background-color: rgba(0, 0, 0, 0.3);
  background-repeat: repeat;
  background-size: cover;
}

.flex-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.inner-container {
  background-color: #ffffff;
  padding: 85px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  box-shadow: 0px 4px 4px #000000;
}

.logo {
  height: 128px;
}

.header {
  font-family: ApercuBold;
  font-size: 30px;
  line-height: 37px;
  margin: 0;
  padding: 40px 0 27px;
}

.info-container > p {
  font-family: ApercuRegular;
  font-size: 18px;
  line-height: 22px;
  margin: 0;
}

.info-container > p:not(:last-child) {
  margin-bottom: 12px;
}

.info-container > p > b {
  font-family: ApercuBold;
  font-size: 18px;
  line-height: 22px;
}

.monitor-img {
  margin-left: 5px;
  margin-bottom: -7px;
}

.qr-code-container {
  height: 400px;
  width: 400px;
  border: 10px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.powered-logo {
  position: absolute;
  bottom: 20px;
  right: 100px;
}

@media only screen and (max-width: 1024px) {
  .container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
  }

  .inner-container {
    padding: 50px;
    align-items: center;
  }

  .qr-code-container {
    width: 280px;
    height: 280px;
  }

  .qr-code > img {
    width: 260px;
    height: 260px;
  }
}

@media only screen and (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
  }

  .inner-container {
    padding: 35px;
    align-items: center;
  }

  .logo {
    height: 85px;
  }

  .header {
    font-size: 25px;
    padding: 20px 0;
  }

  .qr-code-container {
    width: 220px;
    height: 220px;
  }

  .qr-code > img {
    width: 200px;
    height: 200px;
  }

  .powered-logo {
    right: 20px;
  }
}

@media only screen and (max-width: 720px) {
  .container {
    width: 100%;
    padding: 0 22px;
  }

  .inner-container {
    padding: 25px;
    flex-direction: column;
    margin: 20px 0;
  }

  .qr-code-container {
    margin-top: 50px;
  }

  .powered-logo {
    position: relative;
    bottom: unset;
    right: unset;
    display: flex;
    margin: 0 auto;
  }
}

@media only screen and (min-device-width: 375px) and (max-device-width: 850px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {
  .container {
    width: 100%;
    padding: 0 22px;
  }

  .inner-container {
    padding: 25px;
    margin: 20px 0;
    align-items: center;
  }

  .logo {
    height: 80px;
  }

  .header {
    font-size: 20px;
    padding: 15px 0;
    line-height: 25px;
  }

  .info-container > p {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .info-container > p > b {
    font-size: 16px;
  }

  .qr-code-container {
    width: 200px;
    height: 200px;
  }

  .qr-code > img {
    width: 180px;
    height: 180px;
  }

  .powered-logo {
    position: relative;
    bottom: unset;
    right: unset;
    display: flex;
    margin: 0 auto;
  }
}

/* Caishun Stuff */

.webgl-content {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

#gameContainer {
  width: 100vw;
  height: 100vh;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.pre-loader {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  display: none;
}

.pre-loader .title {
  color: #eee;
  letter-spacing: 0.1em;
}

.progress-bar {
  width: 40%;
  padding: 5px;
  background: #1a1a1a;
  box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;
  border-radius: 18px;
}

.progress-bar .fill {
  background: #34c2e3;
  height: 24px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  border-radius: 18px;
  color: #fff;
  text-align: center;
  line-height: 24px;
  overflow: hidden;
}

#loader {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite; /* Safari */
  animation: spin 2s linear infinite;
  margin: 0 auto;
}

#frame {
  position: relative;
  width: 18rem;
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
