/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : Feb 5, 2019, 3:52:07 PM
    Author     : KPetty
*/

/* DEFINE VARIABLENS BELOW */
:root {
    --theme-hilite: #dc3a3b;
    --theme-touch-hilite: rgba(220,58,59,.5);
    --theme-black: #040707;
    --theme-text: #393939;
    --theme-font: "Sanchez";
}

@font-face {
    font-family: "Sanchez";
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/Sanchez-Regular.ttf') format('truetype');
}

* {
    font-family: sans-serif;
    color: var(--theme-text);
    -webkit-tap-highlight-color: var(--theme-touch-hilite);
}

html, body {
    margin: 0;
    padding: 0;
    min-width: 650px;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-snap-type: mandatory;
    scroll-snap-points-y: repeat(100vh);
    scroll-snap-type: y manditory;
    display: flex;
    flex-direction: column;
}

body {
    
}

#logo {
    /*    background-image: url();
        background-position: 0 0;
        background-repeat: no-repeat;
        background-size: contain;*/
    position: absolute;
    left: 17vw;
    height: 4em;
    cursor: pointer;
}


#logo-block {
    display: table;
    margin-left: 0px;
    margin-right: 0px;
}

#logo h1 {
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,.5));
    padding: 0;
    margin: 0;
    height: 100%;
    width: 9.5em;
    font-size: 58px;
    line-height: 48px;
    background-image: url("/images/icon.png");
    background-size: auto 58px;
    background-position: top 0px right 5px;
    background-repeat: no-repeat;
}

#logo h1.full {   
    opacity: 1;    
}
#logo h1.condensed {   
    height: 0px;
    opacity: 0;
    font-size: 0px;
    line-height: 0px;    
}

#header, #content, #footer {
    width: 100%;
    min-width: 1024px;
    position: relative;
    margin: 0;
    padding: 0;    
}

#float-links {
    position: absolute;
    right: 5px;
    top: 1em;
    text-align: right;
    height: 3em;
    line-height: 1em;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto auto;
}

#float-links a {
    height: 1em;
    line-height: 1em;
}

#site-navigation {
    display: none;
    position: absolute;
    right: 1em;
    top: 5px;
    text-align: right;
    height: 116px;
    line-height: 1em;
}

#float-links-mobile {
    display: none;
}

#header {
    background-color: white;
    top: 0;
    left: 0;
    padding-top: 10px;
    position: fixed;
    z-index: 200;  
    min-height: 116px;
    box-shadow: 0px 1px 10px 5px rgba(0,0,0,.5)
}

#header.sticky {
    min-height: 58px;
    line-height: 58px;
    padding-top: 2px;
    position: fixed;
    top: 0;

}

#header, #header *, #header.sticky * {
    transition: all .25s linear;
}

#header.sticky #logo {    
    left: 5px;
    height: 58px;
    line-height: 58px;
    width: 200px; 
    min-width: 190px;    
}

#header.sticky #logo-block {
    margin-left: 8%;
    margin-right: 8%;
}

#header.sticky #logo h1 {
    background-size: auto 53px;
    background-position: top 2px right 5px;
    width: 75%;
    margin-left: auto;
    margin-right: auto;

}

#header.sticky #logo h1.full {
    height: 0px;
    line-height: 0px;
    font-size: 0px;
    opacity: 0;
}

#header.sticky #logo h1.condensed {
    height: 56px;   
    line-height: 46px;
    font-size: 56px;
    opacity: 1;
}


#header.sticky #float-links {
    font-size: smaller;
}

#navContainer {
    position: absolute;
    left: 17vw;
    display: grid;
    grid-template-columns: auto auto auto auto auto auto;
    grid-template-rows: auto;
    top: 74px;
    height: 46px;
}

#navContainer a {
    display: block;
    height: 46px;
    line-height: 46px;
    text-align: left;
    /*background-color: lightgray;*/
}

#header.sticky #navContainer {    
    left: 200px;
    /*height: 58px;*/
    top: 10px;
    /*line-height: 58px;*/
}

/*#content {
    margin-top: 150px;
    height: calc(100vh - 150px);
    overflow-y: scroll;    

}*/

.block {
    content: '.';
    display: block;
    width: 100%;
    min-height: 101vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

div.fixed { 
    position: fixed;
    width: 100%;
    top: 0;
    padding-top: 20vh;
    height: 80vh;
}
#content.sticky {
    /*padding-top: 58px;*/
}

div {
    position: relative;
    z-index: 1;
}

#footer {
    height: 5vh;
    font-size: smaller;
    background-color: white;
}

.content-space {
    width: 65vw;
    min-width: 666px;
    margin-left: auto;
    margin-right: auto;
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
    -webkit-transform: translate3d(0,0,0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
    transform: translate3d(0,0,0);
    transform: translateZ(0);
}

a, a:visited {
    color: var(--theme-hilite);
    text-decoration: none;
}

#header a, #header a:visited {
    color: var(--theme-black);
    text-decoration: none;
}

#header a:hover, a:hover {
    text-decoration: underline;
    text-decoration-color: var(--theme-hilite);
}

h1, h2, h3, h4 {
    position: relative;
    color: var(--theme-hilite);
    /*    background: var(--theme-hilite);
        background: linear-gradient(to right, var(--theme-hilite) 0%,#dd3738 75%,black 100%);*/
    padding-left: 2px;
    font-family: var(--theme-font);
    text-decoration: underline;
    text-decoration-color: var(--theme-black);
}

button, input[type=submit], input[type=button], input[type=cancel] {
    background: none;
    color: var(--theme-hilite);
    border: none;
    padding: 0;
    cursor: pointer;
    outline: inherit;
    display: block;
    position: relative;
    font-family: var(--theme-font);
    font-size: larger;
    font-weight: bold;
    transition-property: color, background-color;
    transition-duration: .25s;
    transition-timing-function: easeInCubic;
}

button:hover, input[type=submit]:hover, input[type=button]:hover, input[type=cancel]:hover, button:active, input[type=submit]:active, input[type=button]:active, input[type=cancel]:active {
    color: white;
    background-color: var(--theme-hilite);
}

img.pop {
    border-radius: 5px;
    box-shadow: 3px 3px 0px var(--theme-black);
}

.container {
    display: block;
    cursor: pointer;
    width: 58px;
    height: 58px;
    padding-top: 23px;
}

.bar1, .bar2, .bar3 {
    width: 58px;
    height: 10px;
    background-color: var(--theme-text);
    margin: 9px 0;
    transition: 0.4s;
    border-radius: 10px;
}

div.backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
}

.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-11px, 14px);
    transform: rotate(-45deg) translate(-11px, 14px);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-12px, -16px);
    transform: rotate(45deg) translate(-12px, -16px);
}

.element:not(.block) {
    opacity: 0;
    transform: scale(0);
    transition: opacity, transform 0.8s ease;
}

.element.block {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.come-in {
    transform: scale(1) !important;
    opacity: 1  !important;
    /*animation: come-in 0.8s ease forwards;*/    
}
.come-in:nth-child(odd) {
    animation-duration: 0.6s; /* So they look staggered */
}

.rhombus {
    transform-origin: center center;
    transform: skew(-20deg);
}

.box {
    transition: all .25s ease;
    padding-bottom: 10px;
}

.box img {
    width: calc(100% - 10px);
    margin-top: 5px;
}

.box h1, .box h2, .box h3, .box h4 {
    display: inline;
}

.box:hover, .box:active  {
    background-color: white;
    box-shadow: 2px 2px 2px rgba(0,0,0,.5);
}

@keyframes come-in {
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.col-2 {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: auto auto;
    grid-template-rows: auto;
}

.col-3 {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto;
}

.flex-row {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
}


/* Begin Responsive Layout (simple menu)
====================================================================================== */
/* All size smaller than 1024 
====================================================================================== */

@media only screen and (max-width: 1177px) {
    html, body {
        margin: 0;
        padding: 0;
        font-size: 1.25em;
    }
    #header, #content, #footer {
        min-width: 650px;
    }
    #header, #header.sticky {
        min-height: 116px;
        line-height: 116px;
        padding-top: 0px;
        position: fixed;
        top: 0;
    }

    #header-wrap {
        position: absolute;
        left: 0;
        width: 100%;
        color: white;
        background-color: var(--theme-text);
        height: auto;
        top: -1000px;
        display: block;        
        visibility: hidden;
        transition: all .25s ease;
        z-index: -1;
    }

    #navContainer, #header.sticky #navContainer {        
        position: initial;
        display: grid;
        grid-template-columns: auto;
        grid-template-rows: auto auto auto auto auto auto;
        height: auto;
    }

    #navContainer a, #float-links a{
        font-size: 2em;
        height: auto;
        line-height: 2em;
        padding-left: 1em;
        padding-right: 1em;
        text-align: left;
        border-top: 1px dashed var(--theme-hilite);       
    }

    #header a, #header a:visited {
        color: white;
        text-decoration: none;
    }

    #header a:hover, a:hover {
        text-decoration: underline;
        text-decoration-color: var(--theme-hilite);
    }

    #logo h1.full, #header.sticky #logo h1.full {   
        /*        width: 500px;*/
        width: 9.5em;
        height: 100%;
        line-height: 116px;
        padding-top: 0;
        font-size: 58px;
        padding-left: 29px;
        opacity: 1;
        background-position: center right 5px;
        background-size: auto auto;
        margin: 0;
    }

    .apply-pop-out button {
        margin-right: 2em;
    }

    #logo-block, #header.sticky #logo-block {   
        margin: 0;
    }
    #logo h1.condensed, #header.sticky #logo h1.condensed {   
        display: none;
    }

    #logo, #header.sticky #logo {
        left: 0px;
        top: 0px;
        height: 116px;
        line-height: 116px;
        width: 100%; 
        min-width: 60%;
        background-color: white;
    }

    .content-space {
        width: 100%;
        border-radius: 0px !important;
    }

    #float-links, #header.sticky #float-links {
        /*        position: absolute;
                left: 0px;
                right: 0px;
                font-size: 2em;
                width: 100%;
                top: 116px;
                text-align: left;
                height: 2em;
                display: grid;
                grid-template-columns: auto;
                grid-template-rows: auto auto;
                background-color: var(--theme-black);        */
        display: none;
    }

    #site-navigation, #float-links-mobile {
        display: block;
    }

    /*    h1:after, h2:after, h3:after, h4:after {
            top: 6px;
            left: 6px;
        }*/

    #header-wrap.opened {
        visibility: visible;
        top: 116px;
    }

    #top-block, #home-block {
        height: 100vh;
    }
}

