/*Antill stylesheet 25/02/2026*/

body { 
    font-family: Calibri, Verdana, sans-serif; 
    max-width: 45em; 
    margin: 2em auto; 
    padding: 0 20px;     /* ← ADDS 20px side padding on phones */
    line-height: 1.5;
    position: relative;
}

h1 { 
text-align: center; font-size: 1.5em; margin-bottom: 1em; 
}

h2 { 
text-align: left; font-size: 1.2em; margin-bottom: 1em; 
}

h3 { 
text-align: left; font-size: 1.1em; margin-bottom: 1em; 
}

p { 
margin-bottom: 1.1em; text-align: justify;
}

em { 
font-style: italic; 
}

.aka {
font-style: italic; 
}

.names { 
font-style: italic; 
}

img {
  width: 100%;
  height: auto;
  max-width: 100%;    /* prevents growing beyond natural size */
  display: block;     /* removes bottom gap under image */
}
.centre {
  display: block !important;
  text-align: center !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.underline {
  text-decoration: underline;
}

.nextpage {
    position: fixed !important;
    bottom: 20px !important;
    right: 10px !important;
    background: none !important;
    color: #dcdcdc !important;
    padding: 10px !important;
    font-size: 14px !important;
    z-index: 9998 !important;
}

.nextpage a {
    all: unset;
    color: #111111 !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

.nextpage a:hover {
    text-decoration: underline !important;
    color: #cfcfcf !important;
}

/*This pins the "next page" link to the bottom-right of the viewport, semi-transparent white backdrop for readability over content, and hover effect. Matches modern web standards for navigation overlays*/

.pageNumber {
  position: absolute;
  left: -1em;           /* Positions number outside text flow */
  font-size: 0.8em;
  color: #666;
  font-weight: bold;
  width: 2em;
  text-align: right;
}

.pageNumber::after {
  content: '';
  display: block;
  height: 1.5em;        /* Anchor target area for clicking */
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem; /* Space between elements */
  padding: 1rem;
  background-color: #f8f9fa; /* Light gray background */
  border-top: 1px solid #dee2e6;
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
}

.footer img {
  height: 15px; /* Fixed CC height */
  width: auto;
  vertical-align: middle;
}

.footer a {
  color: #007bff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.image-container {
  max-width: 800px !important;     /* Hard limit for laptops */
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;                 /* Breathing room on phones */
}

.image-container img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
}

