@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English&family=Montserrat:wght@400;700&display=swap');

@font-face {
  font-family: 'Old Newspaper Types';
  src: url('fonts/OldNewspaperTypes.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
    --bg-color: #ffffff;
    --fg-color: #000000;
    --header-height: 120px;
    --header-shrink: 60px;
}

body {
    background-color: var(--bg-color);
    color: var(--fg-color);
    font-family: 'Montserrat', sans-serif;
    margin: 20;
    padding-top: var(--header-height); /* Prevent content jump */
}

/* --- Sticky Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--fg-color);
    color: var(--bg-color);
    font-family: 'Old Newspaper Times', 'IM Fell English', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 0.3s ease, font-size 0.3s ease;
    z-index: 1000;
    font-size: 1.8em;
}

header.shrunk {
    height: var(--header-shrink);
    font-size: 0.8rem;
}

/* --- Layout Grid --- */
/*
#content-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}
*/
#content-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 40px auto;
    padding: 60px;
    background-color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    position: relative; /* Useful for absolute positioning elements later */
    grid-auto-flow: dense;
}

/* --- Content Blocks --- */
.block {
    margin-bottom: 20px;
}

.span-two {
    grid-column: span 2;
}

/* --- Refined Minimalist Tables --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th {
    background-color: var(--fg-color);
    color: var(--bg-color);
    padding: 4px 10px;
    text-align: center;
    font-weight: 700;
    /* Ensure the header "caps" the table without side borders */
    border: none;
}

td {
    /* Remove side and bottom borders */
    border-left: none;
    border-right: none;
    border-bottom: none;

    /* Use a top border to separate rows */
    border-top: 2px solid var(--fg-color);
    padding: 4px 10px;
    vertical-align: top;
}

/* Optional: Removes the top border from the very first row of data
   so it doesn't double up against the black header */
tr:first-child td {
    border-top: none;
}

/* --- Quotes / Attributions --- */
.quote-block {
    background-color: var(--fg-color);
  /*
    background-image: url('back.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: transparent;
  */
    color: var(--bg-color);
    font-family: 'IM Fell English', serif;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.quote-block blockquote {
    font-size: 1.6rem;
    margin: 0;
    padding: 0;
    /* font-style: italic; */
}

.quote-block cite {
    display: block;
    margin-top: 15px;
    font-size: 1.6rem;
    font-style: normal;
    opacity: 0.9;
}

/* If a quote has a title, make it look distinct from the text headers */
.quote-block h3 {
    color: var(--bg-color);
    border-color: var(--bg-color);
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif; /* Keep headers consistent */
}

img {
    max-width: 100%;
    height: auto;
}










/* ***************************************** */

/* --- RPG Rulebook Container --- */
#content-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* Increased gap to simulate a "gutter" between book columns */

    /* Restrict width and center the "page" */
    max-width: 900px;
    margin: 40px auto;
    padding: 60px; /* Padding inside the "page" boundaries */

    /* Simulate a physical page depth */
    background-color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border: 1px solid #ddd;

    /* Prevent the page from touching the screen edges on mobile */
    width: 90%;
}

/* --- Typography Adjustments for Readability --- */
body {
    background-color: #e0e0e0; /* A neutral gray background to make the "page" pop */
    line-height: 1.6;
    font-size: 1.2rem;
}

/* --- Header Adjustments --- */
header {
    /* Keep the header full width, or we can constrain it to the page width */
    max-width: 100%;
}

/* --- RPG Style Accents --- */
/*
h2, h3 {
    text-transform: uppercase;
    */
    /* border-bottom: 2px solid var(--fg-color); */
    /* padding-bottom: 5px; */
/*
   margin-top: 0;
}
*/

h2, h3, th {
    font-size: 1.5rem; /* Adjust this value to your preferred 'header' size */
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}

/* Specifics for the standard headers */
h2, h3 {
    /* border-bottom: 2px solid var(--fg-color); */
    /* padding-bottom: 8px; */
    margin-top: 20px;
    margin-bottom: 15px;
}

h1 {
  font-family: "Black Ops One", system-ui;
  font-weight: 400;
  font-style: normal;
}

/* Specifics for the Table Header */
th {
    background-color: var(--fg-color);
    color: var(--bg-color);
    /* We add padding to the top and bottom to match the visual height
       of the h2/h3 including their borders and margins */
    padding: 12px 10px;
    text-align: center;
    font-weight: 700;
}

/* Drop cap effect for the first paragraph in a block (optional but very RPG-like) */
/*
.block p:first-of-type::first-letter {
    font-family: 'IM Fell English', serif;
    float: left;
    font-size: 3.5rem;
    line-height: 1;
    padding-right: 8px;
    color: var(--fg-color);
}
*/





/* --- Global Link Styling --- */
a, a:visited {
    color: var(--fg-color);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid var(--fg-color);
    transition: background-color 0.2s ease, color 0.2s ease;
}

a:hover {
    background-color: var(--fg-color);
    color: var(--bg-color);
}

/* --- Rulebook Footer --- */
/*
#page-footer {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--fg-color);
    font-family: 'IM Fell English', serif;
    font-variant: small-caps;
    text-transform: lowercase;
    font-size: 1.2rem;
}
*/

#page-footer {
    grid-column: span 2;
    order: 9999; /* This forces it to the end of the grid */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--fg-color);
    font-family: 'Old Newspaper Times', 'IM Fell English', serif;
    font-variant: small-caps;
}

.footer-link {
    border-bottom: none; /* We handle the link style specifically here */
}

.footer-link::after {
    content: " ➔"; /* Adding a small flourish for the main link */
}


/* Ensure the first element in a block doesn't have top margin
   if there's no header to push it down */
.block > *:first-child {
    margin-top: 0;
}

/* Add some breathing room between blocks */
.block {
    margin-bottom: 30px;
}







/* Selects the first <td> or <th> in every row */
table tr td:first-child,
table tr th:first-child {
  text-align: center;      /* Centers the text horizontally */
  white-space: nowrap;     /* Prevents words from breaking or wrapping to a new line */
}



li::marker {
  content: '\272a\a0\a0';
  margin-right: 5px;
}
