/*! 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 {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    font-family: 'Rokkitt', serif;
    font-size: 1.2em;
}
body {
    background-image:url('/assets/img/knitting250px.png');
}

/*
 * 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,
svg,
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
   ========================================================================== */


.fieldset {
    border: 1px solid #aaa;
    padding: 0 25px 10px 25px;
    margin-bottom: 20px;
}











.readonly-tos-area {
    background: #fff;
    border: 1px solid #777;
    height: 500px;
    width: 500px;
    padding: 10px 20px;
    overflow: auto;
}

.underlined {
    text-decoration: underline;
}

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

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

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

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

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

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

a:hover {
    text-decoration: underline;
}

.button {
    background-color:#0054a3;
    -moz-border-radius:28px;
    -webkit-border-radius:28px;
    border-radius:28px;
    border:1px solid #507394;
    display:inline-block;
    cursor:pointer;
    color:#ffffff;
    padding:5px 15px;
    margin: 5px;
    text-decoration:none;
    text-shadow:0px 1px 0px #0054a3;
}
.button:hover {
    background-color:#006dd3;
    text-decoration: none;
}
.button:active {
    position:relative;
    top:1px;
}
#banner {
    height: 180px;
    min-width:900px;
    background-image: url(/assets/img/bg.jpg);
    background-repeat:no-repeat;
    background-position:center center;
    -o-background-size: 100% 100%, auto;
    -moz-background-size: 100% 100%, auto;
    -webkit-background-size: 100% 100%, auto;
    background-size: 100% 100%, auto;
}
#banner.homepage {
    height: 300px;
}
#banner img.homepagelogo {
    margin-top: 15px;
    margin-bottom: 96px;
    margin-left: 20px;
}

#banner .banner-num-assessments {
    font-size: 31px;
    display: block;
    position: absolute;
    font-variant: small-caps;
    border-top: 1px solid #777;
    left: 13px;
    top: 183px;
}

.home #banner .banner-num-assessments {
    left: 33px;
    top: 207px;
    font-size: 37px;
}

.video-overview {
    float: right;
    margin-left: 40px;
    margin-top: 25px;
    width: 383px;
}

.video-overview .learn-more {
    display: block;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, .2);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

#banner .banner-num-assessments .counter {
    display: inline-block;
    font-weight: bold;
    text-shadow: rgba(0, 0, 0, .2) 3px 3px 3px;
}

#banner .banner-num-assessments .learn-more {
    font-size: 19px;
}

#nav1 {
    width: 100%;
    min-width:900px;
    background-color:rgba(18,59,122,.2);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#33123B7A,endColorstr=#33123B7A)"; /* IE8 */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#33123B7A,endColorstr=#33123B7A);   /* IE6 & 7 */
    zoom: 1;
    font-family: 'Oswald';
    font-size: .7em;
    text-align: right;
}
#nav1 a {
    color: white;
    text-decoration: none;
}
#nav1 a:hover {
    color: #eee;
}



/* Nav */
nav {
    text-align: center;
    min-width: 960px;
    background-color: #155388;
    padding: 0px;
    margin: 0px;
    font-size: .9em;
    color: #fff;
    font-family: 'Rokkitt;
    height: 42px;
    opacity: .85;
    border-bottom: 1px solid #155388;
    line-height: 2px;
}

nav ul ul {
    display: none;
}

nav ul li:hover > ul {
    display: block;
}
nav ul {
    background-color: #155388;
    padding: 0 0px;
    margin: 0 0px;
    list-style: none;
    position: relative;
    display: inline-table;
    text-shadow: 0px 1px #000;
    line-height: 25px;
}
nav ul:after {
    content: ""; clear: both; display: block;
}

nav ul li {
    float: left;
}
nav ul li:hover {
    background: #006dd3;
}
nav ul li:hover a {
    color: #fff;
    text-decoration: none;
}

nav ul li a {
    display: block; padding: 9px 23px;
    color: #fff;
    text-decoration: none;
}


nav ul ul {
    background: #5f6975;
    /* background: rgba(0, 0, 0, 0.9); */
    border-radius: 0px;
    padding: 0;
    position: absolute;
    top: 100%;
}
nav ul ul li {
    float: none;

}
nav ul ul li a {
    padding: 9px 40px;
    color: #fff;
}
nav ul ul li a:hover {
    background: #afbb74;
}

nav ul ul ul {
    position: absolute; left: 100%; top:0;
}
.mid-content {
    border-top: 1px solid #ccc;
    background-color:rgba(255,255,204,.4);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#66FFFFCC,endColorstr=#66FFFFCC)"; /* IE8 */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#66FFFFCC,endColorstr=#66FFFFCC);   /* IE6 & 7 */
    padding: 30px;
}
.news-content {
    border-top: 1px solid #ccc;
    background-color:rgba(102,153,204,.4);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#666699CC,endColorstr=#666699CC)"; /* IE8 */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#666699CC,endColorstr=#666699CC);   /* IE6 & 7 */
    zoom: 1;
    padding: 30px;
}

div.sponsors img {
    margin-right: 10px;
    -webkit-filter: grayscale(70%);
    max-height: 80px;
    padding-bottom: 30px;
}
div.sponsors img:hover {
    -webkit-filter: grayscale(0%);
}

.launch-module {
    border-top: 1px solid #ccc;
    background-color:rgba(153,204,102,.4);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#6699CC66,endColorstr=#6699CC66)"; /* IE8 */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#6699CC66,endColorstr=#6699CC66);   /* IE6 & 7 */
    zoom: 1;
    padding: 30px;
}
.sponsors {
    padding: 30px;
    background-color:rgba(255,255,255,.5);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#7FFFFFFF,endColorstr=#7FFFFFFF)"; /* IE8 */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#7FFFFFFF,endColorstr=#7FFFFFFF);   /* IE6 & 7 */
    zoom: 1;
}
h1, h2, h3 {
    margin-top: 0px;
}

h2.agency-name {
    font-weight: normal;
    margin-bottom: 0;
    padding-bottom: 0;
}

.content-padding {
    padding-left: 40px;
    padding-right: 40px;
}

.modicon {
    width: 120px;
    height: 60px;
    float: left;
    padding:8px;
    border:solid;
    border-color: #89a38d;
    border-width: 3px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 20px;
    margin-left: 20px;
    background-color: #f1f8ca;
}
.modiconOver {
    cursor: pointer;
    border-color: #0054a3;
    background-color: #effe99;
}
#module-name {
    color: #0054a3;
    padding-left: 20px;
}
#language {
    margin-left: 20px;
    border: 0 !important;
    -webkit-appearance: none;
    -moz-appearance:none;
    width: 200px;
    padding: 4px;
    font-family: "Arial";
    font-size: .8em;
    opacity: .7;
    background: url('/assets/img/downarrow.png') no-repeat;
    background-position: 175px 8px;
    background-color: #fff;
    text-indent: 0.01px;
    text-overflow: "";
}

.imgrow {
    text-align: justify;
    -ms-text-justify: distribute-all-lines;
    text-justify: distribute-all-lines;
    /* just for demo */
    min-width: 612px;
}

.img {
    vertical-align: top;
    display: inline-block;
    *display: inline;
    zoom: 1;
}
.stretch {
    width: 100%;
    display: inline-block;
    font-size: 0;
    line-height: 0
}
.copyright {
    text-align: center;
    font-size: .8em;
    color: #999;
}
.copyright a {
    text-decoration: none;
    color: #999;
    font-weight: bold;
}
.copyright a:hover {
    text-decoration: underline;
}

#announcements,
#facebook {
    float: left;
    width: 30%;
    margin-right: 3%
}

#twitter {
    float: right;
    width: 30%;
    margin-right: 4%;
}

.locations-closed {
    display: none;
}
#locations h4, #other-sponsoring-sites h4 {
    cursor: pointer;
}

a {
    color: #155388;
    text-decoration: none;
}
p a:hover {
    text-decoration: underline;
}
.locations-table {
    font-size: .9em;
    width: 100%;
}
table.locations-table td {
    padding-right: 60px;
}
table.locations-table tr:nth-child(even) {
    background-color:rgba(153,204,102,.6);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#9999CC66,endColorstr=#9999CC66)"; /* IE8 */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#9999CC66,endColorstr=#9999CC66);   /* IE6 & 7 */
    zoom: 1;
}
table.locations-table tbody tr:hover {
    background-color:rgba(153,204,102,1);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#9999CC66,endColorstr=#9999CC66)"; /* IE8 */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#9999CC66,endColorstr=#9999CC66);   /* IE6 & 7 */
    zoom: 1;
}
table.locations-table a {
    color: #000;
    text-decoration: none;
}
table.locations-table a:hover {
    text-decoration: underline;
}
table.locations-table a img {
    margin-left: 3px;
    opacity: .9;
}
table.locations-table th {
    padding-left: 2px;
    padding-right: 6px;
    background-color:rgba(100,100,100,.3);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#4C646464,endColorstr=#4C646464)"; /* IE8 */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4C646464,endColorstr=#4C646464);   /* IE6 & 7 */
    zoom: 1;
    border-bottom: 1px solid #999;
    text-align: left;
    cursor: pointer;
}
table.locations-table th:hover {
    background-color:rgba(100,100,100,.5);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#4C646464,endColorstr=#4C646464)"; /* IE8 */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4C646464,endColorstr=#4C646464);   /* IE6 & 7 */
    zoom: 1;
}
table.locations-table th {
    background-image: url(/assets/img/sort-bg.gif);
    background-repeat: no-repeat;
    background-position: center right;
}
table.locations-table th.headerSortUp {
    background-image: url(/assets/img/sort-asc.gif);
    background-repeat: no-repeat;
    background-position: center right;
}
table.locations-table th.headerSortDown {
    background-image: url(/assets/img/sort-desc.gif);
    background-repeat: no-repeat;
    background-position: center right;
}
.sponsor-benefits {
    font-size: 1.5em;
}
ul.sponsor-benefits i {
    font-size: 2em;
    padding: 15px;
}
div.faqs h4 {
    margin-left: 20px;
    cursor: pointer;
}
div.faq-answer, blockquote {
    border-left: 2px solid #ccd232;
    margin-left: 30px;
    padding-left: 16px;
}
.newsitem {
    background-color:rgba(100,100,100,.1);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#19646464,endColorstr=#19646464)"; /* IE8 */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#19646464,endColorstr=#19646464);   /* IE6 & 7 */
    zoom: 1;
    border-bottom: 1px solid #999;
    padding: 10px;
    cursor: pointer;
}
.newsitem:hover {
    background-color:rgba(100,100,100,.4);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#66646464,endColorstr=#66646464)"; /* IE8 */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#66646464,endColorstr=#66646464);   /* IE6 & 7 */
    zoom: 1;
}
.newsitem h4 {
    line-height: 80%;
    padding: 0px;
    margin-left: 0px;
}
.newsdate {
    font-weight: bold;
    line-height: 0%;
    font-size: 14px;
}
a.newslink {
    color: #000;
}
a.newslink:hover {
    text-decoration: none;
}
aside.agencyInfo {
    float: right;
    margin-left: 30px;
}
aside.agencyInfo img {
    padding:8px;
    border:solid;
    border-color: #dddddd #aaaaaa #aaaaaa #dddddd;
    border-width: 1px 2px 2px 1px;
    background-color:white;
    -moz-box-shadow: 1px 1px 5px #999; -webkit-box-shadow: 1px 1px 5px #999; box-shadow: 1px 1px 5px #999;
}
aside.agencyInfo p {
    font-size: .8em;
}
.quote-attribution {
    font-size: 80%;
    font-weight: bold;
    text-align: right;
}
#user-name {
    font-size: 1.5em;
    margin-left: 5px;
    margin-right: 25px;
}
#changer {
    text-decoration: none;
    cursor: pointer;
}
#changer:hover {
    color: steelblue;
}
form.form label {
    display: block;
}
/* Begin form */
.required {
    color: red;
}
.error {
    color: red;
}
input.error {
    border: 1px red solid;
}
.subtext {
    font-style: italic;
}

.under-construction {
    background-color: #e7bfbe;
    color: #ad4830;
    border: 1px solid #ad4830;
    padding: 10px 15px;
    border-radius: 5px;
}


/* agency page */
.module-version {
    margin-bottom: 7px;
}