
@media only screen and (max-width: 640px) {  /* max-width 40em, mobile-only styles, use when QAing mobile issues */

img {
	max-width: 100%;
	height: auto;
}

p a img[align="left"] {
	margin-right: 10px;
}

.wrapper {
	width: 100%;
}

#top {
	width: 100%;
	height: 100px; /*300px;*/
	background: url('img/main-nav-pattern.png') #0c3d3c repeat-y; /* Old browsers */
	background: -moz-linear-gradient(top,  #45bcc3 0%, #0c3d3c 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#45bcc3), color-stop(100%,#0c3d3c)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #45bcc3 0%,#0c3d3c 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #45bcc3 0%,#0c3d3c 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #45bcc3 0%,#0c3d3c 100%); /* IE10+ */
	background: linear-gradient(to bottom,  #45bcc3 0%,#0c3d3c 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#45bcc3', endColorstr='#0c3d3c',GradientType=0 ); /* IE6-9 */
	background: url('img/top-background.jpg') no-repeat left center #41ab07; /*right top #000;*/
	padding-top: 5px;
}

#top .logo {
	margin: 0 auto;
	float: none;
	display: block;
	max-width: 98%;
	background-size: contain;
        /*
	position: relative;
	top: 195px;
        */
	width: 250px;
	max-height: 98%;
	margin-top: 5px;
}

#top .banner {
	display: none;
}

#main-nav-container {
	width: 98%;
	margin: 10px auto 0; /*40px auto 0;*/
}

#main-nav {
	width: 95%; /*85%;*/ /* auto; */
}

#main-nav li {
	display: inline;
	float: none;
	margin: 0 0px 0 0;
	padding: 0 0 0 10px;
}

/*
#main-nav li {
	display: none;
}
*/
/*
#main-nav li:first-child,
#main-nav li:nth-last-child(1),
#main-nav li:nth-last-child(2),
#main-nav li:nth-last-child(3) {
*/
/*
#main-nav li:nth-child(1),
#main-nav li:nth-child(2),
#main-nav li:nth-child(3),
#main-nav li:nth-child(4) {
	*//*display: list-item;*//*
	display: inline;
}
*/

/*
#main-nav li:nth-child(4) {
	margin: 0;
}
*/

#main-nav a {
	font-size: 16px; /*12px;*/
}

#sidebar {
	display: none;
}

#content {
	width: 100%;
	float: none;
}

#content .top-ads img {
	margin: 0 auto;
	width: 98%;
}

#content .page {
	/*margin: 10px 1% 0;*/
	margin: 10px 5px 0;
	padding: 40px 20px 10px 20px;
}

.page .text table {
	width: 100%; /* max-width: 100%; */
}

.page .text iframe {
    max-width: 100%;
    width: 100%;
}

#footer {
	width: 98%;
}

}


/*----- Show/hide for small screens -----*/

@media only screen and (max-width: 640px) {  /* max-width 40em, mobile-only styles, use when QAing mobile issues */

.hide-on-small {
	display: none;
}

.show-on-small-only {
	display: block;
}

}


@media only screen and (min-width: 641px) {  

.show-on-small-only {
	display: none;
}

}

/*----- /Show/hide for small screens -----*/


/*----- "AddThis" -----*/
.at4-recommended .at-logo, #at-recommendedside .at-logo {
	overflow: hidden !important;
}
/*----- "/AddThis" -----*/
