body {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */ /* Full viewport height */
}

#unity-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Automatically sets height based on width */
    max-width: 100vw;
    max-height: 100vh;
}

#unity-canvas {
    background: #231F20; /* Black background */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    display: block; /* Ensure block element behavior */
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#unity-logo {
    width: 154px;
    height: 130px;
    background: url('unity-logo-dark.png') no-repeat center;
}

#unity-progress-bar-empty {
    width: 141px;
    height: 18px;
    margin-top: 10px;
    margin-left: 6.5px;
    background: url('progress-bar-empty-dark.png') no-repeat center;
}

#unity-progress-bar-full {
    width: 0%;
    height: 18px;
    background: url('progress-bar-full-dark.png') no-repeat center;
}
.unity-mobile #unity-footer {
    display: none;
}

#unity-webgl-logo {
    width: 204px;
    height: 38px;
    display: block; /* Ensure it behaves like a block element */
    text-decoration: none; /* Remove underline from link */
    cursor: pointer; /* Change cursor to pointer on hover */
}

#custom-fullscreen-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-image: url('fullscreen-button.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    border: none;
    background-color: transparent;
    z-index: 9999;
}
#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none;
}

@media only screen and (max-width: 1024px) {
    #custom-fullscreen-button {
        display: none;
    }
}
