/* ===============================
   GLOBAL STRUCTURE
   =============================== */

html {
  height: 100%;
  overflow-y: scroll;
  background: linear-gradient(to bottom, #313131, #000);
  background-attachment: fixed;
}

body {
  background: transparent;
  line-height: 1.5;
  margin: 1rem auto;
  max-width: 768px;
  padding: 0;

  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  font-weight: bold;
  color: white;

  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
}

/* ===============================
   HEADER & FOOTER
   =============================== */

header {
  border-bottom: 1px solid #ffffff;
  margin-bottom: 1rem;
  text-align: center;
  padding: 1rem 0;
  font-size: 1.2em;
}

footer {
  border-top: 1px solid #ffffff;
  margin-top: 1rem;
}

.footer-text {
  font-size: 0.8rem;
  color: white;
  margin-top: 1rem;
}

/* ===============================
   LINKS
   =============================== */

a {
  color: rgb(255, 0, 0);
  text-decoration: none;
}

a:hover,
a:active {
  color: white;
}

/* ===============================
   NAVIGATION / MENU
   =============================== */

nav.menu {
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-root {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-root > li {
  display: inline-block;
  position: relative;
  margin-right: 2rem;
  font-size: 1.1em;
}

.menu-root > li > a {
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  display: block;
  transition: background-color 0.2s;
}

.menu-root > li > a:hover {
  background-color: rgba(255, 0, 0, 0.3);
}

/* ===============================
   PAGINATION / PAGE NUMBERS
   =============================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  gap: 0.5rem;
}

.pagination .page-item {
  display: inline-block;
}

.pagination .page-link {
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
  background: transparent;
  border: none;
  cursor: pointer;
}

.pagination .page-link:hover {
  background-color: rgba(255, 0, 0, 0.3);
}

.pagination .active .page-link {
  background-color: rgba(255, 0, 0, 0.5);
  font-weight: bold;
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination .disabled .page-link {
  cursor: not-allowed;
  pointer-events: none;
}

/* ===============================
   DROPDOWN MENU
   =============================== */

.dropdown > a.dropdown-toggle::after {
  content: " ▼";
  font-size: 0.75em;
}

.dropdown ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  background: #333;
  border: 1px solid #666;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;

  min-width: 160px;
  z-index: 1000;
}

.dropdown:hover ul,
.dropdown:focus-within ul,
.dropdown.active ul {
  display: block;
}

.dropdown ul li a {
  display: block;
  padding: 0.5rem 1rem;
  color: white;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.dropdown ul li a:hover {
  background-color: rgba(255, 0, 0, 0.3);
}

/* ===============================
   CALENDAR PAGE
   =============================== */

.calendar {
  text-align: center;
}

/* ===============================
   MEETING SHORTCODE
   =============================== */

.meeting-entry {
  border-left: 4px solid rgb(255, 0, 0);
  padding-left: 1rem;
  margin: 1.5rem 0;
  text-align: left;
}

.meeting-name {
  margin: 0;
  font-size: 1.1em;
}

.meeting-name a {
  text-decoration: none;
}

.meeting-meta {
  font-size: 0.9rem;
  color: gold;
  margin-top: 0.25rem;
}

.meeting-meta span:not(:last-child)::after {
  content: " - ";
}

.meeting-location {
  font-size: 0.9rem;
  color: gold;
  margin-top: 0.25rem;
}

.meeting-material a {
  color: rgb(255, 0, 0);
}

.meeting-material a:hover {
  color: white;
}

/* ===============================
   TAGS / TERMS
   =============================== */

.terms {
  margin: 0.5rem 0;
}

.terms-label {
  display: none;
}

.terms-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  font-size: 0.8em;
  display: inline;
}

.term-item {
  display: inline;
}

.term-item:not(:last-child)::after {
  content: ", ";
}

.term-link {
  color: #777;
}

.term-link:hover {
  color: #aaa;
  text-decoration: underline;
}

/* ===============================
   IMAGES
   =============================== */

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}


.pagination {
    display: flex;
    justify-content: center; /* Center the pagination */
    list-style: none;
    padding: 0;
    flex-wrap: wrap; /* Allows wrapping if too many items */
}

.pagination li {
    margin: 0 5px; /* Space between numbers */
}