/* CSS Document for Screens */

@font-face {
    font-family: 'LatoLatinRegular';
    src: url("../../assets/fonts/Lato2OFLWeb/LatoLatin/fonts/LatoLatin-Regular.woff");
}

html {
    height: 100%;
    width: 100%;
    min-height: 100%;
    font-size: 18px;
}

body {

    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: transparent;
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100vh;
    width: 100%;
    min-width: 320px;
    overflow: auto;
    font-size: 100%;
    font-family: 'LatoLatinRegular', Helvetica, 'Open Sans', sans-serif ; /* fontlibrary.org lato */
    font-weight: 300;
    letter-spacing: 1px;
    color: #555;
}

.wrapper {
    min-height: 100%;
    margin: 0 auto;
}

#index-page {
    background-image: url(../img/coverBackground825.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

#not-index-page {
    min-height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.page-not-found {
    position: absolute;
    top: 40%;
    width: 100%;
    text-align: center;
}

.page-not-found h2 {
    display: inline-block;
    color: white;
    background-color: rgba(48,48,48,0.75);
    border-radius: 0.5em;
    padding: 1em;
}

.main {
    min-height: 200px;
}

/* TEXT */

p {
    margin:0 0 1em 0;
}

a {
    color: #6c95b9;
    text-decoration: none;
}

a:hover {
    color: #778fa5;
}

/* http://stackoverflow.com/questions/71074/how-to-remove-firefoxs-dotted-outline-on-buttons-as-well-as-links */
a:focus, a:active {
    outline: none;
    background: transparent;
}

button::-moz-focus-inner {
  border: 0;
  background: transparent;
}

/* HEADER */

header {
    font-family: Helvetica, 'Open Sans', sans-serif ;
    font-size: 16px;
}

.about-banner {
    height: 241px;
    background-image: url(../img/aboutBanner1200.jpg) ;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;

}

.contact-banner {
    height: 241px;
    background-image: url(../img/contactBanner1200.JPG) ;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;

}

#logo {
    float: left;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
    color: white;
    font-size: 1.6em;
}

.tagline {
  margin: auto;
  width: 50%;
  text-align: center;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5em;
  color: white;
}




/*  RESPONSIVE MENU BUTTON  */

.menu-button {
        display: none;
        color: white;
        font-size: 1.8em;
        position: relative;
        top: 20px;
        float: right;
        margin-right: 30px;
}


/* NAV HORIZONTAL */

#vertical-nav {
    visibility: hidden;
}

#closebtn {
    display: none;
}

nav {
    float: right;
    top: 0px;
    margin-right: 15px;
}

nav ul{
    list-style: none;
    margin-top: 30px;
    padding: 0px;
}

nav ul li {
    position: relative;
    display: inline-block;
}

nav ul li a, nav ul li label {
    font-size: .8em;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
}

nav ul li a:hover {
    font-weight: bold;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
}

nav ul li #contact-btn {
    border: 2px solid white;
    border-radius: 25px;
    padding: 12px 17px 12px 17px;
}

#contact-btn:hover {
    background-color: white;
    color:black;
}



/* SECTION - MAIN */

section.main {
    margin-top: 20px;
/*    margin-bottom: 100px;   */
    padding: 10px 100px;
    overflow: auto;
}

/* Section Main, About page specific */

section.main .capabilities {
    font-size: larger;
    font-family: sans-serif;
    line-height: 1.5;
}

section.main .module {
    float: right;
    width: 25%;
    margin: 0 20px 20px 20px;
}

section.main .module a, section.main .module img {
    display: block;
    width: 75%;
    margin: 0 auto;
    margin-top: 10px;
}

section.main .text {
    padding-top: 20px;
    padding-bottom: 20px;
}

section.main .module .badge {
    display: inline-flex;
}

section.main .module .badge img {
    width: 128px;
}

section.main .left {
    float: left;
}

section.main .right {
    float: right;
}


/* Section Main, Contact page specific */

section.main .comments-tagline {
    font-size: 2em;
}

section.main .comments-tagline.active-error-msg {
    font-size: 1.3em;
    color: firebrick;
}

section.main .firstname {
    float: left;
    width: 45%;
}

section.main .lastname {
    float: right;
    width: 45%;
}

#contact-form {
    padding-bottom: 30px;
}

input {
    background-color: #f7f7f7;
    border-style: solid;
    border-color: gray;
    border-width: 1px;
    width: 100%;
    font-size: 1em;
    margin-top: 5px;
}

.alert-box {
    min-height: 2em;
}

.email-alert {
    margin: 0px;
    color: firebrick;
}

textarea {
    background-color: #f7f7f7;
    width: 100%;
    resize: vertical;
    height: 100px;
    margin-top: 5px;
    margin-bottom: 10px;
    border-width: 1px;
    border-style: solid;
    border-color: gray;
    font-size: 1em;
}

button {
    margin-top: 20px;
    background-color: #2f5779;
    color: white;
    border-radius: 8px;
    padding: 12px 17px 12px 17px;
    font-size: 1.1em;
    letter-spacing: 2px;
    text-transform: uppercase;

}

fieldset {
    padding-left: 0px;
    padding-right: 0px;
    position: relative;
    border: none;
}


/* FOOTER */

footer {
    width: 100%;
    display: block;
    position: relative;
    background-color: #5c5858;
    height: 100px;
    margin-top: -100px;
    clear: both;
}

footer .footer-content p {
    padding-top: 1em;
    padding-bottom: 0;
    color: white;
    text-align: center;
    font-size: 1.2em;
    margin: 0;
}

#copyright {
    padding-top: 0.8em;
    font-size: 0.8em;
}



/* MEDIA QUERIES */

@media screen and (max-width: 1000px) {
   section.main .module {
        width: 30%;
        margin: 0 15px 15px 15px;
    }
}


@media screen and (max-width: 825px){

    #logo {
        font-size: 1.4em;
    }

    .about-banner {
        height: 190px;
        background-image: url(../img/aboutBanner825.jpg);
    }

    .contact-banner {
        height: 190px;
        background-image: url(../img/contactBanner825.JPG);
    }

    footer .footer-content p {
        padding-top: 1.1em;
        font-size: 1em;
    }

    footer {
        height: 80px;
        margin-top: -80px;
    }

    section.main .module {
        width: 35%;
        margin: 0 15px 15px 15px;
    }

    section.main {
        margin-top: 10px;
 /*       margin-bottom: 80px;  */
        padding: 80px;
    }
}



@media screen and (max-width: 725px) {

    /* NAV converts to vertical under menu button */

    nav ul.horizontal-nav {
        display: none;
    }

    .menu-button {
        display: block;
    }

    #vertical-nav.nav-active {
        width:25%;
    }

    #closebtn {
        display: block;
        position: absolute;
        top: 0;
        left: 25px;
        font-size: 36px;
    }

    nav ul {
        margin-top: 0;
    }

    nav #vertical-nav {
        visibility: visible;

        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 0px;
        right: 0;
        background-color: rgba(47, 47, 47, 0.9);
        overflow-x: hidden;
        transition: width 0.1s;
        padding-top: 60px;

    }

    nav ul li #contact-btn {
        border: none;
    }

    #contact-btn:hover {
        background: transparent;
        color:white;
    }

    #vertical-nav li {
        display: block;
        float: right;
        padding-top: 20px;
    }

    section.main .comments-tagline {
        font-size: 1.5em;
    }

    section.main .comments-tagline.active-error-msg {
        font-size: 1em;
    }

    section.main {
        margin-top: 10px;
 /*       margin-bottom: 60px;  */
        padding: 50px;
    }

    footer .footer-content p {
        padding-top: 1em;
        font-size: 1em;
    }

    #copyright {
        padding-top: 0.5em;
        font-size: 0.7em;
    }

}


@media screen and (max-width: 640px){

    #index-page {
        background-image: url(../img/coverBackground640.jpg);
    }

    .about-banner {
        height: 170px;
        background-image: url(../img/aboutBanner640.jpg);
    }

    .contact-banner {
        height: 170px;
        background-image: url(../img/contactBanner640.JPG);
    }

    .menu-button {
        font-size: 1.6em;
    }

    section.main {
        margin-top: 10px;
/*        margin-bottom: 60px;  */
        padding: 30px;
    }

    footer {
        height: 60px;
        margin-top: -60px;
    }
}


@media screen and (max-width: 500px) {

    /* change height in html for iOS mobile hack */
    /* http://stackoverflow.com/a/19205592 */
/*    html {
        height: 110%
    }  */

    #logo {
        font-size: 1em;
        font-weight: 700;
    }

    .menu-button {
        font-size: 1.4em;
        top: 15px;
        margin-right: 20px;
    }

    #vertical-nav.nav-active {
        width:38%;
    }


    section.main .module {
        bottom: 5px;
        float: none;
        width: auto;
        margin-top: 30px;
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 10px;
    }

    section.main .comments-tagline {
        font-size: 1em;
    }

    section.main .comments-tagline.active-error-msg {
    font-size: 0.8em;
    }

    #contact-form {
        font-size: 0.8em;
    }

    .alert-box {
        min-height: 1.3em;
    }

    footer .footer-content p {
        padding-top: .9em;
        font-size: .9em;
    }

    #copyright {
        padding-top: 0.4em;
        font-size: 0.6em;
    }

}
