:root {
  --main-color: #343a40;
  --bg1: #fff3f2;
  --bg1-txt: #fdf5e6;
  --bg2: #ffffff;
  --bg3: #3f94d2;
  --bg3-txt: #ddd3ff;
  --link: #d97950;
  --link-hover: #71cbb5;
  --highlight: #ebf2ff;
  --primary: #5aa4da;
  /*  #DF6B5F orange */
  --secondary: #2a3a57;
  /*  blue */
  --accent: #e7d192;
  /*  yellow */
  --accent-two: #9bb364;
  --light: #fff7e2;
  /*  cream */
  --dark: #1b1a2e;
  --text: #26265a;
  /* text color */
  --text-light: #eaeaea;
}

/* for all pages-- rounded nav and font change */
nav {
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

* {
  font-family: "spartan", sans-serif;
}

/* set gradient bg color */
body {
  background: linear-gradient(
    to bottom,
    var(--bg1) 0%,
    var(--bg1) 50%,
    var(--bg3) 70%,
    var(--bg3) 100%
  );
  min-height: 100vh;
  margin: 0;
}

section h4 {
  color: var(--link-hover);
}

h3 {
  color: var(--main-color);
  font-family: "rubik", sans-serif;
  font-weight: 600;
}

h2 {
  font-family: "rubik", sans-serif;
  color: var(--bg3);
  font-weight: 800;
}

.left-aligned {
  margin-left: auto;
}

.bg-dark {
  background-color: #343a40 !important;
}

.bg-hero {
  background-color: #0a2c45;
}

/* CALLOUT */
.bd-callout {
  padding: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid #e9ecef;
  border-left-width: 0.25rem;
  border-radius: 0.25rem;
}

.bd-callout h4 {
  margin-bottom: 1.25rem;
}

.bd-callout p:last-child {
  margin-bottom: 0;
}

.bd-callout code {
  border-radius: 0.25rem;
}

.bd-callout + .bd-callout {
  margin-top: -0.25rem;
}

.bd-callout-info {
  border-left-color: #5bc0de;
}

.bd-callout-warning {
  border-left-color: #f0ad4e;
}

.bd-callout-danger {
  border-left-color: #d9534f;
}

/* footer */
footer a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

/* 80% width rows */
.row-mod {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.row-mod > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}

.row-mod > .col,
.row-mod > [class*="col-"] {
  flex: 1 0 0%;
}

.row-mod > .col-lg-4 {
  flex: 0 0 auto;
  width: 33.33333333%;
}

.row-mod > .col-lg-8 {
  flex: 0 0 auto;
  width: 66.66666667%;
}

/* sidebar features */
html {
  scroll-behavior: smooth;
}

.indent {
  text-indent: 8px;
}

section[id] {
  scroll-margin-top: 80px;
}

/* Sidebar link hover effects */
.sidebar {
  background-color: rgba(255, 255, 255, 0.85);
}

.sidebar a {
  color: var(--link);
}

.sidebar a:hover {
  color: var(--link-hover);
  font-weight: 500;
}

/* all images */
.image-gallery {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.image-container-zoom {
  overflow-x: auto;
  overflow-y: auto;
}

.image-container-zoom img {
  transform-origin: left top;
}

.image-container-zoom:hover img {
  transform: scale(3);
}

.image-container {
  flex: 1;
  min-width: 190px;
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 1rem !important;
}

.image-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.image-container:hover img {
  transform: scale(1.05);
}

/* single image takes full width */
.image-gallery.single .image-container {
  flex: none;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* two images split evenly */
.image-gallery.double .image-container {
  flex: 1;
  max-width: calc(50% - 7.5px);
}

/* three images */
.image-gallery.triple .image-container {
  flex: 1;
  max-width: calc(33.33% - 10px);
}

@media (max-width: 768px) {
  .image-gallery .image-container {
    min-width: 100%;
    max-width: 100% !important;
  }
}

/* carousel settings */

.image-carousel {
  position: relative;
  max-width: 100%;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: white;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

/* Navigation Buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
  left: 15px;
}

.carousel-nav.next {
  right: 15px;
}

/* Dots Indicator */
.carousel-dots {
  display: flex;
  justify-content: center;
  padding: 20px;
  background: white;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dee2e6;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--link-hover);
  transform: scale(1.2);
}

.dot:hover {
  background: #6c757d;
}

/* Image Caption */
.image-caption {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  color: var(--highlight);
  padding: 30px 20px 15px;
  text-align: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-slide.active .image-caption {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-container {
    height: 250px;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .carousel-nav.prev {
    left: 10px;
  }

  .carousel-nav.next {
    right: 10px;
  }
}

/* summary box */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px auto;
  justify-content: center;
}

.grid-container-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin: 40px auto;
  justify-content: center;
}

.summary-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px 30px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.summary-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

.summary-box:hover::before {
  left: 100%;
}

figure figcaption {
  font-size: 0.9rem;
  color: #888;
  margin-top: 8px;
  margin-bottom: 20px;
  text-align: center;
}

figcaption {
  font-size: 0.9rem;
  color: #888;
  margin-top: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.summary-box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.icon {
  width: 80px;
  height: 80px;
}

.summary-box h3 {
  color: #2c3e50;
  font-size: 1.4em;
  margin-bottom: 20px;
  font-weight: 600;
}

.summary-box p {
  color: #5a6c7d;
  line-height: 1.6;
  font-size: 0.95em;
  text-align: left;
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .summary-box {
    padding: 30px 20px;
  }
}

@media (max-width: 1024px) {
  .grid-container-three {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .grid-container-three {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .summary-box {
    padding: 30px 20px;
  }
}

/* topic block */
.topic-block {
  background: #ffffff;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
}

.topic-block:hover {
  transform: scale(1.015, 1);
}

.topic-block h1 {
  font-family: "rubik", sans-serif;
  color: var(--primary);
  font-weight: 600;
  border-top: 2px solid var(--accent);
  margin-top: 1.2rem;
  padding-top: 1rem;
}

.topic-block h2 {
  font-family: "rubik", sans-serif;
  color: var(--accent-two);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* sidebar */
.sidebar {
  position: sticky;
  top: 100px;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 10px #0000001a;
  height: fit-content;
}

.sidebar h3 {
  font-family: "rubik", sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  padding-left: 1rem;
  padding-bottom: 1rem;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
}

/* nav link styles */
.sidebar .nav-link {
  color: var(--dark);
  font-weight: bold;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
}

.sidebar .nav-link ul {
  padding: 0;
}

.sidebar .nav-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.sidebar .nav-link.active {
  font-weight: bold;
  color: var(--accent-two);
  background: rgba(112, 224, 182, 0.25);
}

/* bullet indicator */
.sidebar .nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  width: 6px;
  background-color: var(--accent-two);
  border-radius: 50%;
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateY(-50%) translateX(-5px);
    opacity: 0;
  }

  to {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
  }
}

/* table */
.mutant-table {
  margin: 2rem 0;
  background: #ffffff;
  padding: 1rem 2rem;
  border-radius: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mutant-table h3 {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
}

.mutant-table table {
  width: 100%;
  border-collapse: collapse;
}

.mutant-table th,
.mutant-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  font-family: "Rubik", sans-serif;
}

.mutant-table thead th {
  background-color: var(--accent);
  color: white;
  font-weight: 600;
}

.mutant-table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.mutant-table tbody tr:hover {
  background-color: #eef4f7;
}

.mutant-table td {
  color: #333;
}

.counter-container {
  text-align: center;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1000px;
}

/* members page */
.member-photo {
  height: auto;
  width: 100px;
  transform: rotate(180deg);
  /* Changed from 90deg to 180deg */
}

/* Make the whole section bigger */
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  /* Increase spacing between cards */
  max-width: 1200px;
  /* Make the grid wider */
  margin: 0 auto;
  padding: 40px 20px;
  /* Add more padding around the section */
}

/* Make each card bigger */
.member-card {
  width: 100%;
  max-width: 350px;
  /* Increase card size */
  height: 400px;
  /* Set a taller height */
  margin: 0 auto;
  perspective: 1000px;
}

/* Fix the photo to be a perfect circle and bigger */
.member-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.member-photo img {
  width: 150px !important;
  /* Make images bigger */
  height: 150px !important;
  /* Force square aspect ratio */
  border-radius: 50%;
  /* Perfect circle */
  object-fit: cover;
  /* Crop to fit circle properly */
  display: block;
}

/* Make the card content bigger */
.card-front,
.card-back {
  width: 100%;
  height: 100%;
  padding: 30px;
  /* Increase padding inside cards */
  box-sizing: border-box;
}

/* Scale up text */
.member-name {
  font-size: 1.4rem;
  /* Bigger name text */
  margin: 15px 0 10px 0;
  font-weight: bold;
}

.member-role {
  font-size: 1rem;
  /* Bigger role text */
  margin-bottom: 15px;
}

.flip-instruction {
  font-size: 0.9rem;
  /* Slightly bigger instruction text */
}

/* Make the card back text bigger too */
.member-intro {
  font-size: 1rem;
  line-height: 1.4;
}
