/* Link hotspot */

.link-hotspot {
    /* margin-left: -50%;
    margin-top: -50%; */
    opacity: 0.9;
    -webkit-transition: opacity 0.2s;
    transition: opacity 0.2s;
}

.link-hotspot-icon {
    width: 100%;
    height: 100%;
    font-size: 40px;
    cursor: pointer;
}

.link-hotspot-image {
    cursor: pointer;
    margin-left: -50%;
    /* margin-top: -50%; */
}

.link-hotspot-tooltip {
    position: absolute;
    left: 100%;
    top: 14px; /* ( 60 - (16 + 2*8) ) / 2 */

    margin-left: 3px;

    font-size: 16px;

    max-width: 300px;

    padding: 8px 10px;

    border-radius: 5px;

    background-color: rgb(58, 68, 84);
    background-color: rgba(58, 68, 84, 0.8);

    color: #fff;

    white-space: nowrap;
    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;
}

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

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

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

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

/* Info hotspot */

.info-hotspot {
    line-height: 1.2em;
    opacity: 0.9;
    -webkit-transition: opacity 0.2s 0.2s;
    transition: opacity 0.2s 0.2s;
}

.no-touch .info-hotspot:hover {
    opacity: 1;
    -webkit-transition: opacity 0.2s;
    transition: opacity 0.2s;
}

.info-hotspot.visible {
    opacity: 1;
}

.info-hotspot .info-hotspot-header {
    /* margin-left: -50%;
    margin-top: -50%; */
    cursor: pointer;
    -webkit-transition: width 0.3s ease-in-out 0.5s,
        border-radius 0.3s ease-in-out 0.5s;
    transition: width 0.3s ease-in-out 0.5s, border-radius 0.3s ease-in-out 0.5s;
}

.mobile .info-hotspot .info-hotspot-header {
    width: 50px;
    height: 50px;
    border-radius: 25px;
}

.desktop.no-touch .info-hotspot .info-hotspot-header:hover {
    width: 260px;
    border-radius: 5px;
    -webkit-transition: width 0.3s ease-in-out, border-radius 0.3s ease-in-out;
    transition: width 0.3s ease-in-out, border-radius 0.3s ease-in-out;
}

.desktop .info-hotspot.visible .info-hotspot-header,
.desktop.no-touch .info-hotspot.visible .info-hotspot-header:hover {
    width: 260px;
    border-radius: 5px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    -webkit-transition: width 0.3s ease-in-out, border-radius 0.3s ease-in-out;
    transition: width 0.3s ease-in-out, border-radius 0.3s ease-in-out;
}

.info-hotspot .info-hotspot-icon-wrapper {
    width: 3.5em;
    height: 3.5em;
    background: rgb(121, 121, 121);
    border-radius: 100%;
    position: relative;
}

.info-hotspot .animation-pulse-black {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
    transform: scale(1);
    animation-name: pulse, ripple-black;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}


.info-hotspot .animation-pulse-red {
    box-shadow: 0 0 0 0 rgba(227, 0, 89, 1);
    transform: scale(1);
    animation-name: pulse, ripple-red;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.info-hotspot .animation-no-pulse-red {
    animation-name: ripple-red;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.info-hotspot .info-hotspot-icon {
    left: 45%;
    height: 50%;
    width: 50%;
    position: absolute;
    top: 45%;
    transform: translate(-50%, -50%);
}

.info-hotspot .info-hotspot-icon .mobile{
    margin-left: -50%;
    margin-top: -50%;
}


.info-hotspot .info-hotspot-image-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 100%;
    background-color:rgba(21,21,21,0.2);
    position: relative;
}

.info-hotspot-image-wrapper.mobile {
    margin-left: -50%;
    margin-top: -50%;
}

.info-hotspot .info-hotspot-image {
    /* transform: translate(-25%, -25%); */
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
    }

    30% {
        transform: scale(1);
    }

    100% {
        transform: scale(0.8);
    }
}

@keyframes ripple-red {
    0% {

        box-shadow: 0 0 0 0px rgba(227, 0, 89, 0.2);
    }

    60% {
        box-shadow: 0 0 0px 8px rgba(227, 0, 89, 0.7);
    }

    100% {
        box-shadow: 0 0 0 0px rgba(227, 0, 89, 0.2);
    }
}

@keyframes ripple-black {
    0% {
        box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2);
    }

    60% {
        box-shadow: 0 0 0px 8px rgba(0, 0, 0, 0.7);
    }

    100% {
        box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2);
    }
}

.info-hotspot .info-hotspot-title-wrapper {
    position: absolute;
    left: 40px;
    top: 0;
    width: 0;
    height: 40px;
    padding: 0;
    overflow: hidden;
    -webkit-transition: width 0s 0.4s, padding 0s 0.4s;
    transition: width 0s 0.4s, padding 0s 0.4s;
}

.desktop .info-hotspot.visible .info-hotspot-title-wrapper,
.desktop.no-touch
    .info-hotspot
    .info-hotspot-header:hover
    .info-hotspot-title-wrapper {
    width: 220px;
    padding: 0 5px;
    -webkit-transition: width 0s 0.4s, padding 0s 0.4s;
    transition: width 0s 0.4s, padding 0s 0.4s;
}

.info-hotspot .info-hotspot-title-wrapper:before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    height: 100%;
}

.info-hotspot .info-hotspot-title {
    display: inline-block;
    vertical-align: middle;

    -moz-user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.info-hotspot .info-hotspot-close-wrapper {
    position: absolute;
    left: 260px;
    top: 0;
    height: 40px;
    width: 40px;
    border-top-right-radius: 5px;
    background-color: rgb(78, 88, 104);
    visibility: hidden;
    -ms-transform: perspective(200px) rotateY(90deg);
    -webkit-transform: perspective(200px) rotateY(90deg);
    transform: perspective(200px) rotateY(90deg);
    -ms-transform-origin: 0 50% 0;
    -webkit-transform-origin: 0 50% 0;
    transform-origin: 0 50% 0;
    -webkit-transition: -ms-transform 0.3s 0.3s, -webkit-transform 0.3s 0.3s,
        transform 0.3s 0.3s, visibility 0s 0.6s;
    transition: -ms-transform 0.3s 0.3s, -webkit-transform 0.3s 0.3s,
        transform 0.3s 0.3s, visibility 0s 0.6s;
}

.desktop .info-hotspot.visible .info-hotspot-close-wrapper {
    visibility: visible;
    -ms-transform: perspective(200px) rotateY(0deg);
    -webkit-transform: perspective(200px) rotateY(0deg);
    transform: perspective(200px) rotateY(0deg);
    -webkit-transition: -ms-transform 0.3s, -webkit-transform 0.3s,
        transform 0.3s, visibility 0s 0s;
    transition: -ms-transform 0.3s, -webkit-transform 0.3s, transform 0.3s,
        visibility 0s 0s;
}

.info-hotspot .info-hotspot-close-icon {
    width: 70%;
    height: 70%;
    margin: 15%;
}

.info-hotspot .info-hotspot-text {
    position: absolute;
    width: 300px;
    height: auto;
    max-height: 200px;
    top: 40px;
    left: 0;
    padding: 10px;
    background-color: rgb(58, 68, 84);
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    overflow-y: auto;
    visibility: hidden;
    /* rotate(90deg) causes transition flicker on Firefox 58 */
    -ms-transform: perspective(200px) rotateX(-89.999deg);
    -webkit-transform: perspective(200px) rotateX(-89.999deg);
    transform: perspective(200px) rotateX(-89.999deg);
    -ms-transform-origin: 50% 0 0;
    -webkit-transform-origin: 50% 0 0;
    transform-origin: 50% 0 0;
    -webkit-transition: -ms-transform 0.3s, -webkit-transform 0.3s,
        transform 0.3s, visibility 0s 0.3s;
    transition: -ms-transform 0.3s, -webkit-transform 0.3s, transform 0.3s,
        visibility 0s 0.3s;

    -moz-user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.desktop .info-hotspot.visible .info-hotspot-text {
    visibility: visible;
    -ms-transform: perspective(200px) rotateX(0deg);
    -webkit-transform: perspective(200px) rotateX(0deg);
    transform: perspective(200px) rotateX(0deg);
    -webkit-transition: -ms-transform 0.3s 0.3s, -webkit-transform 0.3s 0.3s,
        transform 0.3s 0.3s, visibility 0s 0s;
    transition: -ms-transform 0.3s 0.3s, -webkit-transform 0.3s 0.3s,
        transform 0.3s 0.3s, visibility 0s 0s;
}

@media (min-width: 992px) {
    .link-hotspot {
        margin-top: -100%;
    }

    .link-hotspot-icon {
        font-size: 60px;
    }

    .info-hotspot .info-hotspot-icon {
        font-size: 2em;
    }

    .info-hotspot .info-hotspot-header {
        margin-top: -50%;
        margin-left: -60%;
    }
}
