body {
    margin: 0px;
    background-color: #DBDBDB;
}

canvas {
    all: unset;
}

#three-canvas {
    all: unset;
    width: 100vw;
    height: 100vh;
    opacity: 0;
}

#label-renderer {
    visibility: hidden;
}

/* HTML: <div class="loader"></div> */
.loader {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-100%, -50%);
    --s: 20px;

    --_d: calc(0.353*var(--s));
    width: calc(var(--s) + var(--_d));
    aspect-ratio: 1;
    display: grid;
}

.loader:before,
.loader:after {
    content: "";
    grid-area: 1/1;
    clip-path: polygon(var(--_d) 0, 100% 0, 100% calc(100% - var(--_d)), calc(100% - var(--_d)) 100%, 0 100%, 0 var(--_d));
    background:
        conic-gradient(from -90deg at calc(100% - var(--_d)) var(--_d),
            #fff 135deg, #666 0 270deg, #aaa 0);
    animation: l6 2s infinite;
}

.loader:after {
    animation-delay: -1s;
}

@keyframes l6 {
    0% {
        transform: translate(0, 0)
    }

    25% {
        transform: translate(30px, 0)
    }

    50% {
        transform: translate(30px, 30px)
    }

    75% {
        transform: translate(0, 30px)
    }

    100% {
        transform: translate(0, 0)
    }
}

.fixed {
    position: fixed;
    left: 0px;
    top: 0px;
}

#prompt-div {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0px;
    top: 0px;
}

#infospot-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999999;
}

.infospot {
    position: relative;
    z-index: 100;
    transition: opacity 0.2s;
}

.infospot-sign {
    /* width: 40px;
    cursor: pointer;
    animation: beat-inner 1.6s ease-in-out infinite;
    position: relative;
    z-index: 1; */
    width: 18px;
    height: 18px;
    border: 1px solid #1647e2;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: beat-inner 1.6s ease-in-out infinite;

}

.infospot-sign-inside {
    width: 18px;
    height: 18px;
    background-color: #1647e2;
    border-radius: 50%;
    filter: blur(5px);
}

.infospot-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    background-color: #000;
    width: 300px;
    gap: 10px;
    padding: 15px;
    border-radius: 20px;
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) translateX(-10%) translateZ(0);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s, transform 0.5s;

}

.infospot-sign:hover+.infospot-content {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0%) translateZ(0);
}

.infospot-content:hover {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0%) translateZ(0);

}




.infospot-desc {
    color: #fff;
    font-family: sans-serif;
    font-size: 14px;
}

.infospot-info {
    display: flex;
    width: 100%;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.infospot-logos {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 8px;
    /* optional */
    width: 80%;
    align-items: center;
    justify-items: start;
}

.infospot-logo-image {
    width: 100%;
    max-height: 60px;
    height: auto;
    object-fit: contain;
}

.infospot-info-image {
    width: 30px;
}

#tweakpaneUiContainer {
    z-index: 101 !important;
    position: fixed !important;
}

.disclaimer {
    position: fixed;
    left: 0px;
    bottom: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    width: 100%;
    font-family: sans-serif;
    z-index: 99999999;
    box-sizing: border-box;
    text-align: center;
}

.disclaimer a {
    color: #1647e2;
}

.disclaimer a:hover {
    text-decoration: underline;
}

@keyframes beat-inner {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    14% {
        transform: scale(1.25);
        opacity: 1;
    }

    28% {
        transform: scale(1);
        opacity: 0.85;
    }

    42% {
        transform: scale(1.2);
        opacity: 1;
    }

    70% {
        transform: scale(1);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}


@media (max-width:768px) {

    .infospot-content {
        width: 80vw;
        height: fit-content;
        top: unset;
        transform: translate(-50%, 50%);
    }

    .disclaimer {
        font-size: 14px;
    }

}