* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -ms-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -ms-content-zooming: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  background-color: #000;
  color: #fff;
}

:root {
  --glass-bg-strong: rgba(74, 90, 112, 0.66);
  --glass-bg-soft: rgba(54, 66, 84, 0.56);
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-highlight: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  --glass-blur: blur(12px);
}

a, a:hover, a:active, a:visited {
  text-decoration: none;
  color: inherit;
}

#pano {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#compass {
  position: absolute;
  top: 188px;
  right: 0;
  left: auto;
  width: 44px;
  height: 44px;
  z-index: 2000;
  pointer-events: none;
  overflow: visible;
  -ms-transform: none;
  -webkit-transform: none;
  transform: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,.35), inset 0 1px 1px rgba(255,255,255,.2);
}

#compassNeedle {
  width: 100%;
  height: 100%;
  overflow: visible;
  -ms-transform-origin: center center;
  -webkit-transform-origin: center center;
  transform-origin: center center;
  -webkit-transition: -webkit-transform 0.05s linear;
  transition: transform 0.05s linear;
}

@media (max-width: 700px), (max-height: 500px) {
  #compass {
    top: 160px;
    right: 0;
    left: auto;
    width: 37px;
    height: 37px;
  }
}

body.fullscreen-disabled #compass {
  top: 128px;
}

body.fullscreen-disabled.mobile #compass {
  top: 108px;
}

#titleBar {
  position: absolute;
  top: 0;
  left: 0;
  right: 48px;
  height: 40px;
  text-align: center;
}

.mobile #titleBar {
  height: 50px;
  right: 42px;
}

/* Title bar keeps a single icon column free on the right side. */
body.fullscreen-enabled #titleBar {
  right: 48px;
}

body.fullscreen-enabled.mobile #titleBar {
  right: 42px;
}

/* If there are multiple scenes the title bar must make space for the scene list toggle */
body.multiple-scenes #titleBar {
  left: 40px;
}

body.multiple-scenes.mobile #titleBar {
  left: 50px;
}

#titleBar .sceneName {
  width: 100%;
  height: 100%;
  line-height: 30px;
  padding: 5px;
  background-color: rgb(58,68,84);
  background-color: rgba(58,68,84,0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

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

.mobile #titleBar .sceneName {
  line-height: 40px;
}

#fullscreenToggle {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background-color: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

.mobile #fullscreenToggle {
  width: 42px;
  height: 42px;
}

body.fullscreen-enabled #fullscreenToggle {
  display: block;
}

#fullscreenToggle .icon {
  position: absolute;
  top: 50%;
  right: auto;
  left: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  margin-left: -14px;
}

.mobile #fullscreenToggle .icon {
  width: 24px;
  height: 24px;
  margin-top: -12px;
  margin-left: -12px;
}

#fullscreenToggle .icon.on {
  display: none;
}

#fullscreenToggle .icon.off {
  display: block;
}

#fullscreenToggle.enabled .icon.on {
  display: block;
}

#fullscreenToggle.enabled .icon.off {
  display: none;
}

#autorotateToggle {
  display: block;
  position: absolute;
  top: 120px;
  right: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background-color: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

.mobile #autorotateToggle {
  top: 104px;
  width: 42px;
  height: 42px;
}

#refreshToggle {
  display: block;
  position: absolute;
  top: 60px;
  right: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background-color: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

#refreshToggle .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  margin-left: -15px;
  filter: brightness(0) invert(1);
}

.mobile #refreshToggle {
  top: 52px;
  right: 0;
  width: 42px;
  height: 42px;
}

.mobile #refreshToggle .icon {
  width: 28px;
  height: 28px;
  margin-top: -14px;
  margin-left: -14px;
}

.no-touch #refreshToggle:hover,
#refreshToggle:active {
  background-color: rgba(126, 142, 167, 0.78);
}

/* Without fullscreen icon, move controls up so they still start from top. */
body.fullscreen-disabled #refreshToggle {
  top: 0;
}

body.fullscreen-disabled.mobile #refreshToggle {
  top: 0;
}

body.fullscreen-disabled #autorotateToggle {
  top: 60px;
}

body.fullscreen-disabled.mobile #autorotateToggle {
  top: 52px;
}

#autorotateToggle .icon {
  position: absolute;
  top: 50%;
  right: auto;
  left: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  margin-left: -14px;
}

.mobile #autorotateToggle .icon {
  width: 24px;
  height: 24px;
  margin-top: -12px;
  margin-left: -12px;
}

#autorotateToggle .icon.on {
  display: none;
}

#autorotateToggle .icon.off {
  display: block;
}

#autorotateToggle.enabled .icon.on {
  display: block;
}

#autorotateToggle.enabled .icon.off {
  display: none;
}

#sceneListToggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background-color: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

.mobile #sceneListToggle {
  width: 42px;
  height: 42px;
}

#sceneListToggle .text {
  position: absolute;
  top: 5px;
  left: 15px;
  width: 100%;
  line-height: 30px;
}

#sceneListToggle .icon {
  position: absolute;
  top: 50%;
  right: auto;
  left: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  margin-left: -14px;
}

.mobile #sceneListToggle .icon {
  width: 24px;
  height: 24px;
  margin-top: -12px;
  margin-left: -12px;
}

#sceneListToggle .icon.on {
  display: none;
}

#sceneListToggle .icon.off {
  display: block;
}

#sceneListToggle.enabled .icon.on {
  display: block;
}

#sceneListToggle.enabled .icon.off {
  display: none;
}

#sceneList {
  position: absolute;
  top: 0;
  left: -220px;
  padding-top: 40px;
  width: 220px;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  margin-left: 0;
  -webkit-transition: margin-left 0.5s ease-in-out;
  transition: margin-left 0.5s ease-in-out;
}

.mobile #sceneList {
  padding-top: 50px;
}

#sceneList .scenes {
  width: 100%;
  background-color: rgb(58,68,84);
  background-color: rgba(58,68,84,0.8);
}

.mobile #sceneList {
  width: 100%;
  height: 100%;
  left: -100%;
}

.mobile #sceneList.enabled {
  margin-left: 100%;
}

.mobile #sceneList .scenes {
  height: 100%;
}

#sceneList.enabled {
  margin-left: 220px;
}

#sceneList .scene {
  display: block;
  width: 100%;
  height: 30px;
}

.mobile #sceneList .scene {
  height: 40px;
}

#sceneList .scene .text {
  width: 100%;
  height: 100%;
  padding: 0 15px;
  line-height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile #sceneList .scene .text {
  line-height: 40px;
}

.no-touch #sceneList .scene:hover {
  background-color: rgb(103,115,131);
  background-color: rgba(103,115,131,0.8);
}

#sceneList .scene.current {
  background-color: rgb(103,115,131);
  background-color: rgba(103,115,131,0.8);
}

/* Hide scene list when only a single scene exists */
body.single-scene #sceneList, body.single-scene #sceneListToggle {
  display: none;
}

/* Keep scene switch icon visible in mobile landscape from the start. */
body.single-scene.mobile.landscape #sceneListToggle {
  display: block;
}

/* 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: 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;
}

.mobile .link-hotspot {
  top: 19px; /* ( 70 - (16 + 2*8) ) / 2 */
}

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

/* 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;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background-color: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  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: 16px;
}

.desktop.no-touch .info-hotspot .info-hotspot-header:hover {
  width: 260px;
  border-radius: 14px;
  -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-right: 0;
  border-radius: 14px;
  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: 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%;
}

.rttec-hotspot {
  width: 76px;
  height: 76px;
  margin-left: -38px;
  margin-top: -38px;
  opacity: 0.96;
  overflow: visible;
  perspective: 900px;
}

.rttec-hotspot-link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: visible;
  cursor: pointer;
  transform-style: preserve-3d;
}

.rttec-hotspot-link:focus {
  outline: 2px solid rgba(159, 211, 255, 0.95);
  outline-offset: 2px;
}

.rttec-hotspot-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  -ms-transform-origin: center center;
  -webkit-transform-origin: center center;
  transform-origin: center center;
  will-change: transform;
}

.rttec-hotspot-image.is-animating {
  -webkit-animation: ritterspieleLogoJumpSpin 0.9s cubic-bezier(0.2, 0.85, 0.3, 1);
  animation: ritterspieleLogoJumpSpin 0.9s cubic-bezier(0.2, 0.85, 0.3, 1);
}

@-webkit-keyframes ritterspieleLogoJumpSpin {
  0% {
    -webkit-transform: translateY(0) translateZ(0) rotateX(0deg) rotate(0deg) scale(1);
    transform: translateY(0) translateZ(0) rotateX(0deg) rotate(0deg) scale(1);
  }
  35% {
    -webkit-transform: translateY(-30px) translateZ(44px) rotateX(-22deg) rotate(360deg) scale(1.12);
    transform: translateY(-30px) translateZ(44px) rotateX(-22deg) rotate(360deg) scale(1.12);
  }
  70% {
    -webkit-transform: translateY(-14px) translateZ(24px) rotateX(-10deg) rotate(560deg) scale(1.06);
    transform: translateY(-14px) translateZ(24px) rotateX(-10deg) rotate(560deg) scale(1.06);
  }
  100% {
    -webkit-transform: translateY(0) translateZ(0) rotateX(0deg) rotate(720deg) scale(1);
    transform: translateY(0) translateZ(0) rotateX(0deg) rotate(720deg) scale(1);
  }
}

@keyframes ritterspieleLogoJumpSpin {
  0% {
    -webkit-transform: translateY(0) translateZ(0) rotateX(0deg) rotate(0deg) scale(1);
    transform: translateY(0) translateZ(0) rotateX(0deg) rotate(0deg) scale(1);
  }
  35% {
    -webkit-transform: translateY(-30px) translateZ(44px) rotateX(-22deg) rotate(360deg) scale(1.12);
    transform: translateY(-30px) translateZ(44px) rotateX(-22deg) rotate(360deg) scale(1.12);
  }
  70% {
    -webkit-transform: translateY(-14px) translateZ(24px) rotateX(-10deg) rotate(560deg) scale(1.06);
    transform: translateY(-14px) translateZ(24px) rotateX(-10deg) rotate(560deg) scale(1.06);
  }
  100% {
    -webkit-transform: translateY(0) translateZ(0) rotateX(0deg) rotate(720deg) scale(1);
    transform: translateY(0) translateZ(0) rotateX(0deg) rotate(720deg) scale(1);
  }
}

.mobile .rttec-hotspot {
  width: 84px;
  height: 84px;
  margin-left: -42px;
  margin-top: -42px;
}

.churburg-hotspot {
  width: 72px;
  height: 72px;
  margin-left: -36px;
  margin-top: -36px;
  opacity: 0.97;
  overflow: visible;
  perspective: 800px;
}

.churburg-hotspot-link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: visible;
  cursor: pointer;
}

.churburg-hotspot-link:focus {
  outline: 2px solid rgba(255, 232, 168, 0.95);
  outline-offset: 2px;
}

.churburg-hotspot-spinner {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-animation: churburgLogoSpin 18s linear infinite;
  animation: churburgLogoSpin 18s linear infinite;
  will-change: transform;
}

.churburg-hotspot-image-face {
  position: absolute;
  top: 10%;
  left: 0;
  display: block;
  width: 100%;
  height: 80%;
  border-radius: 50%;
  object-fit: contain;
  -ms-transform-origin: center center;
  -webkit-transform-origin: center center;
  transform-origin: center center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.churburg-hotspot-image-back {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

@-webkit-keyframes churburgLogoSpin {
  from {
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
  }
  to {
    -webkit-transform: rotateY(360deg);
    transform: rotateY(360deg);
  }
}

@keyframes churburgLogoSpin {
  from {
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
  }
  to {
    -webkit-transform: rotateY(360deg);
    transform: rotateY(360deg);
  }
}

.mobile .churburg-hotspot {
  width: 78px;
  height: 78px;
  margin-left: -39px;
  margin-top: -39px;
}

@media (max-width: 700px), (max-height: 500px) {
  .mobile .info-hotspot .info-hotspot-icon-wrapper {
    width: 40px;
    height: 40px;
  }

  .mobile .info-hotspot .info-hotspot-header {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }
}

.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;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  box-sizing: border-box;
  border-top-right-radius: 14px;
  border: 1px solid var(--glass-border);
  border-left: 1px solid var(--glass-border);
  border-bottom: 0;
  background-color: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  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 {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  opacity: 0.9;
}

.desktop.no-touch .info-hotspot .info-hotspot-close-wrapper:hover .info-hotspot-close-icon {
  opacity: 1;
}

.info-hotspot .info-hotspot-text {
  position: absolute;
  width: 300px;
  height: auto;
  max-height: 200px;
  top: 40px;
  left: 0;
  padding: 10px;
  border: 1px solid var(--glass-border);
  border-top: 0;
  background-color: var(--glass-bg-soft);
  border-bottom-right-radius: 14px;
  border-bottom-left-radius: 14px;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  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;
}

.info-hotspot .info-hotspot-text a,
.info-hotspot-modal .info-hotspot-text a {
  color: #9fd3ff;
  text-decoration: underline;
  pointer-events: auto;
}

.info-hotspot-link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  background-color: rgba(255,255,255,0.12);
  cursor: pointer;
  -webkit-transition: background-color 0.2s ease, border-color 0.2s ease, -webkit-transform 0.2s ease;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.info-hotspot-link-button:hover,
.info-hotspot-link-button:focus {
  background-color: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
  -ms-transform: scale(1.08);
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
  outline: none;
}

.info-hotspot-link-icon {
  width: 28px;
  height: 28px;
}

.mobile .info-hotspot-link-button {
  width: 50px;
  height: 50px;
}

.mobile .info-hotspot-link-icon {
  width: 32px;
  height: 32px;
}

.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;
}

/* 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 !important;
  background-color: rgba(0,0,0,.5);
  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: 50%;
  width: min(460px, calc(100% - 40px));
  max-width: calc(100% - 40px);
  height: 50px;
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--glass-border);
  border-bottom: 0;
  -ms-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  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;
}

.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;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 0 16px 0 0;
  border-left: 1px solid var(--glass-border);
  background-color: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.info-hotspot-modal .info-hotspot-close-icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0.9;
}

.no-touch .info-hotspot-modal .info-hotspot-close-wrapper:hover .info-hotspot-close-icon {
  opacity: 1;
}

.info-hotspot-modal .info-hotspot-text {
  position: absolute;
  top: 110px;
  left: 50%;
  width: min(460px, calc(100% - 40px));
  max-width: calc(100% - 40px);
  max-height: calc(100% - 140px);
  padding: 10px;
  border: 1px solid var(--glass-border);
  border-radius: 0 0 16px 16px;
  border-top: 0;
  -ms-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: var(--glass-bg-soft);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  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;
}

@media (max-height: 500px) and (orientation: landscape) {
  .info-hotspot-modal .info-hotspot-header {
    top: 20px;
  }

  .info-hotspot-modal .info-hotspot-text {
    top: 70px;
    max-height: calc(100% - 90px);
  }
}

.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;
}

/* View control buttons */

.viewControlButton {
  display: none;
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(145deg, rgba(130, 152, 180, 0.44), rgba(66, 82, 104, 0.64));
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  -webkit-transition: -webkit-transform 0.25s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  transition: transform 0.25s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

body.view-control-buttons .viewControlButton {
  display: block;
}

/* Keep controls visible on mobile portrait using a compact layout */
@media (max-width: 600px) {
  body.view-control-buttons .viewControlButton {
    width: 42px;
    height: 42px;
    bottom: 22px;
  }

  .viewControlButton .icon {
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    margin-left: -12px;
  }

  .viewControlButton-1 {
    margin-left: -153px;
  }
  .viewControlButton-2 {
    margin-left: -99px;
  }
  .viewControlButton-3 {
    margin-left: -45px;
  }
  .viewControlButton-4 {
    margin-left: 9px;
  }
  .viewControlButton-5 {
    margin-left: 63px;
  }
  .viewControlButton-6 {
    margin-left: 117px;
  }
}

.viewControlButton .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  margin-left: -14px;
}

body.view-control-buttons .viewControlButton:active {
  background-color: rgba(124, 144, 170, 0.8);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.no-touch body.view-control-buttons .viewControlButton:hover {
  background-color: rgba(135, 156, 184, 0.76);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Center is at margin-left: -24px */
.viewControlButton-1 {
  margin-left: -174px;
}
.viewControlButton-2 {
  margin-left: -114px;
}
.viewControlButton-3 {
  margin-left: -54px;
}
.viewControlButton-4 {
  margin-left: 6px;
}
.viewControlButton-5 {
  margin-left: 66px;
}
.viewControlButton-6 {
  margin-left: 126px;
}

.viewControlsToggle {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 0;
  margin-left: -28px;
  width: 56px;
  height: 28px;
  border-radius: 28px 28px 0 0;
  border: 1px solid var(--glass-border);
  border-bottom: 0;
  background-color: var(--glass-bg-soft);
  box-shadow: 0 -1px 0 rgba(255,255,255,0.1), 0 -8px 18px rgba(0,0,0,0.3);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  z-index: 30;
}

body.view-control-buttons .viewControlsToggle {
  display: block;
}

.viewControlsToggle-arrow {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-left: 2px solid rgba(255,255,255,0.95);
  border-top: 2px solid rgba(255,255,255,0.95);
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  -webkit-transition: -webkit-transform 0.25s ease;
  transition: transform 0.25s ease;
}

body.view-controls-collapsed .viewControlButton {
  -ms-transform: translateY(72px);
  -webkit-transform: translateY(72px);
  transform: translateY(72px);
}

body.view-controls-collapsed .viewControlsToggle-arrow {
  -ms-transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
}

/* Startup orientation hint */
.landscape-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 210px;
  min-height: 170px;
  margin-left: -105px;
  margin-top: -85px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.25);
  background-color: rgba(0,0,0,0.72);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
  z-index: 12000;
  opacity: 1;
  pointer-events: none;
  -webkit-animation: landscapeHintPulse 1.4s ease-in-out 3;
  animation: landscapeHintPulse 1.4s ease-in-out 3;
  -webkit-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
}

.landscape-hint.hidden {
  opacity: 0;
}

.landscape-hint-icon {
  width: 86px;
  height: 86px;
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1);
}

.landscape-hint-label {
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  color: #fff;
}

@-webkit-keyframes landscapeHintPulse {
  0%, 100% { -webkit-transform: translate3d(0,0,0) scale(1); }
  50% { -webkit-transform: translate3d(0,0,0) scale(1.04); }
}

@keyframes landscapeHintPulse {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(0,0,0) scale(1.04); }
}

@media (max-width: 500px), (max-height: 500px) {
  .landscape-hint {
    width: 176px;
    min-height: 146px;
    margin-left: -88px;
    margin-top: -73px;
  }

  .landscape-hint-icon {
    width: 62px;
    height: 62px;
  }

  .landscape-hint-label {
    font-size: 13px;
  }
}
