/*
Theme Name:MHS Custom Version 4.1
Theme URI: http://mainehost.com
Author: MHS
Author URI: http://mainehost.com
Description: MHS Custom
Version: 4.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mhs41


/* Body & Wrapper */
BODY, HTML{
background-color:#dec89f;
color: #000;
font-family:"Open Sans",Helvetica, Arial, Verdana, sans-serif;
font-size:17px;
line-height:1.5em;
font-weight: 400;
margin:0px;
}

H1, H2{color:#1b5b9c; font-weight:400; line-height:normal;  font-family: "Della Respira";}
H3{color:#ee4d19; font-weight:400; line-height:normal;  font-family: "Della Respira";}
H4{color:#1b5b9c; font-weight:400; line-height:normal;  font-family: "Della Respira"; font-size:1.3em;}
.page-title-top{border-bottom:1px solid #e95812;  margin-top:.5em;}
.hilite{color:#c10538;}

A:link { color: #1b5b9c;
text-decoration:none;
font-weight:700;
}
A:visited { color: #1b5b9c;
font-weight:700;
}
A:active { color: #1b5b9c;
}
A:hover { color: #e95812;
}


A:link.reftext { color: #5d5d5d; font-size:.8em; font-weight:400;
}
A:visited.reftext { color: #5d5d5d; font-size:.8em; font-weight:400;
}
A:active.reftext { color: #5d5d5d;
}
A:hover.reftext { color: #666;
}

#maintable{width:100%; margin: 0 auto; overflow:hidden; 

}
/* Head */
#topleft{float:left; width:33.45%; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;}
#logo{float:left; width:33.1%; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;}
#topright{float:left; width:33.45%; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;}
#toprightalt{display:none; text-align:center;}
#header{-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;height:auto; width: 100%; margin:0 auto; max-width:1100px; position:relative; }
#topnav{clear:both; width:100%; background-color:#2d300e;/*background-image: url("graphics/navbg.jpg");*/ height: 36px; }
#topnavin{clear:both; padding:.5em 0em .5em 0em; width:95%;}

/* Content */
#contentbg{clear:both;background-color:#FAF5E1; width: 100%; overflow:auto;}

#contentinnerfull{width:97%;-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box; margin:0 auto; min-height:400px; margin:0 auto; max-width:1080px;position:relative;  
}
#contentinner{float:left;width:65%; padding:1em;-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;
}
#sidebar{width:30%; max-width:292px; padding:1em; position:relative; float:right; min-height:440px; background-color:#eddfc5; -moz-border-radius: 8px;
	-khtml-border-radius: 8px;
	-webkit-border-radius: 8px;
	border-radius: 8px;
	padding:8px; margin-top:2em;}

/* Foot */
#homebox1,#homebox2,#homebox3,#homebox4{-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;
float:left; width:24%;
padding:.5em 1em .25em 1em;
margin-right:1%;
font-size:.9em;
-moz-border-radius: 8px;
	-khtml-border-radius: 8px;
	-webkit-border-radius: 8px;
	border-radius: 8px;
	background-color:#eddfc5;
	background-position:bottom center;
	background-repeat:no-repeat;
	min-height:435px;
}
#homebox5{clear:both; padding-top:1em; width:100%;}
#footbg{clear:both; width:100%; min-height: 45px;
padding:8px 0px;
	color:#000;
	border-top:2px solid #2d300e;
}
#footin{width: 100%; margin:0 auto; max-width:1100px; text-align:center; color:#004e7f; font-size:.9em;}
.divider, .required{color:#c10538;}

/* Misc */
#floatbox{float:left; margin:0% 1% 1% 0%; width:55%; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box; padding:0em 0em;}
#floatboxe{float:left; margin:0% 1% 1% 0%; width:43%; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box; padding:0em 0em 0em 1em; }
#seal{position:absolute; z-index:999; right:15px; top: 15px; width:200px;}
iframe{max-width:100%;}
#twocolleft{width:45%;float:left;}
#twocolright{width:45%;float:right;}
.ui-widget-header{
 border: 0px solid #d4d1bf;
background: none; font-size:.8em;
}
#mobilehide{display:block;}
#mobileshow{display:none;}

.rounded{
-moz-border-radius: 8px;
	-khtml-border-radius: 8px;
	-webkit-border-radius: 8px;
	border-radius: 8px;
	padding:8px;
	background-color:#C5D6E8;
	margin:5px;
}
.shadow{
-moz-box-shadow: 0px 0px 9px #000;
-webkit-box-shadow: 0px 0px 9px #000;
box-shadow: 0px 0px 9px #000;
}
.noshadow IMG{-moz-box-shadow: 0px 0px 0px #000;
-webkit-box-shadow: 0px 0px 0px #000;
box-shadow: 0px 0px 0px #000;}
UL.breadcrumb, UL.variations{margin:0px; padding:0px;}
HR{border: none 0; 
border-top: 1px solid #1b5b9c;
margin: 10px auto 0 0;}
.widgettitle{font-size:1.1em; text-transform:uppercase;}
.widget UL{list-style:none;padding-left:0px;}
LI.widget{ list-style: none; margin-bottom:2em; padding-left:0px;}
.widget UL LI{ list-style: none; margin:0em 0em 1.1em 0em;padding-left:0px; }
.widget UL LI A:link, .widget UL LI A:visited{color:#00afff;}

.sticky{}
.gallery-caption{}
.bypostauthor{}
/*	WP Images */

img.centered {
	display: block;
	margin-left: auto;
	margin-right: auto;
	}

img.alignright {
	padding: 4px;
	margin: 0 6px 4px 15px;
	display: inline;
	}

img.alignleft {
	padding: 4px;
	margin: 0 15px 4px 6px;
	display: inline;
	}

.alignright {
	float: right;
	}

.alignleft {
	float: left
	}
/* End Images */



/* Captions */
.aligncenter,
div.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	text-align: center;
	padding-top: 4px;
	margin: 10px;
	-moz-box-shadow: 0px 0px 9px #000;
-webkit-box-shadow: 0px 0px 9px #000;
box-shadow: 0px 0px 9px #000;
}

.wp-caption img {
	margin: 0;
	padding: 0;
	border: 0 none;
}

.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	padding: 0 4px 5px;
	margin: 0;
}
/* End captions */


/* TOP NAV */

.responsiveSelectContainer {height:1.25em; position:relative; z-index:100;}
/* hack to correct IE5.5 faulty box model */
* html .responsiveSelectContainer {width:696px; w\idth:695px;}
/* remove all the bullets, borders and padding from the default list styling */
.responsiveSelectContainer ul {padding:0;margin:0;list-style-type:none; }
.responsiveSelectContainer ul ul {width:100px;}
/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.responsiveSelectContainer li {float:left;position:relative; }

/* style the links for the top level */
.responsiveSelectContainer a, .responsiveSelectContainer a:visited {display:block; font-size:1em; font-weight:400; text-decoration:none; color:#737373; padding:5px 15px; height:1.25em; min-height:1.25em; line-height:1.25em; vertical-align:middle; border-right:1px solid #737373; text-transform:uppercase;  }


/* a hack so that IE5.5 faulty box model is corrected */
* html .responsiveSelectContainer a, * html .responsiveSelectContainer a:visited {}

/* style the second level background */
.responsiveSelectContainer ul ul a.drop, .responsiveSelectContainer ul ul a.drop:visited {}
/* style the second level hover */
.responsiveSelectContainer ul ul a.drop:hover{}
.responsiveSelectContainer ul ul :hover > a.drop {}
/* style the third level background */
.responsiveSelectContainer ul ul ul a, .responsiveSelectContainer ul ul ul a:visited {background:#E3001E;} /*3rd OFF */
/* style the third level hover */
.responsiveSelectContainer ul ul ul a:hover {background:#F22D47;} /*3rd ON */


/* hide the sub levels and give them a positon absolute so that they take up no room */
.responsiveSelectContainer ul ul {visibility:hidden;position:absolute;height:0;top:1.65em;left:0; width:150px; border-top:0px solid #000;}
/* another hack for IE5.5 */
* html .responsiveSelectContainer ul ul {top:1.65em;t\op:1.65em; vertical-align: middle;}

/* position the third level flyout menu */
.responsiveSelectContainer ul ul ul{left:229px; top:0px; width:99px;}

/* position the third level flyout menu for a left flyout */
.responsiveSelectContainer ul ul ul.left {left:229px;}

/* style the table so that it takes no ppart in the layout - required for IE to work */
.responsiveSelectContainer table {position:absolute; top:0; left:0; border-collapse:collapse;}

/* style the second level links - SECOND OFF */
.responsiveSelectContainer ul ul a, .responsiveSelectContainer ul ul a:visited {padding-top:3px; padding-left:10px; width: 170px; display:block; font-size:.8em; font-weight:normal; text-decoration:none;  color:#FFF; background-color:#a1a1a1; height:1.25em; min-height:1.25em; line-height:1.25em; vertical-align:middle; text-align:left; border-bottom:1px solid #FFF; border-right:0px;   -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=92)";
  filter: alpha(opacity=92);
  opacity: 0.92;}
/* yet another hack for IE5.5 */
* html .responsiveSelectContainer ul ul a, * html .responsiveSelectContainer ul ul a:visited {width:115px;w\idth:113px;}

/* style the top level hover */
.responsiveSelectContainer a:hover {background-color:#a1a1a1; color:#FFF;}
.responsiveSelectContainer :hover > a  {background-color:#a1a1a1; color:#FFF;} /* TOP OVER */

.responsiveSelectContainer ul ul a:hover {background-color:#737373;}
.responsiveSelectContainer ul ul :hover > a {background-color:#737373;} /* 2nd OVER */

/* make the second level visible when hover on first level list OR link */
.responsiveSelectContainer ul li:hover ul,
.responsiveSelectContainer ul a:hover ul{visibility:visible; }
/* keep the third level hidden when you hover on first level list OR link */
.responsiveSelectContainer ul :hover ul ul{visibility:hidden;}
/* make the third level visible when you hover over second level list OR link */
.responsiveSelectContainer ul :hover ul :hover ul{ visibility:visible;}


.responsiveMenuSelect select {
   background: transparent;
   width: 268px;
   padding: 5px;
   font-size: 16px;
   line-height: 1;
   border: 0;
   border-radius: 0;
   height: 34px;
   -webkit-appearance: none;
   }

.responsiveMenuSelect {
   width: 240px;
   height: 34px;
   overflow: hidden;
   background: #ddd;
   border: 1px solid #ccc;
   }
   
@media screen and (max-width: 965px){
#floatbox, #floatboxe{width:100%;}   
}
@media screen and (max-width: 925px){
#homebox3{clear:both; margin-top:1em;}
#homebox4{margin-top:1em;}
#homebox1,#homebox2,#homebox3,#homebox4{-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;
float:left; width:48%;min-height:480px;

}
}

@media screen and (max-width: 780px){
#contentinner{float:none;width:100%; padding:1em; margin:0 auto;
}
#sidebar{float:none;width:100%; margin:1em auto; max-width:600px;}
}


@media screen and (max-width: 630px){
#topleft{display:none;}
#logo{float:left; width:50%; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;}
#topright{float:left; width:50%; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;}
#seal{display:none;}
}
@media screen and (max-width: 560px){
#floatbox{width:100%; clear:both;}
}
@media screen and (max-width: 460px){

#logo{float:none; width:95%; margin:0 auto;}
#topright{display:none;}
#toprightalt{display:block; float:none; width:95%; margin:0 auto;}
#toprightalt H1{margin:0px;padding:0em 0em .5em 0em;}
#homebox1,#homebox2,#homebox3,#homebox4{clear:both;-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;
float:none; width:96%;
padding:.5em 1em .25em 1em;
margin:1em auto 0em auto;

}
}

@media screen and (max-width: 425px){
#worksbox{width:50%;
	}
#logo{line-height:45px; padding:20px 0px 10px 0px;}
}
