/* base.css */

/* overall site */
:root {
    /* inks */
    /* --color-ink: #A11111; */
    --color-ink: SaddleBrown;
    --color-ink-link-lite:  OliveDrab;
    --color-ink-link-dark:  DarkOliveGreen;
    --color-ink-close-lite: GhostWhite;
    --color-ink-close-dark: White;

    /* papers */
    /* --color-paper: #FFF8DC; */
    --color-paper-lite: Bisque;
    --color-paper-mid:  PeachPuff;
    --color-paper-dark: SandyBrown;
}

* { box-sizing: border-box; }

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.sticky {
    position: -webkit-sticky; /* safari */
    position: sticky;
    top: 0;
}

.centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footnote {
    font-size: x-small;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 100%;
    color: var(--color-ink);
    background-color: var(--color-paper-lite);
    margin: 0;
}
header {
    text-align: center;
    color: var(--color-ink);
    background: var(--color-paper-lite);
}
footer {
    font-size: small;
    text-align: center;
    color: var(--color-ink);
    background: var(--color-paper-lite);
}
a {
    color: var(--color-ink-link-lite);
    text-decoration: none;
    outline: 0;
}
a:hover, a:focus, a:active, a.active {
    color: var(--color-ink-link-dark);
}
img.rounded {
    border: .1em solid black;
    border-radius: .5em;
}

/* homepage */
.homepage p {
    margin-top: 0.5em;
    margin-bottom: 2em;
}

div.homepage {
    max-width: 400px;
    margin: auto;
    padding: 1em;
}
hr.homepage {
    width: 90%;
    margin-top: 3em;
    margin-bottom: 3em;
}
dt.homepage { }
dd.homepage { margin: 0 0 1em 1em; }
span.homepage_updated {
    font-style: italic;
    font-size: 0.9em;
}
span.current {
    font-size: large;
}
span.used {
    font-size: medium;
}
span.rusty {
    font-size: small;
}

/* modals */
div#modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding: 1em;
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}
.close {
    color: var(--color-ink-close-lite);
    position: absolute;
    /* top: 10px; */
    right: 10px;
    font-size: 35px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: var(--color-ink-close-dark);
    text-decoration: none;
    cursor: pointer;
}

/* responsive */
/* default to small devices e.g. phones < 768px */
.responsive {
    width: auto;
    height: auto;
    max-width: 100%;
}
.modal-content {
    margin: auto;
    display: block;
    width: 95%;
}

/* medium devices e.g. tablets 768px - 992px */
/* 384px gives two thumbs side by side */
@media only screen and (min-width: 768px) {
    .responsive {
        max-width: 384px;
    }
}

/* large devices e.g. desktops 993px and up */
@media only screen and (min-width: 993px) {
    .responsive {
        max-width: 100%;
    }
}
