:root {
    --text-color: #000;
    --background-color: #fff;
    --accent: #72dec2;
    --primary-font: system-ui;
    --default-spacing: 0;
    --font-size: 15px;
    --line-height: 1.4;
    --spacing: 40px;
    --vertical-spacing: 50px;
    --monospace-font: system-ui-monospace;
}

html {
    height: 100%;
    box-sizing: border-box;
}

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

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background-color);
    font-family: var(--primary-font);
    color: var(--text-color);
    font-weight: normal;
    font-size: var(--font-size);
    line-height: var(--line-height);
    margin: var(--default-spacing);
    padding: var(--default-spacing);
}
a {
    color: var(--text-color);
    text-decoration: underline var(--accent);
}
a[target="_blank"] {
    text-decoration: underline dotted var(--accent);
}
nav {
    align-items: center;
    justify-content: center;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
nav ul li {
    margin: .3rem;
}
nav ul li::after {
    content: "~";
    color: var(--accent);
}
h2 {
    border-bottom: 1px solid var(--accent);
}
main, .breadcrumb {
    flex: 1 0 auto;
    width: 100%;
    max-width: 46em;
    padding: var(--vertical-spacing);
    margin: 0 auto;
}
main { min-height: calc(100vh - 91px); }
ul {
    margin: var(--default-spacing);
    padding: var(--default-spacing);
}
footer {
    box-sizing: border-box;
    flex-shrink: 0;
    line-height: 30px;
    width: 100%;
    max-width: 46em; /* ensures the footer aligns with main content */
    margin: 0 auto; /* centers the footer container */
    padding: var(--vertical-spacing);
}

footer ul {
    display: flex; /* to make the footer's items align horizontally */
    justify-content: center; /* to center items horizontally in the ul */
    align-items: center; /* to center items vertically in the ul */
    list-style: none;
    padding: 0;
    margin: 0;
}

footer img {
    width: 30px;
    height: 30px;
    padding: 2px;
    vertical-align: middle;
     /* adds some spacing between the image and the text */
}
footer > * { margin-right: 5px; display: inline-block; }

.full-width {
    display: block;
    margin: auto;
}

a:hover {
    color: var(--accent);
}

@media (prefers-color-scheme:dark) {
    :root {
        --background-color:black;
        --text-color:white;
    }
    img[src*="svg"], img[src*="png"] { background:white;filter:invert(1) hue-rotate(180deg) }
    main pre { background:#111 }
    main table { border-style:solid }
    main th, main td { border-style:dotted }
    .nodark { filter:invert(0) hue-rotate(0deg) !important;background:transparent !important }
}