/* BASIC RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: #16FFC0;
}

a:hover  {
  color: #EB288F;
}

p {
  font-family: "Asul", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

h1 {
  font-family: "Nova Cut", system-ui;
  font-weight: 400;
  font-style: normal;
}

h2 {
  font-family: "Nova Slim", system-ui;
  font-weight: 400;
  font-style: normal;
}

h3 {
  font-family: "Nova Slim", monospace;
  font-weight: 400;
  font-style: normal;
}

body {
  background-color: #000000;
  color: #FFFFFF;
  font-family: "Asul", serif;
  line-height: 1.6;
  cursor: url("images/cursor_white.png"), auto;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAVIGATION */
.nav {
  padding: 20px 0;
}


.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 5%;
  padding-right: 5%;
}

.nav-logo {
  display: flex;
  gap: 20px;
}

/* BOOTSTRAP OVERRIDES */

/* Navbar links */
.navbar .nav-link {
  font-family: "Nova Slim", monospace;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #BDE6DB;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #16FFC0;
}
.navbar-toggler {
  border-color: #444;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28189%2C230%2C219%2C0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown */
.dropdown-menu {
  --bs-dropdown-bg: #0a0a0a;
  --bs-dropdown-border-color: #1a1a1a;
  --bs-dropdown-link-color: #BDE6DB;
  --bs-dropdown-link-hover-color: #EB288F;
  --bs-dropdown-link-hover-bg: transparent;
  --bs-dropdown-link-active-bg: transparent;
  --bs-dropdown-link-active-color: #EB288F;
  font-family: "Nova Slim", monospace;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Tabs */
.nav-tabs {
  --bs-nav-tabs-border-color: #1a1a1a;
  --bs-nav-tabs-link-active-color: #29EBB7;
  --bs-nav-tabs-link-active-bg: transparent;
  --bs-nav-tabs-link-active-border-color: #1a1a1a #1a1a1a transparent;
  border-bottom-color: #1a1a1a;
}
.nav-tabs .nav-link {
  font-family: "Nova Slim", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #555;
  border-color: transparent;
}
.nav-tabs .nav-link:hover {
  color: #BDE6DB;
  border-color: transparent;
}
.nav-tabs .nav-link.active {
  color: #29EBB7;
  background-color: transparent;
  border-color: #1a1a1a #1a1a1a transparent;
}

/* HERO SECTION */
.hero {
  padding: 50px 0;
  text-align: center;
  background-color: #000000;
  border-bottom: 1px solid #050505;
}

.hero h1 { font-size: 3rem; margin: 10px 0; }

.btn {
  font-family: "Asul", serif;
  font-weight: 400;
  font-style: normal;
  display: inline-block;
  background-color: #000000;
  color: #29EBB7;
  padding: 10px 25px;
  text-decoration: none;
  margin-top: 20px;
  border: 1px solid #000000;
  border-radius: 25px;
}

.btn:hover {
	background-color: #29EBB7; 
	color: #000000; 
}



/* BESTIARY PAGE SPECIFICS */
.bestiary-item {
  position: relative;
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 40px 0;
  overflow: visible; /* Allows image to peek out if needed */
}

.bestiary-title {
  font-size: 2rem; 
  font-weight: 800;
  color: #FFFFFF;
  position: relative;
  z-index: 2; /* Keeps text in front of image */
  transition: color 0.3s ease;
  margin: 100px;
  letter-spacing: 20px;
}

.bestiary-hero {
  position: relative;
  padding: 100px 0 100px;
  text-align: center;
  margin-top: 100px;
}

.bestiary-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}


.bestiary-name {
  position: relative;
  z-index: 1;
  font-family: "Nova Cut", system-ui;
  font-size: 5rem;
  font-weight: 400;
  color: #EB288F;
  letter-spacing: 12px;
  margin-bottom: 24px;
}

.bestiary-name2 {
  position: relative;
  z-index: 1;
  font-family: "Nova Slim", system-ui;
  font-size: 1.5rem;
  font-weight: 300;
  color: #29EBB7;
  margin-bottom: 24px;
}

.bestiary-intro {
  position: relative;
  z-index: 1;
  font-family: "Asul", serif;
  max-width: 640px;
  margin: 0 auto;
  color: #f4f4f4;
  font-size: 1rem;
  line-height: 1.8;
}

/* --- BESTIARY ROLLOVER STYLES --- */

.bestiary-list {
  margin-top: 200px;
  display: flex;
  flex-direction: column;
  gap: 40px; 
}


.hover-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8); /* Centers image and starts smaller */
  z-index: 1; /* Places image behind text */
  opacity: 0; /* Hidden by default */
  pointer-events: none; /* Allows you to still click the text link */
  transition: opacity 0.4s ease, transform 0.4s ease;
  max-height: 500px; /* Adjust size as needed */
  width: auto;
}


.bestiary-item:hover .hover-image {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.bestiary-item:hover .bestiary-title {
  color: #EB288F;
}

.b-background,
.creature-background {
  background-image: url("images/grunge.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-color: #000000;
}

/* FOOTER */
.footer {
  font-family: "Nova Slim", monospace;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  padding: 50px 0;
  margin-top: 200px;
  color: #FFFFFF;
  background-color: black;
}

.footer a {
  color: #979797;
}
	


.back-btn {
  font-family: "Asul", serif;
  font-weight: 400;
  font-style: normal;
  display: inline-block;
  background-color: #000000;
  color: #ffffff;
  padding: 10px 25px;
  text-decoration: none;
  margin-top: 20px;
  border: 1px solid #000000;
  border-radius: 25px;
}

/* CREATURE PAGES */
.creature-hero {
  padding: 80px 0 40px;
  text-align: center;
}

.creature-eyebrow {
  font-family: "Nova Slim", monospace;
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.creature-name {
  font-family: "Nova Cut", system-ui;
  font-size: 11rem;
  font-weight: 400;
  color: #EB288F;
  letter-spacing: -10px;
  margin-bottom: 24px;
}

.creature-intro {
  max-width: 640px;
  margin: 0 auto;
  color: #BDE6DB;
  font-size: 1rem;
  line-height: 1.8;
}

.creature-section {
  padding: 60px 0;
  border-top: 1px solid #1a1a1a;
}

.creature-section p {
  color: #f4f4f4;
  max-width: 720px;
  line-height: 1.9;
  margin-bottom: 40px;
}

.creature-section em {
  color: #BDE6DB;
  font-style: italic;
}

.section-title {
  font-family: "Nova Slim", system-ui;
  font-size: 1.4rem;
  font-weight: 400;
  color: #29EBB7;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.creature-gallery figure {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.creature-gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.creature-gallery img:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.creature-gallery figcaption {
  font-family: "Nova Slim", monospace;
  font-size: 0.7rem;
  color: #cecece;
  line-height: 1.4;
}

/* LIGHTBOX */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

#lightbox.lb-visible {
  display: flex;
}

.lb-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  gap: 14px;
}

.lb-img {
  max-width: 85vw;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  filter: none;
  transform: none;
}

.lb-caption {
  font-family: "Asul", serif;
  font-size: 1rem;
  color: #888;
  text-align: center;
  max-width: 600px;
  line-height: 1.5;
}

.lb-counter {
  font-family: "Nova Slim", monospace;
  font-size: 0.75rem;
  color: #767676;
  letter-spacing: 2px;
}

.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  padding: 10px;
  transition: color 0.2s ease;
  font-family: inherit;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { color: #BDE6DB; }

.lb-close { top: 24px; right: 32px; font-size: 2.2rem; }
.lb-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 24px; top: 50%; transform: translateY(-50%); }

/* TABS CONTAINER */
.tabs-container {
  padding-top: 20px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 600px) {
  .intro-grid { grid-template-columns: 1fr; }
  .creature-name { font-size: 3rem; letter-spacing: 6px; }
}