body {
    padding: 0;
    margin: 0;
    overflow: hidden; /* Prevent scrolling */
}

#unity-container {
    position: absolute;
    width: 100vw; /* Full width of the viewport */
    height: 100vh; /* Full height of the viewport */
}

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

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

#unity-canvas {
    background: #231F20;
    width: 100%; /* Ensure full width */
    height: 100%; /* Ensure full height */
}

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

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#unity-logo {
    width: 100vw; /* Full width of the viewport */
    height: 100vh; /* Full height of the viewport */
    background: url('unity-logo-dark.png') no-repeat center;
    background-size: contain; /* Ensure the logo covers the entire area */
}

#unity-progress-bar-empty {
    width: 141px;
    height: 18px;
    background: url('progress-bar-empty-dark.png') no-repeat center;
    position: absolute; /* Position absolutely within the logo */
    top: 85%; /* Center vertically within the parent */
    left: 50%; /* Center horizontally within the parent */
    transform: translate(-50%, -50%); /* Adjust vertical and horizontal centering */
    z-index: 101; /* Ensure it's above the loading bar */
}

#unity-progress-bar-full {
    width: 0%; /* Adjust width dynamically as needed */
    height: 18px;
    position: absolute; /* Position absolutely within the parent */
    top: 0; /* Align to the top of the parent */
    left: 0; /* Align to the left of the parent */
    z-index: 102; /* Ensure it's above the empty bar */
    background: url('progress-bar-full-dark.png') no-repeat center;
}

#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 {
    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;
}
