/*! HTML5 Boilerplate v6.0.1 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

@font-face {
  font-family: 'Josefin';
  src: url('josefinsans-thin-webfont.woff2') format('woff2'),
       url('josefinsans-thin-webfont.woff') format('woff'),
       url('josefinsans-thin-webfont.ttf') format('truetype');
       font-style: normal;
       font-weight: 100;
}

@font-face {
  font-family: 'Josefin';
  src: url('josefinsans-thinitalic-webfont.woff2') format('woff2'),
       url('josefinsans-thinitalic-webfont.woff') format('woff'),
       url('josefinsans-thinitalic-webfont.ttf') format('truetype');
       font-style: italic;
       font-weight: 100;
}
@font-face {
  font-family: 'Josefin';
  src: url('josefinsans-light-webfont.woff2') format('woff2'),
       url('josefinsans-light-webfont.woff') format('woff'),
       url('josefinsans-light-webfont.ttf') format('truetype');
       font-style: normal;
       font-weight: 300;
}

@font-face {
  font-family: 'Josefin';
  src: url('josefinsans-lightitalic-webfont.woff2') format('woff2'),
       url('josefinsans-lightitalic-webfont.woff') format('woff'),
       url('josefinsans-lightitalic-webfont.ttf') format('truetype');
       font-style: italic;
       font-weight: 300;
}
@font-face {
  font-family: 'Josefin';
  src: url('josefinsans-regular-webfont.woff2') format('woff2'),
       url('josefinsans-regular-webfont.woff') format('woff'),
       url('josefinsans-regular-webfont.ttf') format('truetype');
       font-style: normal;
       font-weight: 500;
}

@font-face {
  font-family: 'Josefin';
  src: url('josefinsans-italic-webfont.woff2') format('woff2'),
       url('josefinsans-italic-webfont.woff') format('woff'),
       url('josefinsans-italic-webfont.ttf') format('truetype');
       font-style: italic;
       font-weight: 500;
}
@font-face {
  font-family: 'Josefin';
  src: url('josefinsans-semibold-webfont.woff2') format('woff2'),
       url('josefinsans-semibold-webfont.woff') format('woff'),
       url('josefinsans-semibold-webfont.ttf') format('truetype');
       font-style: normal;
       font-weight: 600;
}

@font-face {
  font-family: 'Josefin';
  src: url('josefinsans-semibolditalic-webfont.woff2') format('woff2'),
       url('josefinsans-semibolditalic-webfont.woff') format('woff'),
       url('josefinsans-semibolditalic-webfont.ttf') format('truetype');
       font-style: italic;
       font-weight: 600;
}
@font-face {
  font-family: 'Josefin';
  src: url('josefinsans-bold-webfont.woff2') format('woff2'),
       url('josefinsans-bold-webfont.woff') format('woff'),
       url('josefinsans-bold-webfont.ttf') format('truetype');
       font-style: normal;
       font-weight: 700;
}

@font-face {
  font-family: 'Josefin';
  src: url('josefinsans-bolditalic-webfont.woff2') format('woff2'),
       url('josefinsans-bolditalic-webfont.woff') format('woff'),
       url('josefinsans-bolditalic-webfont.ttf') format('truetype');
       font-style: italic;
       font-weight: 700;
}



/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body{
    font-family: "Josefin";
    text-transform: uppercase;
    text-align: center;
    font-weight: 500;
}
#header, #footer, hr{
    display: none;
}
img, svg{
    max-width: 100%;
}
svg{
    height: auto;
}
.layer{
    -webkit-transition: all 1.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: all 1.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.layer0 {
    width: 100%;
    position: absolute;
    height: 100%;
    min-height: 100%;
    background: #F1F0EC;
    z-index: 0;
}
.layer1 {
    width: 0%;
    position: absolute;
    height: 100%;
    min-height: 100%;
    background: #73B0E6;
    overflow:hidden;
    z-index: 1;
}
.layer2 {
    width: 0;
    overflow:hidden;
    position: absolute;
    height: 100%;
    min-height: 100%;
    background: #5E498A;
    z-index: 2;
}
.layer3 {
    width: 0;
    position: absolute;
    height: 100%;
    min-height: 100%;
    background: #F1F0EC;
    z-index: 3;
}
.layer4 {
    width: 100%;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
    position: absolute;
    height: 100%;
    min-height: 100%;
    background: #5E498A;
    z-index: 4;
}
.layer4.show{
    visibility: visible;
    opacity: 1;
}
.layer5 {
    width: 100%;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
    position: absolute;
    height: 100%;
    min-height: 100%;
    background: #73B0E6;
    z-index: 4;
}
.layer5.show{
    visibility: visible;
    opacity: 1;
}
div.full{
    width: 100%;
}
.layer3 .container{
    visibility: hidden;
    opacity: 0;
    -webkit-transition: all 1.5s ease-in-out;
    transition: all 1.5s ease-in-out;
}
.layer3 .container.show{
    visibility: visible;
    opacity: 1;
}

.intro-image{
    width: 200px;
    position: absolute;
    margin-top: -135px;
    height: 270px;
    margin-left: -100px;
    
}

.header-row{
    text-align: left;
    padding-top: 50px;
    padding-bottom: 30px;
}
.header-row .logo svg, .header-row h1{
    display: inline-block;
    vertical-align: bottom;
}
.header-row h1 {
    color: #5e498a;
    text-transform: capitalize;
    font-size: 21px;
    margin-bottom: 0;
    font-weight: 600;
    line-height: 28px;
    margin-left: 25px;
}
.header-row .logo svg {
    width: 140px;
}
nav{
    display: inline-block;
}
nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

nav ul li {
    width: 144px;
    height: 40px;
    text-align: center;
    border: 2px solid #5e498a;
    margin-bottom: 15px;
    box-sizing: border-box;
    -webkit-transition: .3s all ease-in-out;
    transition: .3s all ease-in-out;
}
nav ul li:hover {
    background: #5E498A;
    cursor: pointer;
}
nav ul li a {
    display: block;
    color: #73B0E6;
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 44px;
    -webkit-transition: .3s all ease-in-out;
    transition: .3s all ease-in-out;
}
nav ul li:hover a {
    color: #f1f0ec;
    text-decoration: none;
}
.social{
    float: right;
    text-align: right;
}
.social ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.social ul li {
    display: inline-block;
    width: 45px;
    margin-left: 10px;
    margin-right: 0px;
}
.social ul li svg{
    max-width: 100%;
}
.social ul li a:hover, .social ul li a.close2:hover{
    cursor: pointer;
}
.social ul li a svg path{
    -webkit-transition: .3s all ease-in-out;
    transition: .3s all ease-in-out;
}
.social ul li a:hover svg path{
    fill: #594B86;
}
.close2{
    display: none;
}
.layer4 .close2, .layer5 .close2{
    display: block;
}
.layer4 .social ul li a.close2:hover svg path{
    stroke: #73B0E6;
}
.layer5 .social ul li a.close2:hover svg path{
    stroke: #5E498A;
}

.logo2 {
    width: 230px;
    margin-top: 50px;
    float: right;
}
.layer3 .content-row {
    padding-bottom: 60px;
}
.footer-row {
    padding-bottom: 20px;
}
.cleft {
    text-align: left;
    font-size: 10px;
    letter-spacing: 0px;
    color: #73B0E6;
}
.cleft span {
    color: #5E498A;
}
.cright {
    text-align: right;
    color: #5E498A;
    font-size: 14px;
    font-weight: 700;
}
.layer4 .content-row p {
    font-size: 16px;
    color: #f1f0EC;
    font-weight: 300;
    text-transform: none;
    line-height: 24px;
}

.layer4 .content-row h2 {
    font-size: 16px;
    color: #f1f0EC;
    font-weight: 600;
    padding-bottom: 40px;
    text-transform: capitalize;
}

.layer4 .content-row {
    text-align: left;
}
.layer5 .content-row p {
    font-size: 16px;
    color: #5E498A;
    font-weight: 300;
    text-transform: capitalize;
    margin-bottom: 20px;
}

.layer5 .content-row h2 {
    font-size: 16px;
    color: #5E498A;
    font-weight: 600;
    padding-bottom: 40px;
    text-transform: capitalize;
}

.layer5 .content-row {
    text-align: left;
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #f1f0EC;
}
::-moz-placeholder { /* Firefox 19+ */
  color: #f1f0EC;
}
:-ms-input-placeholder { /* IE 10+ */
  color: #f1f0EC;
}
:-moz-placeholder { /* Firefox 18- */
  color: #f1f0EC;
}

.layer5 input,.layer5 textarea {
    background: transparent;
    width: 100%;
    border: 2px solid #5E498A;
    font-weight: 300;
    padding: 5px 10px 0;
    line-height: 30px;
    color: #f1f0EC;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}
input[type="submit"] {
    background: #5E498A;
}
.layer5 input:focus, .layer5 textarea:focus{
    outline: none;
    border: 2px solid #f1f0EC;
}
.layer5 textarea{
    height: 140px;
}
form span.wpcf7-not-valid-tip {
    color: #5E498A;
    font-size: 1em;
    font-weight: normal;
    display: block;
    margin-top: 5px;
}
form div.wpcf7-validation-errors, div.wpcf7-acceptance-missing {
    border: 2px solid #5E498A;
}
form div.wpcf7-response-output {
    margin: 0;
    text-transform: capitalize;
    padding: 10px;
    color: #5E498A;
    border: 2px solid #5E498A;
}

@media screen and (max-width:1400px){
    .header-row .logo svg {
        width: 120px;
    }
    .header-row h1 {
        color: #5e498a;
        text-transform: capitalize;
        font-size: 18px;
        margin-bottom: 0;
        font-weight: 600;
        line-height: 24px;
        margin-left: 15px;
    }
    nav ul li {
        width: 144px;
        height: 36px;
        margin-bottom: 10px;
    }
    nav ul li a {
        font-size: 12px;
        line-height: 38px;
    }
    .social ul li {
        display: inline-block;
        width: 40px;
        margin-left: 10px;
    }
    .logo2 {
        width: 200px;
        margin-top: 40px;
    }
    .header-row {
        text-align: left;
        padding-top: 30px;
        padding-bottom: 20px;
    }

    .layer3 .content-row {
        padding-bottom: 30px;
    }
    .layer4 .content-row h2, .layer5 .content-row h2 {
        padding-bottom: 20px;
    }
}
@media screen and (max-width:991px){
    .header-row .logo svg {
        width: 80px;
    }
    .header-row h1 {
        color: #5e498a;
        text-transform: capitalize;
        font-size: 16px;
        margin-bottom: 0;
        font-weight: 500;
        line-height: 20px;
        margin-left: 10px;
    }
    .layer3 nav{
        display: block;
    }
    .layer3 nav ul li{
        display: inline-block;
        width: 105px;
        height:33px;
        margin-top:15px;
    }

    .layer3 nav ul li a {
        font-size: 12px;
        line-height: 36px;
    }
    .layer3 .social{
        float: left;
        text-align: left;
        width: 100%;
    }
    .layer3 .social ul{
        display: inline-block;
    }
    .layer3 .social ul li {
        display: inline-block;
        width: 30px;
        margin-left: 0px;
        margin-right: 5px;
    }
    .layer4 .social ul li, .layer5 .social ul li {
        
        width: 30px;
        
    }
    .layer3 .logo2{
        width: 120px;
        margin-top: 0px;
    }
    .layer4 .logo2, .layer5 .logo2{
        width: 120px;
        margin-top: 18px;
    }
}
@media screen and (max-width:767px){
    .layer3 .logo{
        text-align: center;
    }
    .layer3 nav{
        text-align: center;
        margin-top: 10px;
    }
    .layer3 nav ul li{
        margin-top: 5px;
    }
    .layer3 .social{
        width: 315px;
        margin: 20px auto 0;
        float: unset;
    }
    .intro-image{
        width: 150px;
        height: 203px;
        margin-left: -75px;
        margin-top: -101px;
    }
    .pic1{
        margin-bottom: 20px;
    }
    .layer4 .content-row p {
        line-height: 22px;
    }
}
@media screen and (max-width:575px){
    .cright{
        text-align: left;
    }
    .layer4 .logo, .layer5 .logo, .layer4 .side, .layer5 .side{
        display: inline-block;
        width: 50%;
    }
    /*.layer4 .logo, .layer5 .logo{
        text-align: center;
    }*/
    /*.layer4 .social, .layer5 .social{
        text-align: center;
        float: unset;
        width: 180px;
        margin: 20px auto;
    }*/
    /*.layer4 ul, .layer5 ul{
        display: inline-block;
    }*/
    
    /*.layer4 .logo2, .layer5 .logo2{
        display: inline-block;
        float: left;
        margin-top: 0px;
    }*/
}
@media screen and (max-width:400px){
    nav ul li{
        display: block;
        width: 100%;
        margin: 0 auto 10px;
        height: 40px;
    }
    nav ul{
        margin-bottom: 30px;
        margin-top: 30px;
    }
    nav ul li a{
        line-height: 42px;
        font-size: 14px;
    }
    .layer3 .social{
        width: 100%;
    }
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
