#pano {
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-transition: -webkit-filter 0.2s linear;
    transition: -webkit-filter 0.2s linear;
    transition: filter 0.2s linear;
    transition: filter 0.2s linear, -webkit-filter 0.2s linear;
}

#pano.enabled {
    display: block;
}

#pano.blur canvas {
    filter: blur(4px);
    -webkit-filter: blur(4px);
    -moz-filter: blur(4px);
    -o-filter: blur(4px);
    -ms-filter: blur(4px);
}

#titleBar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-color: var(--dark-color);
    border-bottom: 1.5px solid var(--accent-color);
    text-align: center;
    -webkit-transition: opacity 0.15s, top 0.2s;
    transition: opacity 0.15s, top 0.2s;
    z-index: 1004;
    overflow: visible;
}

.mobile:not(.fullscreen) #titleBar {
    border-top: 0.5px solid var(--light-color);
}

#titleBar .sceneName {
    width: 100%;
    height: 100%;
    line-height: 30px;
    padding: 5px;
    padding-right: 45px;
    padding-left: 45px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

.snow #titleBar .sceneName,
.vr #titleBar .sceneName {
    padding-left: 85px;
}

.touch.tour.vr.fullscreen:not(.noClickNextTour) #titleBar .sceneName,
.touch.tour.clickNextTour.fullscreen #titleBar .sceneName,
.touch.tour.noHotspot.fullscreen:not(.noClickNextTour) #titleBar .sceneName {
    padding-right: 85px;
}


/* show if disabled but still active */

.touch.tour.vr:not(.fullscreen).mfs #titleBar .sceneName {
    padding-right: 85px;
}

body:not(.touch).fullscreen #titleBar {
    top: -30px;
    opacity: 0;
}

body:not(.touch).fullscreen #titleBar:hover {
    top: 0px;
    opacity: 1;
}

.touch.fullscreen #titleBar {
    -webkit-transition: opacity 0.2s;
    transition: opacity 0.2s;
    opacity: 1;
}

.mfs #titleBar {
    display: none;
}


/* Link hotspot */

.link-hotspot {
    width: 60px;
    height: 60px;
    margin-left: -30px;
    margin-top: -30px;
    opacity: 0.9;
    -webkit-transition: opacity 0.2s;
    transition: opacity 0.2s;
}

.no-touch .link-hotspot:hover {
    opacity: 1;
}

.mobile .link-hotspot {
    width: 70px;
    height: 70px;
}

.link-hotspot-icon {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.link-hotspot-tooltip {
    position: absolute;
    left: 100%;
    top: 14px;
    /* ( 60 - (16 + 2*8) ) / 2 */
    margin-left: 0px;
    font-size: 16px;
    max-width: 300px;
    padding: 8px 10px;
    border-radius: 5px;
    background-color: var(--tooltip-color);
    background-color: var(--tooltip-color-trans);
    color: var(--text-color);
    border-width: 1px;
    border-color: var(--dark-color);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    -webkit-transform: translateX(-8px);
    transform: translateX(-8px);
    -webkit-transition: -ms-transform 0.3s, -webkit-transform 0.3s, transform 0.3s, opacity 0.3s;
    transition: -webkit-transform 0.3s, transform 0.3s, opacity 0.3s;
}

.mobile .link-hotspot-tooltip {
    top: 19px;
    /* ( 70 - (16 + 2*8) ) / 2 */
}

.no-touch .link-hotspot:hover .link-hotspot-tooltip {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}


/* hide hotspots on tour */


/*
.tour .link-hotspot {
display: none !important;
}
*/


/* 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 {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: var(--dark-color);
    border-bottom: 0 solid var(--accent-color);
    cursor: pointer;
    -webkit-transition: width 0.3s ease-in-out 0.5s, border-radius 0.3s ease-in-out 0.5s, border-width 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, border-width 0.3s ease-in-out 0.5s;
}

.mobile .info-hotspot .info-hotspot-header {
    width: 50px;
    height: 50px;
    border-radius: 25px;
}

.desktop .info-hotspot.visible .info-hotspot-header,
.desktop.no-touch .info-hotspot .info-hotspot-header:hover {
    border-bottom-width: 1.5px;
}

.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;
}

.info-hotspot-title-wrapper,
.info-hotspot-close-wrapper {
    background-color: var(--dark-color);
    border-bottom: 1.5px solid var(--accent-color);
}

.info-hotspot-close-wrapper.mobile {
    border-bottom: none;
}

.info-hotspot .info-hotspot-icon-wrapper {
    width: 40px;
    height: 40px;
}

.mobile .info-hotspot .info-hotspot-icon-wrapper {
    width: 50px;
    height: 50px;
}

.info-hotspot .info-hotspot-icon {
    width: 90%;
    height: 90%;
    margin: 5%;
}

.info-hotspot .info-hotspot-title-wrapper {
    position: absolute;
    left: 40px;
    top: 0;
    width: 0;
    height: 40px;
    padding: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    overflow: hidden;
    -webkit-transition: width 0s 0.4s, padding 0s 0.4s, border-top-right-radius 0.3s 0.3s ease-in-out, border-bottom-right-radius 0.3s 0.3s ease-in-out;
    transition: width 0s 0.4s, padding 0s 0.4s, border-top-right-radius 0.3s 0.3s ease-in-out, border-bottom-right-radius 0.3s 0.3s ease-in-out;
}

.desktop .info-hotspot.visible .info-hotspot-title-wrapper {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.desktop .info-hotspot.visible .info-hotspot-title-wrapper {
    -webkit-transition: width 0s 0.4s, padding 0s 0.4s !important;
    transition: width 0s 0.4s, padding 0s 0.4s !important;
}

.desktop .info-hotspot.visible .info-hotspot-title-wrapper,
.desktop.no-touch .info-hotspot .info-hotspot-header:hover .info-hotspot-title-wrapper {
    width: 221px;
    padding: 0 5px;
}

.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;
    visibility: hidden;
    -webkit-transform: perspective(200px) rotateY(90deg);
    transform: perspective(200px) rotateY(90deg);
    -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: -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;
    -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: -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: var(--back-color);
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    overflow-y: auto;
    visibility: hidden;
    /* rotate(90deg) causes transition flicker on Firefox 58 */
    -webkit-transform: perspective(200px) rotateX(-89.999deg);
    transform: perspective(200px) rotateX(-89.999deg);
    -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: -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;
    -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: -webkit-transform 0.3s 0.3s, transform 0.3s 0.3s, visibility 0s 0s;
}


/* Info hotspot modal */

.desktop .info-hotspot-modal {
    display: none;
}

.info-hotspot-modal {
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 11000;
    background-color: var(--black-color);
    background-color: var(--transparent);
    line-height: 1.2em;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.2s ease-in-out 0.5s, visibility 0s 0.7s;
    transition: opacity 0.2s ease-in-out 0.5s, visibility 0s 0.7s;
}

.info-hotspot-modal.visible {
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity 0.2s ease-in-out, visibility 0s 0s;
    transition: opacity 0.2s ease-in-out, visibility 0s 0s;
}

.info-hotspot-modal .info-hotspot-header {
    position: absolute;
    top: 60px;
    left: 10px;
    right: 10px;
    width: auto;
    height: 50px;
    background-color: var(--dark-color);
    opacity: 0;
    -webkit-transition: opacity 0.3s ease-in-out 0.2s;
    transition: opacity 0.3s ease-in-out 0.2s;
}

.info-hotspot-modal.visible .info-hotspot-header {
    opacity: 1;
    -webkit-transition: opacity 0.3s ease-in-out 0.2s;
    transition: opacity 0.3s ease-in-out 0.2s;
}

.info-hotspot-modal .info-hotspot-icon-wrapper {
    width: 50px;
    height: 50px;
    border-bottom: 1.5px solid var(--accent-color);
}

.info-hotspot-modal .info-hotspot-icon {
    width: 90%;
    height: 90%;
    margin: 5%;
}

.info-hotspot-modal .info-hotspot-title-wrapper {
    position: absolute;
    top: 0;
    left: 50px;
    right: 50px;
    width: auto;
    height: 50px;
    padding: 0 10px;
}

.info-hotspot-modal .info-hotspot-title-wrapper:before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    height: 100%;
}

.info-hotspot-modal .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-modal .info-hotspot-close-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background-color: var(--dark-color);
    cursor: pointer;
}

.info-hotspot-modal .info-hotspot-close-icon {
    width: 70%;
    height: 70%;
    margin: 15%;
    background-color: var(--dark-color);
}

.info-hotspot-modal .info-hotspot-text {
    position: absolute;
    top: 110px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 10px;
    background-color: var(--back-color);
    overflow-y: auto;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
    -moz-user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.info-hotspot-modal.visible .info-hotspot-text {
    opacity: 1;
    -webkit-transition: opacity 0.3s ease-in-out 0.4s;
    transition: opacity 0.3s ease-in-out 0.4s;
}


/* VR VIEW */

#vrView {
    position: absolute;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1000;
}

#vrView.enabled {
    display: block;
}


/* NO HOTSPOT */

.noHotspot:not(.hideAll) .link-hotspot,
.noHotspot:not(.hideAll) .info-hotspot,
.noHotspotTour .hotspot-hideable {
    display: none !important;
}


/* UP TO DATE  UTD */

#notUpToDate {
    display: none;
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 5px;
    padding-bottom: 7px;
    padding-right: 7px;
    background-color: var(--trans-color);
    color: white;
    z-index: 1000;
}

#notUpToDate.enabled {
    display: block;
}

.mfs #notUpToDate {
    display: none !important;
}


/* HIDE TITLE BAR TOUR */

#hideTitleBarTour {
    display: none;
    position: absolute;
    top: 0;
    right: 40px;
    width: 40px;
    height: 40px;
    padding: 5px;
    z-index: 1005;
    cursor: pointer;
}

.touch.tour.vr.fullscreen:not(.noClickNextTour) #hideTitleBarTour,
.touch.tour.clickNextTour.fullscreen #hideTitleBarTour,
.touch.tour.noHotspot.fullscreen:not(.noClickNextTour) #hideTitleBarTour {
    display: block;
}


/* show if disabled but still active */

.touch.tour.vr:not(.fullscreen).mfs #hideTitleBarTour {
    display: block;
}

#hideTitleBarTour .icon {
    position: absolute;
    width: 30px;
    height: 30px;
}

#hideTitleBarTour .icon.on {
    display: none;
}

#hideTitleBarTour .icon.off {
    display: block;
}

#hideTitleBarTour.enabled .icon.on {
    display: block;
}

#hideTitleBarTour.enabled .icon.off {
    display: none;
}