/*/ / / CONTAINER FOR THE WHOLE PAGE / / /*/

body {
 font-family: Rockwell;
    font-weight: 400;
    font-style: normal;
    font-size: 1em;
    background-color: #8a8456;
   background-image: url(./images/mad-max_upscayl_2x_upscayl-standard-4x.png);
    
    background-repeat: no-repeat;
    background-size: 4750px;
    background-attachment:fixed;
    background-position: center center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    margin: 0;
}


/*/ / / Headers and Paragraphs / / /*/

/*@font-face {
  font-family: sexpistols;
  src: url(font/sex_pistols.ttf);
}*/


<!--  -->
@font-face {
  font-family: 'HeaderOneFont';
  src: url('font/AgencyFB.otf') format("opentype")
}

@font-face {
  font-family: "HeaderTwoFont";
  src: url("font/Evil-Scratch.otf") format("opentype");
}

@font-face {
  font-family: "HeaderThreeFont";
  src: url("font/Abandon.ttf") format("opentype");
}

@font-face {
  font-family: "PageFont";
  src: url("font/CabinSketch-Regular.ttf") format("opentype");
}

hr {border-color: #fddd0c; }


h1 {
    font-family: "HeaderOneFont", sans-serif;
    font-weight: 700;
    font-size: 4.5em;
    color: #fddd0c;
  display:inline-block;
  border: 2px solid #fddd0c;
  background-color: #0903115b;
  width: 60%;
  margin: 1em auto 2em auto;
  padding: .5em 1em;
  box-sizing: border-box;
  box-align: right;
  text-transform: uppercase;
}


h2 {
    font-family: "HeaderOneFont", serif;
    font-weight: 600;
    font-size: 2em;
    color: #fddd0c;
    display: table;
    margin-left: auto;
    margin-right: auto;
    clear: both;
    border: 2px solid #fddd0c;
    background-color: #0903115b;
    padding: 0.35em 0.8em;
    margin: 1.25em auto 0.75em auto;
    width: auto;            /* keep box tight to text */
    max-width: 90%;         /* prevent overflow on small screens */
    box-sizing: border-box;
    text-transform: uppercase
}

h3 {
    font-family: "HeaderThreeFont", monospace;
    font-weight: 500;
    font-size: 1.5em;
    color: #f4ecb7;
    background-color: #0903115b;
    display: inline-block;
    margin: 1% auto .5em auto;
    text-align: left;
    padding: 1em 1em;
    box-sizing: border-box;
    width: fit-content;
    margin-left: -59%;
}



p {
  font-family: "HeaderTwoFont";
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 1em;
  margin-bottom: 1em;
  line-height: 1.6
}

/* === One boxed container per Section (paragraphs only, h3 NOT included) === */
/* FIRST paragraph after a Section heading: starts the box */
h3 + p {
  width: 65%;
  margin: 1.25em auto 0;
  padding: 1em 1.25em;
  background-color: #090311e0;
  border-left: 2px solid #fddd0c;
  border-right: 2px solid #fddd0c;
  border-top: 0;                   /* remove top border */
  border-bottom: 0;
  box-sizing: border-box;
  color: #fddd0c;                  /* yellow text color */
}

/* MIDDLE paragraphs in the same section: extend the box sides only */
h3 + p ~ p:not(:has(+ h3)) {
  width: 65%;
  margin: 0 auto;
  padding: 1em 1.25em;
  background-color: #090311e0;
  border-left: 2px solid #fddd0c;
  border-right: 2px solid #fddd0c;
  border-top: 0;
  border-bottom: 0;
  box-sizing: border-box;
  color: #fddd0c;
}

/* LAST paragraph before the next Section heading: close the box */
p:has(+ h3) {
  width: 65%;
  margin: 0 auto 1.5em;
  padding: 1em 1.25em;
  background-color: #090311e0;
  border-left: 2px solid #fddd0c;
  border-right: 2px solid #fddd0c;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0 0 6px 6px;
  box-sizing: border-box;
  color: #fddd0c;
}

/* Remove the side margins from base p inside boxes (the width rules above take over) */
h3 + p,
h3 + p + p,
p + p:not(:has(+ h3)),
p:has(+ h3) {
  margin-left: auto;
  margin-right: auto;
}

/* === One boxed container per Article (paragraphs only, h2 NOT included) === */
/* FIRST paragraph after an Article heading: starts the box */
h2 + p {
  width: 65%;
  margin: 1.25em auto 0;
  padding: 1em 1.25em;
  background-color: #090311e0;
  border-left: 2px solid #fddd0c;
  border-right: 2px solid #fddd0c;
  border-top: 0;                  /* no top border */
  border-bottom: 0;
  box-sizing: border-box;
  color: #fddd0c;                 /* yellow text */
}

/* MIDDLE paragraphs in the same article: extend the box sides only */
h2 + p ~ p:not(:has(+ h2)) {
  width: 65%;
  margin: 0 auto;
  padding: 1em 1.25em;
  background-color: #090311e0;
  border-left: 2px solid #fddd0c;
  border-right: 2px solid #fddd0c;
  border-top: 0;
  border-bottom: 0;
  box-sizing: border-box;
  color: #fddd0c;
}

/* LAST paragraph before the next Article heading: close the box (side borders only) */
p:has(+ h2) {
  width: 80%;
  margin: 0 auto 1.5em;
  padding: 1em 1.25em;
  background-color: #090311e0;
  border-left: 2px solid #fddd0c;
  border-right: 2px solid #fddd0c;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0 0 6px 6px;
  box-sizing: border-box;
  color: #fddd0c;
}

/* LARGE TEXT AT TOP */
span {font-family: "HeaderTwoFont";
  display: block; /* so margins apply properly */
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 0.5em;
  margin-bottom: 0.5em; 
color:#fddd0c}
  
.topblock {
}

.intro {
}

.caption{
}




/*/ / / TOP NAVIGATION AREA / / /*/


header {
}

nav { 
}

nav a {
}

/*/ / / PAGE SECTIONS / / /*/

header,
nav,
main,
footer {
}

main {
    /*This adds styles to just the main content area. */
}

footer {
    /*Specific styles for just the footer. */
}



/* / / / REGULAR PAGE LINKS / / / */

/*Sets default links style*/
a:link {
  color: #86ce6b; /* normal link color */
  text-decoration: none;
}

/*Sets default visited link style*/
a:visited {
  color: #599286; /* visited link color */
  text-decoration: none;
}

/*Sets default link mouseover style*/
a:hover {
  color: #b5eac6; /* hover color */
  text-decoration: none;
}

/*Sets default link down-click style*/
a:active {
  color: #ff3b3b; /* click color */
  text-decoration: none;
}


/*/ / / TABLE STYLES / / /*/

table { 
    /* border: 1px blueviolet solid;
    margin-bottom: 1em; */

}

caption {
}

th {
}

tr {
}

td {
    /* border: 1px red solid;
     */
     vertical-align: top;
     padding: 7px;
}

      
      /* Style the "back to projects" hyperlink like a button */
  nav {
    display: inline-block;
    background-color: #fddd0c36;
    color: #ffffff;
    border: 2px solid #fddd0c;
    padding: 10px 20px;
    margin-top: 1em;
    border-radius: 6px;
    text-decoration: none;
    font-family: "HeaderThreeFont";
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  a[href*="projects"]:hover {
    background-color: #2d1a1a;
    color: #fddd0c;
    cursor: pointer;

  }
}

/* === Signers grid at bottom: one box per state (state + names together) === */
footer {
  
}

/* First element in a state block: the STATE heading assumed to be a span */
footer span {
  
}

/* Middle lines (names) inside the same state card */



/* Style for WE THE PEOPLE phrase */
span.intro strong {
  font-family: "HeaderThreeFont", sans-serif;
  font-size: 2.5em;
  color: #fddd0c;
  letter-spacing: 2px;
  display: block;
  text-align: left;
  margin: 1em 0;
}
/* === STATES & SIGNERS — CSS‑only restructure of the table into a clean grid === */
/* Target the last table in <main> (the states/signers table) */
main table:last-of-type {
  width: min(1100px, 92%);
  margin: 2.5rem auto 4rem;
  display: grid;                                  /* turn table into a grid */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem 1.5rem;                             /* row / column gaps */
  border-collapse: separate;
  border-spacing: 0;
}

/* Make tbody/tr transparent so each <td> becomes a grid item */
main table:last-of-type > tbody,
main table:last-of-type > tbody > tr {
  display: contents;
}

/* Each state cell becomes a card */
main table:last-of-type td {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.1rem;
  background-color: #090311e0;                     /* dark slab */
  border: 2px solid #fddd0c;                       /* yellow frame */
  border-radius: 8px;
  box-sizing: border-box;
  color: #fddd0c;
}

/* State name (inside <h3> with a linked <strong>) */
main table:last-of-type td h3 {
  width: 100%;
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.35rem;
  font-family: "HeaderOneFont", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fddd0c;
  border-bottom: 2px solid #fddd0c;                /* divider under state */
}

/* remove default link underline on the state heading, keep color */
main table:last-of-type td h3 a {
  color: inherit;
  text-decoration: none;
}

/* Each signer link becomes a neat line item */
main table:last-of-type td a {
  display: block;
  text-decoration: none;
  font-family: "PageFont", monospace;
  font-size: 1rem;
  line-height: 1.35;
  color: #bfe8b8;                                   /* softer than header */
  padding: 0.08rem 0;
  border-bottom: 1px dotted #86ce6b;                /* light baseline */
}

/* Hover/focus feedback for signer lines */
main table:last-of-type td a:hover,
main table:last-of-type td a:focus-visible {
  color: #fddd0c;
  border-bottom-style: solid;
  outline: none;
}

/* The original HTML uses <br> between names; links are block-level now */
main table:last-of-type td br {
  display: none;
}

/* Narrow screens for mobile*/
@media (max-width: 560px) {
  main table:last-of-type {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: min(700px, 94vw);
  }
  main table:last-of-type td {
    padding: 0.85rem 0.95rem 1rem;
  }
  main table:last-of-type td h3 {
    font-size: 1.15rem;
  }
}

/*turned table into grid using display: contents on tbody and tr so each td becomes a grid card, then styling the existing h3 and links to look like a titled card list—no HTML changes, fully responsive. */