@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=PT+Sans+Narrow:wght@400;700&display=swap');

abbr[title] {
    border-bottom: 1px dotted;
}

div, .div2 {
    padding: 0.1em 15px 0.4em;
}

.div2 {
    background-color: #D4E2D8;
}

.div p, .div2 p {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 5px;
    margin-right: 5px;
}

img {
    border: 0;
    max-width: 100%;
    height: auto;
    image-orientation: from-image;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Remove bottom margin from all .math elements */
.math, .math.display {
    margin-bottom: 0;
}

/* Paragraph directly after a math block */
.math + p {
    text-indent: 0;
    margin-top: 0;
}

svg:not(:root) {
    overflow: hidden;
}

#links img, footer img, li img, h1 img, h2 img, h3 img, nav img {
    height: 1.2em;
    width: 1.2em;
}

fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}

small {
    font-size: 80%;
}

pre {
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 0.6em 0.9em;
    margin: 0.8em 0;
    overflow: auto;
}

/* background-color: #d2e7ff; */
pre code {
    background: transparent !important;
    display: block;
    width: 100%;
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
    font-family: monospace;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

table {
    border: 0;
    border-collapse: separate;  /* instead of collapse */
    border-spacing: 20px 4px;   /* 20px between columns, 4px between rows */
    padding: 2px;
    background-color: #d2e7ff;
    overflow-x: scroll;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
}

html {
    color: #2c2329;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter',
                 Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.55;

    background-color: #2f2f35;
    border: none;
    margin: 0;
}

body {
    background-color: #D4E2D8;
    overflow-wrap: break-word;
    max-width: 1000px;
    margin: 20px auto;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

A {
    color: #8c4a79;
    text-decoration: none;
    font-weight: 505;
}

B, strong {
    color: #618A98;
}

i, em {
    text-decoration: underline 2px #fe6f5e;
    text-underline-offset: 1.5px;
}

P {
    text-indent: 1.5em;
    overflow-wrap: break-word;
}

Q {
    quotes: "\201C" "\201D" "\2018" "\2019";
}

/* Head font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    padding-left: 6px;
    padding-right: 6px;
    line-height: 1.2;
}
h1 { font-weight: 800; color: #1f6b54; font-size: 200%; }
h2 { color: #1f6b54; font-size: 170%; }
h3 { color: #3a2a14; font-size: 140%; }
h4 { color: #3a2a14; font-size: 130%; }
h5 { color: #3a2a14; font-size: 130%; }
h6 { color: #3a2a14; font-size: 115%; }

li {
    overflow-wrap: break-word;
}

ul {
    list-style-type: disc;
    margin-top: 0;
}

ol {
    list-style-type: decimal;
}

ol, dl {
    margin-top: 2px;
    margin-bottom: 7px;
}

.signature, .footnote {
    font-size: 80%;
    border: 0;
}

.topnav {
    overflow: hidden;
    background-color: #2f2f35;
    border: none;
    padding: 16px;
    font-weight: bold;
    color: #a3d4e8;
}

/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    display: block;
    color: #a3d4e8;
    font-weight: bold;
    text-align: center;
    padding: 6px 15px;
    font-size: 16px;
    border: none;
    margin: 0;
    text-indent: 0;
}

/* Change the color of links on hover */
.topnav a:hover {
    color: #1f8780;
}

/* Style the "active" element to highlight the current page */
.topnav a.active {
    background-color: #d2e7ff;
    color: black;
}

/* Style the search box inside the navigation bar */
.topnav input[type=text] {
    float: right;
    border: none;
    padding: 6px 4px;
    margin: 0 4px;
    font-size: 15px;
    max-width: 400px;
}

.topnav a.right {
    float: right;
    text-align: left;
}

/* Tablet: tighten margins and table spacing */
@media screen and (max-width: 1000px) {
    body {
        margin: 10px auto;
    }
    table {
        border-spacing: 12px 4px;
    }
}

/* Phone: stack topnav links and search vertically, shrink headings */
@media screen and (max-width: 700px) {
    html {
        font-size: 17px;
    }
    body {
        margin: 0;
    }
    h1 { font-size: 175%; }
    h2 { font-size: 150%; }
    .topnav a, .topnav input[type=text] {
        float: none;
        text-align: center;
        width: 100%;
    }
    .topnav input[type=text] {
        position: relative;
        display: block;
        margin: 0 auto;
        width: 100%;
        border: none;
        max-width: 500px;
    }
}

/* If equation numbers have a specific class, target them */
.equation-number {
    margin-right: 10px;
}
