:root {
  --top-bar-height: 130px; /* If this value is changed, it might also need to be changed in some other places of the source code. */
  --toast-margin-top: 30px; /* Magic number: 30px (some spacing from the top of the content area); If this value is changed, '--toast-margin-top' might also need to be changed in some other places of the source code. */
}

@-ms-viewport {
  width: device-width;
}

html,
body,
main {
  background-color: #f5f5f5;
  /* start font family, do not remove this comment */font-family: Source Sans Pro, Arial, sans-serif;/* end font family, do not remove this comment */
  /* start font size, do not remove this comment */font-size: 16px;/* end font size, do not remove this comment */
  height: 100% !important; /* '!important' keeps the panorama viewer from being hidden by the glightbox plugin. */
  margin: 0;
  overflow: auto;
  padding: 0;
}

.disabled {
  pointer-events: none !important;
  color: #6c757d !important;
}

body.public {
  --top-bar-height: 0;
  background-color: #000000;
  /* start font color, do not remove this comment */color: #ffffff;/* end font color, do not remove this comment */
}

body.public #plugins,
body.public .modal {
  color: var(--bs-body-color);
}

@media only screen and (min-device-width: 800px) {
  html {
    overflow: hidden;
  }
}

#plugins {
  height: 100%;
  left: 0;
  margin: 0 auto;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: 100%;
}

#root {
  height: calc(100% - var(--top-bar-height));
  left: 0;
  top: var(--top-bar-height);
  overflow: hidden;
  position: absolute;
  width: 100%;
}

body#admin #sidebar {
  margin-top: var(--top-bar-height);
}

body.krpano #root {
  overflow-y: hidden;
}

body:not([class]),
body.change-path,
body.check-server-capabilities,
body.set-password,
body.sign-in,
.check-server-capabilities #root,
.set-password #root,
.sign-in #root {
  align-items: center;
  display: flex;
  height: 100%;
  padding: 20px;
  top: 0;
  width: 100%;
}

.change-path main,
.set-password main,
.sign-in main,
#splash-screen {
  height: auto !important;
  margin: auto;
  overflow: visible;
  width: 328px;
}

.admin #splash-screen {
  color: #474747;
  height: 218px !important;
}

.public #splash-screen {
  color: #ffffff;
  height: 32px !important;
  left: calc(50% - 140px);
  position: fixed;
  top: calc(50% - 16px);
  width: 280px;
  z-index: 2000;
}

.change-path main,
.check-server-capabilities main,
.set-password main {
  height: auto !important;
  margin: auto;
  max-width: 430px;
}

.topBar {
  background-color: #f5f5f5;
  z-index: 8002;
}

.topBar .logo {
  margin: 10px;
}

.topBar .ribbon-menu .tabs-holder li:not(.active) {
  background-color: #e9ecef !important;
}

.topBar .content-holder {
  border-left: 1px solid #dadbdc;
}

.topBar .ribbon-menu .content-holder .group.pull-right {
  margin-left: auto;
}

.topBar .ribbon-menu .content-holder .group + .group:not(.pull-right) {
  border-left: none;
}

.topBar .ribbon-menu .content-holder .group {
  border-right: 1px solid #dadbdc;
}

.topBar .ribbon-menu .content-holder .group:last-child {
  border-right: none;
}

.nav-item + .nav-item {
  margin-left: 5px;
}

.navbar {
  background-color: #f5f5f5;
  z-index: 8001;
}

.navbar .options {
  margin-left: 1rem;
  min-width: 182px;
}

@media only screen and (min-width: 1300px) {
  .navbar .navbar-brand {
    min-width: 182px;
  }
}

@media only screen and (max-width: 1300px) {
  .navbar .options {
    min-width: 124px;
  }
  .navbar .navbar-brand {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.navbar .options .dropdown-toggle::after {
  display: none;
}

.navbar .options .dropdown-menu i.bi {
  margin-right: 5px;
}

.navbar .options .dropdown-item .form-check-input {
  margin-left: unset;
}

.navbar .options .dropdown-item .form-check-label {
  margin-left: .5em;
  margin-right: 2em;
  width: 100%;
}

.advanced_combobox {
  display: none;
}

.tooltip:not(.tooltip-public) .tooltip-inner {
  max-width: 220px;
}

.tooltip_text h1,
.tooltip_text h2,
.tooltip_text h3,
.tooltip_text h4,
.tooltip_text h5,
.tooltip_text h6 {
  margin-bottom: 0;
}

.tooltip-public.fade {
  transition: opacity .25s linear;
}

.tooltip-public.fade.show {
  transition: opacity .5s linear;
}

.tooltip-public {
  --bs-tooltip-arrow-height: 4px;
  --bs-tooltip-arrow-width: 9px;
  /* start tooltip background color, do not remove this comment */--bs-tooltip-bg: #e60000;/* end tooltip background color, do not remove this comment */
  /* start tooltip font color, do not remove this comment */--bs-tooltip-color: #ffffff;/* end tooltip font color, do not remove this comment */
  --bs-tooltip-opacity: 1;
  --bs-tooltip-padding-x: 8px;
  --bs-tooltip-padding-y: 6px;
  /* start font family, do not remove this comment */font-family: Source Sans Pro, Arial, sans-serif;/* end font family, do not remove this comment */
  /* start tooltip font size, do not remove this comment */font-size: 15px;/* end tooltip font size, do not remove this comment */
  font-weight: 400;
  /* start tooltip line height, do not remove this comment */line-height: 19px;/* end tooltip line height, do not remove this comment */
  max-width: unset;
  pointer-events: none;
  white-space: nowrap;
}

.tooltip-public .tooltip-inner {
  max-width: unset;
}

.preview_tag,
.preview_img {
  z-index: 1000 !important;
}

.modal {
  z-index: 100002;
}

#gallery-container,
#group-container,
#infopoint-categories-container,
.tooltip,
#toast-container,
.toast {
  z-index: 100001;
}

#addLinksModal.modal,
#allLookAtsModal.modal,
#editGpsMarkerModal.modal,
#editLinkModal.modal,
#editInfopointModal.modal,
#locationSearchModal.modal,
#modalAppGroupByDistance.modal,
#modalAppOverview.modal,
#modalExtensionsInfopointsCategories.modal,
#modalExtensionsInfopointsCategoriesEdit.modal,
#modalExtensionsInfopointsCategoriesNew.modal,
#modalLinksOverview.modal,
#modalPropertiesChangeLevel.modal,
#modalToolsSharpen.modal,
#selectInfopointIconModal.modal,
#selectInfopointFileModal.modal,
#transferGpsCoordinatesToShootingAlbumModal.modal {
  height: auto;
  margin-left: 30px;
  margin-top: calc(var(--top-bar-height) + 30px); /* Magic number: 30px (some spacing from the top of the content area); */
  width: 800px;
}

#addLinksModal .modal-dialog,
#allLookAtsModal .modal-dialog,
#editGpsMarkerModal .modal-dialog,
#editLinkModal .modal-dialog,
#editInfopointModal .modal-dialog,
#locationSearchModal .modal-dialog,
#modalAppGroupByDistance .modal-dialog,
#modalAppOverview .modal-dialog,
#modalExtensionsInfopointsCategories .modal-dialog,
#modalExtensionsInfopointsCategoriesEdit .modal-dialog,
#modalExtensionsInfopointsCategoriesNew .modal-dialog,
#modalLinksOverview .modal-dialog,
#modalPropertiesChangeLevel .modal-dialog,
#modalToolsSharpen .modal-dialog,
#selectInfopointIconModal .modal-dialog,
#selectInfopointFileModal .modal-dialog,
#transferGpsCoordinatesToShootingAlbumModal .modal-dialog {
  margin: 0;
}

#confirmationModal.modal,
#confirmLanguageChangeModal.modal,
#contentModal.modal:not(.modal-is-fullscreen),
#overwriteInfopointFileModal.modal,
#moveHotspotModal.modal,
#removeHotspotModal.modal {
  margin-top: calc(var(--top-bar-height) + 10px); /* Magic number: 10px (some spacing from the top of the content area); */
}

#confirmationModal .modal-dialog,
#confirmLanguageChangeModal .modal-dialog,
#contentModal .modal-dialog,
#overwriteInfopointFileModal .modal-dialog,
#moveHotspotModal .modal-dialog,
#removeHotspotModal .modal-dialog {
  margin-top: 0;
}

.modal.modal-is-fullscreen {
  height: calc(100% - var(--top-bar-height));
  margin-top: var(--top-bar-height);
}

.modal textarea.auto-height {
  height: calc(100vh - var(--top-bar-height) - 63px - 1rem - 1rem - 71px); /* Magic numbers: 63px (height of .modal-header); 1rem (padding of .modal-body); 1rem (padding of .modal-body); 71px (height of .modal-footer); */
}

#addLinksModal .modal-body,
#allLookAtsModal .modal-body,
#editGpsMarkerModal .modal-body,
#editLinkModal .modal-body,
#editInfopointModal .modal-body,
#locationSearchModal .modal-body,
#modalAppGroupByDistance .modal-body,
#modalAppOverview .modal-body,
#modalExtensionsInfopointsCategories .modal-body,
#modalExtensionsInfopointsCategoriesEdit .modal-body,
#modalExtensionsInfopointsCategoriesNew .modal-body,
#modalLinksOverview .modal-body,
#modalPropertiesChangeLevel .modal-body,
#modalToolsSharpen .modal-body,
#selectInfopointIconModal .modal-body,
#selectInfopointFileModal .modal-body,
#transferGpsCoordinatesToShootingAlbumModal .modal-body {
  max-height: 45vh;
  overflow-y: scroll;
}

#addLinksModal .modal-body.tab-list + .modal-body.content,
#modalExtensionsInfopointsCategories .modal-body.tab-list + .modal-body.content {
  max-height: calc(45vh - 74px); /* Magic numbers: 74px (height of #addLinksModal .modal-body.tab-list); */
}

#addLinksModal .modal-body.tab-list,
#modalExtensionsInfopointsCategories .modal-body.tab-list {
  overflow-y: unset;
}

#modalAppOverview .modal-body hr:first-child {
  margin-top: 0 !important;
}

#selectInfopointFileModal .modal-body {
  height: 50vh;
}

#addLinksModal .card,
#addLinksModal .card .form-switch input,
#locationSearchModal .card,
#modalExtensionsInfopointsCategories .edit-category,
#modalExtensionsInfopointsCategories .delete-category {
  cursor: pointer;
}

#addLinksModal .card-img-top,
#locationSearchModal .card-img-top,
body.gallery-text .card-img-top {
  display: block;
  height: 150px;
  object-fit: cover;
}

#editInfopointModal .modal-body .select-icon {
  border-color: #ced4da;
  color: #212529;
  width: calc(100% - 62px - 2px - 6px); /* Magic numbers: 62px (width of '.icon'); 2px (border of '.icon'); 6px (some arbitrary spacing between this element and '.icon'); */
}

#editInfopointModal .hrefs > .row:first-child > div {
  margin-top: 0;
}

#editInfopointModal .modal-body .move-address,
#editInfopointModal .modal-body .open-address,
#editInfopointModal .modal-body .edit-html-file,
#editInfopointModal .modal-body .select-file,
#editInfopointModal .modal-body .select-file-options,
#editInfopointModal .modal-body .hotspot-position,
#editInfopointModal .modal-body .add-address,
#editInfopointModal .modal-body .delete-address,
#editInfopointModal .modal-footer .hotspot-clipboard,
#modalExtensionsInfopointsCategories .modal-body .btn-light,
#modalToolsSharpen .modal-footer .apply-to-all-scenes {
  border-color: #ced4da;
}

#editInfopointModal .icon {
  cursor: pointer;
  height: 64px;
  margin-top: 6px;
  width: 64px;
}

#editInfopointModal div.text-muted {
  font-size: 0.7em;
  line-height: 1.3em;
  margin-top: 5px;
}

#editInfopointModal #hotspot-onclick-action.disabled {
  background-color: #e9ecef;
}

#selectInfopointIconModal .modal-body img {
  cursor: pointer;
}

#allLookAtsModal .modal-body .open-scene,
#modalLinksOverview .modal-body .open-scene,
#selectInfopointFileModal .modal-body .delete-file,
#selectInfopointFileModal .modal-body .select-file,
#selectInfopointFileModal .modal-body .view-file {
  cursor: pointer;
}

#selectInfopointFileModal .modal-body .delete-file,
#selectInfopointFileModal .modal-body .view-file {
  width: 32px;
}

body.gallery-sort .body-container,
body.gallery-text .body-container {
  max-height: calc(100vh - var(--top-bar-height) - 1rem - 30px - 1rem); /* Magic numbers: 1rem (top margin of the content area); 30px (height of the headline); 1rem (gutter between headline and body); */
  overflow-y: auto;
}

body.settings .body-container,
body.text .body-container {
  max-height: calc(100vh - var(--top-bar-height) - 1rem - 42px - 1rem); /* Magic numbers: 1rem (top margin of the content area); 42px (height of the tab area); 1rem (gutter between the tab area and .body-container); */
  overflow-y: auto;
}

label i {
  pointer-events: auto;
}

.select2-results,
.select2-results__options {
  max-height: 180px !important;
}

body.gallery-sort .list-group-item {
  cursor: pointer;
}

body.gallery-sort .list-group-item.selected-item {
  background-color: #d1e7dd;
}

.scrollable-info {
  height: 72px;
  overflow-y: scroll;
}

#sidebar {
  z-index: 8000;
}

#sidebar iframe {
  height: 100%;
  width: 100%;
}

.offcanvas {
  transition: transform .5s ease-in-out;
}

#gallery-container {
  display: inline-block;
  margin-bottom: 12px;
}

#gallery-container .gallery-albums,
#gallery-container .gallery-items {
  overflow: visible;
  position: relative;
}

#gallery-container .gallery-album,
#gallery-container .gallery-item {
  cursor: pointer;
  display: inline-block;
  position: relative;
}

#gallery-container .gallery-album {
  height: 86px;
  padding: 7px;
  width: 122px;
}

#gallery-container .gallery-item-container {
  height: 126px;
  padding-top: 50px;
  width: 108px;
}

#gallery-container .gallery-item {
  height: 76px;
  padding: 6px;
  width: 108px;
}

#gallery-container .gallery-album:before,
#gallery-container .gallery-item:before {
  background-image: url('../images/gallery/border.png');
  background-repeat: no-repeat;
  content: ' ';
  display: block;
  left: 0;
  opacity: 0.33;
  position: absolute;
  top: 0;
}

#gallery-container .gallery-album:before {
  background-size: 122px 86px;
  height: 86px;
  width: 122px;
}

#gallery-container .gallery-item:before {
  background-size: 108px 76px;
  height: 76px;
  width: 108px;
}

#gallery-container .gallery-album.active:before,
#gallery-container .gallery-item.active:before {
  opacity: 1;
}

#gallery-container .gallery-album .gallery-album-thumbnail {
  background-position: 0px -18px;
  background-size: 108px;
  height: 72px;
  position: relative;
  width: 108px;
}

#gallery-container .gallery-item .gallery-item-thumbnail {
  background-position: 0px -18px;
  background-size: 96px;
  height: 64px;
  position: relative;
  width: 96px;
}

#gallery-container .gallery-album .gallery-album-thumbnail:after,
#gallery-container .gallery-item .gallery-item-thumbnail:after {
  background-image: url('../images/gallery/shadow.png');
  background-repeat: no-repeat;
  content: ' ';
  display: block;
  position: absolute;
}

#gallery-container .gallery-album .gallery-album-thumbnail:after {
  background-size: 122px 86px;
  left: -7px;
  height: 86px;
  top: -7px;
  width: 122px;
}

#gallery-container .gallery-item .gallery-item-thumbnail:after {
  background-size: 108px 76px;
  left: -6px;
  height: 76px;
  top: -6px;
  width: 108px;
}

#gallery-container .gallery-album .gallery-album-text,
#gallery-container .gallery-item .gallery-item-text {
  /* start secondary font color, do not remove this comment */color: #ffffff;/* end secondary font color, do not remove this comment */
  /* start font family, do not remove this comment */font-family: Source Sans Pro, Arial, sans-serif;/* end font family, do not remove this comment */
  /* start gallery album font size, do not remove this comment */font-size: 13px;/* end gallery album font size, do not remove this comment */
  left: 13px;
  /* start gallery album line height, do not remove this comment */line-height: 17px;/* end gallery album line height, do not remove this comment */
  position: absolute;
  top: 11px;
  text-shadow: #000000 0px 0px 15px;
  text-transform: uppercase;
}

#gallery-container .gallery-album .gallery-album-text {
  height: 68px;
  width: 98px;
}

#gallery-container .gallery-item .gallery-item-text {
  height: 59px;
  width: 87px;
}

#gallery-container .gallery-album .gallery-album-text h1,
#gallery-container .gallery-item .gallery-item-text h1 {
  display: block;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 0;
}

#gallery-container .swiper-button-prev {
  background-image: url('../images/gallery/left.png');
  left: 0;
}

#gallery-container .swiper-button-prev.swiper-button-mobile {
  left: -40px;
}

#gallery-container .swiper-button-next {
  background-image: url('../images/gallery/right.png');
  right: 40px;
}

#gallery-container .swiper-button-next.swiper-button-mobile {
  right: 0;
}

#gallery-container .swiper-button-prev,
#gallery-container .swiper-button-next {
  background-size: 55px;
  height: 55px;
  width: 55px;
}

#gallery-container .gallery-albums .swiper-button-prev,
#gallery-container .gallery-albums .swiper-button-next {
  top: 40px;
}

#gallery-container .gallery-items .swiper-button-prev,
#gallery-container .gallery-items .swiper-button-next {
  top: 83px;
}

#gallery-container .swiper-button-prev:after,
#gallery-container .swiper-button-next:after {
  content: '';
}

body#admin #group-container {
  margin-top: var(--top-bar-height);
}

#group-container .dropdown-toggle::after {
  margin-left: 10px;
}

#group-container .dropdown-menu {
  margin: 4px 0 !important;
}

#group-container .btn:not(.active),
#group-container .dropdown-item:not(.active) {
  background-color: rgba(34, 34, 34, 0.4);
  color: #ffffff;
  opacity: 0.75;
  transition: background-color .5s linear, opacity .5s linear;
}

#group-container .btn:not(.active):hover,
#group-container .dropdown-item:not(.active):hover {
  background-color: rgba(34, 34, 34, 0.5);
  opacity: 1;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled:hover,
.swiper-button-prev.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled:hover {
  opacity: 0;
}

.swiper-button-next,
.swiper-button-prev {
  opacity: 0.3;
  transition: opacity .5s linear;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 1;
}

#infopoint-categories-container {
  max-width: 298px;
  min-width: 108px;
}

#infopoint-categories-container > div {
  padding: 10px;
  cursor: pointer;
}

#toast-container {
  margin-top: calc(var(--top-bar-height) + var(--toast-margin-top));
}

#toast-container .toast + .toast {
  margin-bottom: 10px;
}

#pano {
  height: 100%;
  width: 100%;
  z-index: 1000;
}
