html,
body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}

#unity-container {
    position: absolute;
  transition: opacity 1s ease-in-out;
}

#unity-container.unity-desktop {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /* transform: translate(-50%, 0); */
}

#unity-container.unity-mobile {
    position: fixed;
    width: 100%;
    height: 100%;
    display: block !important;
}

#unity-canvas {
    background: #231f20;
}

.unity-mobile #unity-canvas {
    width: 100%;
    height: 100%;
    /*opacity: 1 !important;*/
}

#unity-loading-bar {
    display: flex;
    justify-content: center;
    align-items: center;
}

#unity-progress-bar-full-img {
    position: absolute;
    top: 50%;
    transform: translate(0, -65%);
    /* 设置过渡效果 */
}

#unity-logo {
    width: 154px;
    height: 130px;
}

#unity-progress-bar-empty {
    width: 141px;
}

#unity-progress-bar-full {
    width: 0%;
    height: 18px;
    position: relative;
    transition: width 5s ease-in-out;
}

#unity-footer {
    position: relative;
}

.unity-mobile #unity-footer {
    display: none;
}

#unity-webgl-logo {
    float: left;
    width: 204px;
    height: 38px;
}

#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;
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none;
}


#unity-canvas {
    width: 100%;
    height: 100%;
    opacity: 0;
  transition: opacity 1s linear;
  /* 设置过渡效果 */
}

#unity-progress-bar-text {
    width: 100%;
    height: 20px;
    margin-top: 12px;
    color: white;
    -webkit-text-stroke: 0.1px black;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    text-shadow: 0px 1px 10px rgba(0, 0, 0, 0.5);
}

#scan {
    opacity: 0;
    z-index: -1;
}

iframe {
    width: 100vw;
    height: 100vh;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 1s ease-in-out;
}

.modal {
    /*弹窗遮罩层*/
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    /* 弹窗内容 */
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: 295px;
    height: 230px;
    text-align: center;
}

#unity-container {
    background-size: cover;
}

#unity-progress-bar-empty {
    background-size: 100% 100%;
}

.scan_fail_img {
    width: 40px;
    height: 40px;
    margin-top: 30px;
}

.scan_fail_title {
    margin-top: 12px;
    font-size: 18px;
}

.scan_fail_tips {
    margin-top: 4px;
    color: #667182;
    font-size: 13px;
}

#confirmButton {
    cursor: pointer;

    border: none;
    margin-top: 22px;
    width: 247px;
    height: 42px;
    border-radius: 44px;
    background-color: #3E63F1;
    color: #FFF;
    font-size: 18px;
    font-weight: 500;
}

html {
    height: -webkit-fill-available;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    width: 100vw;
    overflow: hidden;
}

.ctaDiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #fffa;
    z-index: 99;
}

#ARhead {
    width: 100%;
    display: none;
    height: 3rem;
    position: fixed;
    top: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
    left: 0;
    justify-content: space-between;
    align-items: center;
}

.btn-close {
    width: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-close img {
    width: 1.5rem;
    height: 1.5rem;
}

.title {
    width: 80%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

#networkTips {
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    z-index: 999;
    position: relative;
    display: none;
}

#networkTipsContent {
    display: inline-flex;
    height: 42px;
    padding: 6px 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 44px;
    background: rgba(0, 0, 0, 0.70);
    color: white;
}

/* // 选择包含textarea的div 这里为了 隐藏输入框 */
body > div:has(> textarea) {
    position: absolute;
    height: 0px;
    width: 0;
    top: -1000px;
    z-index: -9999;
}

body > div:has(> input) {
    position: absolute;
    height: 0px;
    width: 0;
    top: -1000px;
    z-index: -9999;
}
