/* CSS Document */
@import url('https://fonts.googleapis.com/css?family=Lato:400,900|Lora:400,700');
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,900');

/* VARIABLES */
:root {
	--page-width: 700px;
}

/* FIXES */

body {
	background: #fff !important;
	margin: 0;
}

ins {
	display: block;
	text-align: center;
}
.demo_ad {
	text-align: center;
	font-family: "Lato";
	font-size: 11px;
	padding: 20px;
	background: #ddd;
	text-decoration: none;
}

div#loader {
	display: none;
	position: fixed;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	background: #fff;
	z-index: 99999;
	font-family: "Source Sans Pro";
	font-size: 15px;
	text-align: center;
	box-sizing: border-box;
}
div#loader img {
	position: fixed;
	left: calc(50vw - 40px);
	top: calc(50vh - 40px);
	width: 80px;
	height: 80px;
	transition: top 1s, left 1s;
}
div#loader img.done {
	left: calc(50vw - 132px);
	top: 5px;
}
@media screen and (max-width: 900px) {
	div#loader img.done {
		left: calc(50vw - 125px);
		top: 5px;
	}	
}

div#content {
	margin: 0;
}


/* FRONT PAGE */
#wallpaper {
	height: 300px;
	background-size: cover;
	background-position: 50% 50%;
	background-image: url(mountains.png);
	margin-bottom: 270px;
}
#wallpaper > img:first-child {
	width: 250px;
	height: auto;
	position: absolute;
	top: 30px;
	left: calc(50vw - 430px);
}
#wallpaper > img:nth-child(2) {
	width: auto;
	height: 80px;
	position: absolute;
	top: 200px;
	left: calc(50vw - 150px);
}
#wallpaper > p {
	margin: 0;
	position: absolute;
	left: calc(50vw - 150px);
	width: 575px;
	top: 320px;
	font-family: "Source Sans Pro", "Lora", "serif";
	font-size: 27px;
	font-weight: 600;
	line-height: 1.4em;
	color: #444;
}

#start-page, #bottom-articles {
	width: calc(var(--page-width) + 250px);
	margin: 0 auto;
}

/***** ARTICLE LISTS ****/
/* FRONT ARTICLES */
.front-article {
	width: calc(100% / 3);
	float: left;
	color: #222;
	text-decoration: none;
	box-sizing: border-box;
	padding-bottom: 8px;
}

.front-article .thumbnail {
	background-color: #ccc;
	height: 161px;
	background-size: cover;
	background-position: 50% 50%;
}
.front-article h2 {
	font: 18px "Source Sans Pro";
	font-weight: 700;
	margin: 0;
	padding: 10px;
	height: calc(329px - 161px - 20px);
	background: rgba(88,156,206,0);
	box-sizing: border-box;
	transition: background 0.5s, color 0.5s;
}
.front-article .post-date {
	height: 20px;
	box-sizing: border-box;
	padding: 0 0 7px 10px;
	font: 13px "Source Sans Pro";
	color: rgba(0, 0, 0, 0.7);
}
#start-page > .front-article:first-child h2 {
	font-size: 28px;
	padding: 20px;
	height: 309px;
}

@media screen and (min-width: 500px) {
	.front-article:nth-child(3n+1) {
		padding-right: 4px;
	}
	.front-article:nth-child(3n+2) {
		padding-right: 4px;
		padding-left: 4px;
	}
	.front-article:nth-child(3n+3) {
		padding-left: 4px;
	}

	#start-page > .front-article:first-child {
		padding-right: 4px;
		padding-left: 0px;
		width: calc(100% / 3 * 2);
	}

	#start-page > .front-article:nth-child(2), .front-article:nth-child(3) {
		padding-left: 4px;
	}

	#start-page > .front-article:first-child .thumbnail {
		height: 329px;
	}
	
}

#start-page > .front-article:nth-child(2) {
	margin-top: 0;
	padding-bottom: 0;
	padding-right: 0;
}
#start-page > .front-article:nth-child(3) {
	margin-top: 0;
}


.front-article:hover h2 {
	background: rgba(88,156,206,1);
	color: #fff;
}
@media screen and (max-width: 500px) {
	.front-article {
		display: block;
		width: calc(100% / 1) !important;
		float: none;
		color: #222;
		text-decoration: none;
		padding-bottom: 10px;
		height: auto;
	}
	.front-article .thumbnail {
		background-color: #ccc;
		height: 48vw !important;
		background-size: cover;
		background-position: 50% 50%;
	}
	.front-article h2 {
		font: 18px "Source Sans Pro" !important;
		font-weight: 700;
		margin: 0;
		padding: 10px !important;
		height: 120px !important;
	}	
}

@media screen and (min-width: 500px) and (max-width: 800px) {
	.front-article .thumbnail {
		height: 160px;
	}	
	.front-article h2 {
		height: 140px;
	}	
	#start-page > .front-article:first-child {
		height: 616px;
	}
	#start-page > .front-article:first-child .thumbnail {
		height: 311px;
	}
}


/* BOTTOM ARTICLES */
.bottom-article {
	width: calc(100% / 2);
	float: left;
	color: #222;
	text-decoration: none;
	box-sizing: border-box !important;
	padding-bottom: 8px;
}
.bottom-article .thumbnail {
	background-color: #ccc;
	height: 200px;
	background-size: cover;
	background-position: 50% 50%;
}

@media screen and (min-width: 500px) {
	.bottom-article:nth-child(2n+1) {
		padding-right: 8px;
	}
	.bottom-article:nth-child(2n) {
		padding-left: 8px;
	}	
}

.bottom-article h2 {
	font: 18px "Source Sans Pro";
	font-weight: 700;
	margin: 0;
	padding: 10px;
	height: 110px;
	background: rgba(88,156,206,0);
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	box-sizing: border-box;
	transition: background 0.5s, color 0.5s;
}

.bottom-article:hover h2 {
	background: rgba(88,156,206,1);
	color: #fff;
}
@media screen and (max-width: 500px) {
	.bottom-article {
		width: calc(100% / 2) !important;
		float: left;
		color: #222;
		padding: 0 20px;
		text-decoration: none;
	}
	.bottom-article:nth-child(2n+1) {
		padding-right: 10px;
	}
	.bottom-article:nth-child(2n) {
		padding-left: 10px;
	}
	.bottom-article .thumbnail {
		background-color: #ccc;
		height: 23vw !important;
		background-size: cover;
		background-position: 50% 50%;
	}
	.bottom-article h2 {
		font: 15px "Source Sans Pro" !important;
		font-weight: 600 !important;
		margin: 0;
		padding: 6px 0;
		height: 130px !important;
	}	
	.bottom-article.ab-testing {
		width: 100% !important;
		padding: 0 20px !important;
	}
	.bottom-article.ab-testing .thumbnail {
		height: 200px !important;
		margin-bottom: 6px !important;
	}
	.bottom-article.ab-testing h2 {
		font-size: 15px !important;
		font-family: 'montserrat','Helvetica Neue',Helvetica,Arial,sans-serif !important;
		font-weight: 500 !important;
		line-height: 17px !important;
		text-align: center !important;
	}	
}
@media screen and (min-width: 500px) and (max-width: 1100px) {
	#bottom-articles {
		width: 100vw;
		box-sizing: border-box;
	}	
}

/* RELATED ARTICLES */

#related-articles {
	padding: 4px;
	font-size: 0;
	clear: both;
}

.related-article {
	display: inline-block;
	float: left;
	width: calc(100% / 2);
	color: #222;
	text-decoration: none;
	box-sizing: border-box;
	padding-bottom: 8px;
}
.related-article:nth-child(2n + 1) {
	padding-right: 10px;
}
.related-article:nth-child(2n + 2) {
	padding-left: 10px;
}
.related-article h2 {
	font: 16px 'montserrat','Helvetica Neue',Helvetica,Arial,sans-serif !important;
	font-weight: bold !important;
	margin: 0 !important;
}
.related-article h2 span {
	display: block;
	color: #31A1BD;
	font: 11px 'Helvetica Neue',Helvetica,Arial,Sans-serif;
	font-weight: 400 !important;
	text-transform: uppercase;
	margin: 7px 0;
}
.related-article .thumbnail {
	background-color: #ccc;
	height: 200px;
	background-size: cover;
	background-position: 50% 50%;
}

@media screen and (max-width: 500px) {
	.related-article {
		display: block;
		width: calc(100% / 1);
		color: #222;
		text-decoration: none;
		box-sizing: border-box;
		padding-bottom: 8px;
	}
	.related-article:nth-child(2n + 1) {
		padding-right: 0px;
	}
	.related-article:nth-child(2n + 2) {
		padding-left: 0px;
	}	
	.related-article h2 {
		font: 15px 'montserrat','Helvetica Neue',Helvetica,Arial,sans-serif !important;
		font-weight: 500 !important;
		margin: 0 0 15px 0!important;
	}
}



/* SINGLE PAGE */
div#featured-image {
	position: absolute;
	top: 0px;
	left: 0px;
	right: 0px;
	z-index: 55;
	background: #fff !important;
	height: 89px;
	margin: 0;
	box-sizing: border-box;
	padding: 10px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	transition: height 0.5s;
}
div#featured-image img {
	display: block;
	height: 70px;
	margin: 0 auto;
	transition: height 0.5s;
}
div#featured-image.featured-fixed {
	position: fixed;
	height: 50px;
	z-index: 55;
}
div#featured-image.featured-fixed img {
	height: 30px !important;
}

div#featured-image .progress-bar {
	display: block;
	height: 3px;
	background: #589cce;
	content: "";
	position: absolute;
	left: 0;
	margin-top: 10px;
	width: 0px;
}

div#article-content > #article-meta {
	font-size: 12px;
}

div#article-content > #article-meta img {
	height: 25px;
	width: auto;
	display: block;
}

div#article-content {
	background: #fff;
	position: relative;
	z-index: 5;
	width: var(--page-width);
	margin: 90px auto 0 auto;
	font-family: "Source Sans Pro", "Lora", "serif";
	line-height: 1.7em;
	font-size: 21px;
	padding: 30px;
	border-radius: 5px;
	font-weight: 400;
}
div#article-content > * {
	margin: 0;
	max-width: 100%;
}
div#article-content > *:not(:first-child):not(#editor_form) {
	margin-top: 20px;
}

div#article-content a {
	color: #589cce;
	text-decoration: none;
	transition: color 0.5s;
}
div#article-content a:hover {
	color: #1E3F82;
}

div#article-content h1, div#article-content h2, div#article-content h3, div#article-content h4, div#article-content h5, div#article-content h6 {
	font-family: "Lato", "sans-serif";
	font-weight: 900;
	color: #222;
	line-height: 1em;
}
div#article-content h1 {
	font-size: 2.1em;
}
div#article-content h2 {
	font-size: 1.8em;
}
div#article-content h3 {
	font-size: 1.5em;
}

div#article-content p {
	line-height: 1.6em;
}
div#article-content p.ingress {
	font-weight: bold;
	font-size: 1.1em;
}

div#article-content figure {
	text-align: center;
	margin: 0;
}
div#article-content figure.embed-giphy {
	text-align: left;
}

div#article-content figure > * {
	width: 100%;
}
/* FACEBOOK */
figure .fb-post > span, figure .fb-post > span > iframe {
	width: 100% !important;
}

@media screen and (max-width: 500px) {
	div#article-content figure {
	}
}

div#article-content figcaption {
	background: #ddd !important;
	position: relative;
	margin-top: -10px;
	padding: 3px;
	font-size: 0.7em;
	text-align: center;
	box-sizing: border-box;
}
div#article-content figcaption p {
	margin: 0;
}

div#article-content p * {
	max-width: 100%;
}
div#article-content blockquote {
	font-size: 1.2em;
	padding-left: 20px;
	padding-right: 20px;
	font-style: italic;
	color: #333;
	line-height: 1.6em;
}
div#article-content blockquote:not(:last-child):before {
	color: #444;
	content: '"';
	font-size: 3em;
}
div#article-content blockquote:not(:last-child):after {
	color: #444;
	content: '"';
	font-size: 2em;
}
div#article-content blockquote:last-child:not(:first-child) {
	font-size: 0.8em;
	text-align: right;
}

div#article-content div.ins {
	line-height: 1em;
	margin: 20px 0;
	text-align: center;
}
div#article-content img {
	max-width: 100%;
	width: 100%;
	height: auto;
}


.youtube_wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
}
.youtube_wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.embed {
	text-align: center;
}
.embed > * {
	margin: 0 auto !important;
}

/* FIXES */
.wp-caption {
	width: 100% !important;
}

.fb-like {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 20px 0;
}

#share-area {
	margin: 30px 0;
	display: table;
	width: 100%;
}
#share-area > div {
	display: table-row;
	width: 100%;
	table-layout: fixed;
}
#share-area > div > * {
	display: table-cell;
	padding: 15px;
	font-size: 20px;
	text-decoration: none;
	font-family: "Lato";
	text-align: center;
	transition: background-color 0.3s;
	width: 10%;
}
@media screen and (max-width: 500px) {
	#share-area > div > * {
		display: block;
		width: 100%;
	}	
}
#share-area > div > *:first-child {
	border-top-left-radius: 3px;
	border-bottom-left-radius: 3px;
}
#share-area > div > *:last-child {
	border-top-right-radius: 3px;
	border-bottom-right-radius: 3px;
}

#share-area > div > #fb_share {
	background: #3b5998;
	color: #fff;
}
#share-area > div > #fb_share:hover {
	background-color: #243d73;
}
#share-area > div > #tw_share {
	background: #00aced;
	color: #fff;
}
#share-area > div > #tw_share:hover {
	background-color: #0078a6;
}
#share-area > div > #pi_share {
	background: #C92228;
	color: #fff;
}
#share-area > div > #pi_share:hover {
	background-color: #85060b;
}


footer {
	clear: both;
	width: calc(var(--page-width) + 250px);
	margin: 50px auto 0 auto;
	border-top: 1px solid #ccc;
	padding: 20px 0;
}
footer > img {
	height: 25px;
	display: inline-block;
	float: left;
	padding-right: 20px;
	margin-right: 20px;
	border-right: 1px solid #ccc;
}
footer > a {
	display: inline-block;
	margin-top: 6px;
	margin-right: 10px;
	font: 14px "Source Sans Pro";
	color: #000;
	text-decoration: none;
}
footer p {
	font-family: "Source Sans Pro";
	font-size: 14px;
	border-top: 1px solid #ccc;
	padding-top: 10px;
}
footer p a {
	color: #0E6AA6;
}

@media screen and (max-width: 500px) {
	div#article-content h1 {
		font-size: 1.5em;
	}
	div#article-content h2 {
		font-size: 1.3em;
	}
	div#article-content h3 {
		font-size: 1.2em;
	}

	#wallpaper {
		height: 60vw;
		background-size: cover;
		background-position: 50% 50%;
		background-image: url(mountains.png);
		margin-bottom: 200px;
	}
	#wallpaper > img:first-child {
		display: none;
	}
	#wallpaper > img:nth-child(2) {
		width: 80vw;
		height: auto;
		position: absolute;
		top: 120px;
		left: 10vw;
	}
	#wallpaper > p {
		margin: 0;
		position: absolute;
		left: 10vw;
		width: 80vw;
		top: calc(60vw + 30px);
		font-family: "Source Sans Pro", "Lora", "serif";
		font-size: 20px;
		font-weight: 600;
		line-height: 1.4em;
		color: #444;
	}

	#bottom-articles {
		width: 100vw;
		margin: 0 auto;
	}
	#start-page {
		width: calc(100vw - 40px);
		margin: 0 auto;
	}
	
	div#article-content {
		width: calc(100vw - 30px);
		margin: 110px auto 0 auto;
		padding: 0 !important;
	}
	.fb-like, .fb-like > * {
		max-width: 100% !important;
		width: 100% !important;
		overflow-x: hidden;
	}
	div.embed {
		max-width: calc(100vw - 30px) !important;
		display: block;
		position: relative !important;
		width: calc(100vw - 30px) !important;
	}
	div.embed > * {
		max-width: 100% !important;
	}

	#share-area {
		margin: 30px 0;
		display: block;
		width: 100%;
	}
	#share-area > div {
		display: block;
		width: 100%;
	}
	#share-area > div > * {
		display: block;
		padding: 15px;
		box-sizing: border-box;
		font-size: 20px;
		text-decoration: none;
		font-family: "Lato";
		text-align: center;
		transition: background-color 0.3s;
	}

	#share-area > div > *:first-child {
		border-top-left-radius: 3px;
		border-top-right-radius: 3px;
	}
	#share-area > div > *:last-child {
		border-bottom-left-radius: 3px;
		border-bottom-right-radius: 3px;
	}

	#share-area > div > .sign {
		width: 100%;
		font-size: 0.7em;
		padding: 7px;
		background-color: #ccc;
	}

	footer {
		clear: both;
		width: 100vw;
		margin: 50px auto 0 auto;
		border-top: 1px solid #ccc;
		padding: 20px;
		box-sizing: border-box;
	}
	footer > img {
		height: 30px;
		display: inline-block;
		float: left;
		padding-right: 20px;
		margin-right: 20px;
		border-right: 1px solid #ccc;
	}
	footer > a {
		display: inline-block;
		margin-top: 6px;
		margin-right: 10px;
		font: 14px "Source Sans Pro";
		color: #000;
		text-decoration: none;
	}
}
@media screen and (min-width: 500px) and (max-width: 1100px) {
	footer {
		width: 100vw;
		box-sizing: border-box;
	}
}
#img_popup_cover {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index: 999;
	background: rgba(0, 0, 0, 0.98);
}
#img_popup_cover > img {
	display: block;
	margin: 0 auto;
	max-width: calc(100% - 20px);
	max-height: calc(100% - 20px);
}

#article-tags {
	font-size: 0.8em;
	padding: 3px;
}
#article-tags strong {
	display: block;
}
#article-tags a {
	display: inline-block;
	position: relative;
	margin-top: -3px;
	padding: 3px 9px;
	border-radius: 4px;
	background: #09c;
	color: #fff !important;
	margin-right: 10px;
	transition: background 0.5s;
}
#article-tags a:hover {
	background: #069;
}


/* FIXES */
grammarly-btn {
	display: none !important;
}

#ab_testing h3 {
	font-size: 22px !important;
	font-weight: 600 !important;
	margin: 5px 0 20px 0;
}