*,
*:after,
*::before {
    -webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.clearfix:before,
.clearfix:after {
    display: table;
    content: " ";
}

.clearfix:after {
    clear: both;
}

html,
body,
.container,
.pusher,
.content {
	height: 100%;
}

#container {
    padding-top: 52px; /* match fixed header height */
    margin: 0 auto;
    max-width: 1024px;
}

header {
    position: fixed;
    height: 52px;
    left:0;
    right: 0;
    top:0;
    z-index: 999;
	background: #eee;
}

header > div {
    margin: 0 auto;
    max-width: 1024px;
    min-width: 320px;
    padding: 0;
    position: relative;
}
header > div > h1 {
    text-align: center;
    margin: 0px 60px;
    padding: 15px 13px 0 0;
    font-size: 20px;
	color:#000;
	font-weight:300;
	font-family: 'Lato', sans-serif;
    text-transform: uppercase;
}
header > div > h1 > a {color:#000;transition:color 0.15s ease}
header > div > h1 > a:hover {color:#666}
header > div > h1 > a .header-logo {width:65px;height:auto;margin:0 4px 0 0}
header > div > button {

    position: absolute;
    top: 4px;
    width: 52px;
    height: 42px;
    border-bottom: 1px solid rgba(255,255,255,0);
	border-top:none;
	border-left:none;
	border-right:none;
    border-radius: 6px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: inherit;
    transition: background-color 0.5s ease, border-color 0.5s ease;
	

}

header > div > button:first-child {
    left: 4px;
    background-image: url(../img/button-menu.png);
}
header > div > button:last-child {
    right: 4px;
    background-image: url(../img/button-search.png);
}
header > div > button:hover {
    background-color: #000;
	border-color:rgba(255,255,255,0.5);
}


/* simple responsive grid classes */
.grid {
    padding: 1em 0 1em 1em;
}
.grid > [class*='col-']:last-of-type {
    padding-right: 1em;
}
[class*='col-'] {
    float: left;
}
.col-2-3 {
    width: 66.66%;
}
.col-1-3 {
    width: 33.33%;
}
.col-4-8,
.col-1-2 {
    width: 50%;
}
.col-2-8,
.col-1-4 {
    width: 25%;
}
.col-1-8 {
    width: 12.5%;
}
.col-6-8 {
    width: 75%;
}
.grid:after {
    content: "";
    display: table;
    clear: both;
}
[class*='col-'] {
    padding-right: 1em;
}
[class*='col-']:last-of-type {
    padding-right: 0;
}
/* end grid */



.content {
	overflow-y: scroll; /*changed from auto to enable momentum scrolling*/
	-webkit-overflow-scrolling: touch;
    padding: 0 1em;
    background: url(../img/ajax-loader.gif) 50% 45% no-repeat #fff;
}
.main.home {text-align:center;margin:0 -1em}

.content,
.content-inner {
	position: relative;
    height: 100%;

}

.container {
	position: relative;
	overflow: hidden;
    height: 100%;
}

.pusher {
	position: relative;
	left: 0;
	z-index: 99;
	height: 100%;
	-webkit-transition: -webkit-transform 0.5s;
	transition: transform 0.5s;
}

.pusher::after {
	position: absolute;
	top: 0;
	right: 0;
	width: 0;
	height: 0;
	background: rgba(0,0,0,0.2);
	content: '';
	opacity: 0;
	-webkit-transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
	transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
}

.main {
    max-width: 69em;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100%;
	padding-bottom:1em;
}

.active-right .pusher::after,
.active-left .pusher::after {
	width: 100%;
	height: 100%;
	opacity: 1;
	transition: opacity 0.5s;
}

.menu {
	position: absolute;
	top: 52px; /* match header height */
	z-index: 100;
	visibility: hidden;
	width: 300px;
	height: calc(100% - 52px);
	transition: all 0.5s;
    padding: 0;
}
.menu.menu-left {
    left: 0;
}
.menu.menu-right {
    right:0;
	padding: 0 12px;
}
.menu::after {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.2);
	content: '';
	opacity: 1;
	transition: opacity 0.5s;
}
.active-right .menu::after,
.active-left .menu::after {
	width: 0;
	height: 0;
	opacity: 0;
	transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
}

/* content style */



/* accordion menu */


.container > a {margin:0.5em 0 0 0;display:block;width:24px;height:24px;text-indent: -999px;background: transparent url("../img/button-home.png") no-repeat !important;background-size: 24px 24px !important}
.container > a:hover {opacity:0.8}

.menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
    position: relative;
}


.menu ul li a {
    cursor: pointer;
    display: block;
    padding: 14px 8px 14px 22px;
    border-bottom: 1px solid #e9e9e9;
    outline: none;
    -webkit-transition: all 0.2s, box-shadow 0.2s;
    transition: all 0.2s, box-shadow 0.2s;
	
}
.menu > ul > li > a {color:#000;} /*first layer of nav only*/
.menu > ul > li > a::before {

    width: 0;
    height: 0;
    border-bottom: 6px solid transparent;
    border-left: 7px solid #999;
    border-top: 6px solid transparent;
    content: ' ';
    position: absolute;
    margin-top: 7px;
    left:7px;

}

.menu > ul > li > a.slide-active::before {

    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    border-top: 7px solid #999;
    margin-top: 10px;
    left: 5px;
}


.menu > ul ul {
    height: 0;
    max-height: 0;
    overflow: hidden;
}

.menu a > span {
	background: #999;
    border-radius: 2px;
    color: #fff;
    display: inline-block;
    margin-right: 8px;
    padding: 0 7px;
    margin-bottom: 2px;
    float: left;
}

.menu ul ul a > span {
	background: #999;
}

.menu > ul ul.slide-open {
    height: auto;
    max-height: 2000px;
    transition: max-height 2500ms 0ms ease;
}

.menu > ul ul > li > a {
    padding-left: 28px;
}
.menu a.link-active,
.menu a.link-active:hover {
    background-color: #e6e9ea;
}

.menu ul li a:hover {
	background: rgba(255, 255, 255, 0.8);
	color:#333;
}


/* Menu Reveal */

nav.menu {
    z-index: 1;
	overflow-y: auto;
}

.active-right .pusher {
    -webkit-transform: translate(-300px, 0);
    transform: translate(-300px, 0);
}

.active-left .pusher {
	-webkit-transform: translate(300px, 0);
	transform: translate(300px, 0);
}

.active-right nav.menu-right,
.active-left nav.menu-left {
	visibility: visible;
	-webkit-transition: -webkit-transform 0.5s;
	transition: transform 0.5s;
}

nav.menu-right::after,
nav.menu-left::after {
	display: none;
}

/* search */

.active-right .pusher {
    box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.1);
}
nav.menu-right  {

}
nav.menu-right > div.filter {
    padding: 6px 0;
}
nav.menu-right > div.filter input {
    border: 1px solid #999;
    color: #000;
    padding: 7px 14px;
    width: 100%;
}
nav.menu-right > div.filter input::placeholder {color: #666;}

@media screen and (min-width: 768px) {
	.content {padding:12px 24px }
	.main.home {margin:-12px -24px}
	header > div > h1 {font-size:24px}
	header > div > h1 > a .header-logo {width:80px;margin:0 5px 0 0}
}


@media screen and (min-width: 1024px) {

    .pusher {
        -webkit-transform: translate(300px, 0);
        transform: translate(300px, 0);
        width: 724px;
    }

    .active-right .pusher {

        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }

    .active-right .pusher:after,
    .active-left .pusher:after {

        opacity: 0;
    }


    nav.menu-left {
        visibility: visible;
        -webkit-transition: -webkit-transform 0.5s;
        transition: transform 0.5s;
    }

    #button-menu {
        display: none;
    }

}

@media screen and (min-width: 1324px) {

    #container {
        max-width: 1500px;
    }

    .pusher {
        -webkit-transform: translate(300px, 0);
        transform: translate(300px, 0);
        width: calc(100% - 600px);
    }



    nav.menu-right {
        visibility: visible;
        -webkit-transition: -webkit-transform 0.5s;
        transition: transform 0.5s;
    }

    #button-search {
        display: none;
    }

}

/* fallback for browsers with no transform support */
.no-csstransforms .pusher,
.no-js .pusher {
	padding-left: 300px;
}
