/* ----------------------------------------------------------
   Base & Utilities
   ---------------------------------------------------------- */
body {
  background: url('https://gifcity.carrd.co/assets/images/gallery63/4290ff0d.jpg?v=0afd6af1') repeat;
  padding: 32px;
  border-radius: 20px;
  font-family: 'Constantia';
}

.container {
  position: relative; /* anchor point for .floating-image */
}

h1, h2, h3, h4, h5, h6, p, li, button {
  font-family: 'Constantia';
  font-size: 120%;
}

.card {
  border-radius: 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid #800000;
}

.display-3,
.display-4 {
  color: #e53935;
}

h3 {
  color: #fd9797;
}

p {
  color: #fd9797;
  font-size: 22px;
  text-align: center;
}

/* ----------------------------------------------------------
   Warning Banner
   ---------------------------------------------------------- */
.warning-banner {
  background: repeating-linear-gradient(45deg, #800000, #800000 10px, #000 10px, #000 20px);
  padding: 1.2rem;
  border-radius: 1rem;
  border: 2px solid #e53935;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #ffd6d6;
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px #000;
}

/* ----------------------------------------------------------
   Bootstrap-Tab Overrides
   ---------------------------------------------------------- */
.nav-tabs .nav-link {
  color: #fd9797;
  font-size: 1.2rem;
  font-weight: bold;
   padding: 0.75rem 1.25rem;
  font-size: 1.25rem;
  
 
  text-shadow: 1px 1px 2px #000; /* subtle glow for legibility */
  
}

.nav-tabs .nav-link.active {
  background-color: #800000;
  color: #fff;
  border-color: #800000 #800000 #000;
}

.tab-content p {
  color: #fd9797;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

/* ----------------------------------------------------------
   Nested Sub-Tab Overrides (Character Details "downward" tabs)
   Mirrors the outer .nav-tabs shape, but flipped: rounded on
   the bottom instead of the top, hanging flush off a line above
   instead of merging into content below.
   ---------------------------------------------------------- */
#detailsSubTabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0.75rem !important; /* was 1.25rem — tighter gap moves the cards up */
}

#detailsSubTabs .nav-link {
  color: #fd9797;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.6rem 1.25rem;
  background-color: rgba(0, 0, 0, 0.4);
  border: 2px solid #800000;
  border-top: none;
  border-radius: 0 0 0.6rem 0.6rem;
  margin: 0 0.15rem;
  text-shadow: 1px 1px 2px #000;
}

#detailsSubTabs .nav-link.active {
  background-color: #800000;
  color: #fff;
  border-color: #800000;
  border-top: none;
}

/* Center cards + give them a flat, readable background
   so the background gif doesn't wash out the text */
#identity .d-flex.flex-row.flex-nowrap,
#dynamics .d-flex.flex-row.flex-nowrap,
#aesthetic .d-flex.flex-row.flex-nowrap {
  justify-content: center;
}

.theme-card {
  background-color: #1a0505;
  background-image: none;
}

/* min-height for #infoTabsContent is now handled above,
   scoped so it doesn't affect the nested Character Details sub-tabs */

/* ----------------------------------------------------------
   Theme-Card Styles
   ---------------------------------------------------------- */
.theme-card {
  max-width: 280px;      /* each card caps at 280px */
  margin: 0.5rem;        /* gutter between cards */
  flex: 0 0 auto;
}

.theme-card .btn {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;   /* no line wraps in the button */
  width: 100%;
  text-align: center;
}

/* ALWAYS keep your collapse content at 0.95rem—even while it’s animating */
.theme-card .card-body p {
  font-size: 0.95rem !important;
}

/* optional: remove any transition on font-size or height so it never reflows */
.theme-card .card-body,
.theme-card .card-body p {
  transition: none !important;
}

.theme-card .collapse,
.theme-card .collapsing {
  display: block !important;
  height: auto    !important;
  overflow: visible !important;
}


/* --------------------------------------------------
   1) Little Notes left-aligned
   -------------------------------------------------- */
#notes {
  text-align: left;
}

#notes .notes-card {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  flex: none; /* override .theme-card's flex: 0 0 auto so it doesn't behave like a flex-row item */
}

#notes .notes-card .card-body {
  padding: 1.5rem 2rem;
}

#notes .notes-card p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------
   2) Cap the Tabs card height & make content scroll
   -------------------------------------------------- */
.card.my-6.p-3 {
  display: flex;
  flex-direction: column;
  height: 620px;
  overflow: hidden;
}

.card.my-6.p-3 #infoTabs {
  flex: 0 0 auto;    /* nav stays its natural height */
}

#infoTabsContent {
  flex: 1 1 auto;
  min-height: 0 !important;
  overflow-y: auto;
  margin-top: 0 !important; /* .mt-4 on this element is also !important, so this has to be too */
}

/* restore the gap for every pane except #right-now, whose first child
   (#detailsSubTabs) needs to butt directly against the white line above */
#infoTabsContent > #notes,
#infoTabsContent > #content,
#infoTabsContent > #fave-artists {
  margin-top: 1.5rem;
}

.theme-card .collapse .card-body {
  max-height: 300px; /* was 400px — leaves room for the whole card to fit without outer scrolling */
  overflow-y: auto;
}
/* --------------------------------------------------
   3) Style “Fave Artists” and any other list in tabs
   -------------------------------------------------- */
.tab-content ul,
.tab-content ol {
  padding-left: 0;
  margin: 0;
}

.tab-content li {
  list-style: none;
  color: #fd9797;         /* same pink as your <p> */
  font-size: 22px;        /* match your paragraph size */
  text-align: center;     /* center like your other tab text */
  margin-bottom: 0.8rem;  /* same spacing as <p> */
}

.tab-content .list-unstyled {
  padding: 0;
  margin: 0;
}

.tab-content .list-unstyled li {
  list-style: none;
  color: #fd9797;        /* pink */
  font-size: 22px;
  text-align: center;
  margin-bottom: 0.8rem;
}


/* --------------------------------------------------
  Accordion tabs
   -------------------------------------------------- */

.accordion-button img {
  width: 1.25rem;        /* uniform icon width */
  height: 1.25rem;       /* uniform icon height */
  pointer-events: none;  /* so clicks go to the button */
}
.accordion-button .me-2 {
  margin-right: 0.5rem !important;
}

/* 1. Make the whole thing more compact */
.theme-accordion .accordion-button {
  font-size: .875rem;             /* smaller text */
  padding: .4rem .75rem;          /* less vertical/horizontal padding */
}

.theme-accordion .accordion-body {
  padding: .5rem .75rem;          /* tighter content area */
}

/* 2. Remove default borders & match themes tab look */
.theme-accordion .accordion-item {
  border: none;                   /* no outer card border */
  border-bottom: 1px solid #e2e2e2; /* subtle separator like your themes list */
}

.theme-accordion .accordion-button {
  background: transparent;        /* inherit page/background color */
  box-shadow: none;               /* no default inner shadow */
  color: #555;                    /* muted text */
}

.theme-accordion .accordion-button:not(.collapsed) {
  background-color: #f8f9fa;      /* light highlight on open */
  color: #333;                    /* darker text when active */
}

/* 3. Shrink the default chevron icon */
.theme-accordion .accordion-button::after {
  font-size: .75rem;              /* smaller arrow */
  width: .75rem;                  /* tighten click area */
  height: .75rem;
}

/* 4. Tame your custom images to match */
.theme-accordion .accordion-button img {
  width: 1rem;                    /* small uniform icon size */
  height: 1rem;
  margin-right: .5rem;            /* spacing before label */
  pointer-events: none;           /* don’t block the click */
}

/* ----------------------------------------------------------
   Recolors
   ---------------------------------------------------------- */

:root {
  /* tweak this to match your exact pink */
  --theme-pink: #fb9485;
}

/* nav-link text */
.nav-tabs .nav-link {
  color: var(--theme-pink) !important;
}

.nav-tabs {
  display: flex;
  flex-wrap: nowrap;
 
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;    /* keep horizontal swipe if you have many tabs */
  overflow-y: hidden !important;  /* kill the vertical bar */
  white-space: nowrap;/* keep tabs on one line */
   align-items: center;
  justify-content: center;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

/* active tab underline/border */
.nav-tabs .nav-link.active {
  color: var(--theme-pink) !important;
  border-color: var(--theme-pink) var(--theme-pink) transparent !important;
}

.nav-tabs { -ms-overflow-style: none; scrollbar-width: none; }

/* all paragraphs & list items inside tabs */
.tab-content p,
.tab-content li {
  color: var(--theme-pink);
}


/* 1) Wider cards only in Content Preferences */
#content .theme-card {
  flex: 0 0 auto;          /* prevent shrinking/growing */
  min-width: 240px;        /* adjust to taste */
  max-width: 500px;        /* keeps them roughly equal */
  margin: 0.5rem;          /* spacing between cards */
  
}

/* 2) Smaller “tab” button text inside those cards */
#content .theme-card .btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}



/* Optional: if you want your list-items to flow nicely */
#content .theme-card .card-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#content .theme-card .card-body li {
  break-inside: avoid;     /* prevents items from splitting across columns */
  margin-bottom: 0.5rem;
}

/* 1) Change the font size of the card “titles” (the buttons) */
#content .theme-card .btn {
  font-size: 20px;      /* ← adjust up/down */
  padding: 0.5rem;      /* you can tweak padding here too */
  color: rgb(199,47,62) !important;
}
.d-flex.flex-row.flex-nowrap {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}




.theme-card {
  scroll-snap-align: start;
}

/* 2) Change the font size of everything inside the card-body */
#content .theme-card .card-body {
  font-size: 20px;    /* ← adjust this for all paragraphs & list items */
  line-height: 1.4;     /* optional: tweak line-height for readability */
  
}

.theme-card .card-body {
  max-height: 500px; /* or whatever fits your layout */
  overflow-y: auto;
  
}

/* 3) If you have <p> or <ul>/<li> in there and want to be extra sure: */
#content .theme-card .card-body p,
#content .theme-card .card-body ul,
#content .theme-card .card-body li {
  font-size: 0.9rem;    /* same as above; use !important if another rule is winning */
  
}

#yesGroup .card-body {
  column-count: 2;
  column-gap: 1rem;
}

#maybeGroup .card-body {
  column-count: 1;
  column-gap: 1rem;
}

/* Prevent paragraph or list from splitting across columns */
#maybeGroup .card-body p,
#maybeGroup .card-body ul {
  break-inside: avoid-column;
  margin-bottom: 1rem;
}

#nopeGroup .card-body {
  column-count: 2;
  column-gap: 1rem;
}

/* Reset generic widths */
#content .theme-card {
  flex: 0 0 auto;
  min-width: auto;
  max-width: none;
  
}

#content .d-flex.flex-row.flex-nowrap {
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 1rem;
}


/* Widen the “yes” card */
#content .theme-card.yes-card {
  flex: 0 0 400px;
  width: 1400px;
  
}

/* Shrink “maybe” & “nope” */
#content .theme-card.maybe-card,
#content .theme-card.nope-card {
  flex: 0 0 400px;
  max-width: 500px;
  
}



/* 1. Grid wrapper: auto-flow columns, responsive min/max width */
.fave-artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: start;
    margin-top: 0 !important;
}

.fave-artists-grid .artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.fave-artists-grid img {
  max-width: 100%;
  height: 500px;
  border-radius: 4px;
}

.artist-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* Make sure you’re using your real tab-content ID here */
#infoTabsContent > #fave-artists {
  /* remove any leftover Bootstrap spacing */
  margin-top: 0 !important;
  padding-top: 0 !important;
}



/* 2. Each artist cell: two rows (name + carousel) */
.artist-item {
  flex: 0 0 500px; /* fixed width */
  height: 500px;   /* fixed height */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding: 1rem;
  background-color: #1a0505;
  border-radius: 8px;
}

.artist-item button {
  margin-bottom: 3.75rem;
}

/* 3. Style the name row */
.artist-name {
  margin: 0 0 0.5rem;
  text-align: center;
}

/* 4. Make carousel fill remaining space */
.artist-carousel {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#fave-artists .artist-carousel img {
  width: 100%;
  height: 150%;
  object-fit: cover;
  display: block;
}

#species .theme-card .card-body {
  max-height: 400px; /* or whatever fits your layout */
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  font-size: 20px;
}

#species .collapse .card-body p {
  font-size: 20px !important;
}

#species .theme-card button {
  font-size: 20px;
  font-weight: 600;
  
}

/* ─────────────────────────────────────────────
   1. Full-page background GIF
───────────────────────────────────────────── */
body {
  background-image: url('https://64.media.tumblr.com/e76d21792678771fe7bb4e61e98c4e41/0f1c2dc5dc5ea9ec-77/s540x810/7ef142151c5ebbb55d43bca8dd79e4471e694fa1.gifv');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  margin: 0;
  padding: 0;
}

/* ─────────────────────────────────────────────
   2. Header background GIF
───────────────────────────────────────────── */
.custom-header {
  background-image: url('https://i.imgur.com/CAxdJUw.gif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 200px; /* or more for drama */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
   margin-top: 0;
  padding-top: 0;
}

.display-3 {
   text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
   font-weight: bold;
   font-style: italic;
}

.custom-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.229);
  z-index: 0; 
}

.custom-header h1 {
  position: relative;
  z-index: 1;
}


/* ─────────────────────────────────────────────
   3. Tabs + content area background GIF
───────────────────────────────────────────── */
.card.my-6.p-3 {
  background-image: url('https://64.media.tumblr.com/7cfa64e3178a896fb9d99582a169ee74/0f1c2dc5dc5ea9ec-83/s540x810/5f731dd95d43280da19bbe8122b6a659975932e6.gifv');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  backdrop-filter: blur(2px);
  border-radius: 0.75rem;
  color: rgb(199,47,62) !important; /* optional: make text readable */ 
  
}

/* Optional: soften tab backgrounds */
.nav-tabs .nav-link {
  background-color: rgba(0, 0, 0, 0.4);
  color: #fd9797;
  border: none;
  
}

.nav-tabs .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  
}

.tab-pane {
 height: auto;
  overflow-y: visible;
  
}


/* Limit the width of the main content */
body > .container {
  max-width: 1400px; /* You can adjust this value */
  margin: 0 auto;
 
}

#zoomedImage {
  max-height: 90vh;
  object-fit: contain;
}

#zoomModal .carousel-item img {
  max-height: 90vh;
  object-fit: contain;
}

.fave-artists-grid .carousel-item img {
  max-height: 500px;
  object-fit: cover;
}


.carousel-item img#zoomedImage {
  max-height: 90vh !important;
  object-fit: contain !important;
}

.artist-name a {
  color: rgb(199,47,62);
  text-decoration: none;
  font-weight: bold;
}

.artist-name a:hover {
  text-decoration: underline;
  color: #fd9797;
}

#fave-artists {
  margin-top:   0 !important;
  padding-top:  0 !important;
}

/* 1) Target just the Fave Artists tab-pane */
.tab-content > #fave-artists {
  /* remove any internal spacing */
  margin-top: -1.5rem !important;  /* pulls up by the card’s p-4 top padding */
  padding-top:  0     !important;
}

.fave-artists-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: auto;                 /* Firefox: thicker than "thin" */
  scrollbar-color: #e53935 rgba(0,0,0,0.4); /* Firefox: thumb, track */
}

.fave-artists-scroll-container::-webkit-scrollbar {
  height: 14px; /* thicker bar for the horizontal scroll */
}

.fave-artists-scroll-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
}

.fave-artists-scroll-container::-webkit-scrollbar-thumb {
  background-color: #e53935;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.4); /* inset look, adds contrast against the track */
}

.fave-artists-scroll-container::-webkit-scrollbar-thumb:hover {
  background-color: #ff5c52;
}

.fave-artists-grid {
 display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: auto;
  scrollbar-color: #e53935 rgba(0,0,0,0.4);
}

.fave-artists-grid::-webkit-scrollbar {
  height: 14px;
}

.fave-artists-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
}

.fave-artists-grid::-webkit-scrollbar-thumb {
  background-color: #e53935;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.4);
}

.fave-artists-grid::-webkit-scrollbar-thumb:hover {
  background-color: #ff5c52;
}

.social-nav {
  background-color: #111; /* or match your header */
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #333;
}

.social-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.social-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.social-nav a:hover {
  color: rgb(199,47,62); /* or any accent color you like */
}

/* ----------------------------------------------------------
   Tucked-away Archive trigger (intentionally low-key)
   ---------------------------------------------------------- */
.archive-trigger {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 0.9rem;
  opacity: 0.28;
  cursor: pointer;
  z-index: 999;
  user-select: none;
  transition: opacity 0.3s ease;
}

.archive-trigger:hover {
  opacity: 0.85;
}

#archiveModal .archive-section {
  margin-bottom: 1rem;
}

#archiveModal .archive-section .d-flex.flex-row.flex-nowrap {
  overflow-x: auto;
}

#archiveModal .modal-body p {
  text-align: left;
}

#archiveModal .theme-card {
  max-width: 280px;
}

.floating-anchor {
  position: relative;    /* anchor point for .floating-image, sits outside the card's overflow:hidden */
}

.floating-image {
  display: none;          /* only shown on the Fave Artists tab, toggled via script.js */
  position: absolute;    /* anchored to .floating-anchor, so it isn't clipped by the card's overflow:hidden */
  top: -100px;               /* Distance from the top */
  right: -100px;           /* Distance from the right */
  width: 150px;          /* Adjust size as needed */
  z-index: 1000;         /* Keeps it above other elements */
  transform: rotate(-20deg);
  pointer-events: none;  /* purely decorative, don't block clicks on things under it */
}

.floating-image.show-floating {
  display: block;
}
