
:not(:defined) > * {
    display: none;
}

model-viewer {
    background-color: transparent;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

#model_stage model-viewer {
    z-index: 0;
    /* opacity: 0;
    transition: opacity 1s; */
}

#model_stage model-viewer button.hotspot {
    position: relative;
    width: 20px; height: 20px;
    background-color: var(--main-master-color);
    border: 2px solid #fff;
    cursor: pointer;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s;
}

#model_stage model-viewer button.hotspot::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%; 
    transform: translate(-50%,-50%);
    width: 40px; height: 40px;
    background-color: rgba(0,0,0,0.0);
    border-radius: 50px;
    cursor: pointer;
}

body.infospots #model_stage model-viewer button.hotspot {
    opacity: 1;
}

body.infospots #model_stage model-viewer button.hotspot.active {
    animation: hspulseAnim infinite 1.3s;
}

@keyframes hspulseAnim {
    0% { transform: scale(0.9); opacity: 1; }
    20% { transform: scale(1.3); opacity: 0.3; }
    25% { transform: scale(1.3); opacity: 0.3; }
    100% { transform: scale(0.9); opacity: 1; }
}

.svg_hs_link {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

body:not(.item_model).catalog.infospots  .svg_hs_link {
    opacity: 1;
}

.svg_hs_link line {
    opacity: 0.5;
}

