/* internetpress.css */

/* NOTES:
   1. Keep in mind that styles which begin with a period are custom styles, so they are called with the
      class="" attribute, not the style="" attribute.
*/

/* Page Body ---------------------------------------- */
body {
    max-width: 500px;   /* Maximum width of the page. */
    min-width: 344px;   /* Minimum width of the page. */
    margin: 0 auto;     /* The first value (0) represents the margin on the top and bottom of the 
                           <body> element. The second value (auto) represents the left and right margins of
                           the element. The browser calculates and distributes the available horizontal
                           space evenly between the left and right margins. This effectively centers
                           the <body> element horizontally within its containing block. */
    padding: .5rem;     /* This property controls the inner spacing of the <body> element. It sets the
                           padding space on all four sides of the element simultaneously. The value 
                           .5rem specifies the amount of padding to be applied. In this case, .5rem 
                           refers to half a "root em" unit. The "root em" unit (rem) is relative to 
                           the font size of the root element of the document (usually the <html> element). 
                           Therefore, .5rem will be equivalent to half the font size of the root element. */
    background-color: ivory;
}



/* Website Title ------------------------------------- */
.website-title {
    text-align: center;
    font-size: 1.6rem;
    margin-top: .5rem;
    margin-bottom: -.75rem;
}

.website-title-link {
    text-decoration: none;
    color: inherit;
}

/* Internetpress Slogan ------------------------------- */
.website-slogan {
    text-align: center;
    font-size: .8rem;
    margin-bottom: 1.5rem;
}

/* Domain Name ---------------------------------------- */
.domain-name {
    text-align: center;
    font-size: .8rem;
    margin-bottom: -.5rem;
}
.domain-name-link {
    text-decoration: none;
}

/* Privacy Policies and Legal Notices ------------------ */
.privacy-policies {
    text-align: center;
    font-size: .8rem;
    margin-bottom: 1.5rem;
}
.privacy-policies-link {
    text-decoration: none;
}
/* News Letter ---------------------------------------- */
.news-letter {
    text-align: center;
    font-size: .8rem;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 1.5rem;
}
.news-letter-link {
    text-decoration: none;
}

/* Donate Button ---------------------------------------- */
/* Style the button's container (an <a> element) */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Style the button */
.donate-button {
    background: orange;
    border: none;
    color: black;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: .78rem;
    letter-spacing: 0.08rem;
}


/* Copyrights Data
   Such as byline, publish date, and copyrights. The last
   style is for the last item in the list. ------------- */
.copyrights-data {
    font-size: .7rem;
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    margin-bottom: -.7rem;
}
.copyrights-data-last {
    font-size: .7rem;
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    margin-bottom: 1rem;
}

/* Article Table of Contents ----------------------------- */
/* Use TOC-subheading to style the <p> element for the TOC main heading. */
.TOC-subheading {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 550;
    margin-bottom: 1rem;
}
/* Use TOC-list to style the main <ul> element for the TOC */
.TOC-list {
    list-style-type: none;
    font-size: .85rem;
    margin-top: -.8rem;
    margin-left: -1.75rem;
    margin-bottom: 1.3rem;
}
/* Use TOC-item to style all <li> elements in the TOC, including a 
   list item acting as the heading for a sublist. */
.TOC-item {
    margin-bottom: .17rem;
}
/* Use TOC-sublist to style <ul> sublist elements in the TOC */
.TOC-sublist {
    list-style-type: none;
    font-size: .85rem;
    margin-top: .25rem;
    margin-left: -1.75rem;
    margin-bottom: 1.3rem;
}
/* Use TOC-itemLast to style the last <li> element in a TOC-sublist. */
.TOC-itemLast {
    margin-bottom: -1rem;
}
/* Use TOC-itemResume to style the <li> element which follows after
   a TOC-sublist. */
.TOC-itemResume {
    margin-top: -1rem;
    margin-bottom: .17rem;
}

/* Article Title (Heading) ------------------------------- */
h1 {
    margin-top: 0;
    margin-bottom: .25rem;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
    text-transform: none;
}

/* Article Subheadings ---------------------------------- */
h2 {
    border-top: 1px solid;
    margin-top: 2rem;
    margin-bottom: -.75rem;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
    text-transform: none;
}
h3, h4, h5 {
    margin-top: 1.5rem;
    margin-bottom: -1rem;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
    text-transform: none;
}
/* Run-in Subheading */
h6 {
    margin-bottom: -1.25rem;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 550;
    display: inline;
    font-size: .84rem;
    text-transform: none; 
}
/* h6 runs into a <p> having this style. */
.run-into {
    display: inline;
}
/* Paragraph */
p {
    font-family: 'Times New Roman', Times, serif;
    font-size: .88rem;
}

/* Lists, not including TOC-List. */
.list {
    font-size: .88rem;
    margin-left: -1rem;
}

/* Figures:
   Keep in mind that the maximum page width is 500px while the
   minimum page width is 344px.  */

/* Images 500px wide. This is further modified by "img-wide." */
figure {
    display: block;
    width: 100%;
    margin: 1.5rem 0 1.5rem 0;
    padding: 0;
}
/* Caption for Images 500px wide. Is placed below image. */
figcaption {
    font-family: Arial, Helvetica, sans-serif;
    font-size: .75rem;
    margin-top: .25rem;
    margin-bottom: .25rem;
}
/* If no caption is provided, yse this for providing credits
   to the page's main image. */
.figcredit {
    font-size: .6rem;
    font-family: sans-serif;
    color: black;
    margin-top: .2rem;
}
/* Additional styles for wide images. */
.img-wide {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Classes for images less than 500px wide. ------------------------------
   Keep the source image between 140 and 200 pixels wide.

   Description: These rules create a two‐column layout in which 
   the caption text floats to the left and the image floats to 
   the right, ensuring that paragraphs start below the caption 
   block and then wrap under the image once its bottom is reached. 
   In more detail, the outer container “contains” its floated children
   using `overflow: hidden`. 
   The caption `<div>` is floated left with a calculated width that 
   subtracts the image’s width (and its left margin), while the image 
   itself is floated right at a fixed percentage width and given small 
   horizontal and vertical gutters. Each paragraph uses `clear: left` 
   so it begins below the left‐floated caption and, where vertical space 
   allows, extends beneath the right‐floated image. Finally, a clearing `<div>` 
   with `clear: both` guarantees that any content following this section will 
   not overlap the floated elements. */

/* Caption div Container ---------------- */
.captionContainer {
    float:left;
    width:calc(100% - 40% - .25rem);
    font-family:Arial, Helvetica, sans-serif;
    font-size:.75rem;
    margin-bottom:1rem;
}
/* Image img Container ------------------ */
.imageContainer {
    float:right;
    width:40%;
    height:auto;
    margin-left:.25rem;
    margin-bottom:.25rem;
}



/* Classes for tables. ----------------------------------*/
table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial Narrow, sans-serif;
    font-size: 0.7rem;
}
caption {
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .75rem;
    margin-bottom: .25rem;
}
th {
    font-weight: bold; 
    border-top: 2px solid black; 
    border-bottom: 3px double black;
    padding-top: 2px;
    padding-bottom: 2px;
    text-align: left; 
    vertical-align: bottom;
}
tr {
    border-bottom: 1px solid black; 
    word-wrap: break-word;
}

/* Footnote Styles --------------------------------------*/
/* Style for the number located in the body of the text. */
.noteNumber {
    font-family: sans-serif;
    font-size: .6rem;
    text-decoration: none;
}
/* Style for the caret that provides the link back to the footnote number. */
.linkToNoteNumber {
    font-family: sans-serif;
    font-size: .65rem;
    font-weight: 800;
    text-decoration: none;
}
/* Style for the list item, <li>, which presents the note in the Footnotes section. */
.footNote {
    font-family: serif;
    font-size: .88rem;
    margin-bottom: .4rem;
    margin-left: -1rem;
}

/* Style for the ordered list, <ol>, which presents entry items in the References section. */
.referenceList {
    font-family: serif;
    font-size: .88rem;
    margin-left: -1rem;
}

/* Style for a reference entry, <li>, which presents entry item in the References section. */
.referenceEntry {
    margin-bottom: .4rem;
}

/* Style for a callout box. The container for the callout box is the <div> element 
having the class="callout", and a <p> element inside of the <div> that contains
the callout text. */
.callout {
    background-color: #f1f9ff;
    padding: .001rem 1rem;
    margin: 1rem 0rem;
    border-radius: 8px;
    font-style: italic;
}

/* Footer Styles ------------------------------------------ */
footer {
    margin-top: 40px;
    border-top: 1px solid;
    padding-top: 10px;
    font-family: Arial, Helvetica, sans-serif;
}

/* -------------------------------------------------------- */
/* Legacy Code -------------------------------------------- */

/* Legacy Classes for images 250px or less in width. -------*/
.figure-narrow {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
    margin: 1.5rem 0 1.5rem 0;
}
.figcaption-narrow {
    flex: 1;
    margin-right: .5rem;
}
.img-narrow {
    display: flex;
    max-width: 100%;
    height: auto;
}
/* End Legacy Classes for images 250px or less in width. ----*/