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;
}

canvas {
  background-color: rgba(0, 0, 0, 0);
}

#GameDiv, #Cocos3dGameContainer, #GameCanvas {
  width: 100%;
  height: 100%;
}

: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);
}


.loading-div {
  position: absolute; /* 使用绝对定位 */
  top: 50%; /* 距离屏幕顶部50% */
  left: 50%; /* 距离屏幕左侧50% */
  transform: translate(-50%, -50%); /* 使用transform进行微调，将div向上左方移动自身宽度和高度的一半 */
  width: 100%; /* 设置宽度 */
  height: 100%; /* 设置高度 */
  background-color: #000000; /* 背景颜色 */  
  display: none; 
}

.loading-div_w {
  position: absolute; /* 使用绝对定位 */
  top: 35%; /* 距离屏幕顶部50% */
  left: 50%; /* 距离屏幕左侧50% */
  transform: translate(-50%, -50%); /* 使用transform进行微调，将div向上左方移动自身宽度和高度的一半 */
  width: 30%; /* 设置宽度 */
  height: 100%; /* 设置高度 */   
  background-color: #000000; /* 背景颜色 */  
  display: none;
}

.image-container {
  width: 80%; /* 设置div的宽度 */
  height: 70%; /* 设置div的高度 */
  overflow: hidden; /* 超出div范围的图片部分将被隐藏 */
  position: relative; /* 设置定位上下文 */
  top: 25%; /* 距离屏幕顶部50% */
  left: 10%; /* 距离屏幕左侧30% */
}
 
.image-container img {
  width: 100%; /* 图片宽度填满div */
  height: auto; /* 图片高度自动调整以保持纵横比 */
  position: relative; /* 图片定位 */
}

.gif-container {
  width: 100%; /* 设置div的宽度 */
  height: 100%; /* 设置div的高度 */
  overflow: hidden; /* 超出div范围的图片部分将被隐藏 */
  position: relative; /* 设置定位上下文 */
  top: 35%; /* 距离屏幕顶部50% */
  left: 0%; /* 距离屏幕左侧30% */
}

.loading-text {
  width: 100%; /* 设置div的宽度 */
  height: 100%; /* 设置div的高度 */
  overflow: hidden; /* 超出div范围的图片部分将被隐藏 */
  position:relative; /* 设置定位上下文 */
  top: 20%; /* 距离屏幕顶部50% */
  left: 0%; /* 距离屏幕左侧30% */
  color:#A589C2;
  font-size: 24px;
  font-weight: bolder;
  text-align: center;
}

.version-text {
  width: 30%; /* 设置div的宽度 */
  height: 40%; /* 设置div的高度 */
  overflow: hidden; /* 超出div范围的图片部分将被隐藏 */
  position:absolute; /* 设置定位上下文 */
  top: 50%; /* 距离屏幕顶部50% */
  left: 35%; /* 距离屏幕左侧30% */
  color:#808080;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
} 

.version-text img {
  width: 100%; /* 图片宽度填满div */
  height: auto; /* 图片高度自动调整以保持纵横比 */
  position: relative; /* 图片定位 */
  top: 45%; /* 图片顶部居中 */
  left: 0%; /* 图片左侧居中 */   
}

.gif-container img {
  width: 45%; /* 图片宽度填满div */
  height: auto; /* 图片高度自动调整以保持纵横比 */
  position:relative; /* 图片定位 */
  top: 10%; /* 图片顶部居中 */
  left: 0%; /* 图片左侧居中 */   
}


.fixed-div {
  position: fixed;  /* 使div固定位置 */
  top: 0px;       /* 距离顶部10像素 */
  right: 0px;     /* 距离右侧10像素 */
  width: 100%;    /* 宽度 */
  left: 0px;
  height: 100%;    /* 高度 */    
  background-color: #333; /* 背景颜色 */
  color: white;    /* 文字颜色 */
  text-align: center; /* 文字居中 */ 
  display: none;
}
.close_btn {
  position: fixed;  /* 使div固定位置 */
  top: 5px;       /* 距离顶部10像素 */
  left: 30%;     /* 距离右侧10像素 */
  width: 30px;    /* 宽度 */
  height: 30px;    /* 高度 */
  padding: 0px;   /* 内边距 */   
}
