/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * 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;
}

html {
	font-family: Arial, Helvetica, sans-serif;
   font-size: 11px;
   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, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* resets */

html, body, header, main, footer, section, article, div, form, ul, li, h1, h2, h3, h4, h5, h6, p
{
	margin: 0;
	padding: 0;
}

/* custom */

.border-box
{
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
}

.list-inline > li
{
	float: left;
}

.list-simple > li
{
	list-style: none;
}

.wrap
{
	width: 960px;
	margin: auto;
}

body
{
	background: #E5E6E7;
}

/* header */

#topMenu
{
	padding: 7px 1px;
	background: #004982;
	font-size: 14px;
}

#topMenu > li
{
	margin-right: 15px;
	padding: 3px 10px;
	border: 1px solid transparent;
}

#topMenu > li:hover
{
	border: 1px solid #777777;
	-webkit-border-radius: 5px 5px 0 0;
	-moz-border-radius: 5px 5px 0 0;
	-ms-border-radius: 5px 5px 0 0;
	-o-border-radius: 5px 5px 0 0;
	border-radius: 5px 5px 0 0;
	background: #F4F4F4;
	background: -moz-linear-gradient(top, #F4F4F4, #EEEEEE);
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#F4F4F4), to(#EEEEEE));
}

#topMenu a
{
	text-decoration: none;
}

#topMenu > li > a
{
	padding-right: 21px;
	color: white;
	text-shadow: 1px 1px #000000;
}

#topMenu > li:hover > a
{
	color: #161616;
	text-shadow: none;
}

li.dropdown
{
	position: relative;
}

li.dropdown > a
{
	background: url("https://emedia.cshlpress.org/site/img/drop.png") no-repeat right 4px;
}

li.dropdown .submenu
{
	display: none;
	position: absolute;
	z-index: 10;
	left: -1px;
	min-width: 175px;
	padding: 10px 10px 15px 10px;
	white-space: nowrap;
	border: 1px solid #777777;
	border-top: none;
	-webkit-border-radius: 0 5px 5px 5px;
	-moz-border-radius: 0 5px 5px 5px;
	-ms-border-radius: 0 5px 5px 5px;
	-o-border-radius: 0 5px 5px 5px;
	border-radius: 0 5px 5px 5px;
	background:#F4F4F4;
	background: -moz-linear-gradient(top, #EEEEEE, #BBBBBB);
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#EEEEEE), to(#BBBBBB));
	font-size: 11px;
}

li.dropdown:hover .submenu
{
	display: block;
}

.submenu a
{
	line-height: 25px;
	color: #161616;
	text-shadow: #FFFFFF;
}

.submenu a:hover
{
	color:#666666;
}

#topSearch
{
	left: -561px;
	width: 940px;
	padding: 25px;
	font-size: 12px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-ms-border-radius: 5px;
	-o-border-radius: 5px;
	border-radius: 5px;
}

#topSearch .s-head,
#topSearch .first-col,
#topSearch .second-col,
#topSearch .third-col
{
	float: left;
}

#topSearch .adv
{
	float: right;
}

#topSearch a
{
	line-height: 1.4;
}

#topSearch .search-panel
{
	font-size: 16px;
}

#topSearch form
{
	padding: 2px 20px;
}

#topSearch form:first-child
{
	padding-left: 0;
}

#topSearch form:last-child
{
	padding-right: 0;
}

#topSearch .first-col input,
#topSearch .second-col input
{
	width: 320px;
}

#topSearch .second-col input
{
}

#topSearch .third-col input
{
	width: 150px;
}

/* main */

.main .wrap
{
	background: #FFFFFF;
}

.sidebar,
.main-content
{
	float: left;
}

.sidebar
{
	width: 175px;
	padding: 13px 0;
	background: #CCCCCC;
}

.sb-list
{
	padding-left: 5px;
	overflow-x: hidden;
}

.sb-list li
{
	position: relative;
}

.sb-list .s-arr
{
	position: absolute;
	top: 0.38em;
	color: #FFFFFF;
}

.sb-list a
{
	display: inline-block;
	width: 100%;
	margin-left: 0.5em;
	padding: 5px;
	text-decoration: none;
	line-height: 1.25;
	font-size: 1.05em;
	color: #333333;
}

.sb-list a:hover,
.sb-list a:focus,
.sb-list a:active
{
	color: #FFFFFF;
	background: #666666;
}

.main-content
{
	width: 785;
	padding: 17px;
}

/* footer */

.footer .wrap
{
	height: 180px;
	padding: 15px 0;
	border-top: 8px solid #204050;
	background: #437892;
}

.footer p
{
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size: 20px;
	text-align: center;
	color: #204050;
}

.footer p.foot-links
{	
	line-height: 1em;
}

.footer p.foot-links a
{
	margin-right: 10px;
	font-size: 16px;
	text-decoration: none;
	color: #FFFFFF;
}

.footer p.foot-links a:last-child
{
	margin: 0;
}

p.foot-links a:hover,
p.foot-links a:focus,
p.foot-links a:active
{
	color:#204050;
}

.main-content { font-size:12px; width:785px; }
.main-content h2 { margin-bottom:20px; color:#900b0b; }
.main-content p { margin-bottom:20px; }
.required { color:red; font-weight:bold; }

fieldset legend { display:none; }
.message { font-size:1.15em; font-weight:bold; }
.error, .alert, .notice, .success, .info {padding:0.8em;margin-bottom:1em;border:2px solid #ddd; font-size:14px; text-align: center; }
.error, .alert {background:#fbe3e4;color:#8a1f11;border-color:#fbc2c4;}
.notice {background:#fff6bf;color:#514721;border-color:#ffd324;}
.success {background:#e6efc2;color:#264409;border-color:#c6d880;}
.info {background:#d5edf8;color:#205791;border-color:#92cae4;}
.error a, .alert a {color:#8a1f11;}
.notice a {color:#514721;}
.success a {color:#264409;}
.info a {color:#205791;}

.form-element { clear:both; }
.form-element label { font-weight:bold; float:left; width:190px; margin-right:10px; text-align:left; } 
.form-element span.checkbox { float:left; width:20px; margin-right:5px; }
.form-options { min-height:30px; margin-bottom:20px; float:left; width:360px; }
.form-options-full { width:550px; }
.form-options label { }
.form-submit { text-align:center; margin-bottom:15px; }
input[type='text'], input[type='password'], input[type='email'], select, textarea { margin:0; padding:5px; }
input[type='text'], input[type='password'], input[type='email'] { width:100%; }

.form-options-list {
    float:none;
    width:auto;
}

.form-options-list-item { 
    margin-bottom:20px;
}

.form-options-list-item-checkbox {
    float: left;
    margin-right: 10px;
    width: 16px;
}

.form-options-list-item-label {
    float:left;
    width:700px;
}

.checkbox-multiple-text { font-weight:bold; }

.form-element .form-options-list-item label {
    float:none;
    font-weight: normal;
    width:auto;
}

.form-row{width:580px;}

.clearfix:after, .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;}
.clearfix, .container {display:block;}
.clear {clear:both;}

.bottom { margin-bottom:0px !important; padding-bottom:0px !important;}
.return { text-align:center; }

.small.form-option-text
{
	display: block;
	line-height: 1.5em;
	margin-top: 5px;
	font-style: italic;
	font-size: 12px;
	margin-bottom: 10px;
	background-color: #f0f0f0;
	padding: 0.75em;
	border-radius: 5px;
	color: #666;
}

.notcustom
{
	color: #666;
	font-weight: bold;
	font-style: italic;
}

input[type=submit] { font-weight:bold; height:30px; }

/* ==========================================================================
   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;
}

/*
 * 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;
}

/* ==========================================================================
   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;
    }
}
