@font-face {
  font-family: "NotoSansJP-Bold";
  src: local("NotoSansJP-Bold"),
    url("https://webusstatic.yo-star.com/bluearchive-jp/ba-jp-shrimp-minigame/test/NotoSansJP-Bold.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 {
  padding: 0;
  border: 0;
  margin: 0;

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

  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);
}

.custom-wrap {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#GameDiv {
  position: relative;
  width: 94% !important;
  height: auto !important;
  max-width: 1792px;
  max-height: 828px;
  min-width: 896px;
  min-height: 414px;
  aspect-ratio: 1792 / 828;
  border: 5px solid black;
  border-radius: 10px;
  box-shadow: 0 5px 50px #333;
}

#Cocos3dGameContainer,
#GameCanvas {
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

#splash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #000;
  overflow: hidden;
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.loading-icon {
  width: 80px;
  height: 80px;
  margin-right: 20px;
}

.loading-text {
  display: flex;
  color: #ffffff;
  font-size: 30px;
  font-family: "NotoSansJP-Bold", Arial, sans-serif;
}

.loading-text span {
  display: inline-block;
  animation: wave 2s ease-in-out infinite;
}

.loading-text span:nth-child(1) {
  animation-delay: 0s;
}
.loading-text span:nth-child(2) {
  animation-delay: 0.1s;
}
.loading-text span:nth-child(3) {
  animation-delay: 0.2s;
}
.loading-text span:nth-child(4) {
  animation-delay: 0.3s;
}
.loading-text span:nth-child(5) {
  animation-delay: 0.4s;
}
.loading-text span:nth-child(6) {
  animation-delay: 0.5s;
}
.loading-text span:nth-child(7) {
  animation-delay: 0.6s;
}
.loading-text span:nth-child(8) {
  animation-delay: 0.7s;
}
.loading-text span:nth-child(9) {
  animation-delay: 0.8s;
}
.loading-text span:nth-child(10) {
  animation-delay: 0.9s;
}

@keyframes wave {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
