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);
  overflow:hidden;
}

iframe{
    overflow:hidden;
    border: none;
    background-color: #000000;
}

/* 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: #000000;

  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;

  display: flex;
  flex-direction: column;
}

canvas {
  background-color: rgba(0, 0, 0, 0);
}

#GameDiv, #Cocos3dGameContainer, #GameCanvas {
  width: 100%;
  height: 100%;
}

#maskDiv{
  margin: 0;
  padding: 0;
  width: 100%;
  height:100%;
  text-align: center;
  position: absolute;
  z-index: 999;
  background-color: rgb(0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
    text-align: center;
    top: 80%;
    height: 20px;
    position: relative;
}
 
.progress {
  padding: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);
}
 
.progress-bar {
  height: 6px;
  background-color: #ee303c;
  border-radius: 4px;
  transition: 0.4s linear;
  transition-property: width, background-color;
}
 
.progress-striped .progress-bar {
	position:relative;
  background-color: #FCBC51;
  width: 0%;
  background-image: linear-gradient(45deg, #fca311 25%, transparent 25%, transparent 50%, #fca311 50%, #fca311 75%, transparent 75%, transparent);
  /*animation: progressAnimationStrike 6s;*/
}

@keyframes progressAnimationStrike {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.splashH{
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background:#171717 url(./splash.png) no-repeat center;
	background-size:20%;
}

.splashV{
  position:absolute;
	top:0;
	left:0;
	width:100vh;
	height:100vw;
  transform: rotate(90deg) translateY(-100%);
  transform-origin: top left;
	background:#171717 url(./splash.png) no-repeat center;
	background-size:20%;
}

.gameH{
  position:absolute;
  overflow:hidden;
  top:0;
	left:0;
	width:100%;
	height:100%;
}

.gameV{
  position:absolute;
  overflow:hidden;
  top:0;
	left:0;
	width:100vh;
	height:100vw;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: top left;
}

:root {
  --safe-top: env(safe-area-inset-top);
  --safe-right: env(safe-area-inset-right);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left: env(safe-area-inset-left);
}

.wrap-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 20px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.493);
  z-index: 1000;
}

.dialog {
  position: absolute;
  margin: auto;
  width: 400px;
  height: 180px;
  top:0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #FFFFFF;
}

.dialog .dialog-header {
  height: 20px;
  padding: 10px;
  background-color: #00cc84;
}

.dialog .dialog-body {
  height: 55px;
  padding: 20px;
}

.dialog .dialog-footer {
  padding: 8px;
  background-color: #f5f5f5;
}

.dialog-message{
  color: #171717;
}

.dialog-btn {
  width: 100px;
  height: 30px;
  padding: 2px;
  cursor: pointer;
  background-color: #69fbc8;
  font-size: 20px;
}

.dialog-hide {
  display: none;
}

.dialog-ml50 {
  margin-left: 50px;
  background-color: #d2d2d2;
}

.guide-box {
  opacity: 0;
  position: fixed;
  width: 100vw;
  height: 100vh;
  margin: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: -200vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.9);
  flex-direction: column;
  row-gap: 10px;
  transition: all 0.2s linear;
}

.close-btn {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 40px;
  right: 30px;
  text-align: center;
  color: #fff;
  line-height: 40px;
  font-size: 40px;
  font-weight: bold;
  background-color: rgba(202, 0, 0, 0.7);
  border-radius: 50%;
  cursor: pointer;
}

.guide {
  height: 90vh;
}
