/*
Theme Name: ShaleTheme
Theme URI: http://www.shale.net.nz/
Author: Shale Design
Author URI: http://www.shale.net.nz/
Description: Sleek, colourful portfolio site for Shale
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blue, pastel, sunset, responsive, animated, designer
Text Domain: shaletheme

*/

/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 12px;
    line-height: 1.4;
}

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

::selection {
    background: #2a2a65;
    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;
}

body, html {
    overflow-x:hidden;
    min-height: 100%;
    height: auto !important;
}


/* Mobile Nav */

.main-nav ul {
    display: none;
}


.main-nav ul.open {
    display: block;
    background-color: #393841;
    width: 100%;
    margin: 10px 0 0;
    padding: 20px 0;
}

#menu{
    display: block;
    padding-left: 170px;
    font-size: 3em;
    line-height: 0.7em;
    background: url("images/shale.svg") 20px 20px no-repeat;
    background-size: auto 30px;
    padding-top: 20px;
    margin-right: 20px;
    height: 40px;
    color: #FFF;
    text-align: right;
}

a,
a:link,
a:visited,
a:hover,
a:active{
    -webkit-transition: all 0.25s linear;
   -moz-transition: all 0.25s linear;
   -ms-transition: all 0.25s linear;
   -o-transition: all 0.25s linear;
   transition: all 0.25s linear;
}
input,
textarea{
    background: #FFF;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.5em;
    border: none;
    padding: 8px 5px;
    margin: 5px 0;
    color: #2a2a65;
    font-size: 1.2em;
    -webkit-transition: all 0.5s linear;
   -moz-transition: all 0.5s linear;
   -ms-transition: all 0.5s linear;
   -o-transition: all 0.5s linear;
   transition: all 0.5s linear;
}

textarea{
    height: 250px;
    max-height: 600px;
}

input:hover,
textarea:hover,
input:active,
textarea:active{
    background: #FFF;
    background: rgba(255, 255, 255, 1);
}

.container{
    background: #f4f0b7;
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f0b7', endColorstr='#5d7493',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
    background-image: -moz-radial-gradient(center, ellipse cover,  #f4f0b7 4%, #eed7ef 19%, #a0c7d6 46%, #8b9fb7 77%, #5d7493 100%);
    background-image: -webkit-radial-gradient(center, ellipse cover,  #f4f0b7 4%,#eed7ef 19%,#a0c7d6 46%,#8b9fb7 77%,#5d7493 100%);
    background-image: radial-gradient(ellipse at center,  #f4f0b7 4%,#eed7ef 19%,#a0c7d6 46%,#8b9fb7 77%,#5d7493 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    background-size: 300% 300%;
    font-family: "omnes-pro", "Helvetica Neue", "HelveticaNeue", Helvetica, arial, sans-serif;
    min-height: 100%;
}

.content{
    min-height: 300px;
    height: 100%;
}

/*h1{
    font-weight: 200;
    font-style: italic;
    color: #FFF;
    font-size: 13em;
    line-height: 0.8em;
    width: 5.5em;
}

h1 span{
    font-weight: 100;
    float: right;
    font-size: 2.4em;
    line-height: 0.6em;
    margin-left: -0.5em;
}*/

h1, h2, h3, h4, h5, h6{
    font-weight: 200;
}

h1{
    font-size: 5em;
    color: #FFF;
    font-weight: 300;
    margin: 0.67em 0 20px;
}

p{
    font-size: 1.4em;
}

.home h1{
    font-weight: 100;
    text-align: center;
    font-size: 9em;
    font-style: italic;
    color: #FFF;
    line-height: 0.8em;
    /*position: relative;*/
    margin: 0.67em 0;
    overflow: hidden;
    /*margin: 150px 0;*/
    /*margin: 40vh 0;*/
}

.home h1 em,
.home h1 span{
    display: inline-block;
}

.home h1 em{
    margin: 0 -0.1em;
}

.home h1 span{
    font-size: 0.3em;
    font-weight: 200;
    line-height: 0.8em;
    width: 30%;
}

.home h1 a{
    color: #FFF;
    text-decoration: none;
}

.home h1 span:first-child{
    /*float: left;*/
    text-align: right;
}

.home h1 span:last-child{
    /*float: right;*/
    text-align: left;
}

.home h1::after{
    /*position: absolute;*/
    padding-bottom: 20px;
    border-bottom: 2px solid #FFF;
    display: block;
    z-index: 0;
    content: "";
    width: 100%;
    /*width: 90%;
    width: -webkit-calc(100% - 20px);
    width: -ms-calc(100% - 20px);
    width: -o-calc(100% - 20px);
    width: calc(100% - 20px);*/
    margin: 0 auto;
    opacity: 0;
    -webkit-animation: potato 3s forwards cubic-bezier(0.000, 0.000, 0.580, 1.000);
    -moz-animation: potato 3s forwards cubic-bezier(0.000, 0.000, 0.580, 1.000);
    -o-animation: potato 3s forwards cubic-bezier(0.000, 0.000, 0.580, 1.000);
    animation: potato 3s forwards cubic-bezier(0.000, 0.000, 0.580, 1.000);
    -webkit-animation-delay: 2s;
    -moz-animation-delay: 2s;
    -o-animation-delay: 2s;
    animation-delay: 2s;
}

@-webkit-keyframes potato{
    0%{
        opacity: 1;
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
    }
    100%{
        -webkit-transform: scaleX(1);
        transform: scaleX(1);
        opacity: 1;
    }
}

@-moz-keyframes potato{
    0%{
        opacity: 1;
        transform: scaleX(0);
    }
    100%{
        transform: scaleX(1);
        opacity: 1;
    }
}

@-o-keyframes potato{
    0%{
        opacity: 1;
        -webkit-transform: scaleX(0);
        -o-transform: scaleX(0);
        transform: scaleX(0);
    }
    100%{
        -webkit-transform: scaleX(1);
        -o-transform: scaleX(1);
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes potato{
    0%{
        opacity: 1;
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
    }
    100%{
        -webkit-transform: scaleX(1);
        transform: scaleX(1);
        opacity: 1;
    }
}

header{
    position: static;
    width: 100%;
    height: 70px;
    background: rgba(93, 116, 147, 0.7);
    -webkit-transition: all 0.5s linear;
   -moz-transition: all 0.5s linear;
   -ms-transition: all 0.5s linear;
   -o-transition: all 0.5s linear;
   transition: all 0.5s linear;
}

header nav ul{
    position: relative;
    z-index: 100;
}

header nav ul li{
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
    display: block;
    margin-top: 20px;
    z-index: 1;
    list-style-type: none;
    text-align: center;
}

header nav ul li:first-child a{
    margin-top: 0;
    line-height: 2em;
}

header nav ul li a,
header nav ul li a:link,
header nav ul li a:visited{
    text-align: center;
    color: #FFF;
    letter-spacing: 2px;
    text-transform: uppercase;
    /*font-size: 1.2em;*/
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #FFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0 20px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0);
    overflow: hidden;
    /*-webkit-box-shadow: 0 0 5px 0 rgba(66,91,129,0.4);
    box-shadow: 0 0 5px 0 rgba(66,91,129,0.4);*/
}

header nav ul li a:hover,
header nav ul li a:active{
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #FFF;
    border: 1px solid rgba(255, 255, 255, 1);
}

h2{
    text-align: left;
    color: #FFF;
    margin: 10px 0;
    font-size: 4em;
}

h2 a,
h2 a:link,
h2 a:visited{
    color: #393841;
    text-decoration: none;
}

h2 a:hover,
h2 a:active{
    color: #FFF;
}

.home h2{
    text-align: center;
    /*color: #FFF;*/
    color: #393841;
    /*font-size: 4em;*/
    /*margin: 10px 0;*/
}

h3{
    text-align: left;
    color: #FFF;
    margin: 10px 0;
    font-size: 2.5em;
}

h4{
    text-align: center;
    /*color: #FFF;*/
    color: #393841;
    font-style: italic;
    font-size: 2em;
    letter-spacing: 4px;
    margin: 10px 0;
}

.content article{
    margin: 0 20px;
}

.content img.starfield{
    position: absolute;
    max-height: 80%;
    max-width: 100%;
    z-index: 0;
}

.intro p{
    font-size: 1.5em;
    text-align: center;
}

.entry{
    padding-bottom: 20px;
    border-bottom: 1px solid #393841;
    margin-bottom: 20px;
    color: #393841;
}

.entry p{
    line-height: 1.4em;
}

.entry:last-child{
    border-bottom: none;
    margin-bottom: 0;
}

.content p a,
.content p a:link,
.content p a:visited{
    color: #FFF;
}

.content p a:hover,
.content p a:active{
    color: #393841;
}

.content-area small{
    color: #393841;
}

.decoration{
    width: 100%;
    background-image: url("images/base-lite.png");
    background-size: 130% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
    height: 400px;
    height: 25vw;
}

.decoration ul{
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    height: 400px;
    height: 25vw;
    overflow: hidden;
}

a.hireme,
a.hireme:link,
a.hireme:visited{
    text-align: center;
    color: #33323b !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #33323b;
    margin: 0 20px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0);
    overflow: hidden;
}


a.hireme:hover,
a.hireme:active{
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #FFF;
    border: 1px solid rgba(255, 255, 255, 1);
    color: #FFF !important;
}

footer{
    background: #33323b;
    min-height: 320px;
}

footer a.smedia{
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
}

.footer-container{
    /* display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start; */
    padding: 0;
    color: #FFF;
}

.footer-container aside{
    /* -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
    -webkit-flex-basis: 40%;
    -ms-flex-basis: 40%;
    flex-basis: 40%; */
    max-width: 100%;
    min-width: 280px;
    /*font-size: 1.4em;*/
    margin: 0 20px;
}

.footer-container h3,
.footer-container h4{
    color: #FFF;
    text-align: left;
}

.footer-container h3{
    font-size: 2em;
    letter-spacing: 4px;
    padding: 10px 0;
    margin: 0;
    font-style: italic;
}

.footer-container h4{
    font-size: 1.4em;
    letter-spacing: 2px;
    font-style: normal;
}

.footer-container h4 a,
.footer-container h4 a:link,
.footer-container h4 a:visited{
    text-decoration: none;
}

.footer-container h4 a:hover,
.footer-container h4 a:active{
    text-decoration: underline;
}

.footer-container a,
.footer-container a:link,
.footer-container a:visited{
    color: #FFF;
}

.footer-container input,
.footer-container textarea{
    width: 90%;
    width: -webkit-calc(100% - 10px);
    width: -ms-calc(100% - 10px);
    width: -o-calc(100% - 10px);
    width: calc(100% - 10px);
}

.footer-container textarea{
    height: 150px;
    max-height: 400px;
}

.footer-container input[type="submit"]{
    width: 100%;
}
div.wpcf7-display-none{
    display: block;
    opacity: 0;
}
div.wpcf7-response-output {
    opacity: 1;
    padding: 8px 5px !important;
    margin: 10px 0 !important;
    border-radius: 10px !important;
    font-size: 1.2em !important;
    max-width: 600px !important;
    color: #000 !important;
}
div.wpcf7-mail-sent-ok {
    border: 1px solid #398f14 !important;
    background: #e5fedb !important;
}
div.wpcf7-mail-sent-ng {
    border: 1px solid #ff0000 !important;
    background: #ffcccc !important;
}
div.wpcf7-spam-blocked {
    border: 1px solid #ffa500 !important;
    background: #ffedcc !important;
}
div.wpcf7-validation-errors {
    border: 1px solid #f7e700 !important;
    background: #fdfacc !important;
}

.blogtiems{
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    width: 100%;
    margin: 0 auto;
}

.sidebar{
    -webkit-order: 2;
    -ms-flex-order: 2;
    order: 2;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
    -webkit-flex-basis: 26%;
    -ms-flex-basis: 26%;
    flex-basis: 26%;
    padding: 100px 2% 60px;
}

.blogtiems .content-area{
    -webkit-order: 1;
    -ms-flex-order: 1;
    order: 1;
    -webkit-flex: 3 1 auto;
    -ms-flex: 3 1 auto;
    flex: 3 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
    -webkit-flex-basis: 66%;
    -ms-flex-basis: 66%;
    flex-basis: 66%;
}

.blogtiems h1{
    margin: 0px;
}

.sidebar ul{
    margin: 0 0 20px 0;
    padding: 0;
}

.sidebar ul ul.children{
    margin: 0 0 0 20px;
}

.sidebar ul ul li a,
.sidebar ul ul li a:link,
.sidebar ul ul li a:visited{
    color: #393841;
}

.sidebar ul ul li a:hover,
.sidebar ul ul li a:active{
    color: #FFF;
}

.sidebar li{
    list-style-type: none;
    color: #393841;
}

.sidebar li h4{
    font-size: 2em;
    text-align: left;
    font-style: normal;
    color: #393841;
    letter-spacing: 0px;
}

.sidebar h2{
    color: #393841;
    font-size: 3em;
    padding-bottom: 20px;
    border-bottom: 1px solid #393841;
}

.comment-form-comment textarea{
    display: block;
}

@media only screen and (min-width: 320px) {
    .container,
    .content{
        overflow: hidden;
    }

    .decoraction{
        background-image: url("images/base-lite.png");
        background-size: 130% auto;
        background-position: center bottom;
        background-repeat: no-repeat
        overflow: hidden;
    }

    .decoration ul,
    .decoration li{
        height: 35vw;
    }

    .blogtiems .content-area{
        max-width: 96%;
    }

    input,
    textarea{
        width: 90%;
        width: -webkit-calc(100% - 10px);
        width: -ms-calc(100% - 10px);
        width: -o-calc(100% - 10px);
        width: calc(100% - 10px);
    }

    input[type="submit"]{
        width: 100%;
    }

}

@media only screen and (min-width: 768px) {
    .home h1{
        font-size: 25em;
        margin: 70px 0;
        /*margin: 20vh 10px;*/
    }

    #menu{
        display: none;
    }

    .decoration{
        background-image: none;
        margin-top: -10vw;
    }

    .decoration ul,
    .decoration li{
        height: 25vw;
    }

    .deco-mtns{
        background-image: url("images/bg-mtns.png");
    }

    .deco-left2{
        background-image: url("images/bg-left2.png");
    }

    .deco-right2{
        background-image: url("images/bg-right2.png");
    }

    .deco-left{
        background-image: url("images/bg-left.png");
    }

    .deco-right{
        background-image: url("images/bg-right.png");
    }

    .deco-grass{
        background-image: url("images/bg-grass.png");
    }

    .decoration li{
        position: absolute;
        display: block;
        width: 100%;
        height: 400px;
        height: 25vw;
        background-size: 130% auto;
        background-position: center bottom;
        background-repeat: no-repeat;
    }

    .main-nav ul,
    header nav ul{
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-align-content: stretch;
        -ms-flex-line-pack: stretch;
        align-content: stretch;
        -webkit-align-items: flex-start;
        -ms-flex-align: start;
        align-items: flex-start;
        padding: 0;
        margin: 0;
    }

    header nav ul li{
        /*text-align: */
    }

    header nav ul li:first-child a{
        border: none;
        background: url("images/shale.svg") left top no-repeat;
        background-size: auto 100%;
        padding-top: 24px;
        width: 130px;
        height: 0px;
        /*margin-top: 20px;*/
    }

    .footer-container{
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-align-content: stretch;
        -ms-flex-line-pack: stretch;
        align-content: stretch;
        -webkit-align-items: flex-start;
        -ms-flex-align: start;
        align-items: flex-start;
        padding: 0;
        color: #FFF;
    }

    .footer-container aside{
        -webkit-order: 0;
        -ms-flex-order: 0;
        order: 0;
        -webkit-flex: 1 1 auto;
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
        -webkit-align-self: auto;
        -ms-flex-item-align: auto;
        align-self: auto;
        -webkit-flex-basis: 40%;
        -ms-flex-basis: 40%;
        flex-basis: 40%;
        max-width: 100%;
        min-width: 280px;
        margin: 0 20px;
    }
}


@media only screen and (min-width: 1040px) {

    header{
        position: fixed;
        width: 100%;
        height: 70px;
        z-index: 1000;
        background: rgba(93, 116, 147, 0);
        -webkit-transition: all 0.5s linear;
       -moz-transition: all 0.5s linear;
       -ms-transition: all 0.5s linear;
       -o-transition: all 0.5s linear;
       transition: all 0.5s linear;
    }

    header.sticky{
        background: rgba(93, 116, 147, 0.7);
        -webkit-transition: all 0.5s linear;
       -moz-transition: all 0.5s linear;
       -ms-transition: all 0.5s linear;
       -o-transition: all 0.5s linear;
       transition: all 0.5s linear;
    }

    .home h1{
        font-size: 30em;
        margin: 150px 0;
        margin: 40vh 0 30vh;
    }

    .home h1::after{
        width: 100%;
    }

    .intro{
        padding-top: 10vh;
        position: relative;
        z-index: 100;
    }

    header nav ul li a,
    header nav ul li a:link,
    header nav ul li a:visited{
        letter-spacing: 4px;
        padding: 6px 10px;
        margin: 0 30px;
    }

    header nav ul li:first-child a{
        border: none;
        background: url("images/shale.svg") left top no-repeat;
        background-size: auto 100%;
        padding-top: 24px;
        width: 130px;
        height: 0px;
    }


    header nav,
    .content article,
    footer section{
        width: 100%;
        min-width: 960px;
        max-width: 1260px;
        margin: 0 auto;
    }

    /*.intro{
        height: 900px;
    }*/

    .intro p{
        margin: 20px 30%;
    }

    .content-area{
        padding: 100px 2% 60px;
    }
    .blogtiems{
        min-width: 960px;
        max-width: 1260px;
    }
    
    .blogtiems .content-area{
        min-width: 480px;
        font-size: 1.2em;
    }

    .sidebar{
        max-width: 30%;
        min-width: 200px;
        font-size: 1.2em;
    }

    input,
    textarea{
        max-width: 600px;
    }

    input[type="submit"]{
        max-width: 610px;
    }

    .footer-container aside{
        -webkit-flex-basis: 30%;
        -ms-flex-basis: 30%;
        flex-basis: 30%;
    }

}

/* ==========================================================================
   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;
    }
}

