html {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}

body {
  overflow-y: scroll;
  overflow-x: hidden;
  height: 100%;
  touch-action: manipulation;
  overscroll-behavior: none;
  font-family: Inter, var(--bs-font-sans-serif);
}

a {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  margin-bottom: 1rem;
}

u {
  text-underline-offset: 4px;
}

mark {
  background-color: var(--bs-warning-bg-subtle);
  color: var(--bs-warning-text-emphasis);
  border-radius: 5px;
}

::placeholder {
  color: var(--bs-gray-600) !important;
  opacity: 1;
}

:-ms-input-placeholder {
 color: var(--bs-gray-600) !important;
}

::-ms-input-placeholder {
 color: var(--bs-gray-600) !important;
}

.modal-open {
  overflow-y: scroll !important;
}

.invertible {
  filter: invert(1);
}

.fs-7 {
  font-size: 0.9em;
}

.grayscale {
  filter: grayscale(1);
}

.container {
  max-width: 1000px;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus,
.nav-link,
.nav-link:focus,
.nav-link:active,
.nav-item,
.nav-item:focus,
.nav-item:active,
.nav-link:hover,
.no-focus-ring {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.nm-logo {
  width: 1.05em;
  height: 1.05em;
}

.nm-brand {
  font-family: "Itim";
  margin-bottom: 0.1em;
}

.nm-welcome {
  font-family: "Itim";
}

.nm-message {
  font-family: "Itim";
  font-size: 105%;
}

.nm-content {
  --bs-heading-color: var(--bs-primary-text-emphasis);
}

.nm-badge {
  width: 52px;
  height: 52px;
}

.nm-button-1 { /* e.g. Show all */
  background-color: var(--bs-tertiary-bg) !important;
}

.nm-button-1:hover {
  background-color: var(--bs-secondary-bg) !important;
}

.nm-button-2 { /* e.g. Apply filter */
  background-color: var(--bs-body-bg) !important;
}

.nm-button-2:hover {
  background-color: var(--bs-dark-bg-subtle) !important;
}

.nm-bottom-right-radius { /* Applies to bottom right elements in rounded containers */
  border-radius: var(--bs-border-radius) 0 var(--bs-border-radius) 0;
  background-color: rgba(var(--bs-secondary-bg-rgb), 0.75);
}

.nm-bottom-right-radius:hover {
  background-color: rgba(var(--bs-secondary-bg-rgb), 1);
}

.nm-bookmarks li p {
  margin-bottom: 0;
}

.nm-bookmarks mark {
  color: var(--bs-body-color);
  background-color: var(--bs-secondary-bg);
}

.nm-bookmarks u {
  text-decoration-color: var(--bs-secondary);
}

.foo::before {
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M5.8,1.8c0-.2,0-.4-.1-.5L4.5.1c0,0-.2-.1-.3-.1-.1,0-.2,0-.3.1l-1.1,1.1c-.1.1-.2.3-.1.5,0,0,.2.3.4.3h.6v5.5c0,.3.3.6.6.6s.6-.3.6-.6V2h.6c.3,0,.4-.2.4-.3Z"/><path d="M3.4,8.2h-.6V2.8c0-.3-.3-.6-.6-.6s-.6.3-.6.6v5.4h-.6c-.2,0-.4.2-.4.3,0,.2,0,.4.1.5l1.1,1.1c0,0,.2.1.3.1s.2,0,.3-.1l1.1-1.1c.1-.1.2-.4.1-.6,0-.2-.2-.3-.4-.3Z"/><path d="M14.9,6.6c-.3-.3-.6-.4-1-.4s-.2,0-.3,0c-.2-.7-.8-1.2-1.5-1.2s-.5,0-.7.2c-.2-.5-.7-.8-1.2-.8s-.5,0-.7.2V1.6c-.1-.9-.8-1.6-1.6-1.6s-1.5.7-1.5,1.6v5.9c0,0-.2.2-.5.5-1.1,1-1.4,3.3-.2,5.2,1.3,2,2.9,2.8,5.2,2.8s3.3-1.3,4-2.5c.6-1.2.6-5.5.6-5.9s-.1-.6-.4-.9ZM7.2,1.6c0-.4.2-.7.6-.7s.6.3.6.7l.2,5.3c0,.2.2.4.4.5.2,0,.5-.2.5-.4v-.8c.1,0,.1,0,.1,0,0-.3.2-.6.5-.6s.5.4.5.6v.6c0,.3.2.5.5.5s.5-.2.5-.5.2-.6.6-.6.6.2.6.6v1.2c0,.3.2.5.5.5s.5-.2.5-.5v-.6c0,0,.2,0,.3,0,.2,0,.5.2.5.4,0,1.7-.1,4.8-.5,5.5-.6,1.1-1.2,2-3.1,2s-3.3-.7-4.4-2.4c-.6-1-.9-3,0-3.9v1.6c0,.1,0,.2.2.3,0,0,.2.1.3.1.3,0,.5-.2.5-.5l-.2-8.6Z"/></svg>')
}

.form-floating>label::after {
  background: none !important;
}

.tooltip {
  --bs-tooltip-font-size: 1rem;
  --bs-tooltip-color: var(--bs-body-color);
  --bs-tooltip-bg: var(--bs-secondary-bg);
  --bs-tooltip-opacity: 1;
}

.search-input-group {
  min-width: 160px;
  max-width: 180px;
  height: 39.1px;
}

.text-justify {
  text-align: justify;
}

.pagination {
  --bs-pagination-color: var(--bs-body-text-emphasis);
  --bs-pagination-hover-color: var(--bs-body-text-emphasis);
  --bs-pagination-active-color: var(--bs-primary-text-emphasis);
  --bs-pagination-active-bg: var(--bs-tertiary-bg);
  --bs-pagination-active-border-color: var(--bs-secondary-border-subtle);
  --bs-pagination-focus-box-shadow: none;
  --bs-pagination-focus-color: var(--bs-body-text-emphasis);
}

input,
label,
button,
select,
option,
textarea,
.btn {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.nm-loading {
  width: 100px;
  height: 100px;
  opacity: 0.3;
  animation: spin 2s infinite linear;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }

.nm-qrcode img {
  width: 100%;
}

.case-card-header {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.case-info p {
  margin: 0.1em 0;
}

.case-info i {
  margin: 0.1em 0;
}

.case-loading {
  max-height: 485px !important;
}

/* .case-image-container {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
} */

.case-viewer-left .static {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Prevent flicker: */
.case-viewer-left .tomo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /*
  transition: background-image .15s ease;
  -webkit-transition: background-image .15s ease;
  -moz-transition: background-image .15s ease;
  -o-transition: background-image .15s ease;
  */
}

.case-viewer-thumb {
  width: 80px;
}

.case-viewer-left-bottom {
  border-top: 1px solid var(--bs-body-bg);
}

.case-slider {
  -webkit-appearance: none;
  transform: rotate(270deg);
  transform-origin: center;
  direction: rtl;
  /* margin-left: 47.3%; */
  margin-left: -24px;
  width: 100%;
  border-radius: 0;
}

.case-slider::-webkit-slider-runnable-track {
  background-color: rgba(var(--bs-tertiary-bg-rgb));
  border-radius: 0;
  height: 7px;
}

.case-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  background-color: var(--bs-gray-600);
  height: 15px;
  width: 40px;
}

.case-slider:focus::-webkit-slider-thumb {
  outline: 0;
  border: 0;
  box-shadow: none;
}

.case-slider::-webkit-slider-thumb:active {
  background-color: var(--bs-gray-500);
  outline: 0;
  border: 0;
  box-shadow: none;
}

.case-viewer-right p {
  margin-bottom: 0.25rem;
}

.case-viewer-right ul,
.case-viewer-right ol {
  padding-left: 1rem;
}

.block-type-markdown ul,
.block-type-markdown ol {
  padding-left: 1rem;
}

.no-margin *:last-child {
  margin-bottom: 0;
}

[v-cloak] {
  visibility: hidden;
}

/* Responsive */

@media screen and (max-width: 767px) {

  .header-link {
    font-size: 1.1em;
  }
  
  .search-input-group {
    min-width: 100%;
    max-width: 100%;
    height: auto;
    font-size: 1.1em;
  }

  .search-input-group input {
    font-size: 1.05em;
  }

  .case-card-body .card-title {
    font-size: .95em;
  }

  .case-slider {
    margin-left: -28px;
  }

  .case-viewer-left {
    border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
  }

  .case-viewer-left-top {
    border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
  }

  .case-viewer-left-bottom {
    border-radius: 0;
  }

  .case-viewer-right {
    border-top: 1px solid var(--bs-body-bg);
    border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
    font-size: .95rem;
  }

  .case-viewer-thumb {
    width: 64px;
  }

  .nm-external-link p {
    display: inline-block;
    padding-right: 16px;
    margin-bottom: 0;
  }
  
  .nm-external-link p:after {
    content: "\F1C5";
    font-family: "Bootstrap-icons";
    font-size: .75em;
    line-height: 1rem;
    margin-left: .325rem;
    white-space: nowrap;
    color: var(--bs-gray-600);
    display: inline-block;
    margin-right: -16px;
  }

}

@media screen and (min-width: 768px) {
  
  .nm-brand {
    font-size: 1em;
  }

  .case-viewer-left {
    border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
  }

  .case-viewer-left-top {
    border-radius: var(--bs-border-radius) 0 0 0;
  }

  .case-viewer-left-bottom {
    border-radius: 0 0 0 var(--bs-border-radius);
  }

  .case-viewer-right {
    /* border-left: 2px solid var(--bs-body-bg); */
    border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
  }

  .nm-external-link p {
    display: inline-block;
    padding-right: 16px;
    margin-bottom: 0;
  }
  
  .nm-external-link p:hover:after {
    content: "\F1C5";
    font-family: "Bootstrap-icons";
    font-size: .75em;
    line-height: 1rem;
    margin-left: .325rem;
    white-space: nowrap;
    color: var(--bs-gray-600);
    display: inline-block;
    margin-right: -16px;
  }
  
}