* {
    padding: 0;
    margin: 0;
}

#leyenda-wrapper {
    display: grid;
    place-items: center;
    width: 100%;
}

#leyenda-units-wrapper {
    position: absolute;
    display: grid;
    bottom: 5rem;
    right: 5rem;
    z-index: 2;
    height: 25rem;
    width: 25rem;
}

#leyenda-units-wrapper > img {
    width: 100%;
    height: 100%;
}

/* responsive para leyenda-units-wrapper */
@media only screen and (max-width: 1024px) {
    #leyenda-units-wrapper {
        bottom: 4rem;
        left: 1.5rem;
        height: 17rem;
        width: 17rem;
    }
}

/* responsive para leyenda-units-wrapper */
@media only screen and (max-width: 886px) {
    #leyenda-units-wrapper {
        bottom: 2.5rem;
        right: 1rem;
        height: 15rem;
        width: 15rem;
        transition: all ease 0.2s;
    }

    #leyenda-units-wrapper:hover {
        scale: 1.2;
    }
}

@media only screen and (max-width: 414px) {
    #leyenda-units-wrapper {
        bottom: 0.5rem;
        right: 0.5rem;
        height: 12rem;
        width: 12rem;
    }
}

@media only screen and (max-height: 690px) {
    #leyenda-units-wrapper {
        bottom: 0.5rem;
        left: 0.5rem;
        height: 20rem;
        width: 20rem;
    }
}

#menu {
    position: absolute;
    display: grid;
    grid-template-columns: 50% 50%;
    place-items: center;
    /* TODO right: 0; */
    right: 15rem;
    padding: 10px;
    z-index: 1;
    transition: all ease 1s;
}


.leyenda {
    bottom: 5.5rem;
    /* right: 0.5rem; */
    position: absolute;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 0.5rem;
    padding: 0.8rem 1rem;
    display: grid;
    grid-auto-flow: column;
}

.leyenda .wrapper-content {
    display: grid;
    justify-items: center;
    align-items: center;
    width: 5.5rem;
}

.leyenda img {
    cursor: pointer;
    transition: transform .2s;

}

.leyenda img:hover {
    transform: scale(1.2);
}

.mobile .leyenda {
    bottom: 0.8rem;
    right: 0.8rem;

    z-index: 1100;
}

.marker-title {
    top: -12px;
    position: absolute;
    left: -7px;
    /* TODO: Set project color dynamically      DO NOT REMOVE THIS */
    border: 1px solid #ffffff;
    background-color: #ffffff;
    padding: 5px;
    border-radius: 5px;
    color: #fff;
    font-weight: 500;
    width: 30px;
    text-align: center;
    font-size: 10px;
}

.marker-title > span {
    color: black;
}

#loader {
    transition: opacity 1s ease-out;
    position: fixed;
    width: 100%;
    height: 100vh;
    opacity: 0;
    overflow: hidden;
    /* TODO: Set project color dynamically      DO NOT REMOVE THIS */
    background-color: #da9804;
    z-index: 999;
    display: grid;
    place-items: center;
}

#loader.active {
    transition: opacity 1s ease-out;
    opacity: 1;
    position: fixed;
    width: 100%;
    height: 100vh;
    /* TODO: Set project color dynamically      DO NOT REMOVE THIS */
    background: #da9804;
    z-index: 999;
    display: grid;
    place-items: center;
}

.loader-spinner {
    position: relative;
    width: 48px;
    height: 48px;
    /* TODO: Set project color dynamically      DO NOT REMOVE THIS */
    background: #da9804; 
    transform: rotateX(65deg) rotate(45deg);
    /* remove bellows command for perspective change */
    transform: perspective(200px) rotateX(65deg) rotate(45deg);
    color: #fff;
    animation: layers1 1s linear infinite alternate;
}

.loader-spinner:after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    animation: layerTr 1s linear infinite alternate;
}

@keyframes layers1 {
    0% {
        box-shadow: 0px 0px 0 0px
    }

    90%,
    100% {
        box-shadow: 20px 20px 0 -4px
    }
}

@keyframes layerTr {
    0% {
        transform: translate(0, 0) scale(1)
    }

    100% {
        transform: translate(-25px, -25px) scale(1)
    }
}

.camera-icon-wrapper {
    cursor: pointer;
}

.camera-icon-wrapper img {
    transition: 0.3s;
}

.camera-icon-wrapper:hover img {
    scale: 1.2;
}

#menu>img {
    cursor: pointer;
    margin: 0.2rem;
    transition: transform .2s;
}

#menu>img:hover {
    transform: scale(1.1);
}

@media only screen and (max-width: 886px) {
    #leyenda-wrapper {
        display: none;
    }

    #menu {
        right: 1rem;
        transition: all ease 1s;
    }

    
}

@media only screen and (max-width: 414px) {
    #leyenda-wrapper {
        display: none;
    }
}

/* Tooltip */

.link-hotspot-gv-tooltip {
    position: absolute;
    display: grid;
    place-items: center;
    bottom: 70px;
    right: 0;
    /* margin-left: -50px; */
    font-size: 14px;
    width: 350px;
    padding: 8px 10px;
    border-radius: 5px;
    background-color: rgba(16, 24, 47, 0);
    background-color: rgba(16, 24, 47, 0.7);
    color: #fff;
    /* word-wrap: break-word; */
    /* text-overflow: ellipsis; */
    overflow: hidden;
    /* cursor: pointer; */
    opacity: 0;
    -ms-transform: translateX(-8px);
    -webkit-transform: translateX(-8px);
    transform: translateX(-8px);
    -webkit-transition: -ms-transform 0.3s,
        -webkit-transform 0.3s,
        transform 0.3s,
        opacity 0.3s;
    transition: -ms-transform 0.3s,
        -webkit-transform 0.3s,
        transform 0.3s,
        opacity 0.3s;
    z-index: 10000 !important;
}

.link-hotspot-gv:hover .link-hotspot-gv-tooltip {
    opacity: 1;
    -ms-transform: translateX(0);
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

/* Prevent tooltip from triggering */
.link-hotspot-gv-tooltip {
    pointer-events: none;
}

.no-touch .link-hotspot-gv:hover .link-hotspot-gv-tooltip {
    pointer-events: all;
}

/* Fallback mode without pointer-events (IE8-10) */
.tooltip-fallback .link-hotspot-gv-tooltip {
    display: none;
}

.no-touch .tooltip-fallback .link-hotspot-gv:hover .link-hotspot-gv-tooltip {
    display: block;
}