body {
    margin: 0;
    padding: 0;
    background-color: black; /* Ensures background is black */
    text-align: center; /* Helps center inline elements */
}

.content-container {
    width: 90%; /* Matches the navbar width */
    max-width: 1170px; /* Prevents it from getting too wide */
    min-height: 300px; /* Ensures a minimum height */
    margin: 20px auto; /* Centers the container */
    background-color: #ffd6d6; /* Light red/pinkish tint */
    border: 3px solid #cc0000; /* Bold deep red */
    border-radius: 10px; /* Slightly rounded edges */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
    padding: 20px; /* Space inside the container */
    display: flex;
    flex-direction: column; /* Stack chapter divs inside */
    gap: 15px; /* Space between chapter divs */
}

.page-title {
    color: #7d0808;
    border-bottom: 2px solid #7d0808;
}


.category-bar {
  height: 35px;
  width: 100%;
  font-family: "Book Antiqua", "Times New Roman", Times, serif;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.category-bar a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: #7d0808;
  text-decoration: none;
  font-size: 10px;
  font-weight: bold;
}

/* Animated underline + overline */
.category-bar a::before,
.category-bar a::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, red, hotpink);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.category-bar a::before {
  top: 0; /* overline */
  transform-origin: right;
}

.category-bar a::after {
  bottom: 0; /* underline */
  transform-origin: left;
}

.category-bar a:hover::before {
  transform: scaleX(1);
}

.category-bar a:hover::after {
  transform: scaleX(1);
}


.category-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  height: 50px;
}

.category-link a {
  position: relative;
  display: inline-block;
  padding: 6px 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 24px;
   color: #7d0808;
}

/* Animation lines */
.category-link a::before,
.category-link a::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #7d0808, hotpink);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.category-link a::before {
  top: 0;
  transform-origin: right;
}

.category-link a::after {
  bottom: 0;
  transform-origin: left;
}

.category-link a:hover::before {
  transform: scaleX(1);
}

.category-link a:hover::after {
  transform: scaleX(1);
}

@keyframes rainbowText {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.category-link a:hover {
  background: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet,
    red
  );
  background-size: 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowText .5s linear forwards;
}

.category-link a {
  transition: all 0.3s ease;
}

@media screen and (max-width: 480px) {
  .category-link a {
    font-size: 14px !important;  /* much smaller for phones */
    padding: 4px 2px;            /* tighten padding */
  }
}