* {
    --black: #333;
    --white: #fff;
    --light-gray: #eee;
    --medium-gray: #ccc;
    --dark-gray: #777;
    --section-padding: 2rem;
    --warning-dark: #F24211;
    --warning-light: #FFDAD388;

    /* https://stackoverflow.com/questions/22252472/how-to-change-the-color-of-an-svg-element/53336754#53336754 */
    /* https://codepen.io/sosuke/pen/Pjoqqp */
    --black-filter: invert(20%) sepia(0%) saturate(0%) hue-rotate(338deg) brightness(94%) contrast(97%);
    --warning-dark-filter: invert(40%) sepia(96%) saturate(3876%) hue-rotate(353deg) brightness(95%) contrast(101%);

    --icon-size: 1rem;
}

@font-face {
    font-family: "SiteFont";
    src: url("/static/fonts/Monoid-Regular.ttf");
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: SiteFont, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    line-height: 1.8;
}

html {
    height: 100%;
}

html, body {
    min-height: 100%;
}

/*html {
    background-color: #faa;
}

body {
    background-color: #aaf;
}*/

:root {
    color: var(--black);
    background-color: var(--white);
}

body {
    padding-top: calc(var(--section-padding) * 2);
    padding-bottom: calc(var(--section-padding) * 2);
}

@media(max-width: 500px) {
    body {
        padding-top: calc(var(--section-padding) * 1);
    }
}

table {
    margin-left: auto;
    margin-right: auto;
    border-collapse: separate;
    border-spacing: 0;
    /*border: 1px solid var(--black);*/
}

th, td {
    padding-left: 2em;
    padding-right: 2em;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
}

th:nth-child(1),
td:nth-child(1) {
    text-align: left;
}

th:nth-child(2),
td:nth-child(2) {
    text-align: right;
}

th {
    color: var(--white);
    background-color: var(--black);
}

tr:nth-child(even) {
    background-color: var(--light-gray);
}

td {
    border-bottom: 1px solid var(--medium-gray);
    min-width: 10ch;
}

footer {
    padding-top: calc(var(--section-padding) * 2);
    text-align: center;
    font-size: 200%;
    color: var(--dark-gray);
}

a.nf {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3,
p,
div.p {
    margin-left: auto;
    margin-right: auto;
    max-width: 40rem;
}

/* Give some border on mobile */
h1, h2, h3,
p,
div.p {
    padding-left: 1rem;
    padding-right: 1rem;
}

h1, h2, h3,
p ~ p {
    padding-top: var(--section-padding);
}

h1, h2 {
    font-size: 120%;
}

h3 {
    font-size: 100%;
}

img.icon {
    vertical-align: baseline;
    filter: var(--black-filter);
    width: var(--icon-size);
    height: var(--icon-size);
}

img.icon_red {
    vertical-align: baseline;
    width: var(--icon-size);
    height: var(--icon-size);
}

footer img.icon {
    width: calc(var(--icon-size) * 2);
    height: calc(var(--icon-size) * 2);
}

.for-search-engines-only {
    display: none;
    padding-bottom: var(--section-padding);
}
