: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 {
  background-color: #000000;
  /* start font color, do not remove this comment */color: #ffffff;/* end font color, do not remove this comment */
}

body.public #plugins {
  color: var(--bs-body-color);
}

@media only screen and (min-device-width: 800px) {
  html {
    overflow: hidden;
  }
}

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

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

.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-inner {
  max-width: 220px;
}

.modal {
  z-index: 100000;
}

#infopoint-categories-container,
.tooltip,
#toast-container,
.toast {
  z-index: 100001;
}

#addLinksModal.modal,
#allLookAtsModal.modal,
#editGpsMarkerModal.modal,
#editLinkModal.modal,
#editInfopointModal.modal,
#locationSearchModal.modal,
#modalInfopointsCategories.modal,
#modalInfopointsCategoriesEdit.modal,
#modalInfopointsCategoriesNew.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,
#modalInfopointsCategories .modal-dialog,
#modalInfopointsCategoriesEdit .modal-dialog,
#modalInfopointsCategoriesNew .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,
#modalInfopointsCategories .modal-body,
#modalInfopointsCategoriesEdit .modal-body,
#modalInfopointsCategoriesNew .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,
#modalInfopointsCategories .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,
#modalInfopointsCategories .modal-body.tab-list {
  overflow-y: unset;
}

#selectInfopointFileModal .modal-body {
  height: 50vh;
}

#addLinksModal .card,
#addLinksModal .card .form-switch input,
#locationSearchModal .card,
#modalInfopointsCategories .edit-category,
#modalInfopointsCategories .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,
#modalInfopointsCategories .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,
#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;
}

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