/* @import url('_font-sizes.css'); */
@import url('_fixed-widths.css');

:root {
  --nmg-color: #5ac5c3;
  --nmg-color-alt: #31c5f2;
  --nmg-black: #0c1a19;
  --nmg-link-hover: #909999;
  --nmg-bg-alt: #e0eeee;
  --nmg-bg-light: #fafafa;
  --nmg-border: #0c4040;
  --nmg-warning: #ffc107;
  --nmg-danger: #c04551;
  --nmg-admin-bg: #203030;
  --nmg-admin-text: #f0ffff;
  --nmg-admin-header: #0c1a19;
  --nmg-private: #ffe4c4;
  --nmg-blue: cornflowerblue;
  --nmg-nav-hover: #0c3030;
}

* {
  margin: 0;
  padding: 0;
}

.grecaptcha-badge { visibility: hidden; }

body {
  margin-bottom: 140px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  font-size: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);
}

a {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Arimo', sans-serif;
}
/* * {  outline: 1px solid red;} */

.text-page-head { font-family: 'Poppins' }
.text-marker { font-family: 'Permanent Marker' }
.text-smallcaps { font-variant: small-caps; }
.text-nmg { color: var(--nmg-color) }

.content {
  min-height: 60vh;
}

.smaller { font-size: .75em }
.smallest { font-size: .70em }

.border-expired {
  filter: invert(1);
}

.flip-x { transform: scaleX(-1); }

.btn-wide {
  min-width: 6rem;
}

.btn-pic {
  width: 30px;
  height: 30px;
  text-align: center;
  padding: 6px 0;
  line-height: 1.428571429;
  border-radius: var(--bs-border-radius) !important;
}

.btn-floating {
  opacity: 0.6 !important;
  position: absolute;
}

.btn-floating:hover {
  opacity: 1 !important;
}

.btn-floating-br {
  bottom: 8px;
  right: 8px;
}

.btn-close-delete {
  position: absolute;
  right: 4px;
  top: 1px;
  background-color: var(--nmg-danger);
  opacity: .7 !important;
  border-radius: var(--bs-border-radius) !important;
  filter: none!important;
}

.btn-close-delete:hover {
  opacity: 1 !important;
}

form label.required:after {
  content: ' *';
  color: var(--nmg-danger);
}

.thumbnail-sm img {
  width: 118px;
  height: 118px;
  padding: 3px;
}

.thumbnail-md img {
  width: 160px;
  height: 160px;
  padding: 3px;
}

.thumbnail-lg img {
  width: 196px;
  height: 196px;
  padding: 3px;
}

#hidden_input {
  top: 0;
  left: 0;
  opacity: 0;
}

.table-nmg {
  vertical-align: middle !important;
}

.aspect-2-1 {
  width: 100%;
  padding-bottom: 50%;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.aspect-16-9 {
  width: 100%;
  padding-bottom: 56.25%;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.pager {
  min-width: 10rem;
}

.w-6rem {
  min-width: 6rem;
}

input[name=term] {
  max-width: 8rem;
}

figure.image img {
  margin-bottom: 0.5rem !important;
}

figure.image figcaption {
  font-size: .875em;
}

.blended-icon {
  background-color: transparent !important;
  opacity: .75;
}

.carousel-control-next-icon, .carousel-control-prev-icon {
  width: 5rem;
  height: 5rem;
}

.ribbon {
  margin: -.65rem;
  background-color: var(--nmg-warning);
  opacity: 0.6 !important;
  color: var(--nmg-bg-light);
  padding: 1em;
  position: absolute;
  top: 0;
  right: 0;
  transform: translateX(30%) translateY(0%) rotate(45deg);
  transform-origin: top left;
}

.ribbon:before, .ribbon:after {
  content: '';
  position: absolute;
  top: 0;
  margin: 0 -1px;
  width: 100%;
  height: 100%;
  background-color: var(--nmg-warning);
}

.ribbon:before {
  right: 100%;
}

.ribbon:after {
  left: 100%;
}

.border-dashed { border-style: dashed !important; }
.z-1000 { z-index: 1000; }
.h-1rem { height: 1rem; }
.h-3rem { height: 3rem; }

.toggle-switch {
  background-color: var(--bs-warning);
  border-color: var(--bs-warning);
  transition: background-color 0.3s, border-color 0.3s;
}

.toggle-switch:checked {
  background-color: var(--bs-success);
  border-color: var(--bs-success);
}

.drag-ghost {
  opacity: 0.4;
  background-color: var(--nmg-bg-light);
  border: 2px dashed var(--nmg-border);
}

.roll-img {
  position: relative;
  cursor: grab;
}

.roll-img:active {
  cursor: grabbing;
}

#photo_roll #btnEditCaptions {
  z-index: 1000;
  position: absolute;
  opacity: .9;
  top: 10px;
  left: 10px;
  display: none !important;
}

#photo_roll:hover #btnEditCaptions.displayed {
  display: inline-block !important;
}

.summary-frame {
  background-color: var(--nmg-black);
}

.blur-frame {
  position: relative;
  overflow: hidden;
  height: 256px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  filter: blur(0);
  border-top-left-radius: var(--bs-border-radius) !important;
  border-top-right-radius: var(--bs-border-radius) !important;
}

.blur-frame img {
  max-height: 256px;
  width: auto;
  z-index: 1;
  position: relative;
}

.blur-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.1);
  z-index: 0;
}

.blur-frame-lg { height: 384px; }
.blur-frame-lg img { max-height: 384px; }

.blur-frame-full { height: 100%; }
.blur-frame-full img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-height: none !important;
}


@media (min-width: 768px) {
  .h-md-100 {
    height: 100% !important;
  }
}
@media (min-width: 992px) {
  .h-lg-100 {
    height: 100% !important;
  }
}

@media (max-width: 575.98px) {
  .modal-body,
  .modal-body>.row,
  .modal-body>.row>[class*='col-'] {
    height: auto !important;
    min-height: 0 !important;
  }
  .scroll-card {
    height: auto !important;
  }
  .scroll-card .card-body {
    overflow: visible !important;
    min-height: auto !important;
  }
}

.min-h-0 {
  min-height: 0 !important;
}

.content-card {
  padding: 1rem;
  border-radius: var(--bs-border-radius);
  background-color: var(--nmg-bg-light);
  border: var(--bs-border-width) var(--bs-border-style) var(--nmg-border);
}

.breadcrumb-card {
  font-size: .8rem;
}

.scroll-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
}
.scroll-card .card-body {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}
.scroll-card .card-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 1;
}

.comment-card {
}

.comment-bubble {
  background-color: #f0f2f5;
}

.comment-user {
  font-size: 0.9rem;
  font-weight: 600;
}

.comment-body {
  font-size: 1rem;
}

.comment-input-group {
  background-color: var(--nmg-bg-light);
  border: var(--bs-border-width) var(--bs-border-style) var(--nmg-border) !important;
  border-radius: 16px;
  font-size: .875rem;
}
.comment-input-group .comment-image img:hover {
  border: var(--bs-border-width) var(--bs-border-style) var(--nmg-border) !important;
}
.comment-input {
  padding: 8px 12px;
  min-height: 1rem;
  overflow-y: auto;
  outline: none;
}
.comment-input:empty:before {
  content: attr(placeholder);
  color: #999;
  pointer-events: none;
  display: block;
}
.comment-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.comment-thumbnail {
  padding: .1rem;
  height: auto;
  max-height: 196px;
  max-width: 100%;
}
.comment-viewbar {
  font-size: 0.8rem;
}

/* .post-title {
  font-size: 1.25rem;
} */

.post-byline {
  font-size: 0.9rem;
}

.post-body {
  font-size: 1rem;
}

.post-body img {
  max-height: 25vh;
  border-radius: var(--bs-border-radius) !important;
}

.post-comment-bar {
  font-size: 1rem;
  font-family: "Segoe UI Historic";
}

.btn-outline-nmg {
  color: var(--nmg-color);
  border-color: var(--nmg-color);
  background-color: transparent;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-outline-nmg:hover,
.btn-outline-nmg:focus,
.btn-outline-nmg.active,
.btn-outline-nmg:active,
.show>.btn-outline-nmg.dropdown-toggle {
  color: #fff;
  background-color: var(--nmg-color-alt);
  border-color: var(--nmg-color-alt);
}

.btn-icon {
  opacity: 0.6 !important;
  width: 1.25rem;
  height: 1.25rem;
  padding: 1.25rem;
  font-size: 1.25rem;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-md {
  width: 1rem;
  height: 1rem;
  padding: 1rem;
  font-size: 1rem;
}

.btn-icon-sm {
  width: .75rem;
  height: .75rem;
  padding: .75rem;
  font-size: .75rem;
}

.btn-icon:hover {
  opacity: 1 !important;
}

.btn-icon.active {
  border-color: var(--bs-warning);
  color: var(--bs-warning);
}

.btn-icon.bottom-right {
  position: absolute;
  bottom: .45rem;
  right: .45rem;
}

.btn-icon.top-right {
  position: absolute;
  bottom: .45rem;
  right: .45rem;
}

.btn-icon-link {
  color: var(--nmg-black);
}

.btn-icon-link:hover {
  border: var(--bs-border-width) var(--bs-border-style) var(--nmg-color-alt) !important;
  color: var(--nmg-color-alt);
}

/* JIGGLE DOTS */
.centered-logo-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.0rem;
  line-height: 1;
  color: var(--nmg-color);
}

.centered-logo-line .bull-1 { font-size: 0.75rem; }
.centered-logo-line .bull-2 { font-size: 1.00rem; transform: translateY(-0.2rem); }
.centered-logo-line .bull-3 { font-size: 1.25rem; transform: translateY(-0.2rem); }

.centered-logo-line img {
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
}

.centered-logo-line span,
.centered-logo-line img {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes slideDot {
  0%   { transform: translateY(-0.05rem); }
  10%  { transform: translateY(-0.10rem); }
  20%  { transform: translateY(-0.15rem); }
  30%  { transform: translateY(-0.20rem); }
  37%  { transform: translateY(-0.14rem); }
  44%  { transform: translateY(-0.07rem); }
  50%  { transform: translateY(0.0rem); }
  56%  { transform: translateY(0.07rem); }
  63%  { transform: translateY(0.14rem); }
  70%  { transform: translateY(0.20rem); }
  80%  { transform: translateY(0.15rem); }
  90%  { transform: translateY(0.08rem); }
  100% { transform: translateY(0.0rem); }
}


.centered-logo-line span {
  animation: slideDot 1.0s ease-in-out infinite;
  animation-play-state: paused;
}

.centered-logo-line:hover span {
  animation-play-state: running;
}

.centered-logo-line span:nth-child(1) { animation-delay: 0s; }
.centered-logo-line span:nth-child(2) { animation-delay: 0.1s; }
.centered-logo-line span:nth-child(3) { animation-delay: 0.2s; }
.centered-logo-line span:nth-child(4) { animation-delay: 0.3s; }
.centered-logo-line span:nth-child(5) { animation-delay: 0.2s; }
.centered-logo-line span:nth-child(6) { animation-delay: 0.1s; }
.centered-logo-line span:nth-child(7) { animation-delay: 0s; }

/* IMAGE MODAL */
.image-modal-layout {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}
.image-modal-image {
  background-color: #0c1a19;
  flex: 1 1 65%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.image-modal-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border: none;
}
.image-modal-sidebar {
  flex: 1 1 35%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 899.98px) {
  .image-modal-layout {
    flex-direction: column;
  }
  .image-modal-image, .image-modal-sidebar {
    flex: 1 1 100%;
  }
  .image-modal-img {
    max-height: 50vh;
  }
}