: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: auto;
    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: auto;
    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: auto;
    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: fallback;
    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: fallback;
    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: fallback;
    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: fallback;
    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: fallback;
    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 */
@font-face {
    font-family: 'Inclusive Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inclusivesans/v1/0nkxC9biPuwflXcJ46P4PGWE0-7yqQc.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, 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: 'Inclusive Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inclusivesans/v1/0nkxC9biPuwflXcJ46P4PGWE0-78qQeGLA.woff2) format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    font-family: 'Inclusive Sans', 'Raleway', sans-serif;
    font-weight: 500;
    margin: 0;
    padding: 0;
    font-size: 10pt;
}

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 {
    width: 100%;
    margin: 0 auto;
    /*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: clamp(20em, 50em, 100%);
}

.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], .text-input input[type=url] {
    font-family: monospace;
}

.text-input input:invalid {
    border: solid 1px #dc143c;
    background: #f5e2e4;
}

.required input[required]::after, .required select[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;
}


@media screen and (max-width: 480px) {
    main {
        margin: 0 1em;
        /*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;
}

table.dataview {
    width: 100%;
    min-width: 20em;
}

.action-panel {
    font-size: 75%;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .dataview {
        max-width: 100vw;
        overflow-x: scroll;
    }

    .dataview thead {
        position: sticky;
        inset-block-start: 0;
        border-bottom: 2px solid #ccc;
        background-color: white;
    }

}

.form-element > input[readonly] {
    background-color: #eee8aa;
    color: #000;
}

.form-element > input[disabled], .form-element > select[disabled] {
    background-color: #f3f0dc;
    color: #555;
}

