@import url('https://fonts.googleapis.com/css?family=Fira+Sans:300,400,600,800&display=swap');
@import url('icons.css');

body {
    color: black;
    background: white;
    font-family: 'Fira Sans', 'Verdana', sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 300;
    font-stretch: normal;
    line-height: 1.7rem;
    vertical-align: middle;
    text-indent: 0;
    margin: 0 auto;
    padding: 0;
    position: relative;
    max-width: 64em;
}

a#skip-nav {
    background: yellow;
    position: absolute;
    top: -120%;
    z-index: 1;

    padding: 0 0.5rem;
    background: rgba(0,0,0,0.5);
    color: white;
    outline: none;
    border: 1px solid rgb(170,50,0);
}

a#skip-nav:focus {
    top: 0;
}

ul, ol {
    list-style-position: outside;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

li {
    margin-bottom: 0.5rem;
}

a {
    background: transparent;
    color: rgb(170,50,0);
    text-decoration: none;
}

a:hover {
    background: transparent;
    color: rgb(200,0,0);
    text-decoration: underline;
}

body > header {
    position: relative;
    background-image: url(lights.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% auto;
    background-color: black;
    font-weight: 400;
    text-shadow: 0.1em 0.1em 0.1em black;
    color: white;
    height: 8em;
    display: flex;
    flex-flow: column;
    padding: 1rem;
    box-sizing: border-box;
    justify-content: center;
    position: relative;
}

body > header:before {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36em' height='36em' viewBox='0 0 200 200'%3E%3Ccircle cx='50' cy='50' r='170' stroke='white' stroke-width='2.0' fill='none'/%3E%3Ccircle cx='50' cy='50' r='166' stroke='white' stroke-width='0.5' fill='none'/%3E%3Ccircle cx='50' cy='50' r='162' stroke='white' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
    background-position: left bottom;
    background-repeat: no-repeat;
}

body > header p {
    font-size: 1.8rem;
    font-weight: 300;
    text-align: left;
    font-family: Times New Roman, serif;
    border: 0;
    margin: 0;
}

body > header form.search-bar {
    padding: 0;
    border-radius: 100vh;
    border-width: 0.1rem;
    border-style: solid;
    border-color: transparent;
    width: fit-content;
    display: flex;
    position: relative;
    position: absolute;
    left: 0;
    bottom: 0;
    transition: background 300ms ease-in-out;
}

body > header form.search-bar::after {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0.1rem;
    box-sizing: content-box;
    border: none;
    border-radius: 100vh;
    content: '';
    line-height: 1em;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    background-origin: content-box;
}

body > header form.search-bar input {
    outline: none;
    border: none;
    padding: 0;
    background: transparent;
    width: 0;
    color: white;
    transition: width 300ms ease-in-out;
}

body > header form.search-bar input::placeholder {
    color: white;
}

body > header form.search-bar:hover,
body > header form.search-bar:focus-within {
    background: rgba(0,0,0,0.5);
    border-color: rgb(170,50,0);
}

body > header form.search-bar:hover input,
body > header form.search-bar:focus-within input {
    margin-left: 0.5em;
    width: 20ch;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fira Sans', 'Verdana', sans-serif;
    font-weight: 600;
    padding: 0 1rem;
    margin: 0.8rem;
}

h1 {
    font-size: 1.6rem;
    color: rgb(170,50,0);
    background: transparent;
    text-align: left;
    margin-top: 2rem;
    padding: 0;
    border-bottom: 0.1rem solid;
}

body > header h1 {
    line-height: 3rem;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    text-align: left;
    color: white;
    margin: 0;
    border: 0;
    padding: 0 0 0.4rem;
}

h2, main[itemprop=mainEntity] article h1, main section h1 {
    font-size: 1.3rem;
    color: rgb(170,50,0);
    background: transparent;
    text-align: left;
    padding: 0;
    border-bottom: 0.1rem solid;
    margin-bottom: 0;
    margin-top: 1rem;
}

h3, main[itemprop=mainEntity] article h2, main section h2 {
    font-size: 1.1rem;
    color: rgb(170,50,0);
    background: transparent;
    text-align: left;
    padding: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1rem;
    font-weight: 400;
    color: rgb(170,50,0);
    background: transparent;
    text-align: left;
    padding: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

hr {
    width: 90%;
    color: rgb(170,50,0);
    border: none;
    border-bottom: 0.1rem solid;
}

p, blockquote, ul, ol, dl {
    margin: 1rem;
}

blockquote {
    font-style: italic;
    padding: 0 2rem;
}

blockquote p.attrib, blockquote p.cite, blockquote cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-size: 0.9rem;
}

blockquote p.attrib:before, blockquote p.cite:before, blockquote cite:before {
    content: '― ';
}

code {
    font-family: monospace;
}

dt {
    font-weight: 400;
}

dd {
    margin-left: 2rem;
}

td {
    vertical-align: top;
    padding: 0.4rem;
}

p.links {
    text-align: right;
}

p.metadata {
    margin-top: 0;
    padding: 0;
    font-size: 0.8rem;
    color: rgb(85,85,85);
    text-align: right;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.helptext {
    font-size: 0.8rem;
    color: rgb(85,85,85);
}

sup, sub {
    vertical-align: baseline;
    position: relative;
    top: -0.4rem;
}

sub {
    top: 0.4rem;
}

img {
    margin: 0.4rem;
    border: 0.1rem solid black;
    max-width: 100%;
}

img.right {
    float: right;
}

figure {
    margin: 0.4rem;
    max-width: 100%;
}
figure > img {
    display: block;
    margin: 0 auto;
}
figure > figcaption {
    margin-top: 0.5em;
    font-size: 0.8rem;
    color: rgb(85,85,85);
    text-align: center;
}

a:focus {
    outline: 0.1rem solid rgb(170,50,0);
}

nav#navbar {
    position: relative;
}

nav#navbar:before {
    content: attr(aria-label);
    text-transform: lowercase;
    cursor: pointer;
    position: absolute;
    line-height: 1.7em;
    height: 1.7em;
    top: -1.7em;
    right: 0;
    background: rgba(0,0,0,0.8);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M6,6 L24,6 M6,15 L24,15 M6,24 L24,24' stroke-width='4' stroke-linecap='round' stroke='white'/%3E%3C/svg%3E");
    background-position: right;
    background-repeat: no-repeat;
    color: white;
    margin: 0;
    padding: 0;
    padding-left: 0.5em;
    padding-right: 2em;
    font-weight: 600;
    white-space: nowrap;
    display: block;
}

nav#navbar:hover:before,
nav#navbar:focus-within:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpolyline points='4 10 15 20 26 10' stroke-width='3' stroke-linecap='round' stroke='white'/%3E%3C/svg%3E");
}

nav#navbar ul {
    width: 100%;
    font-weight: 600;
    font-size: 1.5rem;
    list-style-type: none;
    text-align: center;
    margin: 0;
    padding: 0;
    box-shadow: 0 0.5em 0.4em -0.4em black;
    position: absolute;
    background: white;
    display: none;

    flex-wrap: wrap;
    justify-content: center;
}

nav#navbar:hover ul,
nav#navbar:focus-within ul {
    display: flex;
}

nav#navbar li {
    padding: 0.5rem;
    margin-bottom: 0;
    display: block;
}

nav#navbar a {
    color: black;
    text-decoration: none;
    text-transform: lowercase;
    display: block;
    transition: color 300ms ease-in-out;
}

nav#navbar a:hover {
    color: rgb(170,50,0);
}

nav#navbar a:before {
    border: 0;
    margin: 0 0.5rem 0 0;
    padding: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: middle;
    display: inline-block;
    background-color: rgb(207,174,81);
    border-radius: 100vh;
    transition: background 300ms ease-in-out;
}

nav#navbar a:hover:before {
    background-color: rgb(200,140,0);
}

nav#navbar-login p {
    margin: 0;
}

nav#navbar-login a {
    color: white;
    text-decoration: none;
}

nav#navbar-member, nav#navbar-login {
    color: white;
    background: rgba(0,0,0,0.8);
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: height 3000ms ease-in-out;
}

nav#navbar-member:before, nav#navbar-login a {
    content: attr(aria-label);
    text-transform: lowercase;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' fill='none'/%3E%3Cpath d='M6,6 L24,6 M6,15 L24,15 M6,24 L24,24' stroke-width='4' stroke-linecap='round' stroke='white'/%3E%3C/svg%3E");
    background-position: right;
    background-repeat: no-repeat;
    color: white;
    margin: 0;
    padding: 0;
    padding-left: 0.5em;
    padding-right: 2em;
    font-weight: 600;
    white-space: nowrap;
    display: block;
    height: 1.7em;
    line-height: 1.7em;
}

nav#navbar-member:hover:before,
nav#navbar-member:focus-within:before {
    margin-bottom: 0.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' fill='none'/%3E%3Cpolyline points='4 10 15 20 26 10' stroke-width='3' stroke-linecap='round' stroke='white'/%3E%3C/svg%3E");
}

nav#navbar:focus,
nav#navbar-member:focus {
    outline: none;
}

nav#navbar-member ul {
    background: transparent;
    text-align: left;
    font-weight: 600;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

nav#navbar-member li {
    display: block;
    text-align: left;
    height: 0;
    width: 0;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    margin-bottom: 0;
    transition: all 300ms ease-in-out;
}

nav#navbar-member:hover li,
nav#navbar-member:focus-within li {
    height: 2.5rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

nav#navbar-member a,
nav#navbar-member button {
    color: white;
    text-decoration: none;
    text-transform: lowercase;
    display: block;
}

nav#navbar-member form {
    padding: 0;
    width: 100%;
}

nav#navbar-member button {
    border: none;
    padding: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    background: transparent;
}

nav#navbar-member a:before,
nav#navbar-member button:before {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 0;
    margin: 0 0.5rem;
    padding: 0.4rem;
    vertical-align: middle;
}

nav#navbar-member a,
nav#navbar-member button {
    color: white;
    padding-right: 0.5rem;
    width: 100%;
    transition: background 300ms ease-in-out;
}

nav#navbar-member a:focus,
nav#navbar-member a:hover,
nav#navbar-member button:focus,
nav#navbar-member button:hover {
    background: rgba(170,50,0,0.5);
}

nav#navbar-member a:focus {
    outline: none;
}

nav#navbar-member p.logon {
    margin: 0;
    text-align: center;
    font-size: 0.7rem;
    height: 0;
    width: 0;
    transition: all 300ms ease-in-out;
}

nav#navbar-member:hover p.logon,
nav#navbar-member:focus-within p.logon {
    height: 2em;
    width: auto;
}

.messages a {
    color: inherit;
}

.messages p.info {
    text-align: left;
    font-weight: 600;
}

.messages p.success {
    text-align: left;
    color: rgb(0,128,0);
    font-weight: 600;
}

.messages p.warning {
    text-align: left;
    color: rgb(255,140,0);
    font-weight: 600;
}

.messages p.warning:before {
    content: "Warning: ";
    font-weight: 600;
}

.messages p.error {
    text-align: left;
    color: rgb(255,0,0);
    font-weight: 600;
}

.messages p.error:before {
    content: "Error: ";
    font-weight: 600;
}

ul.errorlist {
    margin: 0;
    color: red;
}

ul.errorlist li {
    margin: 0;
}

p.message {
    text-align: left;
    color: blue;
    font-weight: 400;
}

p.intro {
    border-top: 0.1rem solid;
    border-bottom: 0.1rem solid;
    padding: 0.4rem;
    text-align: justify;
    margin: 2rem;
}

a.footnote {
    font-size: 0.8rem;
    vertical-align: top;
    font-weight: 400;
}

ol.footnotes {
    border-top: 0.1rem solid;
}

table {
    table-layout: fixed;
    width: 100%;
    padding: 0.9rem;
}

table td {
    padding: 0;
}

.family {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.family a {
    color: initial;
}

.family a:hover {
    color: rgb(200,0,0);
}

.family h1 {
    flex-basis: 100%;
}

.family_people, .family_address, .family_photo {
    padding: 1rem;
    flex: 1 1 0;
}

.family .family_people p {
    margin: 0;
    white-space: nowrap;
}

.family .family_people a, .family .links a {
    color: rgb(170,50,0);
}

.family .family_people .label {
    font-weight: 400;
}

.family .family_address p {
    margin: 0;
    text-align: left;
}

.family .family_address dl {
    margin: 0;
    text-align: left;
}

.family .family_photo img {
    margin: 0;
}

form {
    padding: 0 0.8rem;
}

form table {
    border-spacing: 0.2rem;
    table-layout: auto;
    width: 100%;
}

form table tr {
    height: auto;
}

form table th {
    text-align: left;
    vertical-align: top;
}

form table td {
    padding: 0;
    vertical-align: top;
}

form table td p {
    margin: 0;
    padding: 0.4rem;
    text-align: right;
}

form input[type=submit], form input[type=reset] {
    display: block;
    margin-left: auto;
}

form table.passwd {
    width: auto;
    margin: auto;
}

input, textarea, select, select option, button {
    font-family: 'Fira Sans', 'Verdana', sans-serif;
    font-weight: 300;
}

input:focus, textarea:focus, select:focus {
    outline-color: rgb(170,50,0);
}

select option:checked {
    font-weight: 600;
}

::selection {
    background-color: rgb(207,174,81);
}

::-moz-selection {
    background-color: rgb(207,174,81);
}

iframe {
    display: block;
    border: none;
    margin: 1em auto;
}

iframe.calendar {
    width: 50em;
    min-height: 36em;
}

aside.splash {
    padding: 1rem 0;
    border: 0.1rem solid black;
    margin: 1rem;
}

aside.splash > h1 {
    margin: 0;
    text-align: center;
    border: none;
}

#portal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

#portal > section {
    min-width: 100%;
}

@media screen and (min-height: 25em) {
    body > header {
        height: 12em;
    }

    body > header:before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36em' height='36em' viewBox='0 0 200 200'%3E%3Ccircle cx='0' cy='100' r='170' stroke='white' stroke-width='2.0' fill='none'/%3E%3Ccircle cx='0' cy='100' r='166' stroke='white' stroke-width='0.5' fill='none'/%3E%3Ccircle cx='0' cy='100' r='162' stroke='white' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
    }
}

@media screen and (min-width: 36em) and (min-height: 25em) {
    body > header {
        height: 12em;
        justify-content: flex-start;
    }

    body > header:before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36em' height='36em' viewBox='0 0 200 200'%3E%3Ccircle cx='50' cy='25' r='170' stroke='white' stroke-width='2.0' fill='none'/%3E%3Ccircle cx='50' cy='25' r='166' stroke='white' stroke-width='0.5' fill='none'/%3E%3Ccircle cx='50' cy='25' r='162' stroke='white' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
    }

    body > header form.search-bar {
        right: 0;
        left: auto;
    }

    nav#navbar {
        margin: 0.3rem 0;
    }

    nav#navbar:before {
        display: none;
    }

    nav#navbar ul {
        display: flex;
        position: relative;
        box-shadow: none;
    }

    nav#navbar li {
        padding: 0 0.5rem;
    }
}

@media screen and (min-width: 36em) {
    body {
        text-align: justify;
    }

    nav#navbar ul {
        font-size: 1rem;
    }

    p, blockquote, ul, ol, dl {
        text-align: justify;
    }

    #portal > section {
        min-width: 50%;
    }

    .family {
        flex-direction: row;
    }

    .family .family_photo img {
        max-height: 15em;
        max-width: 20em;
    }

    #search h2 {
        margin: 2rem;
    }

    #search p {
        margin: 2rem 5rem;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        color: white;
        background: black;
    }

    nav#navbar ul {
        background: black;
    }

    nav#navbar ul a {
        color: white;
    }

    p.metadata {
        color: rgb(170,170,170);
    }

    figure > figcaption {
        color: rgb(170,170,170);
    }

    .family a {
        color: white;
    }

    input, select {
        color: white;
        background: black;
    }
}
