.hero-title, .logo, #logo-dialog {
  visibility: hidden;
}

.wf-active .hero-title, .wf-active .logo, .wf-active #logo-dialog,
.wf-inactive .hero-title, .wf-inactive .logo, .wf-inactive #logo-dialog {
  visibility: visible;
}

:root {
  --link-color: #679569;
  --muted-color: #aaa;
  --border-color: #ccc;
}

[data-bs-theme="dark"] {
  --bs-body-bg: #1a1a1a;
  --bs-body-bg-rgb: 26, 26, 26;
  --bs-body-color: #e1e1e1;
  --bs-body-color-rgb: 225, 225, 225;
  --bs-secondary-bg: #242424;
  --bs-tertiary-bg: #2d2d2d;
  --bs-border-color: #444;
  --bs-heading-color: #fff;
  --bs-link-color: var(--link-color);
  
  --link-color: #8ab78c;
  --muted-color: #888;
  --border-color: #444;
}

[data-bs-theme="dark"] body {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] h1, 
[data-bs-theme="dark"] h2, 
[data-bs-theme="dark"] h3, 
[data-bs-theme="dark"] h4, 
[data-bs-theme="dark"] h5, 
[data-bs-theme="dark"] h6 {
  color: var(--bs-heading-color) !important;
}

[data-bs-theme="dark"] .card {
  --bs-card-bg: #242424;
  --bs-card-border-color: var(--bs-border-color);
  box-shadow: 5px 5px #000 !important;
}

[data-bs-theme="dark"] .card-title,
[data-bs-theme="dark"] .card-text,
[data-bs-theme="dark"] .card-body,
[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-footer {
  color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .navbar {
  background-color: #1a1a1a !important;
}

[data-bs-theme="dark"] .modal-content {
  background-color: #1a1a1a !important;
  color: var(--bs-body-color);
  border-color: var(--bs-border-color) !important;
}

.modal-header {
  border-bottom: none !important;
}

#signin-modal .modal-header {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

[data-bs-theme="dark"] .modal-footer {
  border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
}

[data-bs-theme="dark"] .navbar-toggler-icon {
  filter: invert(1) brightness(1);
}

[data-bs-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .text-muted {
  color: var(--muted-color) !important;
}

[data-bs-theme="dark"] hr {
  background-color: var(--bs-border-color);
  opacity: 1;
}

[data-bs-theme="dark"] .logo img {
  filter: invert(1);
}

[data-bs-theme="dark"] .divider-text {
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .divider:before,
[data-bs-theme="dark"] .divider:after,
[data-bs-theme="dark"] .divider .divider-text:before,
[data-bs-theme="dark"] .divider .divider-text:after,
[data-bs-theme="dark"] .divider::before,
[data-bs-theme="dark"] .divider::after,
[data-bs-theme="dark"] .divider .divider-text::before,
[data-bs-theme="dark"] .divider .divider-text::after {
  border-top: 2px solid #888 !important;
  border-color: #888 !important;
}

[data-bs-theme="dark"] .btn:not(.btn-link) {
  border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .btn-outline-secondary {
  color: var(--muted-color) !important;
  border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .btn-outline-primary {
  color: #8ab78c !important; /* using the theme's green for consistency */
  border-color: #8ab78c !important;
}

[data-bs-theme="dark"] .btn-outline-primary:hover,
[data-bs-theme="dark"] .btn-outline-secondary:hover {
  background-color: var(--bs-tertiary-bg) !important;
  color: #fff !important;
}

[data-bs-theme="dark"] .nav-link {
  color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .nav-link:hover {
  color: var(--bs-link-color) !important;
  background-color: var(--bs-tertiary-bg) !important;
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
  color: var(--bs-link-color) !important;
  /*border-bottom: 2px solid var(--bs-link-color) !important;*/
}

[data-bs-theme="dark"] .badge.bg-light-secondary {
  background-color: var(--bs-tertiary-bg) !important;
  color: var(--bs-body-color) !important;
  border: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .badge.tag a {
  color: inherit !important;
}

[data-bs-theme="dark"] .badge.tag a:hover {
  color: var(--bs-link-color) !important;
}
.hero-title.font-passion { font-family: 'Passion One', cursive; font-weight: 900; }
.hero-title.font-ultra { font-family: 'Ultra', serif; }
.hero-title.font-outfit { font-family: 'Outfit', sans-serif; font-weight: 900; }
.hero-title.font-bowlby { font-family: 'Bowlby One', cursive; }
.hero-title.font-prata { font-family: 'Prata', serif; }
.hero-title.font-sora { font-family: 'Sora', sans-serif; font-weight: 800; }
.hero-title.font-instrument { font-family: 'Instrument Sans', sans-serif; font-weight: 700; }
.hero-title.font-rethink { font-family: 'Rethink Sans', sans-serif; font-weight: 800; }
.hero-title.font-cormorant { font-family: 'Cormorant', serif; font-weight: 700; }
.hero-title.font-eczar { font-family: 'Eczar', serif; font-weight: 800; }
.hero-title.font-urbanist { font-family: 'Urbanist', sans-serif; font-weight: 900; }
.hero-title.font-stint { font-family: 'Stint Ultra Expanded', cursive; }
.hero-title.font-stoke { font-family: 'Stoke', serif; font-weight: 300; }
.hero-title.font-gabarito { font-family: 'Gabarito', sans-serif; font-weight: 900; }
.hero-title.font-youngserif { font-family: 'Young Serif', serif; }
.hero-title.font-georama { font-family: 'Georama', sans-serif; font-weight: 900; }
.hero-title.font-tokyo { font-family: 'Zen Tokyo Zoo', system-ui; }
.hero-title.font-baumans { font-family: 'Baumans', cursive; }
.hero-title.font-daysone { font-family: 'Days One', sans-serif; }
.hero-title.font-rclouds { font-family: 'Rubik Clouds', system-ui; }
.hero-title.font-antic { font-family: 'Antic Didone', serif; }
.hero-title.font-rambla { font-family: 'Rambla', sans-serif; font-weight: 700; }
.hero-title.font-josefin { font-family: 'Josefin Sans', sans-serif; font-weight: 700; }

.hero-title {
  font-family: 'Zen Tokyo Zoo', system-ui;
  font-size: clamp(2.2rem, 10vw, 4.5rem);
  font-weight: normal;
  /*
  font-weight: 700;
  letter-spacing: 0.25em;
  */
  margin-right: -0.25em; /* center compensation */
  line-height: 1.2;
  margin-bottom: 2rem;
  color: #1a1a1a;
  position: relative;
  display: inline-block;
}

#logo-dialog {
  font-family: 'Zen Tokyo Zoo', system-ui;
  font-weight: normal;
  font-size: 2.2rem;
  line-height: 1;
}

[data-bs-theme="dark"] .hero-title {
  color: #fff;
}

/* Refined effects for small screens */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  [data-bs-theme="dark"] .hero-title {
  }
}



.cursor-pointer {
  cursor: pointer;
}

.link {
  /* match brutopia's "p a" colors */
  color: var(--link-color) !important;
  font-weight: 600 !important;
}

.logo {
  font-family: 'Zen Tokyo Zoo', system-ui;
  /*
  display: flex;

  flex-direction: column; 
  align-items: center;   
  line-height: 0.8;
  color: var(--muted-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px;
  font-size: 18px;
  */
}

.navbar .navbar-brand img {
  height: 2.3em !important;
}

.modal-header .logo img {
  height: 1.8rem !important;
}

#theme-toggle {
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.navbar-nav {
  align-items: center;
}

@media (max-width: 991.98px) {
  .navbar-nav {
    align-items: flex-start;
  }
  #theme-toggle {
    padding-left: 0;
  }
}

/* Alertify Flat Overrides */
.alertify .ajs-header {
  border-bottom: none !important;
}
.alertify .ajs-footer {
  border-top: none !important;
}

[data-bs-theme="dark"] .alertify .ajs-dialog {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}
[data-bs-theme="dark"] .alertify .ajs-body,
[data-bs-theme="dark"] .alertify .ajs-content {
  color: var(--bs-body-color) !important;
}
[data-bs-theme="dark"] .alertify .ajs-header {
  background-color: var(--bs-body-bg);
  color: var(--bs-heading-color) !important;
}
[data-bs-theme="dark"] .alertify .ajs-footer {
  background-color: var(--bs-body-bg);
}
