@font-face {
  font-family: 'FZLanTingYuanGBK';
  src: local('FZLanTingYuanGBK'), url('./FZLanTYK_B.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html {
  -ms-touch-action: none;
}

body,
canvas,
div {
  display: block;
  outline: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  /* display: none; <- Crashes Chrome on hover */
  -webkit-appearance: none;
  margin: 0;
  /* <-- Apparently some margin are still there even though it's hidden */
}

body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;

  cursor: default;
  color: #888;
  background-color: #333;

  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;

  display: flex;
  flex-direction: column;
  overflow: hidden;
}

canvas {
  background-color: rgba(0, 0, 0, 0);
}

#GameDiv {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  border: 0;
  margin: 0;
  background-color: #333;
}

#Cocos3dGameContainer,
#GameCanvas {
  width: 100%;
  height: 100%;
}

#splash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  border: 0;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url(./backdrop.png), url(./background.png);
  background-origin: padding-box;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

#splash::after {
  content: '';
  width: 100%;
  height: auto;
  min-height: 26px;
  aspect-ratio: 2200 / 54;
  position: absolute;
  top: 0;
  left: 0;
  background-image: url(./backrim.png);
  background-origin: padding-box;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 10;
}

#splash::before {
  content: '';
  width: 100%;
  height: auto;
  min-height: 26px;
  aspect-ratio: 2200 / 54;
  position: absolute;
  bottom: 0;
  left: 0;
  transform: rotate(-180deg);
  background-image: url(./backrim.png);
  background-origin: padding-box;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 10;
}

.progress-img {
  margin-bottom: 4vh;
  min-width: 160px;
  width: 16vw;
  height: auto;
  aspect-ratio: 311 / 385;
  z-index: 20;
}

.progress-text {
  margin-bottom: 2vh;
  font-family: "FZLanTingYuanGBK", sans-serif;
  font-weight: bold;
  font-size: 20px;
  color: #FFFFFF;
  line-height: 22px;
  letter-spacing: 1px;
  text-shadow: #3A2D2D 1px 0 0, #3A2D2D 0 1px 0, #3A2D2D -1px 0 0, #3A2D2D 0 -1px 0;
  z-index: 20;
}

.progress-bar {
  margin-bottom: 6vh;
  min-width: 240px;
  width: 45vw;
  height: 10px;
  border-radius: 8px;
  border: 2px solid #3A1F21;
  background-color: #FFFFFF;
  z-index: 20;
}

.progress-bar .progress-rate {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease-in-out;
  background-color: #825A40;
}

.progress-bar .progress-tip {
  position: absolute;
  right: 0;
  bottom: -30px;
  transform: translateX(50%);
  font-family: "FZLanTingYuanGBK", sans-serif;
  font-weight: bold;
  font-size: 16px;
  color: #FFFFFF;
  line-height: 20px;
  letter-spacing: 1px;
  text-shadow: #3A2D2D 1px 0 0, #3A2D2D 0 1px 0, #3A2D2D -1px 0 0, #3A2D2D 0 -1px 0;
}