/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    line-height: 1.6;
    min-height: 100%;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Mobile Styles
   ========================================================================== */


#bg {
    position: fixed; 
    top: -50%; 
    left: -50%; 
    width: 200%; 
    height: 200%;
    z-index: -1;
}
#bg img {
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    margin: auto; 
    min-width: 50%;
    min-height: 50%;
}

.wrapper {
    padding: 0 2em;
}

#nav-menu {
    display: none;
}
#nav-menu-mobile {
    margin: 1em 0;
}
#nav-main {
    display: none;
}

#mobile-cta {
    float: right;
    color: white;
    font-size: 150%;
}
#mobile-cta a {
    color: white;
    text-decoration: none;
}

main {
    padding: 2em;
    background: rgba(255, 255, 255, 0.85);
}
footer {
    border-top: 1px solid #666;
    padding: 1em 0 1em 2em;
    background: rgba(255, 255, 255, 0.8);
    font-size: 90%;
}


main img {
    width: 100%;
}

.table-menu {
    width: 100%;
}
.table-menu th, .table-menu td {
    vertical-align: top;
    font-weight: normal;
    border-bottom: 1px solid #ccc;
    padding-top: 10px; padding-bottom: 10px;
}
.table-menu th {
    text-align: left;
}
.table-menu td {
    width: 30%;
    text-align: right;
}
.table-menu .title {
    margin-top: 0; margin-bottom: 0;
    font-weight: 600;
}

h1, h2, h3, h4 {
    margin-top: 0; padding-top: 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: #9c0018;
    line-height: 1;
}
h1 small {
    display: block;
    font-size: 65%;
    padding-top: 0.2em;
}
a {
    color: #333;
}

.sadru {
    visibility: hidden;
}


/* +++++++++++++++++++++++++++++++++++++++
    forms
   +++++++++++++++++++++++++++++++++++++++ */

form > div {
    margin: 0 0 15px 0; 
}
form > div > label,
legend {
	width: 100%;
    float: none;
    margin: 0 0 5px 0;
}
form > div > div,
form > div > fieldset > div {
    width: 100%;
    float: none;
}
input[type=text],
input[type=email],
input[type=url],
input[type=password],
textarea,
select {
    width: 100%; 
}
input[type=text],
input[type=email],
input[type=url],
input[type=password],
textarea {
    width: 100%;
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=url]:focus,
input[type=password]:focus,
textarea:focus {
    outline: 0;
    border-color: #4697e4;
}

form div.sadru {
    visibility: hidden;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 1024px) {
    .wrapper {
        width: 960px;
        min-height: 100%;
        margin: 0 auto;
        position: relative;
    }
    
    #nav-menu {
        display: inherit;
    }
    #nav-main {
        display: inherit;
    }
    #nav-menu-mobile {
        display: none;
    }
    #mobile-cta {
        display: none;
    }
    
    #left-col {
        position: fixed;
        width: 200px; height: 100%;
        /* background: #9c0018; */
        background: rgba(156,0,24,0.8);
    }
    #content {
        width: 720px; float: right;
    }
    
    #nav-menu {
        margin-top: 1em;
    }
    #nav-main {
        text-align: right;
    }

    #nav-menu ul {
        margin: 0; padding: 0; list-style: none;
    }
    #nav-menu ul li {
        padding: 0.5em 1em 0.5em 1.5em;
    }
    #nav-menu ul li a {
        font-family: 'Open Sans', sans-serif;
        font-weight: 600;
        font-size: 110%;
        line-height: 1.2;
        text-decoration: none;
        color: #111;
        display: block;
    }
    #nav-menu ul li a:hover {
        color: white;
    }
    
    #nav-main ul {
        margin: 2em 0; padding: 0; list-style: none;
        /* background: rgba(156,0,24,0.8); */
        border-radius: 5px;
    }
    #nav-main ul li {
        display: inline;
    }
    #nav-main ul li a {
        font-family: 'Open Sans', sans-serif;
        font-weight: 800;
        font-size: 110%;
        line-height: 1.2;
        padding: 0 0 0 1em;
        text-decoration: none;
        color: #fff;
        text-shadow: 2px 2px #111;
    }
    #nav-main ul li a:hover {
        color: #9c0018;
    }
    
    

    form > div {
        clear: both;
        overflow: hidden;
        padding: 1px;
        margin: 0 0 10px 0;
    }
    form > div > label,
    legend {
        width: 25%;
        float: left;
        padding-right: 10px;
    }
    form > div > div,
    form > div > fieldset > div {
        width: 70%;
        float: right;
    }

    form > div > fieldset > div > div {
      margin: 0 0 5px 0;
    }
    form > div > fieldset label {
	    font-size: 90%;
    }
    fieldset {
        border: 0;
        padding: 0;
    }
    input[type=text],
    input[type=email],
    input[type=url],
    input[type=password] {
        width: 50%;
    }
    
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}