body { padding: 0; margin: 0 }
#unity-container { position: fixed; width: 100%; height: 100%; }
#unity-canvas { width: 100%; height: 100%; background: #231F20 }
#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 { margin-left: auto; margin-right: auto; width: 141px; height: 18px; margin-top: 10px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }

/* Custom CSS for the loading video */
#loading-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; /* Use flexbox to center the video - though with cover it will already fill */
    justify-content: center; /* Center horizontally - less relevant with cover */
    align-items: center; /* Center vertically - less relevant with cover */
    background-color: #000; /* Optional: set a background color */
    z-index: 100; /* Ensure it's above the Unity canvas */
    overflow: hidden; /* Prevent video overflow */
    opacity: 1; /* Start fully visible */
    transition: opacity 1s ease-in-out; /* Add a transition for opacity over 1 second (adjust duration as needed) */
}

    /* Class to trigger the fade out */
    #loading-video-container.fade-out {
        opacity: 0;
    }

#loading-video {
    width: 100%; /* Make the video take the full width of its container */
    height: 100%; /* Make the video take the full height of its container */
    object-fit: cover; /* This is the key property to make the video cover the entire area, cropping if necessary */
}

/* Initially hide the Unity container until loading is complete */
#unity-container {
    display: none; /* Will be changed to 'block' or 'flex' after fade out */
    width: 100%; /* Adjust these based on your desired game display size */
    height: 100%; /* Adjust these based on your desired game display size */
}

/* Ensure the canvas fills the container if container is set to 100% */
#unity-canvas {
    width: 100%;
    height: 100%;
}

/* Hide default Unity loading bar elements just in case they are still rendered */
#unity-loading-bar {
    display: none !important;
}

#unity-progress-bar-empty {
    display: none !important;
}
/* Keep the warning banner but ensure it's positioned correctly if visible */
#unity-warning {
    /* You might need to adjust the positioning if you want it over the video initially */
}

#unity-footer {
    display: none !important;
}

/* Add or keep any other styles you want from the default template's style.css here */
