#container3dmodel{
    width: 200px;
    height: 200px;
    position: fixed;
    z-index: 999999;
    margin-top: 0px;
}

.boxLoading {
    position: fixed; /* Fija el contenedor en toda la pantalla */
    top: 0;
    left: 0;
    height: 100vh; /* Asegura que ocupe todo el viewport */
    width: 100vw;
    z-index: 9999; /* Asegura que esté sobre todo el contenido */
    background-color: rgba(0, 0, 0, 0.8); /* Fondo semitransparente opcional */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out; /* Transición suave */
}

.boxLoading.hidden {
    opacity: 0;
    pointer-events: none; /* Evita interacciones */
}

#mainContent {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#mainContent[style="visibility: visible;"] {
    opacity: 1;
}

.loading{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ring{
    width: 200px;
    height: 200px;
    border: 0px solid #011015;
    border-radius: 50%;
    position: absolute;
}

.ring:nth-child(1){
    border-bottom-width: 8px;
    border-color: #5858ED;
    animation: rotate1 2s linear infinite;
}

.ring:nth-child(2){
    border-right-width: 8px;
    border-color: #5858ED;
    animation: rotate2 2s linear infinite;
}

.ring:nth-child(3){
    border-top-width: 8px;
    border-color: #5858ED;
    animation: rotate3 2s linear infinite;
}

.loadingText{
    color: white;
    margin-top: 80px;
}

@keyframes rotate1{
    0%{
        transform: rotatex(35deg) rotateY(-45deg) rotateZ(0deg);
    }
    100%{
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@keyframes rotate2{
    0%{
        transform: rotatex(50deg) rotateY(10deg) rotateZ(0deg);
    }
    100%{
        transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@keyframes rotate3{
    0%{
        transform: rotatex(35deg) rotateY(55deg) rotateZ(0deg);
    }
    100%{
        transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}

.flex{
    display: flex;
}