/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

* {
    margin: 0;
}
html, body {
    height: 100%;
}

html {
    font-size: 1em;
    line-height: 1.5;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #728892;
}

*, *:before, *:after {
  box-sizing: inherit;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

h1 {
    font-weight: 300;
    font-size: 2em;
    margin: 2rem 0 1rem 0;
    color: #0099cb;
}

h2 {
    font-weight: 300;
    font-size: 1.5em;
    margin: 1.5rem 0 0.75rem 0;
    color: #0099cb;
}

h3 {
    font-weight: 300;
    font-size: 1.25rem;
    margin: 1rem 0 0.5rem;
    color: #0099cb;
}

h4 {
    font-weight: 300;
    font-size: 1.125rem;
    margin: 0.75rem 0 0.25rem;
    color: #0099cb;
}

h4 {
    font-weight: 400;
    font-size: 1rem;
    margin: 0.5rem 0 0;
    color: #0099cb;
}

h5, h6 {
    font-weight: 400;
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
    color: #0099cb;
}

p {
    font-size: 0.875em;
    margin: 0 0 1em 0;
}

ul, ol {
    font-size: 0.875em;
    margin: 0 0 1em 2em;
    padding: 0;
}

table {
    width: 100%;
    margin: 0 0 1em 0;
}

thead tr {
    background: #dedede;
}

tbody tr:nth-child(odd) {
    background: #efefef;
}

td, th {
    font-size: 0.875rem;
    line-height: 2rem;
    text-align: left;
    padding: 0 0.25em;
}

th {
    font-weight: 700;
    border-bottom: 1px solid #728892;
}

label {
    font-size: 0.875em;
    font-weight: 700;
    line-height: 3rem;
    width: 10em;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, table, form, fieldset, label {
    position: relative;
    float: left;
    clear: both;
}

strong, b {
    font-weight: 700;
}

a:link, a:visited {
    font-weight: 700;
    color: #0099cb;
    text-decoration: none;
    -webkit-transition: all 0.25s;
    -moz-transition: all 0.25s;
    transition: all 0.25s;
}

a:hover {
    color: #377491;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

form {
    margin: 0 0 1em 0;
}

fieldset {
    border: 1px solid #ddd;
}

input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea {
    width: 20em;
    line-height: 2rem;
    margin: 0.5rem 0;
    padding: 0 0.5em;
    font-size: 0.875em;
    border: 0;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.25) inset;
    border-radius: 0.25em;
}

textarea {
    height: 8em;
    resize: vertical;
}

input[type="button"], input[type="submit"] {
    display: block;
    color: #fff;
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 3rem;
    background: #0099cb;
    padding: 0 2em;
    border: 0;
    border-radius: 0.25em;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.25);
    margin: 1em auto;
}

input[type="button"]:hover, input[type="submit"]:hover {
    box-shadow: 0px 0px 2px rgba(0,0,0,0.25);
    opacity: 0.75;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

header {
    position: relative;
    z-index: 400;
    margin: 0 auto 1rem;
    width: 60em;
    height: 20em;
    overflow: hidden;
}

header img {
    width: 100%;
}

.wrapper {
    position: relative;
    clear: both;
    display: block;
    width: 60em;
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto -6em; 
}

.wrapper-home {
    width: 64em;
    padding: 0;
}

.veil {
    position:fixed;
    z-index: 501;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgb(255,255,255);
    background: rgba(255,255,255,0.85);

    -webkit-transition: all 0.25s;
    -moz-transition: all 0.25s;
    transition: all 0.25s;
}

.slideshow {
    position: relative;
    width: 100%;
    min-height: 36em;
    overflow: hidden;
}

.slideshow-container {
    height: 36em;
    white-space: nowrap;

    -webkit-transition: margin 0.5s ease;
    -moz-transition: margin 0.5s ease;
    transition: margin 0.5s ease;
}

.slide {
    display: inline-block;
    width: 100%;
    height: 36em;
    text-align: center;
    word-spacing: normal;
}

.position-1 {
    margin-left: 0;
    width: 100%;
}

.position-2 {
    margin-left: -100%;
    width: 100%;
}

.position-3 {
    margin-left: -200%;
    width: 100%;
}

.position-4 {
    margin-left: -300%;
    width: 100%;
}

.position-5 {
    margin-left: -400%;
    width: 100%;
}

.position-6 {
    margin-left: -500%;
    width: 100%;
}

.position-7 {
    margin-left: -600%;
    width: 100%;
}

.position-8 {
    margin-left: -700%;
    width: 100%;
}

/* pager */
ul.slideshow-pager { 
    text-align: center;
    width: 50%;
    height: auto;
    z-index: 499; 
    position: absolute;
    right: 1em;
    top: 65%;
}

ul.slideshow-pager li { 
    width: 1rem;
    height: 1rem;
    border-radius: 0.75rem;
    margin: 0 0.25rem;
    list-style: none;
    display: inline-block;
    background-color: #ddd;
   /*cursor: pointer;*/
}

ul.slideshow-pager li.pager-active {
    background-color: #0099cb;
}

.slide-image {
    width: 100%;
    height: 70%;
    background-size: cover;
    background-position: center top;
}

.panel {
    position: absolute;
    z-index: 1000;
    left: 4em;
    bottom: -26em;
    width: 26em;
    height: auto;
    max-height: 26em;
    min-height: 24em;
    white-space: normal;
    text-align: left;
    padding: 1em 2em;
    border-radius: 0.5em;
    background: rgb(0, 153, 203);
    background: rgba(0, 153, 203, 0.85);

    -webkit-transition: bottom 0.25s ease;
    -moz-transition: bottom 0.25s ease;
    transition: bottom 0.25s ease;
}

.panel-visible {
    height: auto;
    bottom: 0 !important;

    -webkit-transition: bottom 0.5s ease;
    -moz-transition: bottom 0.5s ease;
    transition: bottom 0.5s ease;
}

.panel h2 {
    font-size: 2em;
    color: #fff;
    margin: 1rem 0;
}

.panel p {
    color: #fff;
    font-size: 1.125rem;
}

.panel a:link, .panel a:visited {
    color: #fff;
}

.panel a:hover {
    opacity: 0.5;
}

.panel-link:after {
    content: '\f061';
    font-family: 'FontAwesome';
    font-weight: 400;
    margin: 0 0.5em;
}

.nav-link-previous:before {
    content: '\f060';
    font-family: 'FontAwesome';
    font-weight: 400;
    margin: 0 0.5em 0 0;
}

.nav-link-next 
{
     float: right;
}

.nav-link-next:after {
    content: '\f061';
    font-family: 'FontAwesome';
    font-weight: 400;
    margin: 0 0.5em;
}

.logo {
    position: absolute;
    z-index: 501;
    left: 4em;
    top: 0;
    width: 13em;
    height: 10em;
}

.logo img {
    width: 100%;
}

.home-text-column {
    position: relative;
    float: right;
    width: 28em;
    margin: -12em 2em 0 0;
    display: block;
}

header > .logo {
    left: 2em;
}

nav.menu {
    position: absolute;
    z-index: 1000;
    right: 13em;
    top: 0;
    height: 2.5em;
    min-width: 8em;
}

.menu ul {
    position: relative;
    float: right;
    margin: 0;
    padding: 0 2em;
    border-bottom-left-radius: 0.5em;
    border-bottom-right-radius: 0.5em;
    background: rgb(0, 153, 203);
    background: rgba(0, 153, 203, 0.85);
}

.menu li {
    display: inline-block;
    margin: 0 0.5em;
    padding: 0;
    font-size: 0.875rem;
    line-height: 2.5rem;
    text-transform: uppercase;
}

.menu li a:link, .menu li a:visited {
    display: block;
    color: #fff;
}

.menu li a:hover {
    opacity: 0.5;
}

#login-link {
    display: none;
}

.menu-toggle, .login-toggle {
    position: relative;
    float: right;
    top: 0;
    height: 2.5rem;
    padding: 0 2em;
    border-bottom-left-radius: 0.5em;
    border-bottom-right-radius: 0.5em;
    background: rgb(0, 153, 203);
    background: rgba(0, 153, 203, 0.85);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 2.5rem;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}

.menu-toggle {
    clear: both;
    width: 10em;
    display: none;
}

.login-toggle {
    position: absolute;
    z-index: 1000;
    right: 2em;
    top: 0;
    width: 10em;
    padding: 0 1em;
    margin: 0 0.5em;
}

.login-toggle a:link, .login-toggle a:visited {
    display: block;
    color: #fff;
}

.login-toggle a:hover {
    opacity: 0.5;
}

.menu-toggle:hover, .login-toggle:hover {
    color: rgb(255,255,255);
    color: rgba(255,255,255,0.5);
}

.menu-toggle span, .login-toggle span {
    margin-left: 0.5em;
    vertical-align: baseline;
}

.transparent {
    background: rgb(0, 153, 203);
    background: rgba(0, 153, 203, 0.5);
}

section {
    position: relative;
    width: 100%;
    padding: 0 4em;
}

.filler {
    float: left;
    clear: both;
    width: 100%;
    height: 2em;
}

p.nav {
    width: 100%;
}

#footer {
    position: relative;
    float: none;
    clear: both;
    margin: 0 auto;
    padding: 1em 14em 1em 4em;
    width: 60em;
    height: 4em;
    background: #efefef;
}

#footer p {
    font-size: 0.75em;
    margin: 0.5em 0;
}

.footer-logo {
    position: absolute;
    right: 0;
    bottom: 0;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */


@media only screen and (max-height: 48em) and (min-width: 60em) { 

    .wrapper {
        margin: 0 auto -5em; 
    }

    .slideshow {
        min-height: 32em;
    }

    .slide-image {
        height: 55%;
        background-position: center 20%;
    }

    ul.slideshow-pager { 
        top: 50%;
    }

    .home-text-column {
        width: 45%;
        margin-top: -17em;
    }

    .panel {
        left: 2em;
        max-height: 24rem;
        min-height: 19rem;
        bottom: -24em;
    }

    .panel h2 {
        font-size: 2rem;
    }

    .panel p {
        font-size: 1rem;
    }

    .filler {
        height: 1px;
    }
}

@media only screen and (max-width: 64em) {

   .wrapper-home {
        width: 100%;
    }
}

@media only screen and (max-width: 60em) {
    
    header {
        width: 100%;
        height: 16em;
    }

    .wrapper {
        width: 100%;
        margin-bottom: -5em;
    }

    .slideshow {
        min-height: 28rem;
    }

    .slideshow-container {
        height: 28rem;
    }

    .slide {
        height: 28rem;
    }

    .slide-image {
        background-position: center center;
    }

    ul.slideshow-pager { 
        text-align: center;
        width: 35%;
        height: auto;
        z-index: 500; 
        position: absolute;
        right: 1em;
        bottom: 5em;
    }

    nav.menu {
        position: fixed;
        height: auto;
    }

    nav.menu ul {
        border-bottom-right-radius: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0;

        -webkit-transition: max-height 0.5s;
        -moz-transition: max-height 0.5s;
        transition: max-height 0.5s;
    }

    nav.menu ul.visible {
        max-height: 32em;
    }

    nav.menu ul.single-item {
        max-height: 2.5rem;
        height: 2.5rem;
        border-bottom-right-radius: 0.5em;
    }

    nav.menu li {
        text-align: right;
        display: block;
        padding: 0.5em 3em;
        border-bottom: 1px solid rgb(255,255,255);
        border-bottom: 1px solid rgba(255,255,255,0.5);
    }

    nav.menu li:last-child {
        border-bottom: none;
    }

    nav.menu ul.single-item li {
        padding: 0 2em;
    }

    .menu-toggle {
        display: block;
    }

    .home-text-column {
        position: relative;
        float: left;
        width: 100%;
        margin: 0 0 2em 0;
        padding: 0 4em;
    }

    .filler {
        height: 1px;
    }
    
    footer {
        width: 100%;
        float: left;
    }

    footer p {
        margin: 0;
    }

}

@media only screen and (max-width: 60em) and (min-height: 48em) {

    .slide-image {
        height: 85%;
    }

}

@media only screen and (max-width: 48em) {

    .slideshow-container {
        -webkit-transition: none;
        /*-moz-transition: none;
        transition: none;*/
    }

    ul.slideshow-pager { 
        top: 75%;
    }

    .panel {
        left: 2em;
        width: 30em;
        max-height: 22rem;
        min-height: 18em;
        bottom: -22em;

        -webkit-transition: none;
        /*-moz-transition: none;
        transition: none;*/
    }

    .panel h2 {
        font-size: 2rem;
    }

    .panel p {
        font-size: 1rem;
    }

    .panel-visible {
        -webkit-transition: none;
        /*-moz-transition: none;
        transition: none;*/
    }
}

@media only screen and (max-width: 46em) {

    ul.slideshow-pager { 
        display: none;
    }
}

@media only screen and (max-width: 40em) {

    header {
        height: auto;
        margin: 0;
    }

    section {
        padding: 0 1em;
    }

    .wrapper-home {
        padding: 0;
        margin: 0 auto;
    }

    .logo {
        left: 0;
        top: 0;
        width: 6.5em;
        height: 5em;
    }

    ul.slideshow-pager {
        display: none;
    }

    .home-text-column {
        padding: 0 2em;
    }

    footer {
        height: auto;
    }

    .home-footer {
        display: none;
    }
}

@media only screen and (max-width: 30em) {

    h1 {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    h2 {
        font-size: 1.25rem;
        line-height: 1.25;
    }

    h3 {
        font-size: 1.125rem;
        line-height: 1.25;
    }

    header > .logo {
        left: 0;
    }

    nav.menu {
        right: 1em;
    }

    /* also show button on small screens
    .login-toggle {
        display: none;
    }
    */
    #login-link {
        display: block;
    }

    .panel {
        left: 1em;
        width: 16em;
        height: auto;
        max-height: 21em;
        min-height: 18em;
        padding: 0.5em 1em;
        bottom: -21em;
    }

    .panel h2 {
        font-size: 1.5rem;
    }

    .panel p {
        font-size: 0.875rem;
    }

    input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea {
        width: 100%;
    }

    footer {
        padding: 1em 2em;
    }

    .footer-logo {
        display: none;
    }

}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   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;
    }
}