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

html {
    background: white;
    color: black;
    font-size: 1em;
    line-height: 1.4;
    overflow-y: scroll; 
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
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;
}

/* ==========================================================================
    Browser Upgrade Prompt
   ========================================================================== */

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

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

html, body {
    position: relative;
    width: 100%;
    font-family: "RobotoSlab", serif;
    color: #222;
    background: #F6F4F1;
}
html {
    height: 100%;
}
body {
    box-sizing: border-box;
    min-height: 100%;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
main {
    flex-grow: 1;
}

header, main, footer {
    flex-shrink: 0;
}
footer {
    position: relative;
    height: 100%;
    max-width: 35em;
    margin: 0 auto;
    padding: 3em 0;
    text-align: center;
}

a:link {
    color: #bd1544;
    font-weight: bold;
    text-decoration: none;
    outline: 0;
}
a:hover, a:focus, a:target, a:visited {
    outline: 0;
}
a:hover, a:focus, a:target {
    color: #bd1544;
    text-decoration: underline;
}
a:visited {
    color: #800f2e;
    text-decoration: none;
}

h1 {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    margin: 0;
}
h2, h3, h4, h5 {
    font-family: RobotoSlab, serif;
}
h1 a:hover, a:focus, a:target, a:visited
h2 a:hover, a:focus, a:target, a:visited
h3 a:hover, a:focus, a:target, a:visited
h4 a:hover, a:focus, a:target, a:visited
h5 a:hover, a:focus, a:target, a:visited {
    color: #bd1544;
    text-decoration: none;
}

p {
    font-size: 100%;
    font-style: normal;
    margin: 1.5ex 0;
    text-align: justify;
    hyphens: manual;
}

ul, ol, dl {
    font-family: RobotoSlab, serif;
    font-size: 100%;
}
ul, ol {
    padding-left: 1.5em;
}
dl dt {
    display: inline-block;
}
dl dt:after {
    content: ": ";
}
dl dd {
    display: inline-block;
    margin-left: 1em;
}

a[href^="mailto:"] {
    font-weight: normal;
}

.search_background, 
#report_background {
    display: block;
    position: relative;
    width: 100%;
    margin:  0;
    padding: 3rem 0 4rem 0;
}
.search_background {
/*
    background: #F0EDE0;
*/
}
#report_background {
    background: #F0EDE0;
}
.container {
    max-width: 35rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

#login {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

#search {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
#login > input[type=password],
#search > input[type=text] {
    display: block;
    position: relative;
    box-sizing: border-box;
    padding: 0.8em 1.3em 0.8em 1.3em;
    border: 0.1em solid #aaa;
    background-color: white;
    transition: border-color 0.4s ease-in-out;
}
#login > input[type=password] {
    border-radius: 3em;
    margin: 0 auto;
    width: 80%;
}
#search > input[type=text] {
    width: calc(80% - 2em);
    border-right: 0px solid transparent;
    border-top-left-radius    : 3em;
    border-bottom-left-radius : 3em;
    border-top-right-radius   : 0;
    border-bottom-right-radius: 0;
}
#search > input[type=text] + input {
    display: block;
    position: relative;
    box-sizing: border-box;
    width: 2em;
    padding: 0.8em 1.3em 0.8em 1.3em;
    border: 0.1em solid #aaa;
    border-left: 0px solid transparent;
    border-top-left-radius    : 0;
    border-bottom-left-radius : 0;
    border-top-right-radius   : 3em;
    border-bottom-right-radius: 3em;
    background-color: white;
    background-image: url('../img/searchicon.png');
    background-position: 1.1ex 1.2ex; 
    background-repeat: no-repeat;
    cursor: pointer;
    transition: border-color 0.4s ease-in-out;
}
#login > input[type=password]:focus,
#search > input[type=text]:focus,
#search > input[type=text]:focus + input {
    border-color: #bd1544;
}

#report_results {
    margin-top: 2em;
}
#search_results > div ,
#report_results > div {
    margin: 1em 0 1em 0;
    padding: 0 1em;
    border: 1px solid transparent;
    border-radius: 0.7em;
}
#search_results .Green ,
#report_results .Green {
    background-color: #ccffcc;
}
#search_results .Yellow ,
#report_results .Yellow {
    background-color: #ffffcc;
}
#search_results .Red ,
#report_results .Red {
    background-color: #ffcccc;
}

.identifier,
.warninglevel,
.description {
    font-weight: bold;
    text-align: left;
}
.entrynumber {
    text-align: center;
    font-weight: bold;
    font-style: italic;
}
.identifier,
.warninglevel,
.description {
    margin-bottom: -0.7em;
}
.identifier + p,
.warninglevel + p,
.description + p {
    text-align: left;
    white-space: pre-wrap;
}

#report {
    width: 100%;
    margin: 3rem 0 0 0;
    text-align: center;
}
#report > h3 {
    font-family: "RobotoSlab", serif;
    font-weight: bold;
    font-size: 100%;
    margin: 2em 0 0 0;
}
#report textarea {
    box-sizing: border-box;
    width: 100%;
    margin: 0.5em 0 1em 0;
    border: 1px solid #ccc;
    border-radius: 0.7em;
    padding: 0.5em;
    transition: border-color 0.4s ease-in-out;
}
#report textarea:focus {
    border-color: #bd1544;
}
#report input {
    text-align: center;
}
#login .submit,
#report .submit {
    display: block;
    width: 80%;
    height: 2.2em;
    margin: 0.5em auto 0 auto;
    vertical-align: middle;
    text-align: center;
    font-family: "Open Sans", sans-serif;
    line-height: 2em;
    font-size: 1.3rem;
    color: #444;
    background-color: #fbfbf9;
    border-radius: 2.2em;
    border: 0.1em solid #FFFFFF;
    box-shadow: 0 0.1em 0.2em 0 rgba(0, 0, 0, 0.33);
    cursor: pointer;
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
#login .submit:hover,
#report .submit:hover,
#report .submit:focus,
#report .submit:target {
    color: rgba(189, 21, 68, 1);;
    border-color: rgba(189, 21, 68, 1);
    box-shadow: 0 0.1em 0.2em 0 rgba(189, 21, 68, 0.33);
    transition: all 0.4s ease-in-out;
}


.level-radios {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
    margin: 1rem 0 3rem 0;
}
.level-radios div {
    display: inline-block;
}
.level-radios input[type="radio"] {
    display: none;
}
.level-radios input[type="radio"] + label {
    font-size: 0.9rem;
    width: 0;
    margin:  0;
    padding: 0;
}
.level-radios input[type="radio"] + label span {
    display: inline-block;
    width: 4em;
    height: 4em;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    text-align: center;
    line-height: 4em;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    border: 0.4em solid #FFFFFF;
    box-shadow: 0 0.2em 0.4em 0 rgba(0, 0, 0, 0.33);
    cursor: pointer;
}
.level-radios input[type="radio"] + label span img {
    width : 2em;
    height: 2em;
    opacity: 0;
    transition: all .3s ease;
}
.level-radios input[type="radio"]#level_green + label span {
    background-color: #2ecc71;
}
.level-radios input[type="radio"]#level_blue + label span {
    background-color: #3498db;
}
.level-radios input[type="radio"]#level_yellow + label span {
    background-color: #f1c40f;
}
.level-radios input[type="radio"]#level_red + label span {
    background-color: #e74c3c;
}
.level-radios input[type="radio"]:checked + label span img {
    opacity: 1;
}

.results_header {
    text-align: center;
    font-weight: bold;
    font-style: italic;
    margin: 2em 0;
}


.quotation {
    width: 45em;
    margin: 5ex auto 6ex auto;
    font-style: italic;
    text-align: center;
}
.quotation > blockquote {
    font-family: "Playfair Display", serif;
    font-size: 180%;
    text-align: center;
    line-height: 1.0;
    margin: 0 0 1ex 0;
}
.quotation > span {
    font-size: 95%;
    font-weight: bold;
}

.phone:before,
.email:before {
    display: inline-block;
    vertical-align: bottom;
    width: 1.7em;
    height: 2.2ex;
    margin: 0.2ex 0.3em 0ex 0;
    content: "";
}
.phone:before {
    background: url("../img/phone.svg") no-repeat center;
    background-size: auto 95%;
}
.email:before {
    background: url("../img/email.svg") no-repeat center;
    background-size: auto 75%;
}


/* ==========================================================================
   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,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

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

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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

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

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

/*
 * Hide visually and from screen readers:
 * http://juicystudio.com/article/screen-readers-display-none.php
 */

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

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

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

/*
 * Hide visually and from screen readers, 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;
}

/*
 * Alignment
 */
.centered, .centered > * {
    text-align: center;
}
.centered h2:after {
    margin-left: auto;
    margin-right: auto;
}
.justify, .justify > * {
    text-align: justify;
}

/*
 * Turn off hyphenation
 */
.nohyphens {
    hyphens: none;
}

/*
 * Keep the entire video inside container
 */
@media (min-aspect-ratio: 16/9) {
    #video-bg > video { width: auto; height: 100%;}
}
@media (max-aspect-ratio: 16/9) {
    #video-bg > video { width: 100%; height: auto; }
}

