:root {
  --min-width: 280px; /* + 20px padding either side = 320px */
  --max-width: 960px; 
  --font-size-mobile: 18px;
  --font-size-desktop: 16px;
  --link-color: #4DA167;
  --highlight-color: #3BC14A;
  --main-text-color: #333;

}

/* colour pallettes:
- https://coolors.co/264653-2a9d8f-e9c46a-f4a261-e76f51; 
- https://coolors.co/333333-4e6e5d-4da167-3bc14a-cfcfcf
*/

* {
	margin: 0;
	padding: 0;
}

body {
	background-color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: var(--font-size-desktop);
	color: var(--main-text-color);
}

html {
    
     scroll-behavior: smooth;
    
}

p {

	/*margin: 20px 0;*/
	margin: 1.5em 0;

}

a {

	text-decoration: none;
	color: var(--link-color);

}

a:hover {

	text-decoration: underline;

}

ul,ol {

	display: block;
	margin-top: 1em;
	margin-bottom: 1em;
	margin-left: 0;
	margin-right: 0;
	padding-left: 40px;

}

ul ul {

	margin: 0;

}

ul {

	list-style-type: disc;

}

ol {

	list-style-type: decimal;

}

table {

	border-collapse: collapse;
	width: 100%;
	font-size: 1rem;
	
}

th {

	background: #eee;
	border-bottom: 1px solid #aaa;

}

td, th {

	border: 1px solid #fff;
	padding: 5px 10px;
	text-align: center;

}


input {

	display: block;
	width: 100%;
	padding: .375rem .75rem;
	border: 1px solid #ced4da;
	border-radius: .25rem;
	box-sizing: border-box;
	font-size: 1rem;


}

label {

	display: inline-block;
	margin-bottom: 1rem;

}

.btn-primary {

	color: #fff;
	background-color: var(--highlight-color);
	border-color: var(--highlight-color);
	border: 1px solid transparent;

}

.btn {

	padding: .375rem .75rem;
	font-size: 1rem;
	line-height: 1.5;
	border-radius: .25rem;

}

.form-group{

	margin-bottom: 1rem;
	box-sizing: border-box;

}

.form-control {

	display: block;
	width: 100%;
	/*height: calc(1.5em + .75rem + 2px);*/
	padding: .375rem .75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #495057;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid #ced4da;
	border-radius: .25rem;
	box-sizing: border-box;
	font-family: inherit;

}

.label {

	color: #555;
	font-size: 1rem;
	text-align: center;
	margin-top: 10px;
	margin-bottom: 20px;

}

.subtle {
    
    color: #5999B1;
    
}

pre code {
 
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-all;
    word-break: break-word;
    display: block;   
    padding: 10px;
    background: #E3EEF2;
    border: #66A3B7 2px solid;
    border-radius: 5px;
    
    
}

.simple-border {

	border: 1px solid #aaa;
	/*width: 100%;*/
	/*display: table;*/

}

.table-container {

	overflow-x: auto;

}

.yellow-background {

	background: #f0e130;

}

.orange-background {

	background: #ffa500;

}

.orangered-background {

	background: #ff4500;
	color: #fff;

}

.homepage-header {
    
    background: #eee;
    text-align: center;
    padding: 40px 0;
    
}

.homepage-header h1 {
    
    font-size: 3.5rem;
    border: none;
    text-align: center;
    margin-bottom: 5px;
    
}

.homepage-header p {
    
    font-size: 1.5rem;
    max-width: 750px;
    margin: 0 auto;
    
}

.articles_container {
    
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    
}

.article_preview {
    
    border-radius: 10px;
    border: #ccc 1px solid;
    padding: 20px;
    max-width: 380px;
    margin: 20px;
    
}

.article_preview h2, .article_preview .primary_meta {
    
    border-left: none !important;
    padding-left: 0 !important;
    
}

.article_preview img {
    
    width: 100%!important;
    height: auto;
    
}

.read-more {
    
    margin-top: 20px;
    display: flex;
    justify-content: center;
    
}

.read-more a {
    
    margin: 0 auto;
    padding: 5px 10px;
    background: var(--link-color);
    color: #fff;
    border-radius: 5px;
    text-transform: capitalize;
    font-size: 1.5rem;
    
}

.negative-margin {

	margin: -10px 0;

}

.flex-box {

	display:flex;
	justify-content: space-between;
	width: 100%;
	margin: 20px 0;

}

.flex-box-item {

	padding: 5px 10px;
	flex-grow: 1;
	text-align: center;
	border-right: 5px solid #fff;

}

.flex-box-item:last-child {

	border-right: none

}

blockquote {

  background: #f9f9f9;
  border-left: 10px solid #ccc;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
  quotes: "\201C""\201D""\2018""\2019";
  position: relative;

}

blockquote:before {

	color: #ccc;
	content: open-quote;
	font-size: 4em;
	line-height: 0.1em;
	margin-right: 0.25em;
	vertical-align: -0.4em;

}

blockquote:after {

	color: #ccc;
	content: close-quote;
	font-size: 4em;
	line-height: 0.1em;
	margin-left: 0.25em;
	margin-top: 0.25em;
	vertical-align: -0.4em;
	position: absolute;
	bottom: 0;
	right: 0;

}

blockquote p {

	display: inline;

}

.nudge {

	margin-top: 50px;

}

.logo_area {

float: left;

}

.logo {

	/*width: 200px;*/
	height: 40px;
	padding-top: 18px;

}

#tagline {

	margin-left: 0px;
	margin-top: 28px;
	font-style: italic;


}

.clear {

	clear: left;

}

.container {

	min-width: var(--min-width);
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 20px;

}


/* The progress container (grey background) */
.progress-container {


	position: fixed; /* for unsupported browsers */
	position: sticky;
	top: 0;
	width: 100%;
	height: 8px;
	background: #ccc;
	/*position: fixed;
	top: 0;*/
	z-index: 100;
	overflow: hidden;
	/*width: 100%;*/
	/*background-color: #f1f1f1;*/

}

/* The progress bar (scroll indicator) */
.progress-bar {

	height: 8px;
	background: #4caf50;
	background: var(--highlight-color);
	width: 0%;

}

.top_bar {

	/*position: fixed;
	z-index: 100;
	top: 0;
	left: 0;
	width: 100%;*/
	position: relative;
	/*background: #fff;
	background: #ffe9cc;
	background: #522617;
	background: #264653;*/
	background: #333;
	/*background: #197278;*/
	/*background: #3d5a80;*/
	/*background: #074373;*/
	height: 100px;
	color: #ccc;
	/*border-bottom: #ccc 1px solid;*/
	/*border-bottom: #2a9d8f 50px solid;*/

	vertical-align: middle;

}

.top_bar ul {

    padding: 0;
    margin: 0;
	float: right;
	list-style: none;
	margin-top: 30px;
	/*background: #000;*/

}

.top_bar ul, .top_bar li {
	
	display: inline;

}


.top_bar li a {

	padding: 10px;
	/*margin: 0 10px;*/
	text-transform: uppercase;
	font-weight: normal;
	/*color: #666;*/
	color: #ccc;
	text-decoration: none;
	/*font-size: 20px;*/
	/*background: #111;*/
	/*background: #ccc;*/
	float: left;
	font-size: 16px;
	/*border-bottom: #ccc 3px solid;*/

}

.top_bar li a:hover {

	/*background: var(--link-color);*/
	color: var(--link-color);

}


.top_bar li a img {

	margin-top: -5px;
	transition: filter .2s ease-in-out;

}




.social_media_icon {

	transition: filter .2s ease-in-out;
	-webkit-filter: grayscale(100%); /* Ch 23+, Saf 6.0+, BB 10.0+ */
	filter: grayscale(100%); /* FF 35+ */

}


.social_media_icon:hover {

	-webkit-filter: grayscale(0%); /* Ch 23+, Saf 6.0+, BB 10.0+ */
	filter: grayscale(0%); /* FF 35+ */

}

.main_flex {

	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	/*justify-content: center;*/
	margin-bottom: 120px;
	margin-top: 60px;

}

.left_col {

	/*min-width: 380px;
	max-width: 680px;*/
	width: 640px;
	
	margin-right: 20px;
	flex-grow: 1;
	overflow: hidden;


}

h1 {
	
	border-left: #FFA500 2px solid;
	border-left: var(--highlight-color) 3px solid;
	padding-left: 10px;
	font-size: 3.2rem;
	font-family: Times New Roman;
	text-align: left;
	margin-bottom: 0px;

}


h1 a {

	color: var(--main-text-color);

}

h1 a:hover {

	text-decoration: none;

}

.homepage-h2 {

	border-left: #FFA500 2px solid;
	border-left: var(--highlight-color) 3px solid;
	padding-left: 10px;
	padding-top: 0;
	font-size: 2.5rem;
	font-family: Times New Roman;
	text-align: left;
	margin-bottom: 0px;

}


.homepage-h2 a {

	color: var(--main-text-color);

}

.homepage-h2 a:hover {

	text-decoration: none;

}

.photo_credit {

	color: #666;
	font-size: 12px;

}

.main_text {

	/*position: relative;
	z-index: 1;*/

}

h2 {

	font-size: 2.2rem;
	background: #fff;
	padding-top: 20px;
	padding-bottom: 5px;

}

h2 .sticky {

	/*position: -webkit-sticky;*/
	position: sticky;
	top: 0px;
	z-index: 1;
	display: block;
	border-bottom: #ccc 3px solid;

}

.h3 {

	/*margin-top: 2em;
	margin-bottom: 0.5em;*/
	margin: 0.5em 0 0.2em 0;
	font-size: 25px;

}

/*.sticky {

	position: sticky;
	top: 0;
	z-index: 1;

}*/


/*.main_text h3 .contents {

	position: absolute;
	right: 0;

}*/

.post_spacer{

	display: block;
	width: 100%;
	height: 20px;
	margin-bottom: 10px;

}


#top_of_page_button {

	position: fixed;
	/*right: 10px;*/
	left: 50%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
	bottom: 10px;
	z-index: 98;
    padding: 10px;
    text-transform: uppercase;
    font-size: 16px;
	color: #fff;
	background: #333;
	color: #fff;
	font-size: 14px;
    
}

#top_of_page_button:hover {

	text-decoration: none;

}

#top_of_page_button img {

    width: 12px;
    margin-right: 5px;

}

.menu_container {

  display: inline-block;
  cursor: pointer;
  position: absolute;
  
  right: 0;

}

.contents_show .contents {

	position: fixed;
	top: 0;
	background: #f00;

}

.bar1, .bar2, .bar3 {
  width: 35px;
  height: 5px;
  background-color: #333;
  margin: 6px 0;
  transition: 0.4s;
}

.change .bar1 {
  -webkit-transform: rotate(-45deg) translate(-9px, 6px);
  transform: rotate(-45deg) translate(-9px, 6px);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
  -webkit-transform: rotate(45deg) translate(-8px, -8px);
  transform: rotate(45deg) translate(-8px, -8px);
}

.main_text h4 {

	/*margin-top: 2em;
	margin-bottom: 0.5em;*/
	margin: 1em 0 0.2em 0;
	font-size: 18px;
	font-size: 1.5rem;
	position: relative;

}

.left_col .primary_meta {
	
	border-left: #FFA500 3px solid;
	border-left: var(--highlight-color) 3px solid;
	padding-left: 10px;
	font-weight: normal;
	/*font-size: 15px;*/
	text-align: left;
	margin-bottom: 20px;
	margin-top: 0;

}


.uppercase {

	text-transform: uppercase;

}

.left_col .secondary_meta {

	/*text-transform: uppercase;*/
	margin-top: 10px;
	color: #666;
	/*font-size: 0.9rem;*/

}


.main_text {

	position: relative;

}

.main_image {

	position: relative;
	margin: 10px 0;
	/*width: 100%;
	display: block;*/

}

.main_image img {

	width: 100%;
	display: block;

}

.photo_credit {

	position: absolute;
	bottom: 0;
	right: 0;

	/*width: 100%;*/
	margin: 0;
	padding: 10px;
	color: #eee;
	font-size: 12px;
	background: rgba(0, 0, 0, 0.5);

}

.photo_credit a {

	color: #eee;
	text-decoration: none;
	font-weight: bold;

}

.photo_credit a:hover {

	text-decoration: underline;

}

.front_page_post_image {

	position: relative;
	float: left;
	margin: 0 10px 5px 0;

}

.front_page_post_image img {

	position: relative;
	max-width: 300px;
	display: block;

}

.right_col {

	flex-grow: 1;
	/*width: 300px;*/
	/*background: #eee;*/

}

/*.right_col_holder {

	display: flex;
	flex-wrap: wrap;
	flex-direction: row;

}*/

.box {

	min-width: var(--min-width);
	/*background: #ddd;*/
	background: #fff;
	/*background: #2a9d8f;*/
	margin: 0 0 20px 0;
	/*max-width: 300px;*/

}

/*.right_col_holder .box:last-child {

	margin: 0;

}*/

.box h5 {

	font-size: 20px;
	/*color: #fff;*/
	color: #555;
	background: #777;
	background: #ddd;
	padding: 5px 10px;
	font-weight: bold;
	/*margin-bottom: 10px;*/

}

.box ul {

    padding: 0;
    margin: 0;
	list-style: none;

}

.box ul a {

	display: block;
	color: #333;
	text-decoration: none;
	/*padding: 10px 10px;*/
	padding-bottom: 10px;
	font-size: var(--font-size-desktop);
	
	/*border-bottom: #ccc 1px solid;*/


  /*display: flex;*/


	/*display: flex;
	flex-wrap: wrap;
	flex-direction: row;*/

}

.box li a:first-child {

	padding-top: 10px;

}

.box ul a:hover {

	color: var(--highlight-color);
	

}

.box ul a:hover  .box_link_title {

	background: #333;

}

.box ul a:hover  .box_link_meta {

	color: #888;

}

.box ul a img {

	/*width: 270px;*/
	object-fit: contain;
	margin-bottom: 10px;

}

.box_img {

	display: block;
	/*margin-bottom: 5px;*/
	height: 200px;
	/*width: 50px;*/
	/*background-size: auto 200px;*/
	max-width: 600px;
	background-position: center;
	position: relative;
	background-size: cover;
	

}

.box_link_title {

	padding: 5px 10px;
	background: #fff;
	margin-bottom: 10px;
	margin-top: 2px;
	position: absolute;
	top: 20px;
	left: 10px;
	margin-right: 20px;

}

.box_link_meta {

	color: #666;
	text-transform: uppercase;
	font-size: 12px;

}

.about_author {

	background: #eee;
	padding: 20px;
	margin-bottom: 20px;
	margin-top: 40px;

}

.about_author p {

	margin: 1.5em 0 0 0;

}

.about_author img {

	width: 125px;
    height: auto;
	float: left;
	border-radius: 10px;
	margin: 0 20px 10px 0;

}

.author_name a {
	text-decoration: none;
}

.author_name {
    
	margin: 0;
	padding: 0;
	margin-bottom: -1em;
	
}

#newsletter_signup_foot {

	background: #39A0ED;
	/*background: #4C6085;*/
	background: #0EB1D2;
	background: #255C99;
	padding: 20px;
	margin-bottom: 20px;
	/*color: #fff;
	font-weight: bold;*/

}

.email_area {

	position: relative;
	height: 50px;
	overflow: hidden;
}

.newsletter_email {

	display: block;
	width: 100%;
	height: 100%;
	/*padding: 20px;*/
	padding: 0 70px 0 20px;
	font-size: 17px;

}

.newsletter_button {

	position: absolute;
	top: 5px;
	right: 5px;
	/*width: 60px;*/
	padding: 0 10px;
	height: 40px;
	background-color: #fff;
	overflow: none;
	cursor: pointer;
	border: none;
	background-color: var(--highlight-color);
	color: #fff;
	font-size: 15px;
	border-radius: 5px;

}

.about_author .author_name {

	text-transform: uppercase;
	margin: 0 0 10px 0;

}

.social-media ul, .social-share ul {

    padding: 0;
    margin: 0;
	display: inline;

}

.social-media li, .social-share li  {

	margin-right: 20px;
	display: inline;

}

.social-media li:last-child, .social-share li:last-child  {

	margin-right: 0px;

}

.social-share {
    
    margin-top: 40px;
    
}

.social-share ul {
    
    display: flex;
    justify-content: space-between;
    
}

.social-share .bi {
    
    margin-right: 8px;
    
    
}

.social-share a {
    
    border-radius: 5px;
    background: var(--highlight-color);
    padding: 10px 15px;
    color: #fff;
    
    display: flex;
    align-items: center;
    
}

.smfoot {
	position: relative;
	top: 0;
	right: 0;
	margin: 0 auto 10px auto;
}

.footer {
	position: relative;
	/*height: 150px;*/
	/*background: #4C8F96;*/
	background-color: #333;
	margin-top: 60px;
	z-index: 99;
	color: #AAA;
}

.footer-content {
	/*background: #CCC;*/
	/*height: 80px;*/
	margin: 10px auto 0 auto;
	padding: 45px 0;
	text-align: center;
}


.footer-content p {
	margin: 10px 0;
}

.footer-content a {
	color: #FFF;
	text-decoration: none;
}

.footer-content a:hover {
	text-decoration: underline;
}


@media screen and (max-width: 999px) {

	body {

		font-size: var(--font-size-mobile);
	
	}


	.left_col {

		flex-grow: 1;
		margin-right: 0px;

	}

	.main_text {

		max-width: 610px;
		margin: 0 auto;

	}

	.right_col {

		display: flex;
		flex-wrap: wrap;
		
		flex-grow: 1;
		margin-right: 0px;
		flex-direction: row;


		/*display: flex;
		flex-wrap: wrap;
		flex-direction: column;*/

	}

	.box {

		margin: 0 10px 20px 10px;
		flex-grow: 1;
		flex-basis: 0;

	}

}


@media screen and (max-width: 620px) {

	.top_bar {

		height: 50px;

	}


	.logo {

		/*width: 200px;*/
		height: 20px;
		padding-top: 15px

	}

	.top_bar ul, #tagline {

		display: none;

	}

	.right_col {

		flex-grow: 1;
		margin-right: 0px;
		flex-direction: column;

	}

	.box {

		margin: 0 0 20px 0;
		flex-grow: 1;

	}


	.about_author img {

		width: 80px;
		float: left;
		border-radius: 10px;
		margin: 0 20px 10px 0;

	}

}


@media screen and (max-width: 500px) {



	.main_flex {

		margin-top: 10px;

	}

	table {

		/*font-size: 0.6rem;*/
		
	}

	td, th {

		padding: 2px 10px;

	}


	.flex-box {
		/*font-size: 0.8rem;*/
		flex-direction: column;
	}

	.flex-box-item {

		padding: 2px 5px;
		border-bottom: 2px solid #fff;
		border-right: none;

	}

	.container {

		padding: 0 10px;

	}

	.left_col h1, .left_col .primary_meta, h2, .homepage-h2 {

		border: none;
		padding: 0;

	}
	
    h1, .homepage-h2 {
     
        font-size: 2rem;
        
    }
	
	h2 {
	    
	    font-size: 1.5rem;
	    
	}
	
    h3 {
     
        font-size: 1.5;
        
    }
	
	
    h4 {
     
        font-size: 1.2;
        
    }
    
    .front_page_post_image {

    	margin: 0.75em 10px 5px 0;
    	
    }

    .front_page_post_image img {

    	position: relative;
    	max-width: 150px;
    	display: block;

    }
    
    
    .article_preview {
        
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        width: 100%;
        border-bottom: #ccc 1px solid;
        margin-bottom: 20px;
        
    }
    
    .social-share ul {
        
        flex-direction: column;
        
    }
    
    .social-share li {
        
        margin-bottom: 20px;
        width: 100%;
        
    }
    
    .social-share li:last-child {
        
        margin-bottom: 0px;
        
    }
    
    .social-share a {
        
        display: block;
        
    }

	/*.left_col h1 {

		font-size: 22px;

	}*/

}
