* {
  -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;
}

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

/* Sección de portada */
#portada {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

/* Fondo de la portada */
#fondo-portada {
  position: absolute;
  width: 85%;
  max-width: 250px;
  height: 450px;
  background: rgba(255, 255, 255, 0.932);
  border-radius: 120px;
  box-shadow: 0 0 20px 10px rgba(22, 36, 189, 0.329);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: -1;
}

/* Logo de la portada */
#logoPortada {
  width: 220px;
  height: auto;
  border-radius: 50%; /* Hace que el contenedor sea circular */
  box-shadow: 0px 4px 10px rgba(129, 127, 127, 0.233); /* Sombra alrededor */
  display: block;
  margin-bottom: 18px; /* Aumenta el espacio debajo del logo */
}

/* Título de la portada */
#portada h1 {
  font-size: 1.5rem;
  color: rgb(0, 0, 0);
  margin-bottom: 20px;
}

/* Botón de comenzar */
#btnComenzar {
  padding: 12px 24px;
  font-size: 1.3rem;
  background: #128ef3;
  border: none;
  color: rgb(255, 255, 255);
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 50px;
}

#btnComenzar:hover {
  background: #1e89c7;
}


/* Para tablets y celulares más grandes (480px - 768px) */
@media (min-width: 480px) and (max-width: 768px) {
  #fondo-portada {
    width: 90%;
    max-width: 340px;
    height: 480px;
  }

  #logoPortada {
    width: 180px;
  }

  #portada h1 {
    font-size: 1.7rem;
  }

  #btnComenzar {
    font-size: 1.4rem;
    padding: 14px 26px;
  }
}

/* Para celulares estándar (360px - 479px) */
@media (min-width: 360px) and (max-width: 479px) {
  #fondo-portada {
    width: 88%;
    max-width: 280px;
    height: 380px;
  }

  #logoPortada {
    width: 140px;
  }

  #portada h1 {
    font-size: 1.4rem;
  }

  #btnComenzar {
    font-size: 1.2rem;
    padding: 10px 22px;
  }
}

/* Para iPhone SE (2016) y pantallas muy pequeñas (<360px) */
@media (max-width: 359px) {
  #fondo-portada {
    width: 90%;
    max-width: 240px;
    height: 320px;
    border-radius: 60px;
  }

  #logoPortada {
    width: 100px;
  }

  #portada h1 {
    font-size: 1.2rem;
  }

  #btnComenzar {
    font-size: 1rem;
    padding: 6px 16px;
  }
}

.hotspot.red-ball {
  width: 20px;
  height: 20px;
  background-color: red;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 1000;
}
#pano {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Imagen del logo responsive */
.titleIcon {
  position: relative;
  height: 39px;
  background: none;
  mix-blend-mode: multiply;
  filter: none;
  margin-right: 20px;
  z-index: 10001;
  left: 50%; /* Centra horizontalmente */
  transform: translateX(-50%); /* Ajusta el centrado */
}


/* Ajustes para tablets */
@media (max-width: 768px) {
  .titleIcon {
    height: 40px; /* Aumenta el tamaño en tablets */
  }
}

/* Ajustes para teléfonos */
@media (max-width: 480px) {
  .titleIcon {
    height: 42px; /* Se hace más grande en móviles */
  }
}


/* Estilos para el botón de créditos */
#creditosBtn {
  position: absolute; /* Posición absoluta para mover el botón */
  bottom: 70px; /* Distancia desde la parte inferior */
  left: 20px; /* Distancia desde la izquierda */
  padding: 10px 40px; /* Espaciado interno */
  font-size: 18px; /* Tamaño del texto */
  background-color: #1966ca; /* Color de fondo */
  color: rgb(241, 234, 234); /* Color del texto */
  border: none;
  border-radius: 10px; /* Bordes redondeados */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease; /* Transiciones suaves */
  z-index: 1000; /* Asegura que esté por encima de otros elementos */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra suave */
  text-align: left; /* Centra el texto horizontalmente */
  line-height: 1.5; /* Ajusta la posición vertical del texto */
}
#ventanaCreditos .contenido {
  text-align: left;
}
/* Media query para tablets (pantallas de 768px o menos) */
@media (max-width: 768px) {
  #creditosBtn {
    padding: 12px 40px; /* Reducir el padding */
    font-size: 16px; /* Reducir el tamaño del texto */
    bottom: 60px; /* Ajustar la posición desde la parte inferior */
    left: 15px; /* Ajustar la posición desde la izquierda */
  }
}

/* Media query para móviles (pantallas de 480px o menos) */
@media (max-width: 480px) {
  #creditosBtn {
    padding: 10px 30px; /* Reducir aún más el padding */
    font-size: 14px; /* Reducir aún más el tamaño del texto */
    bottom: 40px; /* Ajustar la posición desde la parte inferior */
    left: 10px; /* Ajustar la posición desde la izquierda */
  }
}

#creditosBtn:hover {
  background-color: #0056b3; /* Color de fondo al pasar el mouse */
  transform: scale(1.05); /* Efecto de escala al pasar el mouse */
}

#creditosBtn:active {
  transform: scale(0.95); /* Efecto de escala al hacer clic */
}

/* Estilos para la ventana de créditos */
/* Estilos para el botón de créditos */
#creditosBtn {
  position: absolute; /* Posición absoluta para mover el botón */
  bottom: 70px; /* Distancia desde la parte inferior */
  left: 20px; /* Distancia desde la izquierda */
  padding: 10px 40px; /* Espaciado interno */
  font-size: 18px; /* Tamaño del texto */
  background-color: #1c67f3; /* Color de fondo */
  color: rgb(252, 252, 252); /* Color del texto */
  border: none;
  border-radius: 10px; /* Bordes redondeados */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease; /* Transiciones suaves */
  z-index: 1000; /* Asegura que esté por encima de otros elementos */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra suave */
  text-align: center; /* Centra el texto horizontalmente */
  line-height: 1.5; /* Ajusta la posición vertical del texto */
}

/* Media query para tablets (pantallas de 768px o menos) */
@media (max-width: 768px) {
  #creditosBtn {
    padding: 12px 40px; /* Reducir el padding */
    font-size: 16px; /* Reducir el tamaño del texto */
    bottom: 60px; /* Ajustar la posición desde la parte inferior */
    left: 15px; /* Ajustar la posición desde la izquierda */
  }
}

/* Media query para móviles (pantallas de 480px o menos) */
@media (max-width: 480px) {
  #creditosBtn {
    padding: 10px 30px; /* Reducir aún más el padding */
    font-size: 14px; /* Reducir aún más el tamaño del texto */
    bottom: 40px; /* Ajustar la posición desde la parte inferior */
    left: 10px; /* Ajustar la posición desde la izquierda */
  }
}

#creditosBtn:hover {
  background-color: #0e61b9; /* Color de fondo al pasar el mouse */
  transform: scale(1.05); /* Efecto de escala al pasar el mouse */
}

#creditosBtn:active {
  transform: scale(0.95); /* Efecto de escala al hacer clic */
}

/* Estilos para la ventana de créditos */
#ventanaCreditos {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(25, 49, 156, 0.575);
  justify-content: center;
  align-items: center;
  z-index: 1001; /* Asegura que esté por encima de otros elementos */
}

#ventanaCreditos .contenido {
  background-color: rgb(241, 242, 245);
  padding: 30px; /* Espacio interno */
  border-radius: 15px; /* Bordes más redondeados */
  box-shadow: 0 0 20px rgba(30, 59, 184, 0.637); /* Sombra más pronunciada */
  text-align: center;
  animation: aparecer 0.5s ease;
  max-width: 90%; /* Ancho máximo */
  width: 500px; /* Ancho fijo */
  overflow: hidden; /* Evitar que el contenido se desborde */
  word-wrap: break-word; /* Romper palabras largas */
  white-space: normal; /* Permitir saltos de línea */
}

/* Tamaño y estilo del texto */
#ventanaCreditos h2 {
  font-size: 24px; /* Título más grande */
  margin-bottom: 10px; /* Más espacio debajo del título */
  color: #222020; /* Color oscuro para mejor contraste */
}
#ventanaCreditos h3 {
  font-size: 14px; /* Título más grande */
  margin-bottom: 10px; /* Más espacio debajo del título */
  color: #222020; /* Color oscuro para mejor contraste */
}
#ventanaCreditos p {
  font-size: 16px; /* Texto más grande */
  margin-bottom: 20px; /* Espacio entre párrafos */
  color: #363636; /* Color gris oscuro */
}

#ventanaCreditos ul {
  list-style-type: none; /* Quita los puntos de la lista */
  padding: 0;
  margin-bottom: 20px; /* Espacio debajo de la lista */
}

#ventanaCreditos ul li {
  font-size: 14px; /* Tamaño de fuente para los elementos de la lista */
  margin-bottom: 10px; /* Espacio entre elementos de la lista */
  color: #666; /* Color gris */
}
#ventanaCreditos .contenido h2,
#ventanaCreditos .contenido h3,
#ventanaCreditos .contenido p,
#ventanaCreditos .contenido ul {
    text-align: left;
}
/* Estilos para el botón de cerrar */
#cerrarBtn {
  margin-top: 20px; /* Más espacio arriba del botón */
  padding: 10px 20px; /* Botón más grande */
  font-size: 16px; /* Texto más grande */
  background-color: #ce2e3e;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#cerrarBtn:hover {
  background-color: #c82333; /* Color de fondo al pasar el mouse */
}



/* Estilos para el icono (opcional) */
.info-hotspot-icon {
  width: 30px;
  height: 30px;
}

/*Estilo del video*/
/* Hotspot de video */
.video-hotspot {
  cursor: pointer;
  transition: transform 0.2s;
}

.video-hotspot:hover {
  transform: scale(1.1);
}

.video-icon {
  display: block;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.308));
}

.video-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.541);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  margin-top: 5px;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-hotspot:hover .video-tooltip {
  opacity: 1;
}

/* Modal de video */
#video-modal video {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.164);
  max-height: 80vh;
}
/* Estilo especial para iOS */
/* Esta es la versión más compatible actualmente */
@supports (font: -apple-system-body) and (-webkit-appearance: none) {
  #video-modal video,
  #ios-video-modal video {
    -webkit-tap-highlight-color: transparent;
  }
  
  #video-modal button,
  #ios-video-modal button {
    -webkit-appearance: none;
    appearance: none;
  }
}

/*Aqui termina*/
.close-button {
  position: absolute;
  top: 5px;
  right: 10px;
  background: red;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 18px;
}


#titleBar {
  position: absolute;
  top: 0;
  left: 0;
  right: 40px;
  height: 40px;
  text-align: center;
  width: 100%;
  line-height: 30px;
  padding: 5px;
  background-color: rgb(255, 255, 255);
  background-color: rgb(255, 255, 255);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

/* If there is a fullscreen button the title bar must make space for it */
body.fullscreen-enabled #titleBar {
  right: 80px;
}

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

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

#titleBar .sceneName {
  width: 100%;
  height: 100%;
  line-height: 30px;
  padding: 5px;
  background-color: rgb(255, 255, 255);
  background-color: rgb(255, 255, 255);
  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: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgb(255, 255, 255);
  background-color: rgba(25, 117, 245, 0.932);
}

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

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

#fullscreenToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

.mobile #fullscreenToggle .icon {
  top: 10px;
  right: 10px;
}

#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: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgba(32, 107, 219, 0.329);
  background-color: rgba(25, 117, 245, 0.932);
}

.mobile #autorotateToggle {
  width: 50px;
  height: 50px;
}

/* If there is a fullscreen button, autorotate must placed a bit to the left */
body.fullscreen-enabled #autorotateToggle {
  right: 40px;
}

body.fullscreen-enabled.mobile #autorotateToggle {
  right: 50px;
}

#autorotateToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

.mobile #autorotateToggle .icon {
  top: 10px;
  right: 10px;
}

#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: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgb(255, 255, 255);
  background-color: rgb(255, 255, 255);
}

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

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

#sceneListToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

.mobile #sceneListToggle .icon {
  top: 10px;
  right: 10px;
}

#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(13, 87, 204);
  background-color: rgb(13, 87, 204);
}

.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;
}
/* 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(13, 87, 204, 0.664);
  background-color: rgba(13, 86, 204, 0.664);

  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;
  border-radius: 20px;
  background-color: rgb(30, 97, 185);
  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: 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;
  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(17, 66, 146);
  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: rgba(9, 37, 82, 0.925);
  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;
}

/* 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(7, 51, 109, 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: 10px;
  right: 10px;
  width: auto;
  height: 50px;
  background-color: rgb(9, 61, 129);
  background-color: rgb(18, 104, 218);
  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;
  width: 50px;
  height: 50px;
  background-color: rgba(9, 70, 170, 0.8);
  background-color: rgba(9, 70, 170, 0.8);
  cursor: pointer;
}

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

.info-hotspot-modal .info-hotspot-text {
  position: absolute;
  top: 110px;
  bottom: 10px;
  left: 10px;
  right: 10px;
  padding: 10px;
  background-color: rgba(9, 47, 107, 0.8);
  background-color: rgba(9, 47, 107, 0.8);
  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;
}

/* View control buttons */

.viewControlButton {
  display: none;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgb(103,115,131);
  background-color: rgba(103,115,131,0.8);
}

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

/* Hide controls when width is too small */
@media (max-width: 600px) {
  body.view-control-buttons .viewControlButton {
    display: none;
  }
}

.viewControlButton .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

/* Center is at margin-left: -20px */
.viewControlButton-1 {
  margin-left: -145px;
}
.viewControlButton-2 {
  margin-left: -95px;
}
.viewControlButton-3 {
  margin-left: -45px;
}
.viewControlButton-4 {
  margin-left: 5px;
}
.viewControlButton-5 {
  margin-left: 55px;
}
.viewControlButton-6 {
  margin-left: 105px;
}
