/*
Theme Name: A Gaishan Life
Author: 801red
Author URI: http://www.801red.com
*/

/* IMPORTS */
@import url(css/kickstart-grid.css);
@import url(css/reset.css);

/* COLOR SELECTORS*/
.white { color:#FFF; }
.black { color:#000; }
.blue { color:#005077; }
.bg-blue { background-color:#005077; }
.green { color:#A9CF54; }
.bg-green { background-color:#A9CF54; }
.dkGreen { color:#588F27; }
*[class*="bg-"] { color:#FFF; }
/* MIXIN */

/**
 * 1.0 Reset
 * ----------------------------------------------------------------------------- */
@media only screen 
and (min-device-width: 320px) 
and (max-device-width: 568px) {
}
@media all and (min-width: 568px) and (max-width: 800px) {
}
/**
 * 2.0 Global
 * ----------------------------------------------------------------------------- */
 
/* INNER BOX PADDING FOR RESPONSIVE COLUMNS */
* {
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */	
}

/* CLEAR FIX */
.clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; }
.clearfix { display: inline-block; }
html[xmlns] .clearfix { display: block; }
* html .clearfix { height: 1%; }

/* BASIC SETUP */
body {
	font-size: 16px;
	background-image: url(images/background-texture.jpg);
	background-repeat: repeat-x;
	background-position: 0px 165px;
	color: #646464;
}

/* TYPOGRAPHY */

/* Headings */
h1, h2, h3, h4, h5, h6, p {
	margin:0 0 12px;
	padding:0;
}
h1, h1 a {
	font: italic 36px/44px "Crimson Text", Times, "Times New Roman", serif;
	color: #646464;
	text-decoration: none;
	text-align:center;
}
h2, h2 a {
	font: 300 20px "Open Sans", Helvetica, Arial, sans-serif;
	text-transform: uppercase;
}
h3 {
	font: 700 20px "Open Sans", Helvetica, Arial, sans-serif;
}
h4 {
	color: #005077;
	font: 18px/24px "Crimson Text", "Times New Roman", serif;
}
h5, h5 a {
	font: 700 14px/18px "Open Sans", Helvetica, Arial, sans-serif;
	color: #750030;
	text-transform: uppercase;
	text-decoration: none;
}
h6, h6 a {
	font: 700 14px/24px "Crimson Text", "Times New Roman", serif;
}

/* Text elements */
p {
}
p, li {
	font: 16px/26px "Crimson Text", "Times New Roman", serif;
}
strong { font-weight:700; }
em { font-style:italic; }
p:last-child {
	margin-bottom:0;
}
a {
	color:#750030;
}
a:hover {
}
ul, ol {
	margin: 0 0 1.5em 3em;
}
ul {
	list-style: disc;
}
ol {
	list-style: decimal;
}
li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}
img {
	height: auto; /* Make sure images are scaled correctly. */
	max-width: 100%; /* Adhere to container width. */
}
blockquote p:before { content: open-quote; }
blockquote p:after { content: close-quote; }
blockquote p {
	padding: 10px 30px;
	font: italic 14px/20px Roboto, Helvetica, Arial, sans-serif;
}

/* TABLES */
table {}
tr { height:40px; }
th { vertical-align:middle; text-align:right; padding:0 10px; }
td:first-child { width:35%; }
td { padding:6px; }
table.lined td { border-bottom:1px dotted #ddd; }	

/* FORMS */
#searchform {
	display:inline; 
}
.searchbox {
	background-color: #CCC;
	border:none;
	width:0;
    -webkit-transition: width .5s; /* Safari */
    transition: width .5s;
	color: #000;
	font: 10px/18px proxima-nova, sans-serif;
	height: 22px;
	vertical-align: top;
	margin-left: 5px;
	padding:0;
    -webkit-appearance: none;	
	-webkit-border-radius: 0 !important;
	-moz-border-radius: 0 !important;
	border-radius: 0 !important;
}
.searchbox.open {
	width:300px;
	padding:2px;
}
input, textarea {
	border:solid 1px #999;;
	width:100%;
	padding:6px;
}
input.radio { width:auto; }
.wpcf7-submit {
	background-color: #02a297;
	border: medium none;
	color: #fff;
	display: block;
	float: right;
	width: auto;
	margin: 20px 6px;
	text-transform: uppercase;
	padding: 6px 28px;
	cursor:pointer;
}
/* TAGS */
.hidden    { display:    none !important; }

.block        { display: block        !important; }
.inline       { display: inline       !important; }
.inline-block { display: inline-block !important; }

.left  { float: left  !important; }
.right { float: right !important; }

.text-left   { text-align: left   !important; }
.text-center { text-align: center !important; }
.text-center ul { margin-left: 0; list-style-position:inside; }
.text-right  { text-align: right  !important; }

.hide{display:none;}
.show{display:block;}

.big { font-size: 125%; }
.small { font-size: 75%; }
.caps { text-transform:uppercase; }
.rounded {
	-moz-border-radius: 9px;
	-webkit-border-radius: 9px;
	border-radius: 9px;
}
.round {
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	border-radius: 50%;
}
.border {
	border:1px solid #000;
}
.boxShadow {
	box-shadow: 0 1px 0 #E6E6E6;
	border-bottom: 1px solid #999999;
}
.textShadow {
	text-shadow: 0 0 6px #054172;
}
.shadow {
	-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
	-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
	/* For IE 8 */
	-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=10, Direction=0, Color='#999999')";
	/* For IE 5.5 - 7 */
	filter: progid:DXImageTransform.Microsoft.Shadow(Strength=0, Direction=5, Color='#999999');
}
.grayscale {
	-webkit-filter: grayscale(1); -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%);
	filter: gray; filter: grayscale(100%);
	filter: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' height='0'><filter id='greyscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0' /></filter></svg>#greyscale");
}
.menu-toggle { display:none; }
.borderBottom {
	border-bottom:solid 6px #bebebe;
	padding-bottom:20px;
	margin-bottom:20px;
}
.fade {
	transition: opacity .2s ease-out;
	-moz-transition: opacity .2s ease-out;
	-webkit-transition: opacity .2s ease-out;
	-o-transition: opacity .2s ease-out;
	opacity:1;
}
.fade:hover {
	opacity:0.8;
}
.relative {	position:relative; }
.absolute {	position:absolute; }
.middle { position: relative; top: 50%; -webkit-transform: translateY(-50%); -moz-transform: translateY(-50%); -o-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); display:block; }
.no-margin { margin:0; }
.none { padding:0; margin:0; }
.breakpoint > div:nth-child(3n+1) {
	clear: left;
}
.masonry { /* Masonry container */
    -moz-column-count: 3;
    -webkit-column-count: 3;
    column-count: 3;
    -moz-column-gap: 1em;
    -webkit-column-gap: 1em;
    column-gap: 1em;
}
.masonry > div, .masonry > article { /* Masonry bricks or child elements */
    display: inline-block;
    margin: 0 0 1em;
    width: 100%;
	-webkit-column-break-inside:avoid;
	-moz-column-break-inside:avoid;
	-o-column-break-inside:avoid;
	-ms-column-break-inside:avoid;
	column-break-inside:avoid;
}
/**
/**
 * 2.0 Layout
 * ----------------------------------------------------------------------------- */

.flex-container {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}
.flex-container.justify {
	-webkit-box-pack:justify;
	    -ms-flex-pack:justify;
	        justify-content:space-between;
}
.flex-container.justify-left {
	-webkit-box-pack:start;
	    -ms-flex-pack:start;
	        justify-content:flex-start;
}
.flex-container.justify-center {
	-webkit-box-pack:center;
	    -ms-flex-pack:center;
	        justify-content:center;
}
.flex-container.justify-right {
	-webkit-box-pack:end;
	    -ms-flex-pack:end;
	        justify-content:flex-end;
}
.flex-container.align-top {
	-webkit-box-align:start;
	    -ms-flex-align:start;
	        align-items:flex-start;
}
.flex-container.align-center {
	-webkit-box-align:center;
	    -ms-flex-align:center;
	        align-items:center;
}
.flex-container.align-bottom {
	-webkit-box-align:end;
		-ms-flex-align:end;
			align-items:flex-end;
}
.flex-container.wrap {
	-ms-flex-wrap:wrap;
	    flex-wrap:wrap;
}
.flex-container.column {
	-webkit-box-orient:vertical;
	-webkit-box-direction:normal;
	    -ms-flex-direction:column;
	        flex-direction:column;
}

/**
 * 4.0 Header
 * ----------------------------------------------------------------------------- */
header {
	text-align:center;
}
.home header {
}
header > .row {
    background-image:
        url('images/pattern-dots.png'),
        linear-gradient(rgba(255,255,255, 0.8), rgba(255,255,255, 0.8)); 
	background-repeat:repeat-x;
	border-bottom:solid 1px #588F27;
	overflow:visible;
}
header > .row > .grid {
	height:165px;
}
.logo {
	background-image: url(images/A-Gaishan-Life.svg);
	background-repeat: no-repeat;
	background-position: center top;
	background-size: contain;
	height: 86px;
	width: 100%;
	text-indent: -9999px;
	display:block;
}
.tagline {
	font: 18px "Crimson Text", Georgia, Times, "Times New Roman", serif;
	color: #588F27;
	letter-spacing: .16em;
	margin:0;
	position:absolute;
	top:110px;
	right:330px;
}
/**
 * 5.0 Navigation
 * ----------------------------------------------------------------------------- */

nav ul { margin:0; padding:0; list-style-type:none; }
nav ul li { display:inline-block; }

/* MAIN NAVIGATION */
.mainNav {
	background-color:#588f27;
	padding:0 10px;
	width:100%;
	margin-top:-10px;
}
.mainNav ul {
}
.mainNav ul li {
	display:inline-block;
	margin: 0 10px;
}
.mainNav ul li a {
	transition: color 0.2s ease-out;
	-moz-transition: color 0.2s ease-out; /* Firefox 4 */
	-webkit-transition: color 0.2s ease-out; /* Safari and Chrome */
	font: 700 11px Roboto, Helvetica, Arial, sans-serif;
	-o-transition: color 0.2s ease-out; /* Opera */
	text-transform: uppercase;
	color: #FFF;
	text-decoration: none;
	letter-spacing: .12em;
	display:block;
	padding:6px;
}
.mainNav ul > li:hover > a,
.mainNav ul > li.current_page_item > a,
.mainNav ul > li.current-menu-item > a,
.mainNav ul > li.current-page-ancestor > a {
}
.mainNav ul li:hover > ul {
	display: block;
	/* transition: background-color 0.5s linear 0s; */
}
.mainNav ul li ul {
	display: none;
	position: absolute;
	z-index: 999;
	background-color:#588f27;
}
.mainNav ul li ul li {
	float:none;
	display:block;
	width:100%;
	height:auto;
	position:relative;
	margin: 0;
}
.mainNav ul li ul li:hover {
	background:none;
}
.mainNav ul li ul li:last-child {
}
.mainNav ul li ul li a {
}
.mainNav > ul > li.menu-item-has-children > a:after {
	content: "\f107";
	font-family: 'FontAwesome';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
	display: inline;
	font-size: 14px;
	padding-left: 5px;
}
.mainNav ul li ul li:hover > a {
}
.mainNav ul li ul li:last-child {
}
.mainNav ul li ul li ul {
	left: 100%;
	width: 100%;
	top: 0;
}
/* MAIN NAV RESPONSIVE */
	.flexnav { display:none; }
	@media only screen 
	and (max-width: 765px) {
		.mainNav, .secondary nav {
			display: none !important;
		}
		.flexnav {
			display:block;
		}
		.menu-button, .flexnav a {
			font: 700 11px Roboto, Helvetica, Arial, sans-serif;
			text-transform: uppercase;
			color: #FFF;
			text-decoration: none;
			letter-spacing: .12em;
		}

	}
/**
 * 6.0 Asides
 * ----------------------------------------------------------------------------- */

/* SIDEBAR */
aside {
	float:right !important;
}
aside ul {
	list-style-type:none;
	margin:0;
	padding:0;
}
aside li, aside a {
	font: 12px/20px "Open Sans", Helvetica, Arial, sans-serif;
	color: #646464;
}
aside li { margin-bottom:12px; }
aside a { font-weight:700; }
aside > ul > li {
	background-color:#FFF;
	margin-bottom:35px;
}
aside > ul > li > * {
	padding:15px !important;
}
aside h2 {
	border-bottom:solid 1px #999;
	margin:0;
}
/* WIDGETS */
input#mce-EMAIL.email {
}

/**
 * 7.0 Content
 * ----------------------------------------------------------------------------- */

/* SLIDESHOW */
ul.slideshow {
	margin:0;
	padding:0;
	height:250px;
}
ul.slideshow li {
	visibility:hidden;
}
ul.slideshow li > div {
	padding:0 100px;
}
.bx-viewport {
	height:250px !important;
}
.bx-wrapper { position:relative; }
.bx-controls {
	position:absolute;
	bottom:0;
	width:100%;
	padding:10px 0;
	text-align:center;
	z-index:999;
}
.bx-wrapper .bx-pager .bx-pager-item, .bx-wrapper .bx-controls-auto .bx-controls-auto-item {
	display: inline-block;
}
.bx-wrapper .bx-pager.bx-default-pager a {
	background: #999 none repeat scroll 0 0;
	display: block;
	height: 15px;
	margin: 0 5px;
	outline: 0 none;
	text-indent: -9999px;
	width: 15px;
}
.bx-pager-item a.bx-pager-link.active {
	opacity:.5;
}
.featured {
	border-top:solid 6px #bebebe;
	border-bottom:solid 6px #bebebe;
	padding:20px;
	background-color:#FFF;
	margin-bottom:50px;
	text-align:center;
}
.featured h5 a {
	padding:6px 16px;
	background-color:#005077;
	display:inline-block;
	margin-bottom:12px;
	letter-spacing:.1em;
	font: 700 12px/12px "Open Sans", Helvetica, Arial, sans-serif;
	color:#FFF;
}
.read-more {
	letter-spacing:.1em;
	font-size:12px;
	font: 700 12px/12px "Open Sans", Helvetica, Arial, sans-serif;
	text-decoration:none;
	text-transform:uppercase;
}
#mainBody {
	margin-top:10px;
	padding-top:30px;
}
#mainBody > .column { margin:0; }
.content {
	padding-right:45px;
}
article {
	margin-bottom:40px !important;
}
p.date, p.author {
	font: 12px "Open Sans", Helvetica, Arial, sans-serif;
	color: #bebebe;
	letter-spacing: .1em;
	text-align:center;
	text-transform:uppercase;
}
p.author { color: #646464; font-weight: 700; }
.byline, .navigation {
	font: 700 12px "Open Sans", Helvetica, Arial, sans-serif;
	color: #646464;
	margin: 20px 0 0;
}

/* WORDPRESS */
.alignleft { float: left; margin: 0 20px 0 0; }
.alignright { float: right; margin: 0 0 0 20px; }
.aligncenter { display: block; margin: 0 auto; }
.wp-post-image { margin-bottom:20px; }
p.postmetadata {}
.more-link {
	color:#588F27;
	text-transform:uppercase;
	font-weight:700;
	text-decoration:none;
	clear:both;
}
.byline {}
.acf-map {
	width: 100%;
	height: 400px;
	border: #ccc solid 1px;
	margin: 20px 0;
}


/* SOCIAL ICONS */
.social {
	float:right;
	font-size:16px;
	text-align:center;
}
.social a {	color:#CCC; }
.social i {	width:20px; }

/* BUTTONS */
.button {
	background-color:#BE1E2D;
	color:#FFF;
	display:inline-block;
	text-align:center;
	text-transform:uppercase;
	padding:6px 10px;
}

/* COMMENTS */
ol.commentlist{
    margin: 10px 5px;
    padding: 10px;
}
.commentlist .comment-body{
    padding: 10px;
    background: #EFEFEF;
    border: solid thin #DEDEDE;
    margin: 10px 0;
    position: relative;
}
.comment-body a.comment-reply-link{
    position: absolute;
    top: 10px;
    right: 10px;
    color: #AEAEAE;
}
ol.commentlist li{
    list-style: none;
}
ol.commentlist li ul li {
	margin-left:40px;
}
ol.commentlist img.avatar{
    padding: 5px;
    background: #DEDEDE;
    border: solid thin #CECECE;
    float: left;
    display: block;
    margin: 15px;
    width: 32px;
    height: 32px;
}
ol.commentlist .comment-author{
    line-height: 25px;
}
.comment-body cite.fn{
    font-size: 14px;
    font-style: normal;
}
.commentmetadata a{
    margin: 0;
    font-size: 11px;
    color: #999;
}
.comment-body p{
    margin: 5px;
}
.comment-body .comment-author.vcard{
    margin: 0;
}

/**
 * 8.0 Footer
 * ----------------------------------------------------------------------------- */

/* FOOTER */
footer {
}

/* COLOPHON */
#colophon {
	font-size:10px;
	padding:10px 0;
	margin:0 auto;
}
#colophon p {
	color:#fff;
	font-size: 10px;
	margin:0;
}
.ssba-wrap {
	position:relative;
}
.ssba-wrap a {
	background-color:#FFF !important;
}
.ssba-wrap:before {
        border-top: 1px solid #dfdfdf;
        content:"";
        margin: 0 auto; /* this centers the line to the full width specified */
        position: absolute; /* positioning must be absolute here, and relative positioning must be applied to the parent */
        top: 50%; left: 0; right: 0; bottom: 0;
        width: 100%;
        z-index: -1;
    }
	
/**
 * 8.0 Responsive
 * ----------------------------------------------------------------------------- */

@media all and (max-width: 960px) {
	article { padding:2%; }
}
@media all and (max-width: 768px) {
	.content {
		padding-right:0;
	}
	aside { float:none; background-color:#CECECE; padding:4%; }
}
@media all and (max-width: 568px) {
	.alignleft, .alignright { float: none; margin: 20px auto; width:100%; }
}
@media all and (max-width: 340px) {
}
