/* -------------------------------------------------------- */
/* LOADING / INITIAL FADE-IN */
/* -------------------------------------------------------- */

html.js body {
  opacity: 0;
}

html.js.page-ready body {
  opacity: 1;
  transition: opacity .28s ease;
}

/* -------------------------------------------------------- */
/* VARIABLES */
/* -------------------------------------------------------- */

:root {
  /* Background Colors */
  --content-background-color: #E8D6BD;
  --background-color: #5a3a29;
  --sidebar-background-color: #5A3A29;

  /* Text Colors */
  --text-color: #000000;
  --sidebar-text-color: #ffffff;
  --link-color: #2e1c0a;
  --link-color-hover: #7f5c38;
  --highlight-color: #ffc531;

  /* Typography */
  --font: Times New Roman, serif;
  --heading-font: Georgia, serif;
  --font-size-XXS: 1.025em;
  --font-size-XS: 1.1em;
  --font-size-S: 1.2em;
  --font-size-M: 1.3em;
  --font-size-L: 1.4em;
  --font-size-XL: 1.5em;
  

  /* Spacing & Borders */
  --margin: 10px;
  --padding: 20px;
  --padding-sm: 10px;
  --margin-sm: 5px;
  --border: 2px solid #000000;
  --round-borders: 14px;
  --sidebar-width: 200px;

  /* Navbar */
  --ink-900: #140f0a;
  --ink-700: #21182b;
  --ui-800: #5A3A29;
  --btn-800: #ddbe88;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-l: 10px;
  --radius-m: 7.5px;
  --radius-s: 5px;
  --radius-xs: 2.5px;
  --pad: 14px;
  --gap: 1em;
  --stroke-thick: 5px;
  --stroke: 3px;
  --stroke-thin: 2px;
  --stroke-thinalt: 3px;
  --text: #311b06;
  --text-alt: rgba(72, 31, 2, 0.9);
  --shadow: 0 10px 30px rgba(0,0,0,.35);

  /* Tooltip */
  --tt-bg: #fff8cb;
  --tt-border: #5A3A29;
  --tt-text: #2e1c0a;
  --tt-radius: 12px;
  --tt-shadow: 0 10px 30px rgba(0,0,0,.25);

  /* ------------------------------
   Internal Box
   ------------------------------ */
  --IB-bg: #efe5d7;        
  --IB-bg-alt: #ddba88;    
  --IB-bg-alt-2: rgba(247, 236, 224, 0.8);
  --IB-bg-alt-3: rgb(241, 218, 192);   
  --IB-text: #4B2E12;
  --IB-text-alt: #1c0c02;       
  --IB-primary: #865D21;     
  --IB-accent: #ddbe88;      
  --IB-warning: #49110b;
  --IB-warning-BG:rgb(214 139 111 / 75%);
  --IB-border: rgba(75,46,18,.2);
  --IB-radius: 16px;
  --IB-trans: .25s ease;

  /* ------------------------------
   Misc
   ------------------------------ */
  --btn-background-1: rgba(254, 245, 236, 0.75);
  --btn-background-2: rgba(50, 22, 4, 0.75);

}

/* -------------------------------------------------------- */
/* BASIC RESET */
/* -------------------------------------------------------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* -------------------------------------------------------- */
/* BASICS */
/* -------------------------------------------------------- */

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  font-size: var(--font-size-XXS);
  margin: 0;
  padding: var(--margin);
  color: var(--text-color);
  font-family: var(--font);
  line-height: 1.2;
  background: var(--background-color);
  background-image: url("/Files/SiteImages/OCaK-Background.jpg");
  background-attachment: fixed !important;
}

::selection {
  background: rgba(0, 0, 0, 0.2);
}

mark {
  text-shadow: 1px 1px 5px var(--highlight-color);
  background-color: inherit;
  color: var(--text-color);
}

/* Links */
a {
  text-decoration: underline;
}

a,
a:visited {
  color: var(--link-color);
}

a:hover,
a:focus {
  color: var(--link-color-hover);
  text-decoration: none;
}

/* -------------------------------------------------------- */
/* Font Customs */
/* -------------------------------------------------------- */

.extraextrasmallfont {
  font-size: var(--font-size-XXS) !important;
}
.extrasmallfont {
  font-size: var(--font-size-XS) !important;
}
.smallfont {
  font-size: var(--font-size-S) !important;
}
.mediumfont {
  font-size: var(--font-size-M) !important;
}
.largefont {
  font-size: var(--font-size-L) !important;
}
.extralargefont {
  font-size: var(--font-size-XL) !important;
}



/* -------------------------------------------------------- */
/* LAYOUT */
/* -------------------------------------------------------- */

.layout {
  width: 95%;
  display: grid;
  grid-gap: var(--margin);
  grid-template:
    "headerbanner headerbanner" auto
    "header header" auto
    "leftSidebar main" auto
    "footer footer" auto /
    var(--sidebar-width) auto;
}

/* Main content container */
main {
  grid-area: main;
  overflow-y: auto;
  padding: var(--padding-sm);
  background: var(--background-color);
  border: var(--border);
  border-radius: var(--round-borders);
  line-height: 1.5;
}

main#content.fullmain {
  grid-area: leftSidebar / leftSidebar / main / main  !important;
}

/* Internal container box */
.internalbox-half,
.internalbox {
  overflow-y: auto;
  margin: var(--margin-sm);
  padding: var(--padding-sm);
  background: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders);
}

.charactergrouppages {
  height: fit-content !important;
}

.internalboxhalves {
  display: flex;
  justify-content: space-between;
}

.internalbox-half {
  width: 50%;
}

.internalbox-half h1,
.internalbox h1 {
  text-align: center;
}

/* Internal grid layout (2 columns) */
.internalgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 8px;
}

.internalright img {
  margin: 5% auto 5% 12.5% !important;
}

.internalrightfull img {
  margin: 5% auto !important;
  width: 100% !important;
}


/* -------------------------------------------------------- */
/* CONTENT TYPOGRAPHY & LAYOUT */
/* -------------------------------------------------------- */

/* Stack rows vertically but keep content centered */
.row.stack {
  flex-direction: column;
  align-items: center;
}

.row.stack h1,
.row.stack p {
  text-align: center;
}

main a,
main a:visited {
  color: var(--link-color);
}

main a:hover,
main a:focus {
  color: var(--link-color-hover);
  text-decoration-style: wavy;
}

main p,
main .image,
main .full-width-image,
main .two-columns {
  margin: 0.75em 0;
}

main ol,
main ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

main ol li,
main ul li {
  margin-bottom: 0.2em;
  line-height: 1.3;
}

main ol {
  padding-left: 2em;
}

main blockquote {
  background: rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin: 1em 0;
  border-radius: 10px;
}

main pre {
  margin: 1em 0 1.5em;
}

main code {
  text-transform: none;
}

main center {
  margin: 1em 0;
  padding: 0 1em;
}

main hr {
  border: 0;
  border-top: var(--border);
  margin: 1.5em 0;
}

/* Headings */

main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  font-family: var(--heading-font);
  margin-bottom: 0;
  line-height: 1.5;
}

main h1:first-child,
main h2:first-child,
main h3:first-child,
main h4:first-child,
main h5:first-child,
main h6:first-child {
  margin-top: 0;
}

main h1 { font-size: 1.5em; }
main h2 { font-size: 1.4em; }
main h3 { font-size: 1.3em; }
main h4 { font-size: 1.2em; }
main h5 { font-size: 1.1em; }
main h6 { font-size: 1em; }

/* Two-column content layout */

.two-columns {
  display: flex;
}

.two-columns > * {
  flex: 1 1 0;
  margin: 0;
}

.two-columns > *:first-child {
  padding-right: 0.75em;
}

.two-columns > *:last-child {
  padding-left: 0.75em;
}

/* -------------------------------------------------------- */
/* CONTENT IMAGES */
/* -------------------------------------------------------- */

.image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.full-width-image {
  display: block;
  width: 100%;
  height: auto;
}

.images {
  display: flex;
  width: calc(100% + 10px);
  margin-left: -5px;
  margin-right: -5px;
}

.images img {
  width: 100%;
  height: auto;
  padding: 5px;
  margin: 0;
  overflow: hidden;
}

/* -------------------------------------------------------- */
/* ACCESSIBILITY */
/* -------------------------------------------------------- */

#skip-to-content-link {
  position: fixed;
  top: 0;
  left: 0;
  display: inline-block;
  padding: 0.375rem 0.75rem;
  line-height: 1;
  font-size: 1.25rem;
  background-color: var(--content-background-color);
  color: var(--text-color);
  transform: translateY(-3rem);
  transition: transform 0.1s ease-in;
  z-index: 99999999999;
}

#skip-to-content-link:focus,
#skip-to-content-link:focus-within {
  transform: translateY(0);
}

/* -------------------------------------------------------- */
/* MOBILE LAYOUT (PAGE-WIDE) */
/* -------------------------------------------------------- */

@media (max-width: 800px) {
  body {
    font-size: 14px;
  }

  .layout {
    width: 100%;
    grid-template:
      "headerbanner" auto
      "header" auto
      "main" auto
      "footer" auto /
      1fr;
  }

  #header {
    position: static !important;
  }

  .header-content {
    position: static !important;
  }

  main#content.fullmain {
    grid-area: main !important;
  }

  .left-sidebar,
  .right-sidebar {
    display: none;
  }

  aside {
    border-bottom: 1px solid;
    padding: 9px;
    font-size: 0.9em;
  }

  nav {
    padding: 0;
  }

  nav > ul {
    padding-top: 0.5em;
  }

  nav > ul li > a,
  nav > ul li > details summary,
  nav > ul li > strong {
    padding: 0.5em;
  }

  main {
    max-height: none;
    padding: 15px;
  }

  .images {
    flex-wrap: wrap;
  }

  .images img {
    width: 100%;
  }

  #skip-to-content-link {
    font-size: 1rem;
  }

  .internalboxhalves,
  .internalgrid {
  display:block;
  width: auto;
  }

  .internalbox-half {
    width: auto;
  }

  
}

/* -------------------------------------------------------- */
/* UTILITY CLASSES */
/* -------------------------------------------------------- */

.rounded-0 {
  border-radius: .75rem !important;
}

/* -------------------------------------------------------- */
/* ANIMATIONS */
/* -------------------------------------------------------- */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* -------------------------------------------------------- */
/* Spoiler Text */
/* -------------------------------------------------------- */
.spoiler-text {
  background: #3d2502;
  color: transparent;
  border-radius: 3px;
  padding: 0 0.25em;
  cursor: pointer;
}

.spoiler-text::selection {
  background: #3d2502;
  color: transparent;
}

.spoiler-text.revealed {
  background: none;
  color: inherit;
}


/* -------------------------------------------------------- */
/* Lightbox */
/* -------------------------------------------------------- */
.gallerythumbnail {
  text-decoration: none !important;
  max-width: 25%;
  max-height: 50vh;
  position: relative;      /* needed for overlay positioning */
  display: inline-block;   /* so width/height behave nicely */
}

.gallerythumbnail img {
  max-width: 100%;         /* let the anchor control the size */
  max-height: 50vh;
  display: block;
}

/* overlay text for mature thumbs */
.gallerythumbnail.maturefilter::before {
  content: attr(data-mature-label);
  position: absolute;
  inset: 0;                            /* fill the whole thumbnail */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
  text-align: center;
  padding: 0.5em;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.75);     /* dark overlay over the blur */
  pointer-events: none;                /* click still goes to the <a> */
}

.fslightbox-container {
    background: linear-gradient(rgba(232, 208, 181, 0.9), #000000 1810%) !important;
}


/* -------------------------------------------------------- */
/* To-Do Lists */
/* -------------------------------------------------------- */
.ToDoLists {  display: grid;
  grid-template-columns: 33% 33% 33%;
  grid-template-rows: auto;
  gap: 0% 0.5px;
  grid-auto-flow: row;
  grid-template-areas:
    "SiteToDo CreativeToDo OtherToDo";
  justify-items: center;
}

.ToDoTitles {
  text-align: center;
}

.SiteToDo { grid-area: SiteToDo; }

.CreativeToDo { grid-area: CreativeToDo; }

.OtherToDo { grid-area: OtherToDo; }

@media (max-width: 800px) {
  .ToDoLists {
    width: 100% !important;
    grid-template:
      "ToDoLists" auto
      "SiteToDo" auto
      "CreativeToDo" auto
      "OtherToDo" auto /
      1fr;
    grid-template-columns: auto;
    gap: auto;
  }
}


/* -------------------------------------------------------- */
/* Simple/Quick Classes */
/* -------------------------------------------------------- */

.CenterTitle {
  text-align: center !important;
}


/* -------------------------------------------------------- */
/* HEADER */
/* -------------------------------------------------------- */

#headerbanner,
headerbanner,
.headerbanner {
  grid-area: headerbanner;
  transform: translate(0);
  transform-style: preserve-3d;
}

.shadow:before {
  content: "";
  position: absolute;
  inset: -10px;
  background: conic-gradient(from 90deg at 40% -25%, #3b20037b);
  filter: blur(11px);
  transform: translate3d(0px, 0px, -1px);
  border-radius: inherit;
  pointer-events: none;
}

#header {
  grid-area: header;
  font-size: 1.1em;
  position: sticky;
  top: 0;
  z-index: 9999;
}

@media (max-width: 1025px) {
  #header {
    font-size: 0.9em;
  }
}

.header-content {
  padding: var(--padding);
  position: sticky !important;
  top: 0 !important;
}

.header-title {
  font-family: var(--heading-font);
  font-size: 1.5em;
  font-weight: bold;
}

.header-image,
.header-image img {
  background: none !important;
  filter: blur(none) !important;
}

.header-image img {
  width: 100%;
  height: auto;
}

/* Animate to X when open */
.mega-nav.is-open .nav-toggle-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
  transform-origin: center;
}

.mega-nav.is-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.mega-nav.is-open .nav-toggle-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  transform-origin: center;
}

/* Mobile nav layout */
@media (max-width: 800px) {
  #header {
    font-size: 1.2em !important;
  }

  .mega-nav {
    padding: 2.5%;
  }

  .nav-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 85%;
    margin: 2.5% auto;
    font-weight: 900;
    background: var(--btn-800);
    color: var(--text);
    border: var(--stroke-thin) solid var(--ink-900);
    border-radius: 12px;
    padding: 12px 0;
    box-shadow:
      inset 0 0 0 var(--stroke-thin) rgba(255,255,255,.04),
      0 2px 0 rgba(0,0,0,.35),
      0 6px 16px rgba(0,0,0,.4);
    cursor: pointer;
  }

  .nav-toggle-box {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    margin-right: 8px;
  }

  .nav-toggle-line {
    width: 20px;
    height: 2px;
    background: var(--ink-900);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .mega-nav.is-open .nav-toggle-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .mega-nav.is-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .mega-nav.is-open .nav-toggle-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  /* Dropdown panel */
  .mega-nav .mega-row {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: var(--pad);
    border-radius: var(--radius-lg);
    background: var(--content-background-color);
  }

  .mega-nav.is-open .mega-row {
    display: flex;
  }

  /* Menu items ~90% width, centered */
  .mega-row > li {
    flex: none;
    display: block;
    width: 90%;
  }

  .mega-row > li > .mega-btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Dropdown inside panel sits in-flow */
  .dropdown-menu {
    position: static;
    display: none;
    width: 90%;
    box-shadow: none;
    border: var(--stroke-thin) solid var(--ink-900);
    margin-top: 6px;
    border-radius: var(--radius-lg);
  }

  .dropdown-menu.open {
    display: block;
  }
}



/* -------------------------------------------------------- */
/* FOOTER */
/* -------------------------------------------------------- */

footer {
  grid-area: footer;
  border: var(--border);
  border-radius: var(--round-borders);
  overflow: hidden;
  font-size: 0.75em;
  padding: 15px;
  background: var(--content-background-color);
  display: flex;
  justify-content: center;
}

footer a,
footer a:visited {
  color: var(--link-color);
}

footer a:hover,
footer a:focus {
  color: var(--link-color-hover);
}


/* -------------------------------------------------------- */
/* NAVBAR */
/* -------------------------------------------------------- */

.mega-nav {
  background: var(--ui-800);
  padding: calc(var(--pad) - 4px);
  border-radius: var(--radius-xl);
  border: var(--stroke) solid var(--ink-900);
  box-shadow:
    inset 0 0 0 var(--stroke-thin) rgba(255,255,255,.04),
    var(--shadow);
  max-width: 1100px;
  margin: 0 auto;
}

/* Flex row container */
.mega-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap);
  list-style: none;
  padding: calc(var(--pad) - 6px) calc(var(--pad) - 2px);
  margin: 0;
  background: var(--content-background-color);
  border: var(--stroke-thin) solid var(--ink-700);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 0 0 var(--stroke-thin) rgba(255,255,255,.04),
    var(--shadow);
}

/* Make list items flex children and pass sizing to anchors */
.mega-row > li {
  flex: 1;
  display: flex;
  min-width: 0;
}

/* Buttons */
.mega-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  color: var(--link-color);
  background: var(--btn-800);
  padding: 7.5% 2%;
  border-radius: 12px;
  border: var(--stroke-thin) solid var(--ink-900);
  box-shadow: 4px 4px 10px 3px #000000;
  transition: transform .08s ease, box-shadow .12s ease, color .12s ease;
}

/* Ensure button fills <li> */
.mega-row > li > .mega-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover / active states */
.mega-btn:hover,
.mega-btn:focus-visible {
  color: #7f5c38;
  box-shadow: 4px 4px 10px 3px #000000;
  transform: translateY(-1px);
}

.mega-btn:active {
  transform: translateY(0);
  box-shadow: 4px 4px 10px 3px #000000;
}

.dropdown-label {
  background: #55371b;
  padding: 0.5em 1em;
  font-size: 0.75em;
  font-weight: bold;
  text-transform: uppercase;
  color: #f8e6cf;
  cursor: default;
  pointer-events: none;
}


/* -------------------------------------------------------- */
/* DROPDOWN MENU */
/* -------------------------------------------------------- */

.dropdown {
  position: relative;
}

/* Outer dropdown box */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 180px;
  background: var(--btn-800);
  border: var(--stroke-thin) solid var(--ink-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 10000;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow: clip;
}

.dropdown-menu.open {
  display: block;
  box-shadow: 4px 4px 10px 3px #000000;
}

/* Dropdown links */
.dropdown-menu li a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  text-align: left;
  font-weight: 600;
  background: var(--btn-800);
  transition: background 0.15s ease, color 0.15s ease;
  border-radius: 0;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  background: var(--link-color-hover);
  color: #fff;
}

/* -------------------------------------------------------- */
/* HAMBURGER / MOBILE NAV */
/* -------------------------------------------------------- */
@media (min-width: 801px) {
  .nav-toggle {
    display: none;
  }
  .mega-nav {
  height: 5.5em;
  }
  .mega-row {
    height: 100%;
  }

  /* Make list items flex children and pass sizing to anchors */
  .mega-row > li {
    height: 100%;
  }
}

.nav-toggle {
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 900;
  background: var(--btn-800);
  color: var(--text);
  border: var(--stroke-thin) solid var(--ink-900);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow:
    inset 0 0 0 var(--stroke-thin) rgba(255,255,255,.04),
    0 2px 0 rgba(0,0,0,.35),
    0 6px 16px rgba(0,0,0,.4);
  cursor: pointer;
}

.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  background: var(--ink-900);
  display: block;
}

/* -------------------------------------------------------- */
/* DESKTOP NAV SHOW/HIDE TOGGLE (BOTTOM LEFT)               */
/* -------------------------------------------------------- */

.nav-pin-toggle {
  position: fixed;
  bottom: 5%;
  left: 0.5%;
  z-index: 10001;
  padding: 1% 0.25%;
  font: inherit;
  font-weight: 200;
  font-size: 0.6em !important;
  border-radius: 14px;
  border: 2px solid #000;
  background: var(--btn-800);
  color: #000;
  box-shadow: 2px 2px 5px 1.5px #000000;
  cursor: pointer;

  /* Hidden by default; we only show it on desktop */
  display: none;
  width: 3%;
}

.nav-pin-toggle:hover,
.nav-pin-toggle:focus-visible {
  color: #7f5c38;
  box-shadow: 4px 4px 10px 3px #000000;
  transform: translateY(-1px);
}
.nav-pin-toggle:active {
  transform: translateY(0);
  box-shadow: 4px 4px 10px 3px #000000;
}

/* Desktop only */
@media (min-width: 801px) {
  .nav-pin-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* When "collapsed", hide the navbar entirely on desktop */
  .mega-nav.mega-nav--hidden-desktop {
    display: none;
  }
}

/* -------------------------------------------------------- */
/* SIDEBARS */
/* -------------------------------------------------------- */

aside {
  grid-area: aside;
  border: var(--border);
  border-radius: var(--round-borders);
  overflow: hidden;
  background: var(--sidebar-background-color);
  padding: var(--padding);
  color: var(--sidebar-text-color);
  height: fit-content !important;
  position: sticky;
  top: 15%;
}

.left-sidebar {
  grid-area: leftSidebar;
}

.right-sidebar {
  grid-area: rightSidebar;
}

.sidebar-title {
  font-weight: bold;
  font-size: 1.2em;
  font-family: var(--heading-font);
}

.sidebar-section:not(:last-child) {
  margin-bottom: 3em;
}

.sidebar-section ul,
.sidebar-section ol {
  padding-left: 1.5em;
}

.sidebar-section > *:not(p):not(ul):not(ol):not(blockquote) {
  margin-top: 10px;
}


/* Quick Nav */
.sidebarquicknav a,
.sidebarquicknav a:visited{
  text-decoration: none;
  color: #f2e8d8;
}


.sidebarquicknav a:hover,
.sidebarquicknav a:focus {
  color: #c9b699;
  text-decoration: underline;
}

/* Sidebar blockquote */
.sidebar-section blockquote {
  background: rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin: 1em 0;
  border-radius: 10px;
  overflow: hidden;
}

.sidebar-section blockquote > *:first-child {
  margin-top: 0;
}

.sidebar-section blockquote > *:last-child {
  margin-bottom: 0;
}

/* Site button */
.site-button {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-button textarea {
  font-family: monospace;
  font-size: 0.7em;
}



/* -------------------------------------------------------- */
/* SITE UNDER CONSTRUCTION BADGE */
/* -------------------------------------------------------- */

.construction-notice {
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: #ddbe88;
  color: #000;
  border: 2px solid #000;
  border-radius: 14px;
  padding: 8px 16px;
  font-family: var(--heading-font, Georgia, serif);
  font-size: 14px;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


/* -------------------------------------------------------- */
/* Back to top */
/* -------------------------------------------------------- */

.backtotop {
  position: fixed;
  bottom: 5%;
  right: 0.5%;
  background-color: #ddbe88;
  color: #000;
  border: 2px solid #000;
  border-radius: 14px;
  padding: 1% 0.5%;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  box-shadow: 2px 2px 5px 1.5px #000000;
  transition: transform .08s ease, box-shadow .12s ease, color .12s ease;
  text-decoration: none;
}

.backtotop:hover,
.backtotop:focus-visible {
  color: #7f5c38;
  box-shadow: 4px 4px 10px 3px #000000;
  transform: translateY(-1px);
}

.backtotop:active {
  transform: translateY(0);
  box-shadow: 4px 4px 10px 3px #000000;
}

@media (max-width: 800px) {
  .backtotop {
    bottom: 5%;
    right: 0.75%;
    padding: 2% 0.5%;
  }


}

/* -------------------------------------------------------- */
/* TOOLTIP */
/* -------------------------------------------------------- */

.ui-tooltip {
  position: absolute;
  z-index: 1000000001;
  background: var(--tt-bg);
  color: var(--tt-text);
  border: 2px solid var(--tt-border);
  border-radius: var(--tt-radius);
  padding: 10px 12px;
  box-shadow: var(--tt-shadow);
  font: 600 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Arrow container */
.ui-tooltip .ui-tooltip-arrow {
  position: absolute;
  width: 0;
  height: 0;
}

/* Tooltip above target → arrow bottom */
.ui-tooltip .ui-tooltip-arrow.top {
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--tt-border);
}

.ui-tooltip .ui-tooltip-arrow.top::after {
  content: "";
  position: absolute;
  left: -10px;
  top: -12px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--tt-bg);
}

/* Tooltip below target → arrow top */
.ui-tooltip .ui-tooltip-arrow.bottom {
  left: 50%;
  transform: translateX(-50%);
  top: -10px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--tt-border);
}

.ui-tooltip .ui-tooltip-arrow.bottom::after {
  content: "";
  position: absolute;
  left: -10px;
  top: -8px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--tt-bg);
}

.ui-tooltip .ui-tooltip-content {
  display: block;
}


/* -------------------------------------------------------- */
/* HR Lines*/
/* -------------------------------------------------------- */

.bookends {
  position: relative;
  border-width: 5px;
  border-color: rgb(40, 17, 1) transparent;
  height: 11px;
  border-style: double;
  width: 90%;
  margin: 0 5%;
}
.bookends:before,
.bookends:after {
  position: absolute;
  bottom: -3.536px;
  width: 7.071px;
  height: 7.071px;
  display: block;
  border-width: 0 7.071px 7.071px 0;
  border-color:rgb(40, 17, 1);
  border-style: double;
  box-sizing: border-box;
}
.bookends:before {
  transform: translateZ(0) rotate(-45deg);
  left: -21px;
}
.bookends:after {
  transform: translateZ(0) rotate(135deg);
  right: -21px;
}

.linepadding {
  margin: 5% auto !important;
}



.flair {
  height: 30px;
  border-style: solid;
  border-color:rgb(40, 17, 1);
  border-width: 1px 0 0 0;
  border-radius: 15px;
  width: 100%;
  margin: 0;
}
.flair:before {
  display: block;
  height: 30px;
  margin-top: -31px;    
  border-style: solid;
  border-color:rgb(40, 17, 1);
  border-width: 0 0 1px 0;
  border-radius: 15px;
}


/* -------------------------------------------------------- */
/* SPLASH PAGE LAYOUT */
/* -------------------------------------------------------- */

.splashlayout {
  width: 95%;
}

.splashlayout main {
  margin: auto !important;
  width: 75% !important;
}

/* Splash box */

.splash-box {
  text-align: center;
  background: var(--content-background-color);
  padding: 1.5%;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
  animation: fadeIn 1.2s ease-in-out;
}

.splash-box .internalgrid .internalleft {
  margin: auto !important;
}

.splash-box h1 {
  font-size: 1.5em;
}

.splash-box .agreementtext p {
  font-size: 1.2em;
  opacity: 0.9;
}

.splash-box .splashbanner img {
  width: 75%;
  height: auto;
}

.splash-box .internalgrid .internalright img {
  width: 50%;
  height: auto;
  margin: 5% auto !important;
}

/* REAL Good AI Rating box (under logo) */

.ai-ratingbox {
  display: flex;
  align-items: center;
  gap: 4%;
  margin: auto auto 5% auto;
  width: 90%;
  padding: 4%;
  background: var(--IB-bg-alt-2);
  border: var(--stroke-thin) solid var(--ink-900);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  text-align: left;
}

.ai-ratingbox-text {
  flex: 2;
}

.ai-ratingbox-text p {
  font-size: 0.85em;
  margin: 0;
  line-height: 1.3;
}

.ai-ratingbox-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-ratingbox-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 800px) {
  .ai-ratingbox {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  .ai-ratingbox-image {
    width: 50%;
    margin: 3% auto 0 auto;
  }
}

/* Splash "Enter" button */

.enter-btn {
  display: inline-block;
  background: var(--btn-800);
  color: var(--text);
  padding: 12px 28px;
  border-radius: 10px;
  box-shadow: 4px 4px 10px 3px #000000;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.enter-btn:hover {
  color: #7f5c38;
  box-shadow: 4px 4px 10px 3px #000000;
  transform: translateY(-1px);
}




/* -------------------------------------------------------- */
/* MiniNav */
/* -------------------------------------------------------- */
.mini-nav {
  width: 100%;
  margin: 0 auto;
  gap: 5%;
  list-style: none;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0;
  margin-top: 0;
  margin-bottom: 2.5%;
}

.mini-row > li {
  flex: 1;
  display: flex;
  justify-content: space-evenly;
  min-width: 0;
}

/* Buttons */
.mini-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  color: var(--text);
  background: var(--btn-800);
  padding: 16px 10px;
  border-radius: 12px;
  border: var(--stroke-thin) solid var(--ink-900);
  box-shadow: 2px 2px 5px 1.5px #000000;
  transition: transform .08s ease, box-shadow .12s ease, color .12s ease;
  max-width: 90%;
}

.mini-row > li > .mini-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover / active states */
.mini-btn:hover,
.mini-btn:focus-visible {
  color: #7f5c38;
  box-shadow: 2px 2px 5px 1.5px #000000;
  transform: translateY(-1px);
}

.mini-btn:active {
  transform: translateY(0);
  box-shadow: 2px 2px 5px 1.5px #000000;
}


/* Hide all section panes by default */
.internalbox.mininavinternal [id] { display: none; }

.internalbox.mininavinternal [id]:target {
  display:block;
}

/* Buttons */
.leftsidebarbtn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: var(--font-size-XXS);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  color: var(--text);
  background: var(--btn-800);
  padding: 4px 2.5px;
  border-radius: 12px;
  border: var(--stroke-thin) solid var(--ink-900);
  box-shadow: 2px 2px 5px 1.5px #000000;
  transition: transform .08s ease, box-shadow .12s ease, color .12s ease;
  max-width: 100%;
}

/* Hover / active states */
.leftsidebarbtn:hover,
.leftsidebarbtn:focus-visible {
  color: #7f5c38;
  box-shadow: 2px 2px 5px 1.5px #000000;
  transform: translateY(-1px);
}

.leftsidebarbtn:active {
  transform: translateY(0);
  box-shadow: 2px 2px 5px 1.5px #000000;
}

/* -------------------------------------------------------- */
/* Credits */
/* -------------------------------------------------------- */
#Art,
#Website {
  text-align: center;
}



.minibanner {
  width: 100%;
  border-radius: 12px;
  padding: 1% 0;
  border: 8px solid rgba(39, 14, 3, 0.70);
  background: rgba(54, 20, 2, 0.45);
  color: #f1e5db;
  margin-bottom: 1%;
}

.minicontentbox {
  width: 100%;
  border-radius: 12px;
  padding: 1% 0;
  border: 8px solid rgba(39, 14, 3, 0.80);
  background: rgba(244, 235, 223, 0.95);
  color: #000000;
}

.minicontentbox h2 {
  width: 80%;
  border-radius: 12px;
  border: 5px solid rgba(39, 14, 3, 0.70);
  background: rgba(54, 20, 2, 0.45);
  color: #f1e5db;
  margin: 0 10% 1% 10%;
}

.minicontentbox ul {
    text-align: left !important;
    width: 80%;
    margin: 0 10% 1% 10%;
}


/* -------------------------------------------------------- */
/* Misc Classes */
/* -------------------------------------------------------- */

.eightyimgcenter {
  margin: auto 10% !important;
  width: 80% !important;
}

/* -------------------------------------------------------- */
/* Character Page Section - Responsive Grid */
/* -------------------------------------------------------- */

/* Container: responsive grid that adjusts columns based on screen width */
.characterpagerows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
  justify-content: center;
  gap: 20px;
  padding: 10px;
  width: 100%;
}

/* Individual character card */
.characterbox {
  display: flex;
  flex-direction: column;
  border: 5px solid rgba(28, 12, 1, 0.85);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  min-height: 350px;
}

.characterbox:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Make the whole card a link (optional - wrap content in <a>) */
.characterbox a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Image container - fixed aspect ratio */
.characterboximage {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 44, 5, 0.25);  
}

.characterboximage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Text content area */
.characterboxtext {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  text-align: center;
  border-top: 5px solid rgba(28, 12, 1, 0.85);
  background: var(--IB-bg-alt-2);
}

.characterboxtitle {
  margin: 0 0 8px 0;
  font-size: 1.15em !important;
  line-height: 1.3;
}

.characterboxtext p {
  margin: 0;
  font-size: 1em;
  color: var(--text-color);
  opacity: 0.85;
}

.characterboxtext .flair {
  margin: 8px 0;
}

.smalllinehr {
  width: 100%;
  border: 0;
  border-top: var(--border);
  margin: 8px 0;
}

/* -------------------------------------------------------- */
/* Character Page Sections */
/* -------------------------------------------------------- */

.charactersection {
  width: 100%;
  margin-bottom: 30px;
}

.charactersection:last-child {
  margin-bottom: 0;
}

.charactersectiontitle {
  font-family: var(--heading-font);
  font-size: 1.4em;
  font-weight: bold;
  text-align: center;
  margin: 0 0 10px 0;
  color: var(--text-color);
}

.charactersectiondivider {
  width: 80%;
  margin: 0 auto 20px auto;
  border: 0;
  border-top: 3px solid rgba(28, 12, 1, 0.6);
}

/* -------------------------------------------------------- */
/* Character Grid - Responsive Breakpoints */
/* -------------------------------------------------------- */

/* Mobile (under 800px): 1 per row (vertical stack) */
@media (max-width: 799px) {
  .characterpagerows {
    grid-template-columns: 1fr;
  }
  
  .characterbox {
    min-height: 300px;
    max-width: 400px;
    margin: 0 auto;
  }
}


/* -------------------------------------------------------- */
/* Scrollbar */
/* -------------------------------------------------------- */

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--background-color);
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--content-background-color);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--IB-bg-alt-2);
}