﻿html {
    scroll-behavior: smooth;
}

/* Social Icon Fix */
#follow-us {
    display: inline-block !important;
}

#top-bar-secondary a:nth-child(2) {
    border-left: 1px solid #0a2141;
}

/*************
NAV
*************/
.soit-nav {
    max-width: 360px !important;
    width: 100% !important;
    background: rgba(1, 25, 53, 0.87);
    color: #ffffff;
    border-radius: 0 0 10px 10px;
    height: 35px;
    position: fixed;
    top: 44px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding-top: 5px;
}
.soit-nav div {
    text-align: center;
}
.soit-nav .browse {
    text-transform: uppercase;
    font-weight: 700;
}
.soit-nav .share {
    position: relative;
}
.soit-nav a {
    color: #ffffff;
    -webkit-transition: text-shadow 0.2s linear;
    -moz-transition: text-shadow 0.2s linear;
    -ms-transition: text-shadow 0.2s linear;
    -o-transition: text-shadow 0.2s linear;
    transition: text-shadow 0.2s linear;
}
.soit-nav a:hover {
    text-shadow: 2px 2px 8px rgba(255,255,255,0.7);
}
.share-options {
    visibility: hidden;
    width: 200px;
    background-color: #222222;
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 6px;
    /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    top: 40px;
    left: -150px;
    /*margin-left: -70px;*/
    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}
/* Tooltip arrow */
.share-options::after {
    content: "";
    position: absolute;
    top: -18px;
    right: 5%;
    margin-left: -5px;
    border-width: 9px;
    border-style: solid;
    border-color: transparent transparent #222222 transparent;
}
.share-options.show {
    visibility: visible;
    opacity: 1;
}
.share-heading {
    font-weight: 700;
    text-align: left !important;
}
.share-heading:nth-of-type(2n) {
    margin-top:10px;
}
.share-options a {
    text-align: left;
    display: block;
}
.close {
    position: absolute;
    top: 5px;
    right: 5px;
}
.share-options i {
    width: 20px;
}

.parallax-content.banner {
    padding: 0;
}

.header__banner-wrapper {
    padding: 1.875rem 1.5rem 0;
}

.header__banner-text {
    margin-bottom: .5rem;
}

.header__banner {
    background: linear-gradient(24deg, #ffa82f, #ffbd40);
    background-image: radial-gradient(#62c4fb, #71c8f7, #40b8f9);
    box-shadow: 0 2px 0 #cbccd1, 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -2px rgb(0 0 0 / 5%);
    border-radius: 5px;
    color: #000;
    justify-content: center;
    flex-wrap: wrap;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.375;
    grid-template-columns: auto 300px;
    grid-column-gap: 10px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    text-align: center;
}
    .header__banner.thanks {
        grid-template-columns: auto;
        background: #d4edda;
        padding-bottom: 0;
    }

.header__banner p {
    font-size: 1.175rem;
    font-family: 'Lato', Arial, Sans-Serif;
    font-weight: 500;
    line-height: 1.375;
    margin: 0;
}

    .header__banner.thanks p {
        margin-bottom: 1.5rem;
    }

    .header__banner p strong {
        font-weight: 600;
        margin-top: 0.625rem;
        padding-bottom: 0.125rem;
        font-size: 1.1em;
    }

    .header__banner .btn {
        background-color: #06448d;
        color: white;
        font-size: 1rem;
        font-family: 'Lato', Arial, Sans-Serif;
        font-weight: 900;
        margin-top: 0.25rem;
        margin-bottom: 0;
        padding: 0.625rem 1.5rem;
        text-transform: uppercase;
        border-radius: 2px;
        display: inline-block;
        transition: all .3s ease;
    }

    .header__banner .btn:hover {
        background-color: #053a79;
    }

/*************
STATE CHAMPIONS
*************/
.state-champions {
    text-align: center;
}
.state-champions .row {
    display: flex;
    flex-flow: row;
    flex-wrap: nowrap;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.champion {
    margin-bottom: 20px;
}
.champion-name {
    background: rgba(1, 25, 53, 0.87);
    color: #fff;
    padding: 10px;
}
.champion img {
    width: 100%;
    max-width: 200px;
}
/*************
BROWSE BY STATE
*************/
#browse-by-state {
    position: relative; /* doing this so shortcut button hides when it gets here */
    z-index: 2;
    padding-top: 100px; /* this is overwritten so if people click the shortcut the menu doesn't hide the heading (44px + a bit more) */
}
#browse-by-state .parallax-container {
    width: 100%;
    text-align: center;
    padding: 0;
}
#browse-by-state .parallax-container p {
    padding-left: 20px;
    padding-right: 20px;
}
#browse-by-state .row {
    display: flex;
    flex-flow: row;
    flex-wrap: nowrap;
    flex-wrap: wrap;
    justify-content: center;
}
.state {
    position: relative;
    /*background: #011935;*/
    overflow: hidden;
}
.state img {
    object-fit: cover;
    /*opacity: 0.4;*/
    transition: transform .5s ease;
}
.state a:hover img {
    transform: scale(1.1);
}
.state .heading {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    width:100%;
    color: #fff;
    font-size: calc(55px + (55 - 30) * ((100vw - 320px) / (2000 - 320)));
    font-weight: bold;
}
/* We are implementing a new dynamic approach using the ID 'browse', as the existing one (ID 'browse-by-state') is not suitable for all states of sites since it displays in the browser's address bar.*/
#browse {
    position: relative; /* doing this so shortcut button hides when it gets here */
    z-index: 2;
    padding-top: 100px; /* this is overwritten so if people click the shortcut the menu doesn't hide the heading (44px + a bit more) */
}

    #browse .parallax-container {
        width: 100%;
        text-align: center;
        padding: 0;
    }

        #browse .parallax-container p {
            padding-left: 20px;
            padding-right: 20px;
        }

    #browse .row {
        display: flex;
        flex-flow: row;
        flex-wrap: nowrap;
        flex-wrap: wrap;
        justify-content: center;
    }
/***********
    ARTICLES
************/
.parallax-content li {
    font-size: 1.063rem;
}
.parallax-content a {
    color: #ca0808;
}
/*************
table
*************/
table {
    border: solid 1px #dbe4ef;
    box-shadow: 0 6px 5px 5px rgb(238, 240, 243), 0 0 0 1px rgba(0, 0, 0, 0.02);
    width: 100% !important; /* should override any CMS added width */
}

table tr:nth-of-type(2n) {
    background: #e7eef7;
}

table tr td:nth-of-type(2n) {
    text-align: center;
}

table tr:last-of-type {
    background: #172f4a;
}

table tr:last-of-type td, 
table tr:last-of-type p {
    color: white;
}

table tr:last-of-type td {
    border: solid 1px #395471;
    padding: 1rem .875rem;
}

table p {
    color: #172f4a;
    margin: 0;
    font-weight: 600;
}

table tr td {
    color: #172f4a;
    font-weight: 600;
    border: solid 1px #dbe4ef;
    padding: .875rem;
    font-size: 1.063rem;
    line-height: 1.6 !important;
}

/*************
FORM
*************/
.form-inner, .form-submit, .error {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}
.form-section {
    background: var(--itn-color-accent-white-1);
    padding: 1.25em;
    -webkit-box-shadow: 5px 5px 10px 0px rgba(0,0,0,0.3);
    box-shadow: 5px 5px 10px 0px rgba(0,0,0,0.3);
}
.terms, .terms p {
    font-size: 13px;
    line-height: 16px;
    margin-top: 20px;
    color: var(--itn-color-accent-lightgray-text);
    font-family: inherit;
}
.error {
    display: block;
    padding: 1em;
    background: rgba(202, 8, 8, 0.24);
    margin-bottom: 20px;
}
.error__heading {
}
.error__list ul {
    list-style-image: none;
    margin-left: 2.25em;
    margin-bottom: 0;
}
.form-section .columns {
    padding-left: 0.25em;
    padding-right: 0.25em;
}
input[type="checkbox"] + label {
    line-height: 1.4rem;
}

@media(min-width: 40em) {

    .header__banner-wrapper {
        padding-top: 2.5rem;
    }

    .header__banner {
        display: grid;
        grid-template-columns: auto 190px;
        padding: 1.125rem;
    }

    .header__banner-text {
        margin-bottom: 0;
    }
    .header__banner p {
        font-size: 1.25rem;
    }

    .header__banner .btn {
        padding: 0.75rem 1rem;
    }
}

@media(min-width: 60em) {
    .header__banner-wrapper {
        padding-top: 3.5rem;
    }
    .header__banner {
        grid-template-columns: auto 280px;
        padding: 1.625rem;
    }
    .header__banner p {
        font-size: 1.375rem;
        line-height: 1;
    }

    .header__banner p strong {
        display: block;
        font-size: 1.125em;
    }

    .header__banner .btn {
        width: 230px;
        margin-left: 1rem;
    }

    table tr td {
        padding: 2rem;
    }

    table tr:last-of-type td {
        padding: 2rem;
    }

    table tr:last-of-type td,
    table tr:last-of-type p {
        font-size: 1.175rem;
    }
}

@media(max-width: 60em) {
    .soit-nav {
        top: 56px;
    }

    blockquote {
        margin: .5em;
    }

    blockquote p {
        margin: 0;
    }

    table p,
    table tr td {
        font-size: .9875rem;
        line-height: 1.5;
    }
}