:root {
    --body-bg: #f3f3f3;
    --wrap-bg: #fff;
    --red: #ff0000;
    --darker-grey: #9b9b9b;
    --dark-grey: #afafaf;
    --light-grey: #cdcdcd;
    --a-black: #000;
    --a-light-blue: #01447e;
    --a-green: #99cc00;

    --button-green: #218838;
    --button-red: #c82333;
    --button-yellow: #e0a800;
    --button-grey: #5a6268;
    --button-blue: #0069d9;
}

body {
    background-color: var(--body-bg);

    font-family: Verdana, Geneva, sans-serif;
    font-size: 11px;
    line-height: 13.2px;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    margin: 30px 0;
}

/******************************************************/

.red { color: var(--red) }
.grey { color: var(--dark-grey) }
.blue { color: var(--a-light-blue) }

.text-right { text-align: right }
.text-left { text-align: left }
.text-justify { text-align: justify }
.text-center { text-align: center }
.bold { font-weight: bold }
.italic { font-style: italic}

.margin-top-20 {margin-top: 20px}

/******************************************************/


#wrap {
    background-color: var(--wrap-bg);

    max-width: 1100px;
    min-width: 300px;
    margin: 0 auto;

    padding: 30px 60px;

    -webkit-box-shadow: 2px 0 22px 0 rgba(0,0,0,0.04);
    -moz-box-shadow: 2px 0 22px 0 rgba(0,0,0,0.04);
    box-shadow: 2px 0 22px 0 rgba(0,0,0,0.04);
    border-radius: 5px;
}

#head {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 50px;
}

#head a#logo {
    display: inline-block;
    color: var(--red);
    font-size: 40px;
    font-weight: bold;
    white-space: pre-line;
    flex-grow: 0;
    flex-shrink: 0;
}

#head a#logo:hover span {
    padding: 18px 0 0 1px;
}

#head #logo span {
    display: inline-block;
    color: var(--dark-grey);
    font-size: .3em;
    font-weight: normal;
    padding: 12px 0 6px 1px;
    letter-spacing: 3.1px;
    transition: all 700ms;
}

.menu_top {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}
.menu_top a {
    display: inline-block;

    color: var(--a-black);
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}
.menu_top a:not(:last-child):after {
    content: " | ";
    color: var(--light-grey);
    padding: 0 7px;
    text-decoration: none;
    display: inline-block;
}

#content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 500px;
}

#menu_left {
    flex-grow: 0;
    flex-shrink: 0;
    border-right: 3px var(--light-grey) solid;
    width: 230px;
    padding: 10px 10px 0 0;
}

.menu a {
    display: block;
    color: black;
    border-left: 3px var(--red) solid;
    padding-left: 7px;
    margin-bottom: 5px;
    font-weight: bold;
}

.menu > .menu {
    margin: 0 0 20px 15px;
}

.menu > .menu a {
    font-weight: normal;
    border-left: 3px var(--dark-grey) solid;
}

.menu.menu_sub a {
    border-left-color: var(--light-grey);
}

.menu a.current {
    border-left: 5px var(--a-green) solid;

}

#page {
    flex-grow: 1;
    padding: 0 0 0 20px;
}

#page p {
    white-space: pre-line;
    margin-bottom: 30px;
}

#page div.boxes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
    align-content: flex-start;
    margin: 20px 0;
}
#page div.boxes > * {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    flex-shrink: 0;
    width: 200px;
    min-width: 200px;
    padding: 15px;
    text-align: center;
    border: 2px var(--a-light-blue) solid;
    border-radius: 4px;
    margin: 15px 20px;
}

#page div.boxes > * img {
    max-width: 100%;
}
#page div.boxes > div:first-child {

}

#page div.boxes > a {
    color: black;
    text-decoration: none;
}

#page div.boxes > a:hover {
    border-color: var(--button-green);
}


#page > h1, #page > h2, #page > h3 {
    margin: 10px 0 20px 0;
    padding-left: 50px;
    line-height: 1.1em;
}

#page > h1:before,
#page > h2:before,
#page > h3:before{
    display: inline-block;
    content: "";
    border-top: .2em var(--red) solid;
    width: 1.5em;
    margin: 0 .8em 0 -50px;
    transform: translateY(-.2em);
}

#page .button {
    display: inline-block;
    min-width: 130px;
    text-align: center;
    padding: 10px 10px;
    border: 1px var(--darker-grey) solid;
    border-radius: 4px;
    background-color: var(--dark-grey);
    color: white;
    font-weight: bold;
    font-size: larger;
    text-decoration: none;
    margin: 10px 15px;
    cursor: pointer;
}

#page .button.red {
    background-color: var(--button-red);
    border-color: #bd2130;
}

#page .button.grey {
    background-color: var(--button-grey);
    border-color: #545b62;
}

#page .button.yellow {
    background-color: var(--button-yellow);
    border-color: #d39e00;
    color: black;
}

#page .button.blue {
    background-color: var(--button-blue);
    border-color: #0062cc;
}

#page .button.green {
    background-color: var(--button-green);
    border-color: #1e7e34;
}
#page .button.white {
    background-color: white;
    color: black;
    border-color: var(--light-grey);
}

#page .button:hover {
    -webkit-mask-image: linear-gradient(-75deg, rgba(0,0,0,.8) 30%, #000 50%, rgba(0,0,0,.8) 70%);
    -webkit-mask-size: 200%;
    animation: shine 2s infinite;

}

@-webkit-keyframes shine {
    from {-webkit-mask-position: 150%}
    to {-webkit-mask-position: -50%}
}


.breadcrumbs a {
    color: var(--a-light-blue);
    font-size: 10px;
}
.breadcrumbs a:last-child {
    color: inherit;
}
.breadcrumbs a:not(:last-child):after {
    content: '/';
    padding-left: 4px;
    color: var(--light-grey);
    display: inline-block;
    text-decoration: none;
}

form {
    display: block;
    border: 1px var(--light-grey) solid;
    padding: 20px 40px 0 40px;
    border-radius: 8px;
    max-width: max-content;
    margin: 40px auto;
}

form .form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

form .form-row.end {
    justify-content: flex-end;
}
form .form-row.center {
    justify-content: center;
}


form .form-row label {
    width: 150px;
    padding-right: 15px;
    font-size: 1.2em;
    margin-bottom: 5px;
    flex-grow: 0;

}
form input[type=text], form input[type=password] {
    border: 1px var(--light-grey) solid;
    border-radius: 4px;
    line-height: 2em;
    padding: 0 10px;
    flex-grow: 1;
}

div.info {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}

div.info.red {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}


/*********************************************************/

#menuToggle {
    display: block;
    position: relative;
    top: 15px;
    left: 10px;

    z-index: 1;

    -webkit-user-select: none;
    user-select: none;
}


#menuToggle input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    left: -5px;

    cursor: pointer;

    opacity: 0; /* hide this */
    z-index: 2; /* and place it over the hamburger */

    -webkit-touch-callout: none;
}


#menuToggle span
{
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;

    background: var(--a-black);
    border-radius: 3px;

    z-index: 1;

    transform-origin: 4px 0;

    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
    background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
    opacity 0.55s ease;
}

#menuToggle span:first-child {
    transform-origin: 0 0;
}

#menuToggle span:nth-last-child(2) {
    transform-origin: 0 100%;
}

#menuToggle input:checked ~ span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: var(--red);
}

#menuToggle input:checked ~ span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
}


#menuToggle .menu_mobile {
    position: absolute;
    width: 300px;
    margin: -100px 0 0 -50px;
    padding: 125px 50px 50px 50px;

    background: var(--body-bg);

    transform-origin: 0 0;
    transform: translate(-100%, 0);
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menuToggle input:checked ~ .menu_mobile {
    transform: none;
}

.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}
.embed-container iframe, .embed-container object, .embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ytdefer {
    cursor: pointer;
}

#footer {
    max-width: 1100px;
    min-width: 300px;
    margin: 10px auto 0 auto;
    text-align: right;
    padding: 0 10px;
}

#footer a {
    color: var(--light-grey);
}

/******************************************** MOBILE ********************************************************/

@media screen and (min-width: 966px) {
    .hide_desktop {
        display: none;
    }
}

/**************************** All Mobile **********************************************/
@media screen and (max-width: 965px) {

    .hide_mobile {
        display: none;
    }

    #wrap {
        padding: 10px 20px;
    }

    #head {
        flex-direction: row-reverse;
        padding-top: 30px;
    }

    .menu_top {
        position: absolute;
        top: 20px;
        right: 35px;
    }
}

/**************************** TABLETS **********************************************/
@media screen and (min-width: 595px) and (max-width: 965px) {}

/**************************** PHONES (from 320px) ******************************************/
@media screen and (max-width: 594px) {
    .hide_phone {
        display: none;
    }
}
