/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */
 
 @import "css/reset.css";

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
	overflow: auto;
	width: 100%;
	height: 100%;
	font-size: 100%;
}

body {
	background: #446787;
    font-size: 1em;
    line-height: 1.4;
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
    text-align: center;
}

body.single, body.blog {
	background: #fbf4f4;
}

@font-face {
    font-family: 'the_skinnybold';
    src: url('css/theskinny-bold-webfont.eot');
    src: url('css/theskinny-bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('css/theskinny-bold-webfont.woff') format('woff'),
         url('css/theskinny-bold-webfont.ttf') format('truetype'),
         url('css/theskinny-bold-webfont.svg#the_skinnybold') format('svg');
    font-weight: normal;
    font-style: normal;

}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #B3282E;
    text-shadow: none;
    color: #fbf4f4;
}

::selection {
    background: #B3282E;
    text-shadow: none;
    color: #fbf4f4;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
	vertical-align: middle;
	max-width: 100%;
	width: 100%;
	height: auto;
	border: 0;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

a {
	color: #486386;
	text-decoration: none;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

header {
	position: absolute;
	z-index: 2000;
	width: 100%;
}

.wrapper {
	margin: 0 auto;
	max-width: 1040px;
	position: relative;
}

nav.wrapper {
	position: relative;
	width: 100%;
}

nav {
	float: none;
	width: auto;
	text-align: center;
}

nav ul {
	padding: 0;
	display: inline-block;
	margin: 0;
	vertical-align: top;
	float: none;
	z-index: 500;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}


nav ul li {
	display: inline-block;
}

nav a {
	display: inline-block;
	color: #fff;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 1.125em;
	padding: 0.8em 1.6em;
	margin: 0.8em 0;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
}

nav a:hover, nav a:focus {
	background: #aca297;
	background: rgba(172, 162, 151, 0.6);
}

#home-header {
	position: relative;
	z-index: 1500;
	background: url("img/road-map.jpg") no-repeat center center;
	background-color: #EDDFCD;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}

.intro {
	background: #b92b2b;
	position: relative;
	width: 100%;
	padding: 1em 0;
}

.intro p {
	color: #fff;
}

.logo {
	padding: 9em 0 8em;
}

.logo h1 {
	margin: 0;
}

.logo a {
	width: 388px;
	height: 170px;
	background: url("img/logo.png") no-repeat 0 0;
	display: inline-block;
	text-indent: -9999px;
	overflow: hidden;
}

@-webkit-keyframes background {
  0% {-webkit-transform: translate3d(0, 0, 0);}
  100% {-webkit-transform: translate3d(500px, 0, 0);} 
}

@-moz-keyframes background {
  0% {-moz-transform: translate3d(0, 0, 0);}
  100% {-moz-transform: translate3d(500px, 0, 0);}
}

@-o-keyframes background {
	0% {-o-transform: translate3d(0, 0, 0);}
  100% {-o-transform: translate3d(500px, 0, 0);}	
}

@keyframes background {
  0% {transform: translate3d(0, 0, 0);}
  100% {transform: translate3d(500px, 0, 0);}	
}

a.news-feed {
	 font-size: 1.8125em;
	 display: block;
}

.sub-header {
	position: relative;
	z-index: 12000;
	width: 100%;
}

.header-animation {
	width: 100%;
	overflow: hidden;
	height: 82px;
	position: relative;
}

.header-animation-background {
	height: 82px;
	right: 0;
	z-index: 8000;
	background-image: url("img/landscapes.png");
	-webkit-animation: background 90s linear infinite;
	-moz-animation: background 90s linear infinite;
	-o-animation: background 90s linear infinite;
	animation: background 90s linear infinite;
}

.header-animation-container {
	width: 10000px;
	position: absolute;
	background-position: 0 100%;
	background-repeat: repeat-x;	
}

#blog, #post-content {
	background-color: #fff;
}

#blog h2, #instagram h2, h2.blog {
	margin: 0;
	padding: 1em;
}

#blog h2, .blog h2 {
	background: url('img/blog-title-bg.png') no-repeat center center;		
}

#instagram h2 {
	background: url('img/insta-title-bg.png') no-repeat center center;
	margin-bottom: 1.5em;		
}

#posts ul {
	padding: 0;
	margin: 0;
}

#posts ul li, #post-content ol li {
	list-style: none;
	display: block;
	padding: 2em 0;
}

#posts ul li:nth-child(1), #post-content ol li {
	border-bottom: 2px dashed #fbf4f4;
}

.meta {
	color: #436688;
	text-transform: uppercase;
	text-align: center;
}

.meta a {
	border-bottom: 2px dashed #486386;
}

.meta a:hover, .meta a:focus {
	border-bottom: none;
}

a.read-more, a.more-link {
	background: url('img/link-bg.png') no-repeat center center;
	background-size: 7em;
	padding: 1em;
	color: #fff;
}

#instagram {
	background-color: #fbf4f4;
	padding-bottom: 4.4em;
}

.instapress-shortcode {
	margin-bottom: 3.2em;
}

.instapress-shortcode + .instapress-shortcode {
	margin-bottom: 0;
}

.instapress-shortcode .instapress-shortcode-image {	
	background-size: cover;
	background-clip: content-box;
	box-sizing: border-box;
	position: relative;
	float: none;
	display: inline-block;
	margin: 0 4%;
	border: 1px solid #ebe4e4;
	width: 24%;
	padding: .6em;
	background: #fff;
}


.instapress-shortcode .instapress-shortcode-image:after {
	content: "";
	display: block;
	position: absolute;
	border: 50px solid transparent;
	border-bottom: 50px solid #fbf4f4;
	bottom: -60px;
	right: -65px;
	box-shadow: 0px 7px 6px -9px rgba(0,0,0,.6);
	-webkit-transform: rotate(135deg);
	-moz-transform: rotate(135deg);
	-o-transform: rotate(135deg);
	transform: rotate(135deg);
}

.instapress-shortcode .instapress-shortcode-image:before {
	content: "";
	display: block;
	position: absolute;
	border: 50px solid transparent;
	border-top: 50px solid #fbf4f4;
	top: -60px;
	left: -65px;
	box-shadow: 0px -7px 6px -9px rgba(0,0,0,.6);
	-webkit-transform: rotate(135deg);
	-moz-transform: rotate(135deg);
	-o-transform: rotate(135deg);
	transform: rotate(135deg);
}

#twitter {
	background: url("img/footer.png") no-repeat center 100%;
	background-color: #fbf4f4;
	padding-bottom: 5.4em;
	position: relative;
}

#twitter h2 {
	margin: 0;
	position: absolute;
	bottom: 94%;
	display: inline-block;
	left: 30%;
}

.tweet-box {
	background-image: url("img/tweet-box-tl.png"), url("img/tweet-box-tr.png"), url("img/tweet-box-br.png"), url("img/tweet-box-bl.png");
	background-position: top left, right top, right bottom, left bottom;
	background-repeat: no-repeat;
	width: 52%;
	border: 2px dashed #436788;
	margin: 0 auto;
	padding: 1em;
}

.tweet-box p {
	font-family: 'Sanchez', serif;
	color: #B3282E;
}


@-webkit-keyframes bounce {
  0% {
    -webkit-transform: translateY(0);
  }
  20% {
    -webkit-transform: translateY(-5px);
  }
  50% {
    -webkit-transform: translateY(0);
  }
  70% {
    -webkit-transform: translateY(5px);
  }
  100% {
    -webkit-transform: translateY(0px);
  }
}

@-moz-keyframes bounce {
  0% {
    -moz-transform: translateY(0);
  }
  20% {
    -moz-transform: translateY(-5px);
  }
  50% {
    -moz-transform: translateY(0);
  }
  70% {
    -moz-transform: translateY(5px);
  }
  100% {
    -moz-transform: translateY(0px);
  }
}

@-o-keyframes bounce {
  0% {
    -o-transform: translateY(0);
  }
  20% {
    -o-transform: translateY(-5px);
  }
  50% {
    -o-transform: translateY(0);
  }
  70% {
    -o-transform: translateY(5px);
  }
  100% {
    -o-transform: translateY(0px);
  }
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(-5px);
  }
  50% {
    transform: translateY(0);
  }
  70% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(0px);
  }
}

.balloon-wrap {
	width: 48px;
	height: 80px;
	position: absolute;
	left: 15%;
}

.balloon-wrap.front {
	width: 97px;
	height: 167px;
	position: absolute;
	left: 81%;
}

.balloon-wrap.front img {
	-webkit-animation: bounce 5s linear infinite;
	-moz-animation: bounce 5s linear infinite;
	-o-animation: bounce 5s linear infinite;
	animation: bounce 5s linear infinite;
}

.balloon-wrap img {
	-webkit-animation: bounce 3s linear infinite;
	-moz-animation: bounce 3s linear infinite;
	-o-animation: bounce 3s linear infinite;
	animation: bounce 3s linear infinite;
}

footer {
	background-color: #446787;
	text-align: left;
}

nav#footer {
	display: inline-block;
	vertical-align: middle;
}

footer p {
	display: inline-block;
	position: relative;
	text-align: right;
	vertical-align: middle;	
}

footer p a {
	color: #fff;
}



/*-------- SINGLE ----------*/

article.wrapper {
	width: 50%;
	text-align: left;
	padding-bottom: 6em;
}

article h2.post-title, #comments h2 {
	text-align: center;
	margin: 0 0 0.83em;
	padding: 0.83em 0 0;
}

.single .post-intro p {
	font-size:  1.3125em;
	line-height: 1.6666666666666667;
	font-weight: 600;
}

.img-holder {
	margin: 2.5em auto;
	width: 100%;
	font-style: italic;
	color: #666;

}

p.caption {
	margin: 0;
}

.img-holder img {
	margin-bottom: 1em;
}

.wp-caption-text {
	font-style: italic;
	color: #666;
}

#tags {
	padding: 1em 0 1.5em;
	margin: 1em 0 1.5em;
	text-align: center;
	border-bottom: 2px dashed #486386;
}

#tags ul {
	padding: 0;
	margin: 0;
	font-size: 1.125em;
}

#tags li {
	display: inline-block;
	text-align: left;
	margin: 0 2%;
}

#comments {
	width: 85%;
	margin: 0 auto;
}

#comments ol {
	padding: 0;
	margin: 0;
	list-style: none;
}

#comments img {
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	width: 15%;
}

#comments article {
	padding: 1em 0;
	margin: 1em 0;
}

.comment-info {
	position: relative;
	width: 77%;
	padding-left: 3%;
	display: inline-block;
	vertical-align: top;
}

.comment-info h4 {
	margin: 0;
}

#comments p {
	padding: 0;
}

#commentform label {
	font-family: 'the_skinnybold';
	color: #B3282E;
	font-size: 1.5em;
}

#commentform input, #commentform textarea {
	border: 2px dashed #486386;
	background: none;
	width: 100%;
	padding: 5px;
	color: #486386;
	font-size: 1.5em;
	text-transform: none;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

#commentform input:focus, #commentform input:active, #commentform textarea:focus, #commentform textarea:active {
	outline: none;
}

input#submit {
	background: #486386;
	color: #fff;
}

.more-posts {
	background: url("img/nextprev.png") no-repeat -5% 4px;
	position: fixed;
	z-index: 300;
	top: 45%;
	-webkit-transition: all 0.3s ease-out;
	-moz-transition: all 0.3s ease-out;
	-o-transition: all 0.3s ease-out;
	-ms-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
	width: 15%;
	opacity: .3;
}

.more-posts.next {
	background: url("img/nextprev.png") no-repeat 106% 4px;
	right: -10%;
}

.more-posts.prev {
	left: -10%;
}

.more-posts.next:hover {
	right: -1%;
	opacity: 1;
}

.more-posts.prev:hover {
	left: -1%;
	opacity: 1;
}

.more-posts p {
	padding: 1.1em 0 1.1em 2em;
	color: #fff;
	font-weight: 600;
	margin: 0;
}

.more-posts.next p {
	padding: 1.1em 2em 1.1em 0;
}

.more-posts a {
	border-bottom: 2px dashed #486386;
}

.more-posts a:hover {
	border-bottom: none;
}

.wp-smiley {
	width: auto!important;
}

/*-------- BLOG ----------*/

#post-content ol {
	padding: 0;
	list-style: none;
}


#page-header {
	background-color: #EDDFCD;
}

.blog .logo, .single .logo {
	padding: 5em 0 0em;
}

.blog #page-header, .single #page-header {
	background-color: #EDDFCD;
	background-image: url("img/map.png");
	background-position: center 101%;
	background-repeat: no-repeat;
}

@-webkit-keyframes blimp {
  0% {-webkit-transform: translate3d(500px, 0, 0);}
  100% {-webkit-transform: translate3d(0, 0, 0);} 
}

@-moz-keyframes blimp {
  0% {-moz-transform: translate3d(500px, 0, 0);}
  100% {-moz-transform: translate3d(0, 0, 0);}
}

@-o-keyframes blimp {
	0% {-o-transform: translate3d(500px, 0, 0);}
  100% {-o-transform: translate3d(0, 0, 0);}	
}

@keyframes blimp {
  0% {transform: translate3d(500px, 0, 0);}
  100% {transform: translate3d(0, 0, 0);}	
}


.blog .header-animation-background, .single .header-animation-background {
	background-image: url("img/page-header.png");
}

.blimp-animation-background {
	height: 82px;
	right: 0;
	z-index: 8000;
	background-image: url("img/blimp.png");
	-webkit-animation: blimp 90s linear infinite;
	-moz-animation: blimp 90s linear infinite;
	-o-animation: blimp 90s linear infinite;
	animation: blimp 90s linear infinite;
}

.blimp-animation-container {
	width: 10000px;
	position: absolute;
	background-position: 0 100%;
	background-repeat: no-repeat;	
}

#post-content {
	margin-bottom: 8em;
	position: relative;
}

.next-prev {
	display: inline-block;
	position: relative;
	padding: 1em 0;
	text-transform: uppercase;
}

/*-------- IE7 Styles ----------*/

.ie7 header {
	background: #EDDFCD;
	position: relative;
	width: auto;
}

.ie7 nav ul {
	width: 100%;
}

.ie7 .logo {
	padding: 5em 0 8em;
}

.ie7 nav ul li, .ie7 .instapress-shortcode .instapress-shortcode-image, .ie7 #tags li {
	display: inline;
}

.ie7 nav ul, .ie7 .logo a {
	display: block;
	margin: 0 auto;
}

.instapress-shortcode .instapress-shortcode-image {
	margin: 0 2%;
}

.ie7 #post-content ol, .ie7 #posts ul li, .ie7 #post-content ol li, .ie7 #comments img, .ie7 #comments article, ie7 .comment-info {
	float: left;
}

.ie7 #post-content ol, .ie7 #posts ul li, .ie7 #post-content ol li, .ie7, .ie7 #comments article, ie7 .comment-info {
	width: 100%;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .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; /* h5bp.com/t */
    }

    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;
    }
}
