@import url("font-awesome.min.css");
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,400,600");

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block
}

body {
    line-height: 1
}

ol, ul {
    list-style: none
}

blockquote, q {
    quotes: none
}

blockquote:before, blockquote:after, q:before, q:after {
    content: none
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

body {
    -webkit-text-size-adjust: none
}

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

.container {
    margin-left: auto;
    margin-right: auto;
    width: 95%;
}

:root {
    --menu-fg-color: #ffffff;
    --menu-bg-color: #222729;
    --body-fg-color: #000;
    --link-hover-color: #0000ffff
}

body {
    background: #fff;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 19pt;
    font-weight: 300;
    line-height: 1.75em;
    color: var(--body-fg-color)
}

body.is-loading * {
    -moz-transition: none !important;
    -webkit-transition: none !important;
    transition: none !important;
    -moz-animation: none !important;
    -webkit-animation: none !important;
    animation: none !important
}

input, textarea, select {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 19pt;
    font-weight: 300;
    line-height: 1.75em;
    color: var(--body-fg-color)
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    color: var(--body-fg-color);
    line-height: 1.5em
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
    text-decoration: none
}

h1 a strong, h2 a strong, h3 a strong, h4 a strong, h5 a strong, h6 a strong {
    color: #333
}

h2 {
    font-size: 2em;
    letter-spacing: -1px
}

h3 {
    font-size: 1.5em
}

header {
    margin: 0 0 2em 0
}

header > p {
    margin: 1em 0 0 0
}

footer {
    margin: 2em 0 0 0
}

strong, b {
    font-weight: 300;
    color: var(--body-fg-color);
}

em, i {
    font-style: italic
}

a {
    text-decoration: none;
    color: inherit;
    border-bottom: solid 1px rgba(128, 128, 128, 0.5);
    -moz-transition: color 0.35s ease-in-out, border-bottom-color 0.35s ease-in-out;
    -webkit-transition: color 0.35s ease-in-out, border-bottom-color 0.35s ease-in-out;
    transition: color 0.35s ease-in-out, border-bottom-color 0.35s ease-in-out;
    outline: 0
}

a:hover {
    color: var(--link-hover-color);
    border-bottom-color: rgba(255, 255, 255, 0)
}

sub {
    position: relative;
    top: 0.5em;
    font-size: 0.8em
}

sup {
    position: relative;
    top: -0.5em;
    font-size: 0.8em
}

hr {
    border: 0;
    border-top: solid 1px #41484c
}

code {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    padding: 0.25em 0.325em
}

pre {
    -webkit-overflow-scrolling: touch;
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    tab-size: 4;
    margin: 0 0 2em 0
}

pre code {
    display: block;
    line-height: 1.5;
    padding: 0.75em 1em;
    overflow-x: auto
}

blockquote {
    margin-left: 1em;
    border-left: solid 0.5em #ddd;
    padding: 1em 0 1em 2em;
    font-style: italic
}

p, ul, ol, dl, table {
    margin-bottom: 2em
}

dl dt {
    font-weight: 300;
    color: var(--body-fg-color);
}

dl dd {
    margin-left: 1em
}

br.clear {
    clear: both
}

section, article {
    margin-bottom: 3em
}

section > :last-child, section > .container, section:last-child, section > .container > :last-child, article > :last-child, article > .container, article:last-child, article > .container > :last-child {
    margin-bottom: 0
}

section ul, section ol, article ul, article ol {
    padding-left: 0.25em;
    margin-left: 1.25em
}

.image {
    display: inline-block;
    border: 0
}

.image img {
    display: block;
    width: 100%
}

.image.avatar48 {
    width: 48px;
    height: 48px;
    background: #f00
}

.image.avatar48 img {
    width: 48px;
    height: 48px
}

.image.fit {
    display: block;
    width: 100%
}

.image.featured {
    display: block;
    width: 100%;
    margin: 0 0 2em 0
}

.image.left {
    float: left;
    margin: 0 2em 2em 0
}

.image.right {
    float: right;
    margin: 0 0 2em 2em
}

.image.centered {
    display: block;
    margin: 0 0 2em 0
}

.image.centered img {
    margin: 0 auto;
    width: auto
}

ul {
    list-style: disc
}

ul.icons {
    cursor: default
}

ul.icons li {
    display: inline-block
}

ul.icons a {
    display: inline-block;
    width: 2em;
    height: 2em;
    line-height: 2em;
    text-align: center;
    border: 0
}

ol {
    list-style: decimal
}

form label {
    display: block;
    text-align: left;
    margin-bottom: 0.5em
}

form input[type="text"], form input[type="email"], form input[type="password"], form select, form textarea {
    position: relative;
    -webkit-appearance: none;
    display: block;
    outline: 0;
    background: #fff;
    background: rgba(255, 255, 255, 0.75);
    width: 100%;
    border-radius: 0.35em;
    padding: 0.75em 1em 0.75em 1em;
    box-shadow: inset 0 0.1em 0.1em 0 rgba(0, 0, 0, 0.05);
    border: solid 1px rgba(0, 0, 0, 0.15);
    -moz-transition: all 0.35s ease-in-out;
    -webkit-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out
}

form input[type="text"]:focus, form input[type="email"]:focus, form input[type="password"]:focus, form select:focus, form textarea:focus {
    box-shadow: 0 0 2px 1px #8ebebc;
    background: #fff
}

form input[type="text"], form input[type="email"], form input[type="password"], form select {
    line-height: 1.25em
}

form textarea {
    min-height: 14em
}

form .formerize-placeholder {
    color: #555 !important
}

form ::-webkit-input-placeholder {
    color: #555 !important
}

form :-moz-placeholder {
    color: #555 !important
}

form ::-moz-placeholder {
    color: #555 !important
}

form :-ms-input-placeholder {
    color: #555 !important
}

form ::-moz-focus-inner {
    border: 0
}

table {
    width: 100%;
    text-align: left
}

table tbody tr:nth-child(2n+2) {
    background: #f4f4f4
}

table td {
    padding: 0.5em 1em 0.5em 1em
}

table th {
    text-align: left;
    padding: 0.5em 1em 0.5em 1em;
    color: #fff;
    background: #222729 url("images/overlay.png")
}

table thead {
    background: #444;
    color: #fff
}

table tfoot {
    background: #eee
}

input[type="button"], input[type="submit"], input[type="reset"], button, .button {
    position: relative;
    display: inline-block;
    border-radius: 0.35em;
    color: #fff !important;
    text-decoration: none;
    padding: 0.75em 2.5em 0.75em 2.5em;
    background-color: #8ebebc;
    border: 0;
    cursor: pointer;
    background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15)), url("images/overlay.png");
    background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15)), url("images/overlay.png");
    background-image: -ms-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15)), url("images/overlay.png");
    background-image: linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15)), url("images/overlay.png");
    -moz-transition: background-color 0.35s ease-in-out;
    -webkit-transition: background-color 0.35s ease-in-out;
    transition: background-color 0.35s ease-in-out
}

input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover, button:hover, .button:hover {
    background-color: #9ececc
}

input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, button:active, .button:active {
    background-color: #7eaeac
}


/* https://css-tricks.com/snippets/css/a-guide-to-flexbox/ */
.item_container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
    align-content: space-around;
}

.item {
    box-shadow: 0 0.05em 0.15em 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    flex-grow: 0; /* default 0 */
    flex-shrink: 1; /* default 1 */
    flex-basis: 30%; /* default auto */

}

.item header {
    color: #666;
    text-align: center;
    background: #fff;
    margin: 0;
    padding: 1em;
    font-size: 0.8em
}

.item header h3 {
    font-size: 1em
}

.icon {
    text-decoration: none
}

.icon:before {
    display: inline-block;
    font-family: FontAwesome, serif;
    font-size: 1.25em;
    text-decoration: none;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.icon > .label {
    display: none
}

#header {
    display: -moz-flex;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    background: var(--menu-bg-color) url("images/overlay.png");
    box-shadow: inset -0.25em 0 0.25em 0 rgba(0, 0, 0, 0.1);
    color: #fff;
    height: 100%;
    left: 0;
    overflow-y: auto;
    position: fixed;
    text-align: right;
    top: 0;
    width: 375px
}

#header .top {
    -webkit-flex-grow: 1;
    flex-grow: 1
}

#header .bottom {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    padding: 1.5em 0 0.75em 0
}

#header .bottom > :last-child {
    margin-bottom: 0
}

#header .icons {
    font-size: 0.8em;
    text-align: center
}

#header .icons a {
    color: #41484c;
    -moz-transition: color 0.35s ease-in-out;
    -webkit-transition: color 0.35s ease-in-out;
    transition: color 0.35s ease-in-out
}

#header .icons a:hover {
    color: #fff
}

@media print {
    body {
        font: 1em Georgia, "Times New Roman", Times, serif;
        color: #000;
        background: #fff;
        padding: 0 3em
    }

    .container {
        width: 100%
    }

    .item {
        margin-bottom: 15px;
        flex-basis: 45%; /* default auto */
    }

    #header {
        display: none
    }

    #main {
        margin-left: 0 !important
    }

    #main > section.shade-two, #main article.shade-two {
        background-color: #fff
    }

    #footer {
        background-color: #fff;
        margin-left: 0;
        text-align: left
    }
}

#logo {
    position: relative;
    margin: 1.75em 1.5em 1.5em 1.5em;
    min-height: 48px;
    cursor: default
}

#logo a {
    border: 0
}

#logo h1 {
    position: relative;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    line-height: 1em
}

#logo p {
    position: relative;
    display: block;
    font-size: 0.6em;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.25em;
    margin: 0.5em 0 0 0
}

#logo .image {
    position: absolute;
    left: 0;
    top: 0
}

#nav ul {
    list-style: none;
    margin-bottom: 0
}

#nav ul hr {
    margin: auto 1.5em
}

#nav ul li a {
    display: block;
    padding: 0.5em 1.5em 0.5em 1.5em;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    outline: 0;
    border: 0;
    -moz-transition: none;
    -webkit-transition: none;
    transition: none
}

#nav ul li a span {
    position: relative;
    display: block;
    font-size: 0.8em
}

#nav ul li a span:before {
    position: absolute;
    left: 0;
    color: #41484c;
    text-align: center;
    width: 1.25em;
    line-height: 1.75em
}

#nav ul li a.active {
    background: rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 0 0.25em 0 rgba(0, 0, 0, 0.125);
    color: #fff
}

#nav ul li a.active span:before {
    color: var(--menu-fg-color)
}

#footer {
    margin-left: 375px;
    text-align: center;
    background-color: #dce3e2;
    padding: 3em 0 4em 0;
    box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.05), inset 0 0.1em 0.1em 0 rgba(0, 0, 0, 0.025);
    font-size: 0.8em
}

#footer .copyright {
    cursor: default;
    margin: 0
}

#footer .copyright li {
    display: inline-block;
    line-height: 1em;
    border-left: solid 1px rgba(128, 128, 128, 0.35);
    padding: 0 0 0 0.5em;
    margin: 0 0 0 0.5em
}

#footer .copyright li:first-child {
    border-left: 0;
    padding-left: 0;
    margin-left: 0
}

#main {
    margin-left: 375px
}

#main > section {
    text-align: center
}

#main > article {
    text-align: left
}

#main > article header p {
    font-style: italic
}

#main > section, #main article {
    margin: 0;
    overflow: hidden;
    padding: 4em 0;
    box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.05), inset 0 0.1em 0.1em 0 rgba(0, 0, 0, 0.025);
    background-image: url("images/overlay.png")
}

#main > section.dark, #main article.dark {
    color: #ddd;
    color: rgba(255, 255, 255, 0.75)
}

#main > section.dark h2, #main > section.dark h3, #main > section.dark h4, #main > section.dark h5, #main > section.dark h6, #main article.dark h2, #main article.dark h3, #main article.dark h4, #main article.dark h5, #main article.dark h6 {
    color: inherit
}

#main > section.dark strong, #main article.dark strong {
    color: #fff;
    border-color: inherit
}

#main > section.dark a, #main article.dark a {
    color: #fff;
    border-color: inherit
}

#main > section.dark a:hover, #main article.dark a:hover {
    border-bottom-color: rgba(255, 255, 255, 0)
}

#main > section.cover, #main article.cover {
    padding: 6em 0;
    position: relative;
    z-index: 0
}

#main > section.cover img.back, #main article.cover img.back {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: -1
}

#main > section.shade-one, #main article.shade-one {
    background-color: #81918E
}

#main > section.shade-two, #main article.shade-two {
    background-color: #f5fafa
}

#main > section.shade-three, #main article.shade-three {
    background-color: #ecf1f1
}

#main > section.shade-four, #main article.shade-four {
    background-color: #e8edec
}

@media screen and (min-width: 961px) and (max-width: 1880px) {
    body, input, textarea, select {
        font-size: 17pt
    }

    .item {
        margin-bottom: 15px;
        flex-basis: 30%; /* default auto */
    }

    #header {
        width: 300px
    }

    #footer {
        margin-left: 300px
    }

    #main {
        margin-left: 300px
    }
}

@media screen and (min-width: 961px) and (max-width: 1620px) {

    .item {
        margin-bottom: 15px;
        flex-basis: 45%; /* default auto */
    }

    #main > section, #main article {
        padding: 3em 0
    }

    #main section.cover {
        padding: 5em 0
    }

    #nav ul hr {
        margin: auto 1.25em
    }
}

@media screen and (min-width: 961px) and (max-width: 1320px) {
    body, input, textarea, select {
        font-size: 16pt
    }

    .container {
        padding: 0 2em 0 2em
    }

    ul.icons li a {
        width: 1.75em
    }

    .item {
        margin-bottom: 20px;
        flex-basis: 45%; /* default auto */
    }

    #header {
        width: 20%
    }

    #logo .image {
        position: relative;
        margin: 0 0 0.5em 0
    }

    #nav ul {
        list-style: none
    }

    #nav ul li a {
        font-size: 0.8em;
        padding-top: 0.5em;
        padding-bottom: 0.5em
    }

    #nav ul li a span {
        padding-right: 2.25em
    }

    #nav ul li a span:before {
        left: 100%;
        margin-left: -1.25em;
        line-height: 2.25em
    }

    #footer {
        margin-left: 20%
    }

    #main {
        margin-left: 20%
    }
}

#headerToggle {
    display: none
}

@media screen and (max-width: 960px) {
    html, body {
        overflow-x: hidden
    }

    body, input, textarea, select {
        font-size: 16pt
    }

    header br {
        display: none
    }

    .container {
        padding: 0 2em 0 2em
    }

    .item {
        margin-bottom: 15px;
        flex-basis: 45%; /* default auto */
    }

    ul.icons a {
        width: 1.75em;
        font-size: 1.25em
    }

    #header {
        -moz-backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -moz-transform: translateX(-275px);
        -webkit-transform: translateX(-275px);
        -ms-transform: translateX(-275px);
        transform: translateX(-275px);
        -moz-transition: -moz-transform .5s ease;
        -webkit-transition: -webkit-transform .5s ease;
        transition: transform .5s ease;
        -webkit-overflow-scrolling: touch;
        display: block;
        height: 100%;
        left: 0;
        overflow-y: auto;
        position: fixed;
        top: 0;
        width: 275px;
        z-index: 10002;
        background: #222729 url("images/overlay.png");
        box-shadow: inset -0.25em 0 0.25em 0 rgba(0, 0, 0, 0.125)
    }

    #header .top {
        position: relative
    }

    #header .bottom {
        border-top: solid 1px rgba(255, 255, 255, 0.05);
        box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.15);
        padding-top: 2em;
        margin-top: 2em;
        position: relative
    }

    #logo {
        margin: 1.5em 1.25em 1.25em 1.25em
    }

    #nav ul {
        list-style: none
    }

    #nav ul hr {
        margin: auto 1.25em
    }

    #nav ul li a {
        padding: 0.5em 1.25em 0.5em 1.25em
    }

    #headerToggle {
        -moz-backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -moz-transition: -moz-transform .5s ease;
        -webkit-transition: -webkit-transform .5s ease;
        transition: transform .5s ease;
        display: block;
        height: 2.25em;
        left: 0;
        position: fixed;
        top: 0;
        width: 3.25em;
        z-index: 10001
    }

    #headerToggle .toggle {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        outline: 0;
        border: 0
    }

    #headerToggle .toggle:before {
        font-family: FontAwesome, serif;
        text-decoration: none;
        font-style: normal;
        font-weight: normal;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        content: '\f0c9';
        color: #fff;
        font-size: 18px;
        line-height: 2.25em;
        background: rgba(128, 136, 144, 0.5);
        border-radius: 0.35em;
        text-align: center;
        position: absolute;
        left: 0.5em;
        top: 0.5em;
        display: block;
        width: 3.25em;
        height: 2.25em;
    }

    body.header-visible #main {
        -moz-transform: translateX(275px);
        -webkit-transform: translateX(275px);
        -ms-transform: translateX(275px);
        transform: translateX(275px)
    }

    body.header-visible #headerToggle {
        -moz-transform: translateX(275px);
        -webkit-transform: translateX(275px);
        -ms-transform: translateX(275px);
        transform: translateX(275px)
    }

    body.header-visible #header {
        -moz-transform: translateX(0);
        -webkit-transform: translateX(0);
        -ms-transform: translateX(0);
        transform: translateX(0)
    }

    #footer {
        margin-left: 0
    }

    #main {
        -moz-backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -moz-transition: -moz-transform .5s ease;
        -webkit-transition: -webkit-transform .5s ease;
        transition: transform .5s ease;
        padding-bottom: 1px;
        margin-left: 0
    }

    #main > section, #main article {
        padding: 3em 0
    }

    #main section.cover {
        padding: 4em 0
    }
}

@media screen and (max-width: 736px) {
    body, input, textarea, select {
        font-size: 14pt
    }

    h2 {
        font-size: 1.5em;
        letter-spacing: 0;
        font-weight: 300
    }

    .container {
        padding: 0 15px 0 15px
    }

    .item {
        margin-bottom: 15px;
        flex-basis: 45%; /* default auto */
    }

    ul.icons a {
        width: 2em;
        font-size: 1.25em
    }

    #main > section, #main article {
        padding: 2em 0
    }

    #main section.cover {
        padding: 4em 0
    }

    #main section.cover header {
        padding: 0 1em
    }

    #footer .copyright li {
        display: block;
        line-height: 1.25em;
        border: 0;
        padding: 0;
        margin: 1em 0 0 0
    }

    #footer .copyright li:first-child {
        margin-top: 0
    }
}
