@font-face {
  font-family: 'OpenSans-Bold';
  src: url('../HaiH5/fronts/OpenSans-Bold.ttf'); /* URL指向你的.ttf或.otf文件 */
}
@font-face {
  font-family: 'OpenSans-Medium';
  src: url('../HaiH5/fronts/OpenSans-Medium.ttf'); /* URL指向你的.ttf或.otf文件 */
}
body { padding: 0; margin: 0;  font-family: OpenSans-Bold
}
#unity-container { position: fixed; width: 100%; height: 100%; }
#unity-canvas { width: 100%; height: 100%; background: #ffffff }
#unity-loading-bar { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); display: none }
#unity-progress-bar-empty { width: 512px; height: 15px; margin-top: 10px; border-radius: 20px;background-color: #C5D1FE;}
#unity-progress-bar-full { width: 0%; height: 15px; margin-top: 10px;  border-radius: 20px;  background: url('progress-bar-full-dark.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
#video-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
  }

  #myIframe{
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 100; background-color: rgba(0, 0, 0, 0);display: none;
  }

  #LoadTip2{
    position: absolute; left: 50%; top: 60%;     transform: translateX(-50%);
    width: 700px; height: 25.5px;
    margin-top: 25px;
  }
  .close-button {
    z-index: 101;

    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px; /* Adjust as needed */
    height: 50px; /* Adjust as needed */
    background-image: url('btn_close_pressed.png');
    background-size: cover;
    border: none;
    cursor: pointer;
  }
  #mobile_orientation{ 
    top: 0;
    left: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: none;
    
    }
    #screen-tip{
      position: fixed;
      width: 256px; height: 217px; background: url('tip1.png') no-repeat center;transform: scale(0.5);
      top: 30%;
      right: 0;
      left: 0;
      margin: auto;
    }
    .moveLogoDiv {
      position: absolute;
      left: 100%;
      /*top: -180%;*/
      bottom: 90%; /* 计算底部距离，保持比例 */
      margin-right: 1%;
      transform: translateX(30%); /* 水平居中 */
      width: 30%; /* 按比例缩放宽度 */
      height: auto; /* 高度自适应 */
    }
    .moveLogoDiv img {
      width: 20%; /* 按比例缩放宽度 */
      height: auto; /* 高度自适应 */
    }
    #unity-logo{ 
      position: absolute; left: 50%; bottom: 5%;     transform: translateX(-50%);
      width: 256px; height: 25.5px;
    }
    #unity-logo img{
      width: 100%;
      height: auto;
    }

    #progress-label {
      color: #2E31FA; /* 或者使用 color: rgb(46, 49, 250); */
      margin-top: -30px;
      margin-left: 50px;
      text-align: center;
      display: block;
      width: 100%;
      transform: scale(1.5);
      font-family: 'Barlow';
    }

    .loader-container {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      position: absolute; left: 50%; bottom: -10%;     transform: translateX(-50%);
    }
    
    .loader {
      display: flex;
      justify-content: space-between;
      width: 80px;
    }
    
    .loader div {
      width: 16px;
      height: 16px;
      background-color: #2E31FA;;
      border-radius: 50%;
      animation: grow-shrink 1.5s infinite;
    }
    
    .loader div:nth-child(1) {
      animation-delay: 0s;
    }
    
    .loader div:nth-child(2) {
      animation-delay: 0.3s;
    }
    
    .loader div:nth-child(3) {
      animation-delay: 0.6s;
    }
    
    @keyframes grow-shrink {
      0%, 100% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.5);
      }
    }
    #Loading-label{
      margin-top: 50px; text-align: center; display: block; width: 100%;  transform: scale(1.5);font-family: 'Barlow';
    }

    @media only screen and (max-width: 1017px) {
      #unity-loading-bar { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); display: none }
      #unity-progress-bar-empty { width: 300px; height: 7.5px; transform: scale(1); }
      #unity-progress-bar-full { width: 0%; height: 7.5px;transform: scale(1);}
      #video-content {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: none;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 100;
      }
      .close-button {
        z-index: 101;
    
        position: absolute;
        top: 5px;
        right: 5px;
        width: 25px; /* Adjust as needed */
        height: 25px; /* Adjust as needed */
        background-image: url('btn_close_pressed.png');
        background-size: cover;
        border: none;
        cursor: pointer;
      }
      #unity-logo{ 
        position: absolute; left: 50%; bottom: 7.5%;     transform: translateX(-50%);
        width: 128px; height: 12.75px;
      }
      .moveLogoDiv {
        position: absolute;
        left: 100%;
        /*top: -180%;*/
        bottom: 80%; /* 计算底部距离，保持比例 */
        margin-right: 1%;
        transform: translateX(30%); /* 水平居中 */
        width: 30%; /* 按比例缩放宽度 */
        height: auto; /* 高度自适应 */
      }
      .moveLogoDiv img {
        width: 20%; /* 按比例缩放宽度 */
        height: auto; /* 高度自适应 */
      }
      #Loading-label{
        margin-top: 20px; text-align: center; display: block; width: 100%;  transform: scale(1);font-family: 'Barlow';
      }
      #myIframe{
        position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 100; background-color: rgba(255, 255, 255, 1);display: none;
      }
    }
    @media screen and (orientation: portrait) {
      .cus-header {
        margin-top: 5% !important;
        margin-bottom: 2px;
      }
      #myIframe{
        position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 100; background-color: rgba(255, 255, 255, 1);display: none;
      }
    }
