/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
   
/* apply a natural box layout model to all elements */
*, *:before, *:after {
  -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}

html{
  height: 100%;
}
body {
  min-height: 100%;
  background-color:#1d374f;
  color:#fff;
  font-size:.9em;
  line-height:1.7em;
	font-family:'Myriad W01 Regular', Arial, Helvetica, sans-serif;
}

body.sub p {
	font-size:16px;
}

body.sub #content ul li, body.sub  #content ol li
{
		font-size:16px;
}

p {
	margin-top:0px;
	margin-bottom:.8em;
}

a {
	color:#FFCC66;
	text-decoration:none;
}

#h1area {
	font-size:33px;
	line-height:40px;
	margin-top:80px;
	margin-bottom:45px;
	text-align:center;
	font-family:'Myriad W01 Regular', Arial, Helvetica, sans-serif;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, .75);
}

body.sub #topbuttons {
	float:left;
}
body.sub #h1area {
	float:left;
	font-size:33px;
	line-height:40px;
	margin-top:70px;
	margin-bottom:0px;
	margin-left:40px;
	text-align:left;
	max-width:60%;
}
body.sub #h1area p {
	line-height:24px;
	font-size:17px;
}

hold {
font-family:'Myriad W01 Black Sm Cnd';
font-family:'Myriad W01 Black';
font-family:'Myriad W01 Sm Cnd';
font-family:'Myriad W01 Regular';
}

h1 {
	font-size:54px;
	line-height:54px;
	margin:0px 0px;
	font-family:'Myriad W01 Black', "Arial Black", Gadget, sans-serif;
}

body.sub h1 {
	font-size:34px;
	line-height:34px;
	margin-bottom:7px;
}


h2 {
	font-family:'Myriad W01 Black', "Arial Black", Gadget, sans-serif;
	font-size:2em;
}

body.sub h2 {
	font-size:24px;
}


body.home p {
	margin:0px 0px;
}

#page {
	width:100%; 
	max-width:100%;
	overflow:hidden;
}

#wrapperfortopandseal {
	width:100%;
  	position:relative;
}

body.home #wrapperfortopandseal {
	background: url(../img/bg.jpg) #a3a39b no-repeat center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

body.sub #wrapperfortopandseal {
	background-image:none;
	background-color:#2569ac;
}




#subpagenavwrapper {
	width:100%;
	background: #e36f30;
}

#subpagemainnav {
	max-width:100%;
	width:1168px;
	margin:0 auto;
	font-family:'Myriad W01 Black Sm Cnd', "Arial Black", Gadget, sans-serif;
	text-shadow:1px 1px 2px rgba(0, 0, 0, .4);
	font-size:19px;
	background: #e36f30;
}


  #subpagemainnav ul {list-style: none;padding: 0px;margin: 0px;}
  #subpagemainnav ul li {display: block;position: relative;float: left; /*border:1px solid #000 */}
  #subpagemainnav li ul {display: none;
-webkit-box-shadow: 1px 2px 1px 0px rgba(50, 50, 50, 0.15);
-moz-box-shadow:    1px 2px 1px 0px rgba(50, 50, 50, 0.15);
box-shadow:         1px 2px 1px 0px rgba(50, 50, 50, 0.15);  }
  #subpagemainnav ul li a {display: block;background: #e36f30;padding: 20px 20px 20px 20px;text-decoration: none;
           white-space: nowrap;color: #fff;}
		   

  	   
  #subpagemainnav ul li a:hover {background: #d16125;}
  #subpagemainnav li:hover ul {display: block; position: absolute; z-index:1000;}
  #subpagemainnav li:hover li {float: none;}
  #subpagemainnav li:hover a {background: #e36f30;}
  #subpagemainnav li:hover li a:hover {background: #d16125;}
  #subpagemainnav ul li ul li {border-top: 0px; line-height:20px; }


body.sub #primary:first-child, body.sub #secondary:first-child {
	/* margin-top:20px; */
}




#topnav {
	display:none;
} 

#topnav {
	border-top-color:#e36f30;
	border-top-style:solid;
	border-top-width:thick;
	background-color:#2569ac;
	text-align:right;
	min-height:48px;
}

#topnav a {
	color:#fff;
}
.nav-toggle {
	font-size:28px;
	line-height:30px;
	font-weight:normal;
	font-family:Arial, Helvetica, sans-serif;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, .4);
	margin-top:10px;
	margin-right:12px;
}
.nav-toggle a {
	font-weight:normal;
	position:relative; 
	
}
.nav-collapse {
	text-decoration:none;
	color:#fff;
	background-color:#e36f30;
	font-size:19px;
	line-height:20px;
	display:block;
	font-family:'Myriad W01 Black Sm Cnd', "Arial Black", Gadget, sans-serif;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, .4);
	text-align:right;
	padding-left:20px;
	padding-top:12px;
}
.nav-collapse ul {
	text-align:left;
}
.nav-collapse li {
	margin-bottom:12px;
}
.nav-collapse a {
	color:#fff !important;
	display:block;
    -webkit-transition: color .5s; /* Safari */
    transition: color .5s;
}
.nav-collapse a:hover {
	color:#FFFF99 !important;
}

.coarea {
	font-size:14px;
	font-family:'Myriad W01 Sm Cnd', Arial, Helvetica, sans-serif;
}

#topwrapper {
	width:1168px;
	margin:0 auto;
}

#logoandcoswrapper {
	width:47%;
	min-width:550px; 
	margin-top:30px;
	float:left;
}

body.sub #logoandcoswrapper {
	width:auto;
	min-width:0px;
}

#logo {
	width:240px;
	float:left;
	width:43%;
}

body.sub #logo {
	width:100%;
}

body.sub #logosq {
	display:none;
}

#logo img {
	width:100%;
	height:auto;
}

body.sub #logo img {
	max-width:150px;
}

body.home #logosm {
	display:none;
}

.companies {
	width:54%;
	float:right;
}

#getintouch {
	width:300px;
	max-width:300px;
	float:right;
	margin-top:30px;
}

.company, #getintouch {
	text-align:center;
}

#getintouchmobile {
	display:none;
}

.company {
	margin-bottom:11px;
}

.companyname, .getintouchwords {
	font-size:21px;
}

.companynamebold {
	font-family:'Myriad W01 Black Sm Cnd', "Arial Black", Gadget, sans-serif;
}

.company a, #getintouch a {
	text-decoration:none;
	color:#fff;
	font-size:14px;
	width:300px;
	line-height:20px;
	display:block;
	/*padding-top:15px; */
	padding-top:22px;
	padding-bottom:22px;
	height:40px;
	font-family:'Myriad W01 Sm Cnd', Arial, Helvetica, sans-serif;
}

.company a {
	background-color:#2569ac;
	max-height:72px;
	height:72px;
    -webkit-transition: background-color .5s; /* Safari */
    transition: background-color .5s;
}

.company a:hover {
	background-color:#1f5f9e;
}




#getintouch a {
	background:url(../img/getintouch.png) repeat-x left;
	background-size:contain;
	max-height:76px;
	height:76px;
    -webkit-transition: background-image .5s; /* Safari */
    transition: background-image .5s;
}
#getintouch a:hover  {
	background-image:url(../img/getintouchhover.png);
	
}


#sealwrapper {
	position:relative;
	width:100%;
	min-height:226px; 
	
}

body.sub #sealwrapper {
	min-height:60px;
}

#seal {
 	position:absolute;
	bottom:0px;
	width:100%;
	max-height:226px;
	text-align:center;
}

#seal {
	display:none;
}

body.home #seal {
	display:block;
}

#seal img {
	width:20%;
	max-width:236px;
	height:auto;
	max-height:226px;
}

#paperedge {
	position:absolute;
	bottom:0px;
	width:100%;
}

#paperedge img {
	width:100%;
	height:auto;
}

#main {
	background: url(../img/paper.png) repeat-y left top;
	background-size:100%;
	min-height:400px;
	padding-bottom:0px; 
}

#content {
	max-width:1168px;
	width:1168px;
	margin:0 auto;
	padding-bottom:30px;
}

body.home #content {
	padding-top:20px;
	padding-bottom:80px;
}


body.sub #paperedge {
	max-height:48px;
	overflow:hidden;
}



#primary {
	float:left;
	width:47%;
	padding-left:10px;
}



#secondary {
	float:right;
	width:47%;
	padding-left:10px;
}

body.sub #primary {
	padding-left:196px;
	width:70%;
}

body.sub #secondary {
	width:25%;
}

body.sub #primary .firstchildofcolumn, body.sub #secondary .firstchildofcolumn {
	margin-top:20px;
}

body.home #ftrinnerwrapper {
	max-width:1168px;
	width:1168px;
	margin:0 auto; 
}

body.sub #ftrinnerwrapper {
	max-width:1168px;
	width:1168px;
	/* margin:0 auto; */
 	padding-left:210px;
	/* width:70%;  */
}



#smallresmenu {
	display:none;
}

.tabmenuarea ul {
    float: left;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style-type: none;
	margin-left:-17px;
	margin-bottom:40px;
}

.tabmenuarea a {
	float:left;
    text-decoration: none;
	color:#fff;
	padding-left:.9em;
	padding-right:.9em;
	display:block;
	line-height:70px;
	font-size:1.4em;
	height:78px;
	text-decoration:none;
}

.tabmenuarea a:hover {
	color:#FFFF99;
}

.tabmenuarea a.selected {
    color: #1d63a7;
	background:url(../img/submenutab.png) no-repeat top left;
	font-family:'Myriad W01 Black', "Arial Black", Gadget, sans-serif;
    -webkit-transition: background-image .5s, color .5s; /* Safari */
    transition: background-image .5s, color .5s;
}

.tabmenuarea a.selected:hover {
	color:#1d63a7;
	background-image:url(../img/submenutab-hilite.png);
}

.tabmenuarea li {
    display: inline;
	margin-bottom:0px;
}

div.tabContent.hide { display: none; }

p.tabareapagelink {
	font-size:1.4em;
	margin-top:17px !important;
	font-weight:bold;
	font-family:'Myriad W01 Regular';
	padding-bottom:0px;
	margin-bottom:0px;
}

.tabareapagelink a {
	color:#fff;
    -webkit-transition: color .5s; /* Safari */
    transition: color .5s;
}

.tabareapagelink a:hover {
	color:#FFCC66;	
}

.tabareapagelink .fa {
	font-size:25px;
	position:relative; 
	top: 3px;
}

.tabarea h2 {
	margin-top:0px;
}

#ftr {
	width:100%;
	border-top-width:3px;
	border-top-color:#fff;
	border-top-style:solid; 
	background-color:#19334b;
	padding-top:40px;
	padding-bottom:20px;
}

#ftr h3 {
	margin-top:16px;
	margin-bottom:5px;	
}

#ftr a {
	color:#FFCC66;	
}



#memberships {
	float:left;
	width:54%;
	margin-right:3%;
	margin-bottom:20px;
}

#licensing {
	float:left;
	width:40%;
	line-height:18px;
	margin-top:5px;
	margin-bottom:20px;
}

#copyrightanddesigninfo {
	margin-top:30px;
}

#copyrightanddesigninfo div {
	float:left;
}

.membership {
	width:23%;
	margin-right:2%;
	float:left;
}

.membership img {
	width:100%;
	height:auto;
}

.alignright {
	float:right;
	margin-top:5px;
	margin-left:35px;
	margin-bottom:20px;
}

.alignleft {
	float:left;
	margin-top:5px;
	margin-right:35px;
	margin-bottom:20px;
}

.captioned {
	font-size:14px;
}

.captioned img {
	margin-bottom:5px;
}

.circle {
	border-radius:50%;
}

.tabContent img {
	width:125px;
	height:auto;
}

.tabContent img.alignright {
	margin-left:15px;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}



div.toggler { background:black; cursor:pointer; }
div.toggler div { display:none; }
.smallerwidthtoggler { float:left; min-width:200px; padding-top:0px; }
.smallerwidthtoggler h3 { padding-top:0px; margin-top:0px;
}


/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
