/* Parent container for canvas and overlay */
.viewer-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Prevent scrollbars if content exceeds bounds */
}

/* 3D Viewer Canvas */
#viewer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Loading Overlay */
#loadingDiv {
    display: flex; /* Flexbox for centering content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    position: absolute; /* Overlay above the canvas */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black; /* Match canvas background */
    z-index: 10; /* Ensure it appears above the canvas */
}

/* Loading GIF */
#loadingDiv img {
    max-height: 80%; /* Responsive size */
    max-width: 80%;
}