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

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% - 66px); /* Magic number: 66px (height of .navbar); */
  left: 0;
  top: 66px; /* Magic number: 66px (height of .navbar); */
  overflow: hidden;
  position: absolute;
  width: 100%;
}

body#admin #sidebar {
  margin-top: 66px;
}

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

.sign-in main,
#splash-screen {
  height: auto !important;
  margin: auto;
  max-width: 328px;
  overflow: visible;
}

.admin #splash-screen {
  color: #474747;
  height: 218px !important;
}

.public #splash-screen {
  color: #ffffff;
  height: 32px !important;
  left: calc(50% - 16px);
  position: fixed;
  top: calc(50% - 16px);
  width: 32px;
  z-index: 2000;
}

.check-server-capabilities main,
.set-password main {
  height: auto !important;
  margin: auto;
  max-width: 430px;
}

.nav-item + .nav-item {
  margin-left: 5px;
}

.navbar {
  background-color: #f5f5f5;
  z-index: 8001;
}

.navbar .navbar-nav.secondaryOptions {
  margin-left: 1rem;
  min-width: 360px;
}

.navbar.photography .navbar-nav.secondaryOptions {
  margin-left: 1rem;
  min-width: 182px;
}

@media only screen and (min-width: 1300px) {
  .navbar .navbar-brand {
    min-width: 360px;
  }
  .navbar.photography .navbar-brand {
    min-width: 182px;
  }
}

@media only screen and (max-width: 1300px) {
  .navbar.photography .navbar-nav.secondaryOptions {
    min-width: 124px;
  }
  .navbar.photography .navbar-brand {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.navbar.photography .navbar-nav.secondaryOptions .dropdown-toggle::after {
  display: none;
}

.navbar-nav.basicOptions .dropdown-menu i.bi,
.navbar-nav.secondaryOptions .dropdown-menu i.bi {
  margin-right: 5px;
}

.advanced_combobox {
  display: none;
}

.tooltip-inner {
  max-width: 220px;
}

.modal {
  z-index: 100000;
}

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

#addLinksModal.modal,
#editLinkModal.modal,
#editInfopointModal.modal,
#locationSearchModal.modal,
#selectInfopointIconModal.modal,
#selectInfopointFileModal.modal {
  height: auto;
  margin-left: 30px;
  margin-top: 96px;
  width: 800px;
}

#addLinksModal .modal-dialog,
#editLinkModal .modal-dialog,
#editInfopointModal .modal-dialog,
#locationSearchModal .modal-dialog,
#selectInfopointIconModal .modal-dialog,
#selectInfopointFileModal .modal-dialog {
  margin: 0;
}

#confirmationModal.modal,
#confirmLanguageChangeModal.modal,
#contentModal.modal:not(.modal-is-fullscreen),
#overwriteInfopointFileModal.modal {
  margin-top: 76px;
}

#confirmationModal .modal-dialog,
#confirmLanguageChangeModal .modal-dialog,
#contentModal .modal-dialog,
#overwriteInfopointFileModal .modal-dialog {
  margin-top: 0;
}

#contentModal.modal.modal-is-fullscreen {
  height: calc(100% - 66px); /* Magic number: 66px (height of .navbar); */
  margin-top: 66px; /* Magic number: 66px (height of .navbar); */
}

#contentModal textarea.auto-height {
  height: calc(100vh - 66px - 63px - 1rem - 1rem - 71px); /* Magic number: 66px (height of .navbar); 63px (height of .modal-header); 1rem (padding of .modal-body); 1rem (padding of .modal-body); 71px (height of .modal-footer); */
}

#addLinksModal .modal-body,
#editLinkModal .modal-body,
#editInfopointModal .modal-body,
#locationSearchModal .modal-body,
#selectInfopointIconModal .modal-body,
#selectInfopointFileModal .modal-body {
  max-height: 50vh;
  overflow-y: scroll;
}

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

#addLinksModal .card,
#addLinksModal .card .form-switch input,
#locationSearchModal .card {
  cursor: pointer;
}

#addLinksModal .card-img-top,
#locationSearchModal .card-img-top,
body.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 {
  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;
}

#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 .body-container {
  max-height: calc(100vh - 66px - 1.5rem - 38px - 1.5rem - 21px); /* Magic numbers: 66px (height of .navbar); 1.5rem (gutter between .body-container and the button area); 38px (height of the button area); 1.5rem (gutter between the button area and the fine print); 21px (height of the fine print); */
  overflow-y: auto;
}

body.settings .body-container {
  max-height: calc(100vh - 66px - 42px - 1.5rem - 1.5rem - 38px); /* Magic numbers: 66px (height of .navbar); 42px (height of the tab area); 1.5rem (gutter between the tab area and .body-container); 1.5rem (gutter between .body-container and the button area); 38px (height of the button area); */
  overflow-y: auto;
}

body.text .body-container {
  max-height: calc(100vh - 66px - 42px - 1.5rem - 1.5rem - 38px - 1.5rem - 21px); /* Magic numbers: 66px (height of .navbar); 42px (height of the tab area); 1.5rem (gutter between the tab area and .body-container); 1.5rem (gutter between .body-container and the button area); 38px (height of the button area); 1.5rem (gutter between the button area and the fine print); 21px (height of the fine print); */
  overflow-y: auto;
}

label i {
  pointer-events: auto;
}

.select2-results,
.select2-results__options {
  max-height: 180px !important;
}

body.gallery .list-group-item {
  cursor: pointer;
}

body.gallery .list-group-item.selected-item {
  background-color: #d1e7dd;
}

#sidebar {
  z-index: 8000;
}

#sidebar iframe {
  height: 100%;
  width: 100%;
}

.offcanvas {
  transition: transform .5s ease-in-out;
}

#toast-container {
  margin-top: 96px;
}

#toast-container .toast + .toast {
  margin-bottom: 10px;
}

#pano {
  height: 100%;
  width: 100%;
  z-index: 1000;
}
