﻿@import url("https://fonts.googleapis.com/css?family=Libre+Baskerville|Libre+Franklin:300,400,600,700");

html, body, .page {
    height: 100%;
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font: 100% "Libre Baskerville", serif;
    color: #222;
    background-color: #fafafa;
    margin: 0;
    padding: 0;
}

.page {
    display: grid;
    grid-template-rows: min-content auto min-content;
    height: 100vh;
    margin: 0;
}

/* ==================== Header ==================== */

header,
h1,
h2,
h3 {
    font-family: "Libre Franklin", sans-serif;
}

header {
    position: relative;
    padding: 0.75em;
    border-bottom: 0.25em solid #03738c;
    font-size: 1.25em;
    font-weight: 300;
    background-color: #eee;
}

    header div {
        display: inline-block;
        vertical-align: middle;
    }

    header .logo svg {
        height: 2em;
        width: auto;
        margin-right: 0.5em;
        fill: #222;
    }

    header .site-name {
        color: black;
    }

    header .nav-links {
        float: right;
        font-weight: normal;
    }

@media (max-width: 1040px) {
    header .nav-links {
        float: none;
    }
}

header .nav-links div {
    padding: 0.5em 1em;
}

header a:not(.skip-link) {
    text-decoration: none;
    color: #03738c;
    padding-top: 24px;
    padding-bottom: 24px;
}

header .nav-links a:hover {
    text-decoration: underline solid 5px;
    text-underline-offset: 3px;
}

header .nav-links a.selected {
    font-weight: bold;
}

/* ==================== Fields ==================== */

fieldset {
    width: 420px;
    border: 2px groove threedface;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    padding: 10px;
    margin-right: 15px;
    background-color: #EEEEEE;
    margin: auto;
}

    fieldset legend {
        font-weight: bold;
    }

    fieldset div.field-container {
        clear: left;
        padding: 0 5px 5px;
        margin: auto;
        margin-bottom: 5px;
        width: 410px;
    }

div.field-container .text-box {
    width: 405px;
    height: 24px;
}

div.field-container .text-box-readonly {
    background-color: #EEEEEE;
    font-weight: bold;
}

div.field-container div {
    font-size: 85%;
    line-height: 1.6em;
}

div.field-container.wide {
    width: 820px;
}

fieldset div.editor-field {
    padding-bottom: 10px;
    padding-left: 5px;
}

fieldset label.short {
    width: 90px !important;
}

fieldset div.medium {
    width: 140px;
}

fieldset div.long {
    width: 180px;
}

div.account-form p input {
    clear: both;
    padding: 2px 20px;
}

div.account-form p span {
    font-size: 85%;
}

fieldset span.field-validation-error,
div.validation-summary-errors ul li {
    color: Red;
}

div.validation-summary {
    width: 420px;
    margin: auto;
    margin-top: 10px;
}

.validation-summary-valid {
    display: none;
}

/* ==================== Content ==================== */

#content {
    position: relative;
    margin-top: 50px;
    margin-bottom: 20px;
}

    #content p {
        padding-bottom: 15px;
        margin: 0 30px;
        line-height: 1.5;
    }

    #content a {
        color: #037F9B;
        text-decoration: none;
    }

        #content a:hover {
            text-decoration: underline solid 3px;
            text-underline-offset: 3px;
        }

        #content a.imgLink:hover, .content .left .helperLinks a:hover, .mapImage a:hover {
            text-decoration: none !important;
        }

    #content ul {
        margin-left: 20px;
    }

        #content ul li {
            line-height: 1.5em;
            font-size: 95%;
        }

    #links-sidebar,
    #content #partial-content {
        position: relative;
    }

a.imgLink {
    height: fit-content;
}

#content h1 {
    color: #03738C;
    font-size: 130%;
    padding-bottom: 10px;
    font-weight: bold;
}

#content h2 {
    font-weight: bold;
    font-size: 110%;
    margin-bottom: 5px;
}

#content h3 {
    font-weight: bold;
    font-size: 100%;
    padding-left: 20px;
    margin-bottom: 5px;
}

#content p.indent, 
#content ul.indent,
#content div.indent {
    padding-left: 20px;
}

#content div.contact {
    line-height: 1.5em;
}

#content p.partners {
    text-align: center;
    margin: 70px 75px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 1rem;
}

    #content p.partners a.addSpacing {
        margin-right: 40px;
    }

    #content p.partners a:hover {
        text-decoration: none;
    }

    #content p.partners a img {
        margin-bottom: 20px;
    }

#content div.pics {
    padding-left: 30px;
    max-width: 800px;
}

    #content div.pics img {
        max-width: 280px;
        padding: 5px;
    }

#content div.mapImage {
    width: 410px;
    margin: auto;
}

    #content div.mapImage a {
        background: none;
        border-radius: 4px;
        border-width: 0;
        box-shadow: 0 0 6px #333;
        display: inline-block;
    }

    #content div.mapImage img {
        width: 100%;
        border: solid 1px #666;
        background: none;
        border-radius: 4px;
        border-width: 0;
    }

    #content div.mapImage p {
        font-size: 0.8em;
        color: Gray;
        text-align: center;
        line-height: 1.6em;
        width: 120px;
        margin: auto;
    }

#content .page-title {
    display: grid;
    max-width: 1210px;
    margin: auto;
    grid-template-areas: "title    image" "subtitle image" "empty    image";
}

    #content .page-title h1 {
        color: black;
        grid-area: title;
        padding-left: 15px;
    }

    #content .page-title .subtitle {
        font-style: italic;
        grid-area: subtitle;
        padding-left: 15px;
    }

    #content .page-title .image {
        grid-area: image;
        text-align: right;
        padding-right: 15px;
    }

    #content .page-title img {
        height: 80px;
    }

/* ==================== Sidebar ==================== */

#links-sidebar {
    max-width: 25%;
    min-width: 245px;
    margin: 10px 15px 0;
    font-family: "Libre Franklin", sans-serif;
}

    #links-sidebar.slim {
        min-width: 170px;
    }

    #links-sidebar > div {
        border: solid 2px;
        border-color: #cccccc;
        border-top: solid 4px;
        border-top-color: #999999;
        background-color: #eeeeee;
        padding-top: 10px;
    }

        #links-sidebar > div a {
            color: black;
        }

    #links-sidebar .helperLinks {
        position: absolute;
        bottom: -38px;
        font-size: 75%;
        line-height: 1.6em;
    }

        #links-sidebar .helperLinks a {
            display: block;
        }

    #links-sidebar a {
        cursor: pointer;
    }

    #links-sidebar ul {
        list-style: none outside none;
        margin-left: 0;
        margin-bottom: 10px;
    }

    #links-sidebar div:not(.plain) ul li a {
        background: none 0 0 no-repeat;
        padding-left: 20px;
        padding-bottom: 1px;
        line-height: 1.6em;
        font-size: 86%;
        padding-right: 20px;
        width: 100%;
        display: block;
    }

        #links-sidebar ul li.level-two a {
            padding-left: 32px;
        }

        #links-sidebar ul li.level-two.last a {
            margin-bottom: 6px;
        }

    #links-sidebar div:not(.plain) ul li a:hover {
        background-color: #cccccc;
        text-decoration: none !important;
    }

        #links-sidebar ul li.subcategory {
            font-size: 81.5%;
            font-weight: bold;
            padding: 6px 20px 1px;
            cursor: default;
        }



    #links-sidebar .plain {
        background: 0 none;
        border: none;
        padding-left: 20px;
        font-size: 86%;
    }

    #links-sidebar .plain a {
        margin-left: 2px;
    }

    #links-sidebar .plain a:hover {
        text-decoration: underline solid 2px;
        text-underline-offset: 2px;
    }

    #links-sidebar .plain ul li:hover {
        background: none;
    }

#content div:not(.plain) ul li.selected a,
#content div:not(.plain) ul li.selected a:hover {
    background-color: #666;
}

#content ul li.selected a {
    color: #FFFFFF;
}

#links-sidebar .filter div {
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 81.5%;
    line-height: 1.6;
}

#links-sidebar .filter label {
    font-style: italic;
}

#links-sidebar .filter select {
     width: 200px;
}

/* ==================== Partial ==================== */

#content #partial-content {
    min-width: 50%;
    padding-top: 10px;
    flex-grow: 2;
    margin: 0 20px;
}

#content #partial-content .download {
    font-size: 0.9375em;
}

    #content #partial-content .download .downloadTitle {
        font-weight: bold;
    }

    #content #partial-content .download  * + .otherLinks {
        padding-top: 1em;
    }

        #content #partial-content .download .otherLinks a {
            display: table;
            line-height: 1.6em;
        }

    #content #partial-content .download_NPS {
        font-size: 75%;
        line-height: 1.6em;
    }

        #content #partial-content .download_NPS .otherLinks {
            font-style: italic;
            padding-top: 10px;
        }

        #content #partial-content .download_NPS .downloadTitle {
            font-weight: bold;
        }

    #content #partial-content .download_NPS {
        float: right;
    }

#contact-page {
    margin: 30px auto;
    width: 370px;
}
#content #partial-content .updateSiteLink {
    margin-top: 10px;
}

.partial-side-image {
    max-width: 200px;
}

#content .flat-left h3 {
    padding-left: 0;
    padding-top: 0.25em;
    margin-bottom: 2px;
}

#content .flat-left h4 {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 600;
    padding-top: 0.25em;
    margin-bottom: 2px;
}

#content .flat-left p {
    margin-left: 0;
    padding-bottom: 1em;
    font-size: 0.875em;
    line-height: 1.6;
}

#content .flat-left img {
    margin-bottom: 1em;
    width: 100%;
    display: block;
    border: 1px solid #ccc;
    max-width: 620px;
}

#content .flat-left ol li,
#content .flat-left .pubs li {
    padding-bottom: 1em;
}

#content .flat-left .pubs {
    list-style: none;
    margin-left: 0;
}

.deck {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 1rem;
    max-width: 100%;
    font-family: 'Libre Franklin', sans-serif;
    margin-top: 1em;
    margin-bottom: 1em;
    min-height: 220px;
    font-weight: 600;
}

.card {
    display: grid;
    grid-template-rows: 3fr 2fr;
    justify-items: center;
    align-items: center;
    text-align: center;
    width: 260px;
    height: 200px;
    background-color: #fff;
    border: 1px solid #eee;
    color: #333 !important;
}

.card svg {
    position: relative;
    top: 7px;
    fill: #333;
}

.card div~div {
    background-color: #eee;
    width: 100%;
    height: 100%;
    display: grid;
    align-content: center;
}

    .card:hover,
    .card:focus {
        color: black !important;
        border: 1px solid #ddd !important;
    }

    .card:hover svg,
    .card:focus svg {
        fill: black;
    }

/* ==================== Account & Admin ==================== */
.password-note {
    font-style: italic;
    margin-bottom: 10px;
}

.bottom-margin-10 {
    margin-bottom: 10px;
}

.top-margin-10 {
    margin-top: 10px;
}

.login-warning {
    clear: both;
    padding-top: 35px;
    font-size: 14px;
    line-height: 1.4em;
    color: #666;
}

/* ==================== Footer ==================== */

footer {
    background: #03738C;
    width: -webkit-fill-available;
    z-index: 1;
    padding: 20px;
    color: White;
    margin-top: auto;
    position: relative;
    font-family: "Libre Franklin", sans-serif;
    line-height: 1.5;
}

    footer ul {
        position: relative;
        list-style: none;
        padding-left: 30px;
    }

        footer > ul li, footer ul li span.bar {
            color: White;
            float: left;
            padding-right: 5px;
        }

    footer a {
        color: White;
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline solid 2px;
            text-underline-offset: 3px;
        }

    footer h2 {
        font-weight: 600;
    }

#addlInfo {
    display: grid;
    /*grid-template: 1fr auto / minmax(230px, 1fr) minmax(230px, 1fr) minmax(230px, 1fr) minmax(230px, 2fr);*/
    grid-template-areas: "header header header header"
                         "models tools partners contacts";
    grid-gap: 2em 1em;
}

    #addlInfo section {
        min-width: 250px;
    }

    #addlInfo section a {
        display: inline-block;
        padding-left: 1em;
        text-indent: -1em;

    }

    #addlInfo section:last-of-type {
        text-align: right;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    #addlInfo h1 {
        color: white;
        font-size: 1.25rem;
        padding-bottom: 8px;
        font-weight: bold;
    }

    #addlInfo ul {
        list-style: none outside none;
        margin-left: 20px;
        margin-bottom: 10px;
    }

        #addlInfo ul li {
            line-height: 1.5em;
            font-size: 95%;
        }
          
    #addlInfo .notices {
        font-weight: 600;
    }

#jem-label-footer {
    grid-area: header;
    opacity: .75;
}

.models {
    grid-area: models;
}

.tools {
    grid-area: tools;
}

.partners {
    grid-area: partners;
}

.contacts {
    grid-area: contacts;
}

#jem-label-footer h1 {
    padding: 0;
}

#jem-label-footer p {
    font-style: italic;
}

.footer-email {
    float: right;
    line-height: 2;
}

@media all and (max-width: 695px) {
    .footer-email {
        float: none;
        padding-left: 30px;
        width: 400px;
    }
}

footer > ul {
    line-height: 2;
}

.footer-contact * {
    opacity: .75;
}

    .footer-contact a {
        font-weight: 600;
        text-decoration: underline solid 2px;
        text-underline-offset: 3px;
    }

    .footer-contact a:hover {
        opacity: 1;
    }

@media(max-width: 1080px) {
    #addlInfo {
        grid-template-areas: "header header header"
                             "models tools contacts"
                             "models partners contacts"
    }

        #addlInfo section:last-of-type {
            text-align: left;
        }

    #jem-label-footer {
        grid-column: span 2;
    }
}

/* ==================== Skip Links ==================== */

.skip-link {
    font-size: 0.7rem;
    opacity: 0;
}

    .skip-link:focus {
        opacity: 1;
    }

header .skip-link {
    position: absolute;
    bottom: 0;
}

#links-sidebar .skip-link {
    float: right;
    margin-right: 5px;
}

/* ==================== Main Page ==================== */

#main-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    grid-gap: 1em;
    margin: 0 auto;
    max-width: 1440px;
}

.hero-text {
    font-size: 3em;
    line-height: 1.1em;
    font-family: 'Libre Franklin', sans-serif;
    margin-bottom: 0.5em;
}

.hero-image,
#main-text {
    margin: 0 15px;
    font-size: 1.25em;
    line-height: 1.5;
}

.sub-text {
    margin: 2em 15px;
    max-width: 620px;
    text-align: left;
    line-height: 1.5;
}

#content .sub-text h3, 
#content .sub-text p {
    margin-left: 0;
    padding-left: 0;
}

    #content .sub-text h3::after {
        content: "\00BB";
        padding-left: 3px;
        color: #03738C;
    }

    #content .sub-text p {
        font-size: 0.95em;
        margin-bottom: 0.5em;
    }

@media (max-width: 1439px) {
    .hero-text {
        font-size: 2.5em;
    }
    #main-text {
        margin-right: 2em;
    }
}

@media (max-width: 1099px) {
    #main-text {
        font-size: 1em;
        margin-right: 3em;
    }
}

/* ==================== Misc ==================== */
.sponsored {
    float: right;
}

    .sponsored p img,
    .sponsored p a img {
        height: 32px;
    }

        .sponsored p img.nps,
        .sponsored p a img.nps {
            height: 80px !important;
        }

.saveButtonIcon {
    background-image: url(Images/Done_small.png) !important;
}

.resetButtonIcon {
    background-image: url(Images/Document_small.png) !important;
}

.removeButtonIcon {
    background-image: url(Images/Remove_small.png) !important;
}

.replaceButtonIcon {
    background-image: url(Images/delete.png) !important;
    background-size: 18px 18px;
    height: 18px !important;
    width: 18px !important;
}

.addButtonIcon {
    background-image: url(Images/Add_small.png) !important;
}

.dlButtonIcon {
    background-image: url(Images/Download_small.png) !important;
}

.proofButtonIcon {
    background-image: url(Images/search_page.png) !important;
    background-size: 20px 20px;
    height: 20px !important;
    width: 20px !important;
    margin-top: -10px !important;
}

.pdfButtonIcon {
    background-image: url(Images/pdficon_small.png) !important;
    background-size: 20px 20px;
    height: 20px !important;
    width: 20px !important;
    margin-top: -10px !important;
}

.detailsButtonIcon {
    background-image: url(Images/Add.png) !important;
    background-size: 20px 20px;
    height: 20px !important;
    width: 20px !important;
    margin-top: -10px !important;
}

.center-main-content {
    display: flex;
    height: 100%;
    max-width: 1210px;
    margin: auto;
}

    .text,
    .center-main-content p {
        max-width: 620px;
        line-height: 1.5;
    }

.center {
    max-width: 1210px;
    margin: auto;
    margin-top: 20px;
}

.download-arrow {
    position: relative;
    top: 1px;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

    .flex-wrap .download {
        margin-left: 20px;
        max-width: 400px;
        line-height: 1.5;
    }

.flex {
    display: flex;
}

    .flex .image {
        width: 33%;
        min-width: 200px;
    }

    .flex .image-sm {
        width: 22%;
        min-width: 150px;
    }

    .flex .image-lg {
        width: 50%;
        min-width: 400px;
    }

        .flex .image img,
        .flex .image-sm img,
        .flex .image-lg img {
            width: 100%;
            display: block;
            border: 1px solid #ccc;
        }

    .flex .download {
        padding-left: 30px;
        line-height: 1.5;
        min-width: 280px;
        max-width: 620px;
    }

.flex + .flex,
.text + .flex {
    margin-top: 1em;
}

.text img {
    max-width: 100%;
}

.sponsored {
    margin-top: 2em;
    background: #eee;
    border: 1px solid #ccc;
    padding: 15px 30px;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    text-align: center;
    font-family: "Libre Franklin", sans-serif;
    font-weight: bold;
}

.sponsored img {
    max-height: 50px;
    max-width: 100px;
    margin-top: 1em;
}

.sponsored img + img {
    margin-left: 1em;
}

.text,
.flex + .flex .download {
    min-width: 440px;
    max-width: 620px;
}

.flex .text, 
.flex .download {
    width: 66%;
}
.release-notes-container {
    max-width: 900px;
}

.text-center {
    text-align: center !important;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    grid-gap: 1rem;
    margin-bottom: 10px;
}

.software-requirements {
    max-width: 265px;
    font-size: 90%;
}

.software-requirements div {
    margin-left: 30px;
    margin-bottom: 16px;
}

.software-requirements ul {
    margin-top: 6px;
}

.software-requirements li {
    margin-left: 20px;
}

.gallery-info-box {
    border: 1px solid silver;
    padding: 5px;
    font-size: 0.8rem;
    width: 353px;
    margin: auto;
}

img.nps-logo {
    width: 100px;
    height: 130px;
    position: relative;
    top: 0;
    right: 0;
    float: right;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.text-align-right {
    text-align: right;
}

.img-caption {
    font-size: 10px;
    line-height: 14px;
    max-width: 100%;
    margin-top: 4px;
}

/* D3 Charting */
.notice {
    position: absolute;
    top: -1.5em;
    left: 35%;
    width: 30%;
    background: #B8DBD3;
    border: 2px solid #03738c;
    padding: 0.5em 2em;
    text-align: center;
    font-family: 'Libre Franklin', sans-serif;
}

.chartGrid,
.medianGrid,
.mapGrid,
.multiGrid {
    display: grid;
    grid-template: repeat(2, 260px) / repeat(2, 400px);
    grid-gap: 3em;
    font-family: 'Libre Franklin', sans-serif;
    margin-bottom: 4em;
}

.medianGrid {
    grid-template-rows: auto;
}

.mapGrid {
    grid-template: repeat(2, 540px) / repeat(2, 400px);
}

.multiGrid {
    grid-template: repeat(2, 680px) / repeat(2, 400px);
}

.dashed {
    stroke-dasharray: 8, 4;
}

.dotted {
    stroke-dasharray: 2, 4;
}

.chartTitle,
.medianTitle {
    margin: 2em 0;
    margin-bottom: 1em !important;
}

.hidden {
    display: none;
}

.regionDisabled {
    background-color: #eeeeee;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23dddddd' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

@media (max-width: 880px) {
    .chartGrid {
        grid-template: repeat(6, 240px) / 420px;
    }

        .chartGrid div:nth-last-of-type(3) {
            order: -1;
        }

        .chartGrid div:last-of-type {
            order: 1;
        }

        .chartGrid div:nth-last-of-type(2) {
            order: 2;
        }
}

.mapGrid svg path {
    stroke: #999;
    fill: #eee;
}

.species, .biweek {
    width: 240px;
}

.region-label,
.score-label {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 9px;
    max-width: 100px;
    text-anchor: middle;
}

.region-label {
    font-weight: bold;
}

.species-icons {
    margin-top: 2em;
	margin-bottom: 0.5em;
    height: 4em;
    text-align: center;
    max-width: 620px;
}

    .species-icons svg {
        display: inline;
        width: 4em;
    }

    .species-icons svg + svg {
        margin-left: 0.5em;
    }

.gantt {
    font-family: "Libre Franklin", sans-serif;
    max-width: 800px;
}

    .gantt .grid .tick {
        stroke: white;
        shape-rendering: crispEdges;
    }

        .gantt .grid .tick line {
            opacity: 0.3;
        } 

    .gantt .grid path {
        stroke-width: 0;
    }

    .toolTip {
        border: 3px solid #CCCCCC;
        border-radius: 3px;
        filter: drop-shadow(0 0 0.25rem #CCCCCC);
        position: absolute;
        display: none;
        min-width: 30px;
        max-width: 250px;
        border-radius: 4px;
        height: auto;
        background: rgba(250,250,250, 0.9);
        border: 1px solid #DDD;
        padding: 4px 8px;
        font-size: .85rem;
        text-align: left;
        z-index: 1000;
        color: black;
        font-family: "Libre Franklin", sans-serif;
    }