@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

* {
  -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);
}

:root {
  --icon-rgb: rgb(255, 255, 255);
  --icon-disabled-rgb: rgb(148, 148, 148);
  --icon-size: 30px;
  --icon-margin: 5px;
  --background-rgb: rgb(32, 32, 32);
  --background-rgba: rgba(32, 32, 32, 0.8);
  /* original orange */
  /* --highlight-rgb: rgb(194, 116, 27); */
  /* SBB orange */
  --highlight-rgb: #f60;
  /* concept red */
  --highlight-rgb: rgb(255, 255, 255);
  --highlight-rgba: rgba(255, 255, 255, 0.4);
  /* original hover orange */
  /* --hover-rgb: rgb(212, 162, 104); */
  --hover-rgb: rgb(194, 116, 27);
  --hover-rgba: rgba(194, 116, 27, 0.4);
  --contrast-rgb: rgb(88, 122, 235);
  --banner-height: 60px;
  --titleBar-height: 40px;
  --titleBar-bottom: 10px;
  --titleBar-leftAndRight: 40px;
  --titleBar-leftAndRight-plus-margin: 50px;
  --border-radius: 20px;
  --minimap-padding: 5px 10px;
  --outside-offset: 500px;

  --info-size: 60px;

  --info-hs-label-size: 50px;
  --info-hs-label-size-minus-half: -25px;
  --info-hs-border-radius: 25px;
  --info-hs-label-inner: 38px;
  --info-hs-label-half-rest: 6px;

  --mobile-element-height: 80px;
  --mobile-icon-size: 40px;
  --mobile-titleBar-bottom: 0px;
  --mobile-titleBar-height: 50px;
  --mobile-titleBar-leftAndRight: 0px;
  --border-radius-mobile: 40px;
}

@font-face {
  font-family: 'Rubik';
  src: url('../font/Rubik-Light.eot');
  src: local('Rubik Light'), local('Rubik-Light'),
    url('../font/Rubik-Light.woff2') format('woff2'),
    url('../font/Rubik-Light.woff') format('woff'),
    url('../font/Rubik-Light.svg#Rubik-Light') format('svg'),
    url('../font/Rubik-Light.eot?#iefix') format('embedded-opentype'),
    url('../font/Rubik-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rubik';
  src: url('../font/Rubik-SemiBold.eot');
  src: local('Rubik SemiBold'), local('Rubik-SemiBold'),
    url('../font/Rubik-SemiBold.woff2') format('woff2'),
    url('../font/Rubik-SemiBold.woff') format('woff'),
    url('../font/Rubik-SemiBold.svg#Rubik-SemiBold') format('svg'),
    url('../font/Rubik-SemiBold.eot?#iefix') format('embedded-opentype'),
    url('../font/Rubik-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

html,
body {
  font-family: 'Rubik', Fallback, sans-serif;
  font-size: 100%;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background-color: #000;
  color: var(--highlight-rgb);
}

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;
}

/* ICONS */

.icon {
  fill: var(--highlight-rgb);
  width: var(--icon-size);
  height: var(--icon-size);
  max-width: var(--icon-size);
  overflow: hidden;
  opacity: 0;
  cursor: pointer;
}

.loaded .icon {

  opacity: unset;

}

a:hover .icon,
div:hover>.icon {
  cursor: pointer;
  fill: var(--hover-rgb);
}

a:active .icon,
div:active>.icon {
  fill: var(--highlight-rgb);
}

a>.icon.disabled,
div>.icon.disabled {
  cursor: default;
  fill: var(--icon-disabled-rgb);
}


/* FULLSCREEN TOGGLE */

#fullscreenToggle {
  display: none;
  position: absolute;
  bottom: var(--titleBar-bottom);
  right: var(--titleBar-leftAndRight-plus-margin);
  width: var(--titleBar-height);
  height: var(--titleBar-height);
}

.mobile #fullscreenToggle {
  display: none;
}

body.fullscreen-enabled #fullscreenToggle {
  display: block;
}

body.fullscreen-enabled.mobile #fullscreenToggle {
  display: none;
}

#fullscreenToggle .icon {
  position: absolute;
  width: var(--icon-size);
  height: var(--icon-size);
  margin: var(--icon-margin);
  ;
}

.mobile #fullscreenToggle .icon {
  width: var(--mobile-icon-size);
  height: var(--mobile-icon-size);
}

#fullscreenToggle .icon.on {
  display: none;
}

#fullscreenToggle .icon.off {
  display: block;
}

#fullscreenToggle .icon.off:hover {
  fill: var(--hover-rgb);
}

#fullscreenToggle.enabled .icon.on {
  display: block;
  fill: var(--hover-rgb);
}

#fullscreenToggle.enabled .icon.off {
  display: none;
}



/* View control buttons */

.viewControlButton {
  display: none;
  position: absolute;
  bottom: var(--titleBar-bottom);
  left: 50%;
  width: var(--titleBar-height);
  height: var(--titleBar-height);
}

body.view-control-buttons .viewControlButton {
  display: block;
}

/* Hide controls when width is too small */
@media (max-width: 700px) {
  body.view-control-buttons .viewControlButton {
    display: none;
  }
}

.viewControlButton .icon {
  position: absolute;
  width: var(--icon-size);
  height: var(--icon-size);
  margin: var(--icon-margin);
}

/* 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;
}



/* SETTINGS TOGGLE */

#settingsToggle {
  display: none;
  position: absolute;
  bottom: var(--titleBar-bottom);
  right: var(--titleBar-leftAndRight-plus-margin);
  margin-right: var(--titleBar-height);
  width: var(--titleBar-height);
  height: var(--titleBar-height);
}

.mobile #settingsToggle {
  bottom: var(--mobile-titleBar-bottom);
  right: var(--mobile-titleBar-leftAndRight);
  width: var(--mobile-titleBar-height);
  height: var(--mobile-titleBar-height);
}

body.settings-enabled #settingsToggle {
  display: block;
}

#settingsToggle .icon {
  position: absolute;
  width: var(--icon-size);
  height: var(--icon-size);
  margin: var(--icon-margin);
}

.mobile #settingsToggle .icon {
  width: var(--mobile-icon-size);
  height: var(--mobile-icon-size);
}

#settingsToggle .icon.on {
  display: none;
}

#settingsToggle .icon.off {
  display: block;
}

#settingsToggle.enabled .icon.on {
  display: block;
}

#settingsToggle.enabled .icon.off {
  display: none;
}

/* If there is a fullscreen button, settings must be placed a bit to the left */
body.fullscreen-enabled #settingsToggle {
  margin-right: calc(3*var(--titleBar-height));
}

body.fullscreen-enabled.mobile #settingsToggle {
  margin-right: calc(3*var(--mobile-titleBar-height));
}



/* SETTINGS MENU */

#settings {
  position: absolute;
  bottom: -500px;
  left: var(--titleBar-leftAndRight);
  margin-top: 40px;
  margin-bottom: var(--titleBar-height);
  width: 512px;
  height: 254px;
  opacity: 0.0;
  border-radius: var(--border-radius);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-transition: opacity 0.3s ease-in-out,
    margin-bottom 0.0s 0.3s;
  transition: opacity 0.3s ease-in-out,
    margin-bottom 0.0s 0.3s;
}

/* POWERED AND WRITTEN BY SECTION */

#by {
  font-size: 10px;
  font-weight: 300;
  text-align: right;
  width: 100%;
  padding: 0px 0px;
  padding-right: calc(var(--titleBar-height) / 2);
}

.mobile #by {
  padding-right: calc(var(--mobile-titleBar-height) / 2);
}

.mobile #by li {
  padding-right: 20px;
}

#by img {
  position: relative;
  top: 5px;
  height: 20px;
}

#by a {
  font-weight: 600;
  color: var(--highlight-rgb);
}


#byMenu {
  font-size: 10px;
  font-weight: 300;
  text-align: left;
  width: 100%;
  padding: 0px 0px;
  padding-top: 20px;
  padding-left: 10px;
}

.mobile #byMenu {
  padding-right: calc(var(--mobile-titleBar-height) / 2);
}

.mobile #byMenu li {
  padding-right: 20px;
}

#byMenu img {
  position: relative;
  top: 5px;
  height: 20px;
}

#byMenu a {
  font-weight: 600;
  color: var(--highlight-rgb);
}