body {}

#unity-container {
    position: absolute;
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100%;
    overflow: hidden;
    background-color: black;
    background: black url("unity-bg.png") no-repeat center 50%;
    background-size: 100% auto;
}

#unity-container.unity-desktop {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#unity-container.unity-mobile {
    width: 100%;
    height: 100%;
}

.unity-mobile #unity-canvas {
    width: 100%;
    height: 100%;
}


#progressbar-container {
    position: absolute;
    left: 50%;
    top: 65%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    user-select: none;
    width: 100vw;
}


#tip {
    font-size: 14px;
    color: black;
    font-weight: bold;
    text-align: center;
    /* white-space: nowrap; */
}

/*#unity-logo { width: 2340px; height: 1080px; background: url('unity-logo-dark.png') no-repeat center }*/
#unity-loading-bar {    
    width: 100vw;
    height: 20px;
    max-width: 420px;
    border-radius: 4px;
    background-color: rgb(0, 0, 0,0);
    align-content: center;
    padding: 2px;
}

#unity-progress-bar-empty {    
    width: 100%;
    height: 4px;
    max-width: 420px;
    border-radius: 5px;
    background-color: rgb(68, 68, 68);
    align-content: center;
    padding: 2px;
}

#unity-progress-bar-full { 
    width: 0%;
    height: 100%;
    border-radius: 5px;
    background-color: rgb(255 156 72);
}
/*#unity-footer { position: relative }*/
.unity-mobile #unity-footer { display: none }
/*#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }*/
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
/*#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }*/
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }


/* 自定义按钮样式 */
    #fullscreen-toggle {
      position: fixed; /* 固定定位 */
      z-index: 9999;   /* 确保在最上层 */
      top: 0px;
      right: 0px;
      left: 0px;
      bottom: 0px;
      background: rgba(30, 144, 255, 0);
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      transition: opacity 0.3s;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
      
      /* 默认显示（非全屏状态） */
      display: block;
    }

    /* 全屏时隐藏按钮 */
    :fullscreen #fullscreen-toggle {
      display: none !important;
    }

    /* 浏览器前缀兼容 */
    :-webkit-full-screen #fullscreen-toggle {
      display: none !important;
    }
    :-moz-full-screen #fullscreen-toggle {
      display: none !important;
    }


html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}
 
.webgl-content {
    width: 100%;
    height: 100%;
}
 
.unityContainer {
    width: 100%;
    height: 100%;
}
