body {
    padding: 0;
    margin: 0;
}

#unity-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

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

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

#unity-canvas {
    background: #231F20;
    width: 100%;
    height: 100%;
}

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

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    text-align: center; /* 让内部内容居中 */
}

@keyframes rotateAnimation {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

#unity-logo {
    width: 200px;
    height: 200px;
    background: url('unity-logo-dark.png') no-repeat center;
    margin: 0 auto;
    position: absolute;
    left: 50%; /* 水平居中 */
    top: calc(50% + 80px); /* 将top位置下移80px */
    transform: translate(-50%, -50%);
    animation: rotateAnimation 5s linear infinite; /* 每5秒旋转一圈 */
}

/*#unity-progress-bar-empty {
    width: 200px;
    height: 200px;
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    background: url('progress-bar-empty-dark.png') no-repeat center;
}

#unity-progress-bar-full {
    width: 200px;
    height: 200px;
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    background: url('progress-bar-full-dark.png') no-repeat center;
}*/

#unity-footer {
    position: relative;
    text-align: center;
}

.unity-mobile #unity-footer {
    display: none;
}

#unity-webgl-logo {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    top: 80%;
    transform: translate(-50%, -50%);
    background: url('webgl-logo.png') no-repeat center;
}

#unity-build-title {
    float: none;
    text-align: center;
    margin: 0 auto;
    font-family: arial;
    font-size: 18px;
}

#unity-fullscreen-button {
    cursor: pointer;
    display: block;
    width: 38px;
    height: 38px;
    position: absolute;
    left: 50%;
    top: 90%;
    transform: translate(-50%, -50%);
    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;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.webgl-content {
    width: 100%;
    height: 100%;
}

.unityContainer {
    width: 100%;
    height: 100%;
}
