/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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.
 */

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

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
html, body {
	height: 100%;
	min-height: 100%;
	overflow: visible;
}
body {
	color: #2D2E33;
	background: #fff;
	font-family: 'PT Serif', serif;
}
.home {
	
}
#page {
	padding-bottom: 88px;
	position: relative;
	top: 0;
	left: 0;
	z-index: 1;
	min-height: 100%;
	overflow: visible;
}
.home #page {
	padding-bottom: 0;
}
p {
	margin-top: 0;
}
img {
	display: block;
	max-width: 100%;
	height: auto;
}
figure {
	margin: 0;
	padding: 0;
	display: block;
}
#site-header, 
#site-footer {
	background: #fff;
	font-family: 'PT Sans', sans-serif;
	-webkit-box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.2);
	box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.2);
}
#site-header {
	padding: 40px 30px 0;
	min-height: 63px;
	overflow: hidden;
	position: relative;
	top: 0;
	left: 0;
	z-index: 3;
}
#site-footer {
	padding: 30px 0;
	width: 100%;
	position: absolute;
	bottom: 0;
	z-index: 3;
	display: none;
}
#content {
	padding: 0 0 40px;
	position: relative;
	top: 0;
	left: 0;
	z-index: 2;
	transition: all .5s linear;
}
#content:after {
	display: block;
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	bottom: 100%;
	left: 0;
	z-index: 1;
	background: rgba(0, 0, 0, .5);
	opacity: 0;
	transition: all .5s linear;
	
/*
	background: -moz-linear-gradient(top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 75%, rgba(0,0,0,0.3) 89%, rgba(0,0,0,0) 100%);
	background: -webkit-linear-gradient(top, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.5) 75%,rgba(0,0,0,0.3) 89%,rgba(0,0,0,0) 100%);
	background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.5) 75%,rgba(0,0,0,0.3) 89%,rgba(0,0,0,0) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80000000', endColorstr='#00000000',GradientType=0 );
*/
	
	background: -moz-linear-gradient(top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
	background: -webkit-linear-gradient(top, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0) 100%);
	background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80000000', endColorstr='#00000000',GradientType=0 );
}
.home #content {
	padding-bottom: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: 100%;
	height: 100%;
	max-height: 818px;
	max-width: 1440px;
	overflow: hidden;
	transform: translate(-50%, -50%);
}
/*
.home #content:after {
	display: none;
}
*/

#site-title {
	margin: 0 auto 40px;
	text-align: center;
}
#site-title img {
	margin: 0 auto;
}
nav {
	margin: 0;
	padding: 0;
}
.site-nav {
	overflow: hidden;
	margin: 0 auto;
	max-width: 930px;
}
#site-footer .site-nav {
	padding: 0 30px;
}
#menu_btn {
	margin: 0;
	padding: 0;
	border: 0;
	position: absolute;
	top: 40px;
	right: 30px;
	z-index: 1;
	color: #2D2E33;
	background: transparent;
	cursor: pointer;
	outline: none;
}
.menu, 
.menu li {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
	font-size: 14px;
}
.menu li {
	margin-bottom: 30px;
	display: inline-block;
}
.menu a {
	margin: 0 10px;
	display: block;
	position: relative;
	top: 0;
	left: 0;
	z-index: 1;
	transition: opacity .5s linear;
}
.menu a:after {
	display: block;
	content: '';
	width: 0;
	border-top: 2px solid #0B3D91;
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 1;
	transform: translate(-50%, 0);
	transition: width .5s ease-out;
}
.menu a:link, 
.menu a:visited, 
.menu a:hover, 
.menu a:focus, 
.menu a:active {
	color: #2D2E33;
	opacity: .5;
	text-decoration: none;
}
.menu a:hover, 
.menu a:focus, 
.menu a:active {
	opacity: 1;
}
.menu a:hover:after, 
.menu a:focus:after, 
.menu a:active:after {
	width: 39px;
}
.menu .current-page a:link, 
.menu .current-page a:visited, 
.menu .current-page a:hover, 
.menu .current-page a:focus, 
.menu .current-page a:active {
	opacity: 1;
}
.menu .current-page a:after {
	width: 39px;
}
.social-links a:after {
	display: none;
}
.secondary-nav {
	float: left;
}
#site-footer .menu li {
	margin-bottom: 0;
}
#site-footer .secondary-nav li {
	line-height: 28px;
}
#site-footer .secondary-nav a:after {
	top: auto;
	bottom: 2px;
}
.social-links {
	float: right;
}
.social-links li {
	font-size: 20px;
}
#article-content {
	margin: 0 auto;
	padding: 0 30px;
	max-width: 930px;
}
#masterhead {
	margin-bottom: 40px;
	background: transparent url(../img/masterhead.jpg) no-repeat 50% 100%;
	background-size: cover;
}
.home #masterhead {
	margin-bottom: 0;
	background: transparent;
}
.masterhead {
	margin: 0 auto;
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	transform: translate(-50%, -50%);
}
.highlight:link, 
.highlight:visited, 
.highlight:hover, 
.highlight:focus, 
.highlight:active {
	color: #2D2E33;
	text-decoration: none;
}
.highlight {
	display: block;
	height: 40%;
	position: absolute;
	top: 50%;
	z-index: 1;
	overflow: visible;
/*
	opacity: .6;
	background: #00f;
*/
	transform: translate(0, -40%);
	font-size: 14px;
	text-align: center;
}
/*
.highlight:after {
	content: '';
	display: block;
	width: 46px;
	height: 40px;
	position: absolute;
	top: 10%;
	left: 50%;
	z-index: 1;
	background: transparent url(../img/highlight-top.svg) no-repeat 0 0;
}
.highlight:nth-of-type(even):after {
	width: 53px;
	height: 80px;
	left: 0;
	top: 70%;
	background: transparent url(../img/highlight-bottom.svg) no-repeat 0 100%;
}
*/
.dec {
	position: absolute;
	top: 50%;
	right: 100%;
	z-index: 1;
	transform: translate(-10px, 0);
}
.highlight:nth-of-type(even) .dec {
	top: auto;
	bottom: 50%;
}
.mob {
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 1;
	transform: translate(-50%, 20%);
	display: none;
}
.highlight:nth-of-type(even) .mob {
	top: auto;
	bottom: 100%;
	transform: translate(-50%, 0%) scale(-1);
}
#hl1 {
	width: 25%;
	left: 9%;
}
#hl2 {
	width: 9%;
	left: 34%;
	z-index: 2;
}
#hl3 {
	width: 18%;
	left: 41%;
}
#hl4 {
	width: 12%;
	left: 58%;
	z-index: 2;
}
#hl5 {
	width: 14%;
	left: 69%;
}
.highlight-title {
	width: auto;
	position: absolute;
	z-index: 1;
	display: block;
	font-style: italic;
	opacity: 1;
	transition: opacity .5s linear;
	line-height: 14px;
}
.highlight:nth-of-type(even) .highlight-title {
	top: 110%;
	right: -100%;
}

#hl1 .highlight-title {
	top: 5%;
	right: 0;
}
#hl2 .highlight-title {
	top: 105%;
	right: -100%;
}
#hl3 .highlight-title {
	top: 10%;
	right: 20%;
}
#hl4 .highlight-title {
	top: 105%;
	right: -80%;
}
#hl5 .highlight-title {
	top: 38%;
	right: -20%;
}

.highlight:hover .highlight-title, 
.highlight:focus .highlight-title, 
.highlight:active .highlight-title {
	opacity: 1;
}
.highlight-title:hover {
	
} 
.highlight-title:after {
	display: block;
	content: '';
	width: 0;
	border-top: 2px solid #0B3D91;
	position: absolute;
	bottom: -6px;
	left: 50%;
	z-index: 1;
	transform: translate(-50%, 0);
	transition: width .5s ease-out;
}
.highlight:hover .highlight-title:after {
	width: 39px;
}

#article-header .wrapper {
	margin: 0 auto;
	padding: 0 30px;
	max-width: 930px;
	overflow: hidden;
}
#article-heade .hgroup {
	
}
#article-header h2 {
	margin: 0;
	font-size: 30px;
	line-height: 36px;
}
#excerpt p {
	opacity: 0.5;
}
#article-header #excerpt blockquote {
	margin: 0 0 0 10px;
	padding: 0 0 0 10px;
	border-left: 2px solid #D8D8D8;
}
.article-meta {
	display: inline-block;
	margin: 0;
	padding: 0;
	font-style: italic;
	opacity: 0.7;
}
.article-meta dt, 
.article-meta dd {
	display: inline-block;
	margin: 0;
	padding: 0;
	font-size: 12px;
}
.article-date {
	margin: 0;
	display: block;
}
.article-author {
	margin-right: 36px;
}
.article-date dd {
	font-weight: bold;
	font-style: normal;
	display: block;
}


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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

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

/*
 * Hide visually and from screen readers, 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;
}
@font-face {
  font-family: 'fontello';
  src: url('../font/fontello.eot?91883659');
  src: url('../font/fontello.eot?91883659#iefix') format('embedded-opentype'),
       url('../font/fontello.woff2?91883659') format('woff2'),
       url('../font/fontello.woff?91883659') format('woff'),
       url('../font/fontello.ttf?91883659') format('truetype'),
       url('../font/fontello.svg?91883659#fontello') format('svg');
  font-weight: normal;
  font-style: normal;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
  @font-face {
    font-family: 'fontello';
    src: url('../font/fontello.svg?91883659#fontello') format('svg');
  }
}
*/
 
 [class^="icon-"]:before, [class*=" icon-"]:before {
  font-family: "fontello";
  font-style: normal;
  font-weight: normal;
  speak: none;
 
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  /* opacity: .8; */
 
  /* For safety - reset parent styles, that can break glyph codes*/
  font-variant: normal;
  text-transform: none;
 
  /* fix buttons height, for twitter bootstrap */
  line-height: 1em;
 
  /* Animation center compensation - margins should be symmetric */
  /* remove if not needed */
  margin-left: .2em;
 
  /* you can be more comfortable with increased icons size */
  /* font-size: 120%; */
 
  /* Font smoothing. That was taken from TWBS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
 
  /* Uncomment for 3D effect */
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}
 
.icon-cancel:before { content: '\e802'; } /* '' */
.icon-menu:before { content: '\f0c9'; } /* '' */
.icon-twitter:before { content: '\f099'; } /* '' */
.icon-pinterest:before { content: '\f0d2'; } /* '' */
.icon-gplus:before { content: '\f0d5'; } /* '' */
.icon-instagram:before { content: '\f16d'; } /* '' */
.icon-foursquare:before { content: '\f180'; } /* '' */
.icon-facebook:before { content: '\f308'; } /* '' */
.nav .icon-menu:before { content: '\e802'; }
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 769px) {
	#site-footer {
		display: block;
	}
	#site-header .secondary-nav, 
	#site-header .social-links {
		display: none;
	}
	.secondary-nav li:first-child a {
		margin-left: 0;
	}
	.social-links li:last-child a {
		margin-right: 0;
	}
	#menu_btn {
		display: none;
	}
	#masterhead {
		height: calc(100vh - 218px);
	}
	#article-header .hgroup {
		width: 50%;
		float: left;
	}
	#article-header #excerpt {
		width: 50%;
		float: right;
	}
	#article-content {
		-moz-column-count: 2;
		-moz-column-gap: 20px;
		-webkit-column-count: 2;
		-webkit-column-gap: 20px;
		column-count: 2;
		column-gap: 20px;
	}
}
@media only screen and (max-width: 768px) {
	#page {
		padding-bottom: 0;
	}
	#site-title {
		margin-left: 0;
		width: 50px;
		text-align: left;
	}
	#site-title img {
		margin: 0;
	}
	_:-ms-fullscreen, :root #site-title img {
		width: 50px;
		height: 24px;
	}
	.secondary-nav, 
	.social-links {
		float: none;
	}
	.menu li {
		display: block;
	}
	.social-links li {
		display: inline-block;
	}
	
	#site-header {
		padding-top: 20px;
		min-height: 43px;
		max-height: 43px;
		overflow: hidden;
		transition: max-height .5s linear;
	}
	.nav #site-header {
		max-height: 484px;
	}
	#menu_btn {
		top: 20px;
	}
	.nav #site-header .menu {
 		display: block;
	}
	.home .nav #content {
		top: calc(50% + 484px);
	}
	#article-header {
		position: relative;
		top: 0;
		left: 0;
		z-index: 1;
	}
	#masterhead {
		height: calc(100vh - 63px);
	}
	#article-header .hgroup {
		box-sizing: border-box;
		padding: 0 30px;
		width: 100%;
		position: absolute;
		top: 50vh;
		left: 0;
		z-index: 1;
		transform: translate(0, -50%);
	}
	#article-header h2 {
		margin: 0 0 40px;
		color: #fff;
		font-size: 40px;
		text-transform: uppercase;
		text-align: center;
	}
	#article-header #excerpt blockquote {
		margin-left: 0;
	}
	.article-meta {
		display: block;
		opacity: 1;
		text-align: center;
	}
	.article-author {
		margin-right: 0;
	}
	.article-meta dt, 
	.article-meta dd {
		margin: 0;
		text-align: center;
		color: #fff;
		font-size: 20px;
	}
	.nav #content:after {
		bottom: 0;
		opacity: 1;
	}
}
@media only screen and (max-device-height: 414px) {
	.nav #site-header {
		max-height: 484px;
	}
}
@media only screen and (max-height: 484px) {
	.nav #site-header {
		max-height: 484px;
	}
}

@media only screen and (max-width: 1024px) {
	#hl1 .highlight-title {
		top: 10%;
		right: -15%;
	}
	#hl2 .highlight-title {
		top: 95%;
		right: -180%;
	}
	#hl3 .highlight-title {
		top: 15%;
		right: 0;
	}
	#hl4 .highlight-title {
		top: 95%;
		right: -120%;
	}
	#hl5 .highlight-title {
		top: 38%;
		right: -50%;
	}
}
@media only screen and (max-width: 768px) {
	#hl1 .highlight-title {
		top: 21%;
		right: -25%;
	}
	#hl2 .highlight-title {
		top: 75%;
		right: -250%;
	}
	#hl3 .highlight-title {
		top: 22%;
		right: -10%;
	}
	#hl4 .highlight-title {
		top: 72%;
		right: -180%;
	}
	#hl5 .highlight-title {
		top: 35%;
		right: -90%;
	}
}
@media only screen and (max-width: 736px) {
	.highlight .dec {
		display: none;
	}
	.highlight .mob {
		display: block;
	}
	#hl1 .highlight-title {
		top: 0;
		right: 25%;
	}
	#hl2 .highlight-title {
		top: 100%;
		right: 0;
	}
	#hl3 .highlight-title {
		top: 0;
		right: 25%;
	}
	#hl4 .highlight-title {
		top: 100%;
		right: 0;
	}
	#hl5 .highlight-title {
		top: 0;
		right: 25%;
	}
}
@media only screen and (max-width: 414px) {
	#hl2 .highlight-title {
		top: 80%;
		right: -50%;
	}
	#hl4 .highlight-title {
		top: 80%;
		right: -50%;
	}
}

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

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
