/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

::-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,
img,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
    font-family: "open-sans",sans-serif;
    color:#474747;
    font-size:14px;
    font-weight: 300;
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#fff8e5+0,fcf0e2+100 */
    background: #fff8e5; /* Old browsers */
    background: -moz-linear-gradient(left,  #fff8e5 0%, #fcf0e2 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left,  #fff8e5 0%,#fcf0e2 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right,  #fff8e5 0%,#fcf0e2 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */

}
.contentwrap {
    max-width:1240px;
    margin:0 auto;
    padding: 0 20px;
    position: relative;
}
h1,h2,h3, .highlight {
    font-family: "ff-spinoza-web-pro",serif;
    font-weight: normal;
    color:#9d2a39;
    text-transform: uppercase;
}
.highlight {
    font-size:150%;
}
img {
    max-width:100%;
}
/* ==========================================================================
   header 
   ========================================================================== */

header {
    background:url('https://keo-cms.appspot.com.storage.googleapis.com/sites/nioka/app_files/img/header.jpg') center no-repeat;
    color:#fff;
    text-align: right;
    padding:20px 0;
    min-height: 50vw;
    background-size: cover;
}
header .logo {
    position: absolute;
    left:20px;
    top:0;
    margin:0;
}
header nav {
    color:#9d2a39;
}
header nav li {
    display: inline-block;
}
header nav a {
    text-decoration :none;
    color:inherit;
    padding:20px 40px;
    text-transform: uppercase;
    font-family: "ff-spinoza-web-pro",serif;
}

header .banner-brand {
    width:12vw;
    margin-top:10vw;
    margin-bottom:2vw;
}
header h2,
header h3 {
    font-weight: normal;
    margin:0;
    text-transform: uppercase;
    color:#fff;
}
header h2 {
    font-size:2vw;
}
header h3 {
    font-size:3vw;
}

#mobile-menu {
    display: none;
    position: fixed;
    top:20px;
    right:20px;
    background: #9d2a39 url(https://keo-cms.appspot.com.storage.googleapis.com/sites/nioka/app_files/img/menu-icon.svg) center no-repeat;
    background-size: 24px;
    font-size: 24px;
    padding: 8px;
    width: 24px;
    height: 24px;
    margin: 2px;
    margin-bottom: 0;
    cursor: pointer;
    z-index:2000;
}

/* ==========================================================================
   sub banner 
   ========================================================================== */
.sub-banner {
    background: #9d2a39;
    color:#fff;
    position: relative;
    top:-5vw;
    text-align: center;
    padding:40px;
}
.sub-banner h1, .sub-banner h2, .sub-banner h3, .sub-banner .highlight {
    color:#fff;
    text-transform: none;
}
/* ==========================================================================
   Friends of Nioka 
   ========================================================================== */
.friends-of-nioka {
    background: url('https://keo-cms.appspot.com.storage.googleapis.com/sites/nioka/app_files/img/friends-of-nioka.jpg') right center no-repeat;
    background-size:50%;
    padding-right:52%;
    font-size:16px;
}
.friends-of-nioka h1 {
    text-align: center;
}
.friends-of-nioka .highlight {
    font-size: 100%;
}
/* ==========================================================================
   Help items 
   ========================================================================== */

.help-item {
    display: inline-block;
    width:50%;
    float:left;
    background: #fff;
    padding-top:55%;
    height: 0;
    box-sizing: border-box;
    position: relative;    
}
.help-item-content {
    position: absolute;
    top:20px;
    left:20px;
    right:20px;
    bottom:20px;
    text-align: center;
    color:#ffffff;
    background-size: cover;
    padding:20px;
}
.help-item-content p {
    text-align: left;
}
.help-item-table {
    display: table;
    width:100%;
    height: 100%;
}
.help-item-cell {
    display: table-cell;
    vertical-align: middle;
}
.help-item:nth-child(1),
.help-item:nth-child(6){
    background:transparent;
}
.help-item h3 {
    color:#fff;
    font-size:20px;
}
.help-item:nth-child(2){
    padding-bottom:0;
}
.help-item:nth-child(2) .help-item-content {
    background: #e05157;
    bottom:0;
}
.help-item:nth-child(2) h2 {
    color:#9d2a39;
}
.help-item:nth-child(2),
.help-item:nth-child(3) {
    -webkit-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.75);
}
.help-item:nth-child(3) .help-item-content {
    right:0;
    background: #e69054;
}
.help-item:nth-child(3) h2 {
    color:#a55015;
}
.help-item:nth-child(4){
    -webkit-box-shadow: 1px 1px 1px -1px rgba(0,0,0,0.75);
    -moz-box-shadow: 1px 1px 1px -1px rgba(0,0,0,0.75);
    box-shadow: 1px 1px 1px -1px rgba(0,0,0,0.75);
}
.help-item:nth-child(4) .help-item-content {
    background: #c37614 url('https://keo-cms.appspot.com.storage.googleapis.com/sites/nioka/app_files/img/lobbying-government.jpg') center no-repeat;
    background-size:cover;
}
.help-item:nth-child(4) h2 {
    color:#6d4407;
}
.help-item:nth-child(5) {
    -webkit-box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.75), -1px 1px 2px -1px rgba(0,0,0,0.75);
    -moz-box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.75), -1px 1px 2px -1px rgba(0,0,0,0.75);
    box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.75), -1px 1px 2px -1px rgba(0,0,0,0.75);    
    width: calc(50% + 20px);
}
.help-item:nth-child(5) .help-item-content {
    background: #8f1e2c url('https://keo-cms.appspot.com.storage.googleapis.com/sites/nioka/app_files/img/raising-money.jpg') center no-repeat;
    background-size:cover;
    top:0;
}
.help-item:nth-child(5) h2 {
    color:#41020a;
}
.help-item:nth-child(6) {
    width: calc(50% - 20px);
}
.help-item:nth-child(6) .help-item-content {
    color:#5b5b68;
    padding-top: 80px;
}
.help-item:nth-child(6) .help-item-content .highlight {
    font-size:100%;
    color:#9c3030;
    text-transform: uppercase;
    font-family: "ff-spinoza-web-pro",serif;
}
.help-item:nth-child(6) h3 {    
    color:#9c3030;
}
.help-items::after {
    content:"";
    display: block;
    clear:both;
}
/* ==========================================================================
   form 
   ========================================================================== */
.contact-form {
    margin-top:100px;
    background:#fff;
    -webkit-box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.75);
    box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.75);
    padding:20px;
    position: relative;
    z-index: 100;
}
.contact-form input,
.contact-form textarea {
    border: none;
    border-bottom:2px solid #c47814;
    width:100%;
    line-height: 50px;
    height: 50px;
}

.contact-form button {
    border:none;
    background-color:#de9520;
    color:#fff;
    padding:20px 40px;
    margin:20px auto;
    display: block;
}
.contact-form p {
    position: relative;
    margin:1%;
}
.contact-form p.half {
    display: inline-block;
    width:48%;
}
.contact-form label {
    font-family: "ff-spinoza-web-pro",serif;
    text-transform: uppercase;
}
.infield-active label.infield {
    position: absolute;
    line-height: 50px;
} 
/* ==========================================================================
   Footer 
   ========================================================================== */
footer {
    background: url('https://keo-cms.appspot.com.storage.googleapis.com/sites/nioka/app_files/img/footer.jpg') bottom center no-repeat;
    min-height: 35vw;
    margin-top:-10vw;
    padding-top:10vw;
    background-size:cover;
    position: relative;
}
footer img {
    position: absolute;
    bottom:50px;
    right:50%;
    margin-right:-600px;
}
.bykeo {
    color: darkgray;
    width: auto;
    padding:5px;
    text-align: center;
}
.bykeo img {
    vertical-align: middle;
    display: inline-block;
    -webkit-transition: all 500ms ease;
    -moz-transition: all 500ms ease;
    -ms-transition: all 500ms ease;
    -o-transition: all 500ms ease;
    transition: all 500ms ease;
}
.bykeo a {
    color:#000;
    text-decoration: none;
}
.bykeo a:hover img {
    transform-origin: center;
    transform: translateX(-200%) rotate(-360deg);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media only screen and (max-width: 1300px) {
    footer img {
        margin-right:0;
        right:20px;
    }
}
@media only screen and (max-width: 1024px) {
    .help-item {
        padding-top:80%;
    }
    .help-item:nth-child(1) .help-item-content {
        padding-top:20%;
    }

    #mobile-menu {
        display:block;
    }
    header .banner-brand {
        padding-top:80px;   
    }
    /***** Slide menu ****/
    .slide-menu {
        display:none;
    }
    header nav ul {
        background: #ccc;
        width:240px;
        z-index:1000;
        position: fixed;
        height: 100%;
        top: 0;
        right: -240px;
        overflow-y:scroll;
    }
    .slide-menu-active header nav ul {
        right: 0px;
    }
    .site-content-menu-slide {
        overflow-x:hidden;
        position:relative;
        left:0;
    }
    /* transition for menu slide */
    header nav ul,
    .site-content-menu-slide,
    .slide-menu-active #mobile-menu {
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }
    header nav ul::before {
        display: block;
        content:"Menu";
        padding: 1em;
        color:#fff;
        background:#999;
        margin:0;
    }
    header nav ul {
        padding:0;
        margin:0;
        list-style:none;
    }
    header nav li {
        display: block;
    }
    header nav ul a {
        display: block;
        color: #fff;
        font-size: 1.1em;
        font-weight: 300;
        border-bottom: 1px solid #666;
        padding: 18px;
        text-decoration:none;
    }
    header nav ul a:hover {
        background: #258ecd;
    }
    
    .slide-menu-active .site-content-menu-slide {
        left: -240px;
    }
    .slide-menu-active #mobile-menu {
        right:260px;
    }
}
@media only screen and (max-width: 760px) {
    .friends-of-nioka {
        background-position: top;
        padding-right:0;
        padding-top:200px;
        background-size: auto 200px;
    }
    
    .help-item,
    .help-item:nth-child(2),
    .help-item:nth-child(4),
    .help-item:nth-child(5),
    .help-item:nth-child(6) {
        float:none;
        display: block;
        width:auto;
        padding:20px;
        margin-bottom:20px;
        height: auto;
        -webkit-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.75);
        -moz-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.75);
        box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.75);
    }
    .help-item:nth-child(1),
    .help-item:nth-child(6) {        
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
    }
    .help-item-content {
        position: static;
    }
    footer {
        min-height: 360px;
    }
    
}
@media only screen and (max-width: 650px) {
    .contact-form p.half {
        display: block;
        width:auto;
    }
}
/*@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}*/

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.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 {
    * {
        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) ")";
    }

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]: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;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}