/* Main CSS document */

body {
	background: white;
	color: black;
	font-size: 20px;
	line-height: 32px;
	word-wrap: break-word !important;
	font-family: Verdana,Arial,Helvetica,sans-serif;
	margin-left: auto;
	margin-right: auto;
}
	
#container {
	width: 1008px;
	margin: 0 auto;
	background: #ffffff /*#FDFDFD;*/
}

#topframe {
	background-image: url("../images/home-banner.png");
	background-color: #ffffff;
	background-repeat: no-repeat;
	padding-top: 30px;
}

#sitetitle {
	font-size: 65px;
	text-align: center;
}

#sitetitle a {
	text-decoration: none;
	color: #000000;
}

#sitetitlesub {
	font-size: 15px;
	margin-top: 15px;
	text-align: center;
}

#sitetitlesub a {
	text-decoration: none;
	color: #000000;
}

nav {
	margin: 20px 0 0 0;
	background-color: #333333;
	padding-left: 10px;
	width: 100%;
}

nav ul {
	padding: 0;
	margin: 0;
	list-style: none;
	position: relative;
	z-index: 1;
}
	
nav ul li {
	display:inline-block;
	background-color: #333333;
}

nav a {
	display: block;
	padding: 0 18px;
	color: #ffffff;
	font-size: 19px;
	line-height: 60px;
	text-decoration: none;
}

nav a:hover { 
	color: #e64a19;
}

/* Dropdown hidden by default */
nav ul ul {
	display: none;
	position: absolute; 
	top: 60px;
}
	
/* Dropdowns on hover */
nav ul li:hover > ul {
	display: inherit;
}

/* Color and padding for first nav element */
nav ul li:first-child > a {
	color: #e64a19;
	padding-right: 12px;
}

nav ul ul li:first-child > a {
	color: #ffffff;
}

nav ul ul li:first-child > a:hover {
	color: #e64a19;
}

/* 1st dropdown */
nav ul ul li {
	width: 170px;
	float: none;
	display: list-item;
	position: relative;
	background-color: #333333;
	padding-left: 5px;
}

nav ul ul li a {
	color: #ffffff;
	font-size: 15px;
}

/* Nth dropdown	*/
nav ul ul ul li {
	position: relative;
	top: -60px; 
	left: 150px;
}
	
/* Dropdown symbol */
nav li > a:after { content: " \25BE"; } /* 2193 */
nav li > a:only-child:after { content: ''; }

/* Search frame */
#search {
	float: right;
	margin-top: -60px;
	padding-top: 15px;
	width: 27%;
	background-color: #333333;
	height: 45px;
	line-height: 20px;
	padding-right: 5px;
}

/* Main content div */
#content {
	/*border-top: 1px solid #aaaaaa;*/
	/*background-color: #fefefe;*/
	padding: 2em 1em;
	text-align: left;
	font-weight: normal;
	font-style: normal;
	font-size: 17px;
	line-height: 26px;
	clear: both;
}

#content > ul { list-style-type: disc; margin-left: 1em; margin-bottom: 17px; margin-top: 17px; padding-left: 0em; }
#content > ul li { margin-bottom: 7px; }

#content > ol { 
	list-style-type: decimal;
	list-style-position: outside;
	margin-top: 17px;
	margin-bottom: 17px;
	padding-left: 2em;
	display: table;
	/*counter-reset: bar;*/
}

#content > ol li { margin-top: 7px; margin-bottom: 7px; }
#content > ol li ol { margin-top: 7px; margin-bottom: 7px; list-style-type: upper-latin; }
#content > ol li ol li ol { margin-top: 7px; margin-bottom: 7px; list-style-type: lower-latin; }

/* Social links */
#soc {
	padding: 20px 15px 0px 15px;
	border-top: 1px solid #dddddd;
}

/* Recommended sites */
#recommended {
	background-color: #ffffff;
	color: #000000;
	border-top: 1px solid #dddddd;
	padding: 25px 15px 20px 15px;
	margin-bottom: 70px;
	margin-top: 20px;
	clear: both;
}

.recomlink {
	float: left;
	padding-right: 35px;
	font-size: 13px;
	font-weight: bold;
	text-transform: uppercase;
}

.recomlink  a {
	text-decoration: none;
}

.recomlink  a:hover {
	color: #e64a19;
}

/* Mon links */
.ingph {
	clear: both;
	margin: 1.75em 0;
}

#mon {
	border-top: 1px solid #dddddd;
	margin-top: 20px;
	margin-bottom: 25px;
	padding: 15px;
}

#mon p {
	font-weight: bold;
	text-transform: uppercase;
	line-height: 20px;
	margin-bottom: 1.5em;
}

/* Footer */
#footer {
	background-color: #333333; /*#333333;*/
	border-top: 1px solid #aaaaaa;
	padding-bottom: 20px;
	margin-top: 25px;
	margin-bottom: -8px;
	width: 100%;
}

#footer p {
	color: #ffffff; /*#ffffff;*/
	padding-left: 20px;
	font-size: 12px;
	line-height: normal;
}

#footer p > a {
	text-decoration: none;
	color: #e64a19;
}

#footer p > a:hover {
	color: #e64a19;
}

#footer p > a:visited {
	color: #e64a19;
}

#incontainer {
	width: 1008px;
	margin: 0 auto;
}

#navcontainer {
	display: flex;
    justify-content: space-between;
}

.navb {
	margin-top: 20px;
	margin-bottom: 20px;
	background-color: #333333;
	padding-left: 10px;
	width: 25%;
	float: left;
}

.navb ul {
	padding: 0;
	margin: 0;
	list-style: none;
	position: relative;
	}
	
.navb ul li {
	display: block;
	background-color: #333333;
	}

.navb a {
	display: block;
	padding: 2px 10px;
	color: #ffffff;
	font-size: 17px;
	line-height: 34px;
	text-decoration: none;
}

.navb a:hover { 
	color: #e64a19;
}

.vld {
	float: left;
	margin-right: 1em;
}

.imgvalign {
	vertical-align: top;
}

/* Headers */
h1, h2 { font-weight: bold; font-size: 24px; margin-top: 36px; line-height: 38px; }
h3 { font-weight: bold; font-size: 21px; margin-top: 31px; line-height: 34px; }
h4 { font-weight: bold; font-size: 18px; margin-top: 27px; line-height: 28px; }

h1 > a { color: inherit; text-decoration: none; }
h2 > a { color: inherit; text-decoration: none; }
h3 > a { color: inherit; text-decoration: none; }
h4 > a { color: inherit; text-decoration: none; }

h1 > a:hover { color: #e64a19; }
h2 > a:hover { color: #e64a19; }
h3 > a:hover { color: #e64a19; }
h4 > a:hover { color: #e64a19; }

/* General properties */
.underline_text { text-decoration: underline; }
.bold_text { font-weight: bold; }
.italic_text { font-style: italic; }
.italic_bold_text {font-style: italic; font-weight: bold; }
.red_text, .red_text_2 { color: #ff0000; }
.blue_text { color: #0000ff; }
.superscript { font-size: x-small; vertical-align: super; }
.striken { text-decoration: line-through; }
.clearsides { clear: both; }

/* Other styles */
.imgcaption {
	clear: both;
	font-size: 14px;
	line-height: 14px;
	color: #000088;
	margin-top: 0;
	margin-bottom: 1.75em;
	width: 800px;
}

.imgborder {
	border: 1px solid #dddddd; /*#333333;*/
	box-sizing: content-box;
	padding: 10px;
}

/* Float and width to create table-like layout */
.newarticle {
	float: left;
	width: 100%;
}	

.index_teaser {
	float: left;
	margin-top: 1.5em;
	width: 230px;
}

.newarticletext {
	float: left;
	width: 735px;
}

/* Image previews */
.thumbview {
	float: left;
	margin-right: 1em;
	margin-bottom: 1em;
	padding: 8px;
	border: 1px solid #dddddd;
	line-height: 17px !important;
	font-size: 17px !important;
}

/*.thumbview img {
	object-fit: contain;
	width: 128px !important;
	height: 128px !important;
}*/

.date {
	margin-bottom: 1em;
	padding-bottom: 1em;
	border-bottom: 1px solid #dddddd;
	width: 60%;
}

.date a {
	text-decoration: none;
}

.readmore {
	font-size: 19px;
	margin-bottom: 4em;
	/*text-transform: uppercase;*/
	/*clear: both;*/
}

.readmore a { text-decoration: none; }
.readmore a:hover { color: #e64a19; }

.sectiondiv { 
	clear: both;
	width: 60%;
	border-bottom: 1px solid #dddddd;
	margin-bottom: 1em;
}

.articlelink {
	font-size: 20px;
	line-height: 20px;
	margin-bottom: 0;
}

.spacer { height: 0.5em; }
.spacergrs { height: 1.5em; }
.negpadding { margin-top: -0.5em; }

/* Change margin for first instance of article link inside content div */
#content > .articlelink {
	margin-top: 2.5em;
}

#content > .articlelink ~ .articlelink {
	margin-top: 1em;
}

.articlelink  a {
	text-decoration: none;
}

.articlelink  a:hover {
	color: #e64a19;;
}

.articledate {
	font-size: smaller;
	margin-top: 0.25em;
	margin-bottom: 1.75em;
}

/* Video wrapper for mobile */
.videowrapper {
	float: none;
	clear: both;
	width: 100%;
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 25px;
	height: 0;
}

.videowrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Responsive menu for mobile */
#topnav {
	margin-top: 10px;
}

#topnav ul {
	position: absolute;
    list-style-type: none;
    margin: 0;
    padding: 0;
	clear: both;
}

#topnav li a {
    display:block;
    height: 60px;
    line-height: 60px;
    min-width: 150px;
    color: #ffffff;
    background-color: #555555;
    text-decoration: none;
    text-align: left;
	padding-left: 19px;
	font-size: smaller;
	width: 95%;
}

#topnav li a:hover {
    color: #e64a19;
}

/* Show menu label and default hidden */
.show-menu {
    text-decoration: none;
    color: #e64a19;
    background: #333333;
    text-align: left;
    /*padding: 17px 0;*/
	padding-left: 17px !important;
    display: none;
}
/* Hide checkbox */
input[type=checkbox]{
    display: none;
}
/* Show menu when hidden checkbox is checked */
input[type=checkbox]:checked ~ #menu{
    display: block;
}

/* Topnav responsive styles*/
@media screen and (max-width : 767px){
    /* Inline dropdown links */
    #topnav ul {
        position: static;
        display: none;
    }
    /* Item separation */
    #topnav li {
        border-top: 1px solid #ffffff;
    }
    /* Make all menu links full width */
    #topnav ul li, li a {
        width: 100%;
    }
    /* Display show menu link */
    .show-menu {
		padding: 14px 0;
        display:block;
		margin-top: 20px;
    }
}

/* Topnav not displayed on larger screens */
@media only screen and (min-width: 768px) {
	#topnav {
		display: none;
	}
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
	#container {
		width: auto;
	}
	
	nav {
		clear: both;
		width: 100%;
		box-sizing: border-box;
		padding-left: 0;
	}
	
	nav ul {
		position: absolute;
		background-color: #333333;
		padding-left: 7px;
		width: 100%;
		box-sizing: border-box;
	}
	
	#search {
		clear: both;
		width: 98%;
		border-top: 1px solid #ffffff;
		background-color: #333333;
		padding-bottom: 14px;
		padding-left: 3%;
		margin-top: 70px;
	}
	
	#content {
		margin-top: 4.75em;
	}
	
	nav a {
		padding: 0 8px;
	}
	
	.newarticletext  {
		width: 66%;
	}

	img {
		object-fit: contain;
		max-width: 100% !important;
		height: 100% !important;
	}

	.imgcaption {
		width: auto;
	}
	
	#footer {
		width: auto;
	}
	
	#incontainer {
		width: auto;
	}
}

/* Nav shown on larger screens */
@media only screen and (max-width: 767px) {
	nav {
		display: none;
	}
	
	/* Rescale all images proportionally to fit viewport */	
	img {
		object-fit: contain;
		max-width: 100% !important;
		height: 100% !important;
	}

	#container {
		width: auto;
		word-wrap: normal;
	}
	
	#sitetitle {
		width: 100%;
		font-size: 55px;
	}
	
	#sitetitlesub {
		font-size: 14px;
	}
	
	#search {
		clear: both;
		width: 97%;
		border-top: 1px solid #ffffff;
		background-color: #333333;
		padding-bottom: 14px;	
		padding-left: 3%;
		margin-top: 10px;
	}
	
	#content {
		/* background-color: #efefef; */
	}
	
	#recommended {
		margin-bottom: 5em;
	}
	
	#recommended:first-child {
		font-size: 28px;
	}
	.recomlink {
		width: auto;
		clear: both;
		font-size: 15px;
		line-height: 40px;
	}

	#incontainer {
		width: auto;
		margin: inherit;
	}
	
	#navcontainer {
		display: inherit;
		justify-content: inherit;
	}
	.navb {
		width: auto;
		clear: both;
	}
	
	.navb a {
		font-size: 20px;
		line-height: 44px;
	}
	
	#footer {
		padding-top: 1.5em;
		margin-top: 10px;
	}

	#footer p {
		font-size: 14px;
		padding-right: 3em;
		margin-top: 2em;
	}

	.index_teaser {
		float: none;
		width: 200px;
	}

	.newarticle {
		float: left;
		width: 100%;
	}	

	.newarticletext {
		float: left;
		width: auto;
	}
	
	.date {
		width: 100%;
	}
	
	.readmore {
		font-size: 21px;
	}
	
	.divider_ad {
		width: 100%;
	}
	
	.thumbview {
		width: 128px;
	}
	
	/* .thumbview:nth-child(even) {
		margin-right: 0;
	} */

	.imgborder {
		box-sizing: border-box;
	}
	
	.imgcaption {
		width: auto;
	}
	
	.imgvalign {
		vertical-align: baseline;
		margin-bottom: 1em;
	}
}
