html, p, ul {
    font-size: medium;
    line-height: 1em;
}

a {
    color: #050505;
    border-bottom: none;
}

/* Stuff for the front and endmatter */
header {
    /* The normal clickable header and menu */
    display: none;
}

.zinetitle-web {
  display: none;
}

.titlepage-print {
    display: table;
    border: 3px solid grey;
    border-collapse: collapse;
    width: 100%;
}

.titlepage-print-container {
    display:table;
    text-align: center;
    height: 7.75in;
    width: 100%;
    break-after: page;
    font-size: 2rem;
    font-weight: bold;
    line-height: 3rem;
    
    vertical-align: middle;
}

.movingbox {
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    text-align: center;
}

.titlepage-publisher {
    font-size: 1.3rem;
    display: table-row;
    height: 5%;
}

.titlepage-title {
    font-size: 2rem;
    line-height: 2rem;
    display: table-row;
    height: 25%;
    border-bottom: 3px double grey;
}

.titlepage-type, .titlepage-publicationdate-published {
    display: table-row;
    font-size: 1.3rem;
    height: 7%;
    border-top: 3px double grey;
}

.titlepage-author, .titlepage-publicationdate {
    display: table-row;
    height: 8%;
}

.toc {
    display: table-row;
    border-top: 3px double grey;
    background-color: #ffffff;
    color: #000000;
    
    margin-left: auto;
    margin-right: auto;
    max-width: 70%;
    line-height: 1.5em;
    height: 30%;
}

.toc > .movingbox {
    text-align: left;
}

.toc-leadin-web {
    display: none;
}

.toc-leadin-print {
    display: block;
    text-align: center;
}

.toc ol {
    list-style-type: disc;
}

.web-link {
    display: none;
}

.printonly-link {
    display: inline;
}

.original_url_web {
  display: none;
}

.original_url_print {
  display: block;
  font-size: x-small;
  line-height: 1.2em;
  margin-top: 0.5em;
}

.altformats {
    display: none;
}

.printonly-footnotes {
    display: block;
    font-size: x-small;
    line-height: 0.8rem;
}

.printonly-footnotes > ol {
    font-size: x-small;
    line-height: 0.8rem;
}

.spacer {
    display: block;
    text-align: center;
    font-size: smaller;
    break-before: page;
    padding-top: 7in;
}

footer {
    break-before: left;
    page: last_page;
}


.footer-info {
    padding-top: 6in;
}

.footer-info > .archive {
  display:none;
}

.introduction {
    height: 100%;
}

.introduction-container {
    padding-top: 2em;
}


/* Main stuff */
@page {
    size: 5.5in 8.5in;
    margin: 0.25in;
}

@page :left {
    @bottom-left {
        font-size: x-small;
        margin-bottom: 0.25in;
        content: counter(page) ' / ' counter(pages);
    }
}

@page :right {
    @bottom-right {
        font-size: x-small;
        margin-bottom: 0.25in;
        content: counter(page) ' / ' counter(pages);
    }
}

@page :first {
    @bottom-right {
        font-size: x-small;
        margin-bottom: 0.25in;
        content: '';
    }
}

@page last_page {
    @bottom-left {
        font-size: x-small;
        margin-bottom: 0.25in;
        content: '';
    }
}

article {
    break-before: page;
}