:root {
    --color-bg: #21401D;
    --color-accent: #315925;
    --color-menu: #142611;
    --color-button: #fff;
}

/* app form */

/* latin-ext */
@font-face {
    font-family: 'Enriqueta';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/enriqueta/v10/goksH6L7AUFrRvV44HVjQkqioP0.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Enriqueta';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/enriqueta/v10/goksH6L7AUFrRvV44HVjTEqi.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyC0ITw.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyC0ITw.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyC0ITw.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    margin: 0;
    padding: 0;
    font-size: 12pt;
}

h1, h2, h3 {
    font-family: 'Enriqueta', serif;
    font-weight: 400;
}

header {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    width: 100%;
    min-width: 200px;
}

#header-contents {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    column-gap: 8px;
    align-items: center;
    background-color: var(--color-bg);
}

.logo-text {
    font-size: 1.8rem;
    color: #fff;
    flex-basis: 10px;
    flex-grow: 7;
    flex-shrink: 7;
    padding: 4px 4px;
}

.logo-text.left {
    text-align: right;
}

.logo-img {
    width: 64px;
    min-height: 48px;
    max-height: 80px;
    flex-basis: 64px;
    flex-grow: 0;
    flex-shrink: 1;
}

.logo-img img {
    width: 64px;
    min-height: 48px;
    max-height: 80px;
}

#menu-button {
    flex: 0 0 content;
}

#main-menu {
    display: none;
    background-color: var(--color-menu);
}

#header-contents a {
    text-decoration: none;
    cursor: pointer;
}

.active-menu #main-menu {
    display: block;
}

#main-menu ul {
    display: flex;
    flex-direction: column;
    margin: 0 1rem;
}

#main-menu li {
    padding: 0.3rem 0;
    margin: 0.2rem 0;
    list-style: none;
}

#main-menu a {
    text-decoration: none;
    color: white;
    width: 100%;
}

#main-menu li:hover {
    background-color: var(--color-accent);
}

#menu-button {
    display: inline-block;
    fill: transparent;
    stroke-linecap: round;
    stroke-width: 1;
    stroke: var(--color-button);
    transition: all 300ms;
    flex-basis: 40px;
}

#menu-button svg {
    max-width: 80px;
    min-width: 40px;
    padding: 4px;
}

#chevron-line {
    display: none;
}

.active-menu #menu-button {
    transform: translate(0,-8px) rotateZ(180deg);
}

.active-menu #chevron-line {
    display: unset;
}

.active-menu #straight-line {
    display: none;
}

/* MENU ITEMS */

#main-menu {
    display: none;
    background-color: var(--color-menu);
}

.open #main-menu {
    display: block;
}


.title-bar nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.title-bar nav li {
    list-style: none;
}

.title-bar a {
    text-decoration: none;
    color: white;
}

.title-bar nav li a {
    font-size: 144%;
    padding: 1rem;
    display: block;
}

.title-bar nav li a:hover {
    background-color: #0288D6;
}


@media screen and (min-width: 768px) {
    #menu-button {
        display: none;
    }
    #main-menu {
        display: block;
    }
    #main-menu ul {
        flex-direction: row;
        justify-content: space-evenly;
    }
}

@media screen and (min-width: 1440px) {
    body {
        font-size: 16pt;
    }
    .logo-img {
        padding: 10px;
        width: 128px;
        min-height: 96px;
        max-height: 160px;
        flex-basis: 128px;
    }
    .logo-img img {
        width: 128px;
        min-height: 96px;
        max-height: 160px;
    }
    .logo-text {
        font-size: 3rem;
    }
}

.srf {
    font-family: 'Enriqueta', serif;
}

footer {
    margin-top: 16pt;
    font-size: 8pt;
    font-weight: 300;
}

main {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1em;
    /*border-left: solid 1px #808abe80;*/
    /*border-right: solid 1px #808abe80;*/
}

.app-form h3 {
    margin: 18pt 0 6pt 0;
}

.form-row {
    border: none;
    margin: 0 0 8pt 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: flex-end;
    column-gap: 40px;
    row-gap: 12pt;
}

.form-element {
    flex-grow: 1;
    width: auto;
    max-width: 20em;
}

.form-element label {
    font-size: 80%;
    padding: 0 0 0 7px;
    margin: 0 0 10px 0;
}

.text-input input {
    width: 100%;
    font-family: sans-serif;
    font-size: 110%;
    padding: 4px 7px;
    border: solid 1px black !important;
    border-radius: 3px;
}

.text-input input[type=email] {
    font-family: monospace;
}

.text-input input:invalid {
    border: solid 1px #dc143c;
    background: #f5e2e4;
}

.required::after {
    margin-left: 1ex;
    content: "«";
    font-weight: 800;
}

button.send {
    margin: 20pt 0 10pt 0;
    padding: 4pt 6pt;
    font-family: "Raleway", sans-serif;
    font-size: 150%;
    font-weight: 300;
}

.limit-width {
    max-width: 40ex;
}


@media screen and (max-width: 480px) {
    main {
        margin: 0 0.5em;
        /*border-left: solid 1px #A00abe80;*/
        /*border-right: solid 1px #A00abe80;*/
    }

    .form-element {
        max-width: unset;
    }

}

@media screen and (min-width: 481px) and (max-width: 768px) {
    main {
        margin: 0 1em;
        /*border-left: solid 1px #C08a0e80;*/
        /*border-right: solid 1px #C08a0e80;*/
    }
}

.feedbackPanel {
    font-weight: 800;
}

.feedbackPanelINFO {
    color: #1e9d1e;
}

.feedbackPanelINFO::marker {
    content: "✓  "
}

.feedbackPanelERROR {
    color: #bb092e;
}

.feedbackPanelERROR::marker {
    content: none;
}

th {
    text-align: left;
}

time {
    white-space: nowrap;
}

article {
    clear: both;
}

article .thumbnail {
    float: left;
    margin: 0 0 1rem 0;
}

.thumb-break {
    clear: both;
}

article tbody td, article thead th {
    padding-right: 1rem;
}

article tbody td:last-of-type, article thead th:last-of-type {
    padding-right: 0;
}

article .stripes tbody tr:nth-of-type(2n + 0) {
    background-color: #f3f3e3;
}

.photogallery figure {
    margin: 2rem 0;
}

.photogallery img {
    max-width: min(100%, 800px);
    width: auto;
    height: auto;
}


@media screen and (min-width: 768px) {
    .single-line {
        width: 1px;
        white-space: nowrap;
    }

    article {
        margin-top: 2rem;
    }

    article .thumbnail {
        float: right;
        margin: 0 0 1rem 2rem;
    }

    .thumb-break {
        clear: unset;
        display: none;
    }
}


.multitable {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    column-gap: 2em;
}

.result-deleted {
    text-decoration: line-through;
    color: darkred;
}

blockquote {
    font-style: italic;
    margin: 0;
    padding: 0 0 0 1rem;
    color: #315925;
}

.result-main {
    font-weight: 800;
    color: #AA0000;
}

#title-block {
    display: grid;
    grid-template-columns: minmax(min-content,1fr) minmax(min-content, 20ch);
    gap: 1em;
    margin: 1em 0;
}

#title-block > * {
    grid-row: 1;
}
