/* accessibility */

/* 
menu links accesskeys 
*/
span.accesskey {
   text-decoration:none;
}

/* 
accessibility divs are hidden by default 
text, screenreaders and such will show these 
*/
.accessibility, hr {
   position: absolute;
   top: -999em;
   left: -999em;
}

/* 
definition tags are also hidden 
these are also used for menu links    
*/
dfn {
   position: absolute;
   left: -1000px;
   top: -1000px;
   width: 0;
   height: 0;
   overflow: hidden;
   display: inline;
}
/* end accessibility */


/* wiki style external links */
/* external links will have "(external link)" text added, lets hide it */
a.external span {
  position: absolute;
  left: -5000px;
  width: 4000px;
}

/* make some room for the image */
a.external {
/* css shorthand rules, read: first top padding 0 then right padding 12px then bottom then right */
  padding: 0 12px 0 0;
}
/* colors for external links */
a.external:link {
  color: #18507C;
/* background image for the link to show wiki style arrow */
  background: url(https://www.joesqualityhomeimprovements.com/tmp/cache/images/cms/external.gif) no-repeat 100% 0;
}
a.external:visited {
  color: #18507C; /* a different color can be used for visited external links */

/* 
Set the last 0 to -100px to use that part of the external.gif image for different color for active links 
external.gif is actually 300px tall, we can use different positions of the image to simulate rollover image changes.
*/
  background: url(https://www.joesqualityhomeimprovements.com/tmp/cache/images/cms/external.gif) no-repeat 100% 0; 
}

a.external:hover {
  color: #18507C;
/* Set the last 0 to -200px to use that part of the external.gif image for different color on hover */
  background: url(https://www.joesqualityhomeimprovements.com/tmp/cache/images/cms/external.gif) no-repeat 100% 0; 
  background-color: #C3D4DF;
}
/* end wiki style external links */


/* clearing */
/* 
clearfix is a hack for divs that hold floated elements. it will force the holding div to span all the way down to last floated item.
We strongly recommend against using this as it is a hack and might not render correctly but it is included here for convenience.
Do not edit if you dont know what you are doing
*/
	.clearfix:after {
		content: "."; 
		display: block; 
		height: 0; 
		clear: both; 
		visibility: hidden;
	}
	* html>body .clearfix {
		display: inline-block; 
		width: 100%;
	}
	
	* html .clearfix {
		/* Hides from IE-mac \*/
		height: 1%;
		/* End hide from IE-mac */
	}

/* end clearing */
/* Stylesheet: Accessibility and cross-browser tools Modified On 2006-07-25 21:22:32 */
/*****************
browsers interpret margin and padding a little differently, 
we'll remove all default padding and margins and
set them later on
******************/
* {
margin:0;
padding:0;
}

/*
Set initial font styles
*/
body {
   text-align: left;
   font-family: Roboto, Arial, Helvetica, sans-serif;
   font-size: 75.01%;
   line-height: 1em;
}

/*
set font size for all divs,
this overrides some body rules
*/
div {
   font-size: 1em;
}

/*
if img is inside "a" it would have 
borders, we don't want that
*/
img {
   border:0;
   padding: 2px 2px 2px 2px;
   margin: 10px 10px 10px 10px;
}

/*
default link styles
*/
/* set all links to have underline and bluish color */
a,
a:link 
a:active {
   text-decoration: underline;
/* css validation will give a warning if color is set without background color. this will explicitly tell this element to inherit bg colour from parent element */
   background-color: inherit; 
   color: #18507C; 
}

a:visited {
   text-decoration: underline;
   background-color: inherit;
  color: #18507C;                /* a different color can be used for visited links */
}


/* remove underline on hover and change color */
a:hover {
   text-decoration: none;
   background-color: #C3D4DF;
   color: #385C72;
}

div#sidebar p.img a:hover {background-color: #fff;}
div#main a:hover {background-color: #fff;}

/*****************
basic layout 
*****************/
body {
   
   color: #333;
   margin:1em; /* gives some air for the pagewrapper */
   background: #07508c url(../../uploads/images/qhigrad.png) repeat-x;
    
}

/* center wrapper, min max width */
div#pagewrapper {
   border: 10px solid #194071;
   margin: 10px auto;     /* this centers wrapper */
   max-width: 80em; /* IE wont understand these, so we will use javascript magick */
   min-width: 60em;
   background-color: #ffffff;
   color: black;
}


/*** header ***
we will hide text and replace it with a image
we need to assign a height for it
*/

div#header {
   height: 215px; /* adjust according your image size */
   background:url(../../uploads/images/roofer.jpg) no-repeat top right #fff;
   border-bottom: 3px solid #eb1c2f;        
}

div#header h1 a {
/* you can set your own image here */
   background:url(../../uploads/images/joesqc-logo.png) no-repeat 0 5px; 
   display: block; 
   height: 210px;             /* adjust according your image size */
   text-indent: -999em;  /* this hides the text */
   text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
   
}

div#search {
   float: right;
   width: 27em;     /* enough width for the search input box */
   text-align: right;
   padding: 0.6em 0 0.2em 0;
   margin: 0 1em;
}

div.breadcrumbs {
   padding: 1em 0 1.2em 1em; /* CSS short hand rule first value is top then right, bottom and left */
   font-size: 90%;             /* its good to set fontsizes to be relative, this way viewer can change his/her fontsize */
   margin: 0;              /* css shorthand rule will be opened to be "0 1em 0 1em" */
   border-bottom: 1px dotted #000;
   border-top:3px solid #eb1c2f;
}

div.breadcrumbs p {margin: 0 1em;}

 div.breadcrumbs span.lastitem { 
   font-weight:bold; 
 }


div#content {
   margin: 1.5em auto 2em 0; /* some air above and under menu and content */
   z-index:-3;
}
* html div#content {height:auto;}

div#main {
   float:right;    
   margin-right: 2%; /* and some air on the right */
   width:68%;
}

* html div#main {width: 68%;float:right;}

div#main img {border:3px solid #07508c;}


div#sidebar {
   position:absolute;
   width: 185px;    /* sidebar width, if you change this please also change #main margins */
   display: block;  /* FIX ie doublemargin bug */
   margin-left: 2%;
   background:#ffffff url(https://www.joesqualityhomeimprovements.com/tmp/cache/uploads/images/sidebarbg.png) repeat-x top;
   border-left:2px solid #07508c;
   border-right:2px solid #07508c;
   border-top:4px solid #07508c;
   border-bottom:4px solid #07508c;
   margin-right:83%;
   z-index:0;
   }

/* if sidebar doesnt include menu but content add class="hascontent" */
div#sidebar.hascontent {
   
   width: 185px;  /* make width smaller if there's padding, or it will get too wide for the floated divs in IE */
   
  }
div#sidebar img {padding: 10px 0 10px 0; margin:0 0 0 0;}

* html div#sidebar.hascontent {margin: 0 85% 10px 10px;width:185px;}
div#content p.img {text-align: center;margin: 5px 5px 5px 5px; z-index:0;}
div#sidebar ul {margin-left: 1.5em; padding-bottom: 2em;font-size:1.2em;}
div#sidebar ul.none{list-style-type:none;line-height:1.3em; padding-bottom:0;font-size: 1.3em;}
div#sidebar p {line-height: 1.4em; text-align:left;}

div#footer {
   clear:both;       /* keep footer below content and menu */
   color: #194071;
   background-color: #ebb21f; /* same bg color as in header */
   border-top:10px solid #194071;
}

div#footer p {
   font-size: 1em;
   padding: 1.5em;      /* some air for footer */
   text-align: center; /* centered text */
   margin:0;
}

div#footer p a {
   color: #fff; /* needed becouse footer link would be same color as background otherwise */
}

/* as we hid all hr for accessibility we create new hr with extra div element */
div.hr {
   height: 1px;
   margin: 1em;
   border-bottom: 1px dotted black;
}

/* relational links under content */
div.left49 {
  float:right;
  width: 66%;  /* 50% for both left and right might lead to rounding error on some browser */
}


div#map {text-align: center; border: 5px solid #194071; width:405px;}

div#sidebar p.copyright {text-align:center; font-size: 9px; color:#000000;}



/********************
CONTENT STYLING
*********************/
div#content {

}

/* HEADINGS */
div#content h1 {
   font-size: 2em;  /* font size for h1 */
   line-height: 1em;
   margin: 0;
}
div#content h2 {
   color: #194071; 
   font: small-caps bold 2em Asap, Arial, Helvetica, sans-serif;
   letter-spacing:2px;
   text-align: left; 
/* some air around the text */
   padding-left: 0.5em;
   padding-bottom: 1px;
/* set borders around header */
   border-bottom: 1px solid #e7ab0b; 
   border-left: 1.1em solid #e7ab0b; 
   line-height: 1.5em;
/* and some air under the border */
   margin: 0 0 1.5em 0;
}
div#content h3 {
   color: #294B5F; 
   font-size: 1.7em;
   line-height: 1.3em;
   margin: 0 0 0.5em 0;
   font-family: 'Asap', sans-serif;
}
div#content h4 {
   color: #294B5F; 
   font-size: 1.3em;
   line-height: 1.3em;
   margin: 0 0 0.25em 0;
  font-family: 'Asap', sans-serif;
}
div#content h5 {
   font-size: 1.1em;
   line-height: 1.3em;
   margin: 0 0 0.25em 0;
}
h6 {
   font-size: 1em;
   line-height: 1.3em;
   margin: 0 0 0.25em 0;
}

div#sidebar h2 {border-left:none;border-bottom:3px solid #e7ab0b;
text-align:center; margin: 0 0 1em 0;}
/* END HEADINGS */

/* TEXT */
p {
   font-size: 1.3em;
   margin: 0 0 1.5em 0;  /* some air around p elements */
   line-height:1.8em;
   padding: 0 1em;
   text-align:justify;
   letter-spacing: 1px;
}
blockquote {
   border-left: 10px solid #ddd;
   margin-left: 10px;
}
pre {
   font-family: monospace;
   font-size: 1.0em;
}
strong, b {
/* explicit setting for these */
   font-weight: bold;
}
em, i {
/* explicit setting for these */
   font-style:italic;
}



pre {
   border: 1px solid #000;  /* black border for pre blocks */
   background-color: #ddd;
   margin: 0 1em 1em 1em;
   padding: 0.5em;
   line-height: 1.5em;
   font-size: 90%;   /* smaller font size, as these are usually not so important data */
}

/* END TEXT */

/* LISTS */
div#main ul,
div#main ol,
div#main dl {
  font-size: 1.3em;
   line-height:1.4em;
   margin: 0 0 1.5em 0;
}
div#main ul li,
div#main ol li {
   margin: 0 0 0.25em 3em;
}

div#dl dt {
   font-weight: bold;
   margin: 0 0 0.25em 3em;
}
div#dl dd {
   margin: 0 0 0 3em;
}
/* END LISTS */
/* Stylesheet: QHI Page Modified On 2014-09-24 05:14:34 */
/* The wrapper clears the floating elements of the menu */

/* Fix for Opera 8 */
.clearb { clear: both; }
#menuwrapper { 
   /* Fix for Opera 8 */ 
   /*   overflow: hidden;  */ 
   position:relative;
   background-color: #ebb21f;
   border-bottom: 5px solid #194071;
   border-top: 5px solid #194071;
   width: 100%;
   z-index:9999;
}

/* Set the width of the menu elements at second level. Leaving first level flexible. */
#primary-nav li li { 
   width: 200px;
   z-index:9999; 
}


/* Unless you know what you do, do not touch this */ 
#primary-nav, #primary-nav ul { 
   list-style: none; 
   margin: 0px; 
   padding: 0px; 
}
#primary-nav ul { 
   position: absolute; 
   top: auto; 
   display: none; 
}
#primary-nav ul ul { 
   margin-top: 1px;
   margin-left: -1px;
   left: 100%; 
   top: 0px; 
}
	
#primary-nav li { 
   margin-left: -1px;
   float: left; 
}
#primary-nav li li { 
   margin-left: 0px;
   margin-top: -1px;
   float: none; 
   position: relative; 
}

/* Styling the basic apperance of the menu elements */
#primary-nav a { 
   display: block; 
   margin: 0px; 
   padding: 8px 10px; 
   text-decoration: none; 
   color: #194071;
   font: small-caps bold 1.5em Asap, sans-serif;
   letter-spacing:2px;
   z-index:9999;
}
#primary-nav li a { 
   border-right: 2px solid #194071;
   border-left: 2px solid #194071;
   z-index:9999;
}
#primary-nav li li a { 
   border: 1px solid #194071;
   z-index:9999;
}	
#primary-nav li, #primary-nav li.menuparent { 
   background-color: #ebb21f; 
}

/* Styling the basic apperance of the active page elements (shows what page in the menu is being displayed) */

#primary-nav li.menuactive { 
   background-color: #fff; 
}


/* Styling the basic apperance of the menuparents - here styled the same on hover (fixes IE bug) */
#primary-nav ul li.menuparent, 
#primary-nav ul li.menuparent:hover, 
#primary-nav ul li.menuparenth { 
/* arrow for menuparents */
   background-color: #fdc43b; 
}


/* Styling the apperance of menu items on hover */

#primary-nav li:hover, 
#primary-nav li.menuh, 
#primary-nav li.menuparenth, 
#primary-nav li.menuactiveh { 
   background-color: #fdc43b; 
}


/* The magic - set to work for up to a 3 level menu, but can be increased unlimited */

/* 
just add 
#primary-nav li:hover ul ul, 
#primary-nav li.menuparenth ul ul ul,
for fourth level 
*/
#primary-nav ul, 
#primary-nav li:hover ul, 
#primary-nav li:hover ul ul, 
#primary-nav li.menuparenth ul, 
#primary-nav li.menuparenth ul ul { 
   display: none; 
}

/* add 
#primary-nav ul ul ul li:hover ul, 
#primary-nav ul ul ul li.menuparenth ul,
for fourth level
*/
#primary-nav li:hover ul, 
#primary-nav ul li:hover ul, 
#primary-nav ul ul li:hover ul, 
#primary-nav li.menuparenth ul, 
#primary-nav ul li.menuparenth ul, 
#primary-nav ul ul li.menuparenth ul { 
   display: block; 
}


/* IE Hacks */
#primary-nav li li { 
   float: left; 
   clear: both; 
}
#primary-nav li li a { 
   height: 1%; 
}
/* Stylesheet: QHI Menu Modified On 2013-01-25 06:18:29 */
/* Sample FormBuilder CSS base */
form {margin-top:0}
form, td, th, li { font-size: 100%}
form div {margin-bottom:0}
fieldset div {
	margin-bottom:0.5em;
	margin-left:1em;
}
fieldset div div {
	margin-top:0.5em;
	margin-left:1em
}
fieldset {
	margin-bottom:1em;
	border:10px solid #190471;
	padding:0.5em;
        background-color:#c3d4df;
}
fieldset label {
	width:auto;
        font-weight:bold;
}
legend {
	color:#FFF;
	background-color:#ebb21f;
	font-style:italic;
	font-size:1.2em;
	margin-bottom:0.5em;
	padding:0.2em;
	width:auto;
	border:2px solid #194071;
}
textarea {
	margin: 0.5em 0;
	width:98%;
	height: 6em;
       
}

/* Apply this class to text/select input fields with shorter labels
	to help alignment */
.short-label label {float:left; width:10em}
.short-label fieldset div input,
.short-label fieldset div select {width:16em}

/* Pretty up your Captcha image output */
.captcha {
	margin:0.5em 0;
	width:200px;
	text-align:center
}
.captcha img {border:1px solid #F60; margin-bottom:0.5em}
.captcha input {width:196px; margin-top:0.5em}

/* Just a bit more room for the Submit button */
.submit {margin-top:0.5em}

/* Sample FormBuilder CSS base */
form {margin-top:0}
form, td, th, li { font-size: 100%}
form div {margin-bottom:0}
fieldset div {
	margin-bottom:0.5em;
	margin-left:1em;
}
fieldset div div {
	margin-top:0.5em;
	margin-left:1em
}
fieldset {
	margin-bottom:1em;
	border:5px solid #194071;
	padding:0.5em;
}
fieldset label {
	width:auto;
}
legend {
	color:#194071;
	background:#ebb21f;
	font-style:italic;
	font-size:1.2em;
	margin-bottom:0.5em;
	padding:0.2em;
	width:auto;
	border:2px solid #194071;
}
textarea {
	margin: 0.5em 0;
	width:98%;
	height: 6em;
        border: 2px solid #ebb21f;
}

/* Apply this class to text/select input fields with shorter labels
	to help alignment */
.short-label label {float:left; width:10em}
.short-label fieldset div input,
.short-label fieldset div select {width:16em}

/* Pretty up your Captcha image output */
.captcha {
	margin:0.5em 0;
	width:200px;
	text-align:center
}
.captcha img {border:1px solid #F60; margin-bottom:0.5em}
.captcha input {width:196px; margin-top:0.5em}

/* Just a bit more room for the Submit button */
.submit {margin-top:0.5em}

.contactform input {border: 2px solid #194071;background-color:#ffc;}
.contactform input.checkbox {border: none;}
.contactform label {
	display: block;
	float: left;
	width: 150px;
}
.contactform label.label {
	display: inline;
	float: none;
	width: 50px;
	font-size: 10px;
}
.contactform textarea {
	background-color: #ffc;
	border: 3px solid #ebb21f;
}
.formbuilderform .message {
	line-height: 16px;
	padding: 0 0 8px 0;
}
/* Stylesheet: QHI Form Modified On 2009-04-29 17:37:29 */
body {margin: 0; padding: 0;}

#lightbox{
	position: absolute;
	left: 0;
	width: 100%;
	z-index: 99999;
	text-align: center;
	line-height: 0;
	}

#lightbox a img{ border: none; }

#outerImageContainer{
	position: relative;
	background-color: #fff;
	width: 250px;
	height: 250px;
	
	}


#imageContainer{
	padding: 0px;
	}

#loading{
	position: absolute;
	top: 40%;
	left: 0%;
	height: 25%;
	width: 100%;
	text-align: center;
	line-height: 0;
	}
#hoverNav{
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 10;
	}
#imageContainer>#hoverNav{ left: 0;}
#hoverNav a{ outline: none;}

#prevLink, #nextLink{
	width: 49%;
	height: 100%;
	background: transparent url(../../modules/LightBox/images/blank.gif) no-repeat; /* Trick IE into showing hover */
	display: block;
	}
#prevLink { left: 0; float: left;}
#nextLink { right: 0; float: right;}
#prevLink:hover, #prevLink:visited:hover { background: url(https://www.joesqualityhomeimprovements.com/tmp/cache/modules/LightBox/images/prevlabel.gif) left 15% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url(https://www.joesqualityhomeimprovements.com/tmp/cache/modules/LightBox/images/nextlabel.gif) right 15% no-repeat; }


#imageDataContainer{
	font: 10px Verdana, Helvetica, sans-serif;
	background-color: #fff;
	margin: 0 auto;
	line-height: 1.4em;
	overflow: none;
	width: 100%	
	}

#imageData{	padding:0 30px; color: #666; }
#imageData #imageDetails{ width: 70%; float: left; text-align: left; }	
#imageData #caption{ font-weight: bold;	}
#imageData #numberDisplay{ display: block; clear: left; padding-bottom: 1.0em;	}			
#imageData #bottomNavClose{ width: 66px; float: right;  padding-bottom: 0.5em;	}
#imageData a:hover {background-color: #fff;}	
		
#overlay{
	position: absolute;
	top: 0;
	left: 0;
	z-index: 99998;
	width: 100%;
	height: 500px;
	background-color: #000;
	}

/* Stylesheet: LightBox Sample CSS Modified On 2009-12-03 08:58:39 */