html {
    font-family: 'Open Sans', sans-serif;
}

body {
    margin: 0;
    overflow-x: hidden;
    height: 100vh;
    width: 100vw;
    min-width: 375px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--main-bg-color);
    padding: 2em;
}


/**Hide Checkbox above Nav Links **/
#trigger {
    display: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav input[type=text] {
    transition: width 0.4s ease-in-out;
}

nav input[type=text]:focus {
    width: 100%;
}

nav li {
    padding: 0 0.5em;
    z-index: 9;
    background-color: var(--main-bg-color);
}

.logo #main-logo {
    height: auto;
    width: 100%;
    max-width: 270px;
}

nav li a:hover, nav li div:hover {
    text-decoration: none;
    color: var(--main-red-color);
}


/*** Click to open Search ***/

.search-bar {
    display: flex;
}

body {
    /*background: #f1f1f1;*/
    height: 100vh;
}

.search-bar input,
.search-btn,
.search-btn:before,
.search-btn:after {
    transition: all 0.25s ease-out;
}

.search-bar input,
.search-btn {
    width: 3em;
    height: 3em;
}

.search-bar input:invalid:not(:focus),
.search-btn {
    cursor: pointer;
}

.search-bar,
.search-bar input:focus,
.search-bar input:valid {
    width: 100%;
}

.search-bar input:focus,
.search-bar input:not(:focus) + .search-btn:focus {
    outline: transparent;
}

.search-bar {
    margin: auto;
    padding: 1.5em;
    justify-content: center;
    max-width: 30em;
}

.search-bar input {
    background: var(--main-bg-color);
    border-radius: 1.5em;
    box-shadow: 0 0 0 0.4em #171717 inset;
    padding: 0.75em;
    transform: translate(0.5em, 0.5em) scale(0.5);
    transform-origin: 100% 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-bar input::-webkit-search-decoration {
    -webkit-appearance: none;
}

.search-bar input:focus,
.search-bar input:valid {
    background: #fff;
    border-radius: 0.375em 0 0 0.375em;
    box-shadow: 0 0 0 0.1em #d9d9d9 inset;
    transform: scale(1);
}

.search-btn {
    background: #171717;
    border-radius: 0 0.75em 0.75em 0 / 0 1.5em 1.5em 0;
    padding: 0.75em;
    position: relative;
    transform: translate(0.25em, 0.25em) rotate(45deg) scale(0.25, 0.125);
    transform-origin: 0 50%;
}

.search-btn:before,
.search-btn:after {
    content: "";
    display: block;
    opacity: 0;
    position: absolute;
}

.search-btn:before {
    border-radius: 50%;
    box-shadow: 0 0 0 0.2em #f1f1f1 inset;
    top: 0.75em;
    left: 0.75em;
    width: 1.2em;
    height: 1.2em;
}

.search-btn:after {
    background: #f1f1f1;
    border-radius: 0 0.25em 0.25em 0;
    top: 51%;
    left: 51%;
    width: 0.75em;
    height: 0.25em;
    transform: translate(0.2em, 0) rotate(45deg);
    transform-origin: 0 50%;
}

.search-btn span {
    display: inline-block;
    overflow: hidden;
    width: 1px;
    height: 1px;
}

/* Active state */
.search-bar input:focus + .search-btn,
.search-bar input:valid + .search-btn {
    background: var(--is-latest-news-alt); /*Search button background color */
    border-radius: 0 0.375em 0.375em 0;
    transform: scale(1);
}

.search-bar input:focus + .search-btn:before,
.search-bar input:focus + .search-btn:after,
.search-bar input:valid + .search-btn:before,
.search-bar input:valid + .search-btn:after {
    opacity: 1;
}

.search-bar input:focus + .search-btn:hover,
.search-bar input:valid + .search-btn:hover,
.search-bar input:valid:not(:focus) + .search-btn:focus {
    background: var(--main-red-color);
}

.search-bar input:focus + .search-btn:active,
.search-bar input:valid + .search-btn:active {
    transform: translateY(1px);
}

@media screen and (prefers-color-scheme: dark) {
    body, input {
        color: #f1f1f1;
    }

    body {
        /*background: #171717;*/
    }

    .search-bar input {
        box-shadow: 0 0 0 0.4em #f1f1f1 inset;
    }

    .search-bar input:focus,
    .search-bar input:valid {
        background: var(--main-btn-color);
        color: var(--is-txt);
        /*box-shadow: 0 0 0 0.1em #3d3d3d inset;*/ /*Remove box-shadow from around input */
    }

    .search-btn {
        background: #f1f1f1;
    }
}


@media only screen and (min-width: 1001px) {
    close, open {
        display: none;
    }

    nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
    }

    ul.submenu {
        display: none;
        position: absolute;
    }

    li.dropdown, li.navbar-link {
        /*display: inline-block;*/
        padding: 0 0.25em 0 1em;
        margin: auto 0;
        white-space: nowrap;
    }

    li.dropdown div, nav ul li > a {
        color: var(--home-txt);
        font-size: 16px;
    }

    li.dropdown div:hover {
        cursor: pointer;
    }

    li.navbar-link {
        margin: auto 0;
    }

    li.navbar-link a {
        color: var(--home-txt);
    }

    li.nav-search {
        display: grid;
    }

    ul.submenu {
        position: absolute;
        width: auto;
        min-width: 250px;
        filter: drop-shadow(0px 0px 2px black);
    }

    .submenu li a {
        display: block;
        padding: 0.5em 1em;
    }


    /*.droplist a {*/
    /*    display: block;*/
    /*}*/
    /*.droplist-sub {*/
    /*    padding: 1.5rem;*/
    /*}*/
    /*.droplist-sub ul {*/
    /*    padding:0;*/
    /*    margin:0;*/
    /*    list-style-type:none;*/
    /*}*/
    /*.droplist-sub:focus ~ .droplist {*/
    /*    max-height:400px;*/
    /*}*/
    /*.droplist a:hover, .droplist a:active {*/
    /*    background-color: var(--lt-blue-color);*/
    /*}*/
    /*.dropdown:hover , .dropdown:active .droplist{*/
    /*    display: block;*/
    /*    z-index: 9;*/
    /*    background: var(--main-bg-color);*/
    /*}*/
}

.drawer-list {
    font-weight: 700;
}

div.mobile-only {
    display: none;
}

@media only screen and (max-width: 1000px) {
    div.mobile-only {
        display: block;
    }

    menu.desktop-only {
        display: none;
    }

    menu .drawer-list ul.submenu {
        background-color: var(--lt-blue-color);
        height: auto;
        padding: 1em;
    }

    menu .drawer-list ul.submenu li {
        background-color: transparent;
        border-bottom: solid 1px;
    }

    menu .drawer-list ul.submenu li a {
        padding: 10px 15px;
        font-weight: 400;
    }

    menu .drawer-list ul.submenu li:last-child {
        margin-bottom: 0px;
    }

    menu .drawer-list ul.submenu li:first-child {
        border-top: solid 1px;
    }

    nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }


    menu, menu label {
        position: absolute;
        top: 0;
        right: 0;
    }

    menu {
        margin: 0;
    }

    menu input[type=checkbox] {
        display: none;
    }

    menu input[type=checkbox]:checked + .drawer-list {
        transform: translatex(0);
        border-bottom-left-radius: 0;

    }

    menu input[type=checkbox]:checked + .drawer-list li {
        transform: translatex(0);
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(1) {
        transition: transform 0.5s 0.02s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(2) {
        transition: transform 0.5s 0.04s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(3) {
        transition: transform 0.5s 0.06s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(4) {
        transition: transform 0.5s 0.08s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(5) {
        transition: transform 0.5s 0.1s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(6) {
        transition: transform 0.5s 0.12s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(7) {
        transition: transform 0.5s 0.14s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(8) {
        transition: transform 0.5s 0.16s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(9) {
        transition: transform 0.5s 0.18s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(10) {
        transition: transform 0.5s 0.2s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(11) {
        transition: transform 0.5s 0.22s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(12) {
        transition: transform 0.5s 0.24s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(13) {
        transition: transform 0.5s 0.26s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(14) {
        transition: transform 0.5s 0.28s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(15) {
        transition: transform 0.5s 0.3s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(16) {
        transition: transform 0.5s 0.32s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(17) {
        transition: transform 0.5s 0.34s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(18) {
        transition: transform 0.5s 0.36s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(19) {
        transition: transform 0.5s 0.38s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(20) {
        transition: transform 0.5s 0.4s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(21) {
        transition: transform 0.5s 0.42s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(22) {
        transition: transform 0.5s 0.44s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(23) {
        transition: transform 0.5s 0.46s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(24) {
        transition: transform 0.5s 0.48s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(25) {
        transition: transform 0.5s 0.5s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(26) {
        transition: transform 0.5s 0.52s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(27) {
        transition: transform 0.5s 0.54s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(28) {
        transition: transform 0.5s 0.56s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(29) {
        transition: transform 0.5s 0.58s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(30) {
        transition: transform 0.5s 0.6s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(31) {
        transition: transform 0.5s 0.62s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(32) {
        transition: transform 0.5s 0.64s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(33) {
        transition: transform 0.5s 0.66s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(34) {
        transition: transform 0.5s 0.68s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(35) {
        transition: transform 0.5s 0.7s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(36) {
        transition: transform 0.5s 0.72s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(37) {
        transition: transform 0.5s 0.74s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(38) {
        transition: transform 0.5s 0.76s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(39) {
        transition: transform 0.5s 0.78s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(40) {
        transition: transform 0.5s 0.8s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(41) {
        transition: transform 0.5s 0.82s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(42) {
        transition: transform 0.5s 0.84s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(43) {
        transition: transform 0.5s 0.86s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(44) {
        transition: transform 0.5s 0.88s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(45) {
        transition: transform 0.5s 0.9s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(46) {
        transition: transform 0.5s 0.92s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(47) {
        transition: transform 0.5s 0.94s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(48) {
        transition: transform 0.5s 0.96s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(49) {
        transition: transform 0.5s 0.98s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li:nth-child(50) {
        transition: transform 0.5s 1s ease;
    }

    menu input[type=checkbox]:checked + .drawer-list li a {
    }

    menu input[type=checkbox]:checked ~ hamburger > i {
        background-color: transparent;
        transform: rotate(90deg);
    }

    menu input[type=checkbox]:checked ~ hamburger > i:before {
        transform: translate(-50%, -50%) rotate(315deg);
    }

    menu input[type=checkbox]:checked ~ hamburger > i:after {
        transform: translate(-50%, -50%) rotate(-315deg);
    }

    menu input[type=checkbox]:checked ~ hamburger close {
        color: #FEFEFE;
        width: 100%;
    }

    menu input[type=checkbox]:checked ~ hamburger open {
        color: transparent;
        width: 0;
    }

    menu .drawer-list {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 100vw;
        transform: translate(100vw, 0);
        /* ie workaround */
        -ms-transform: translatex(-100vw);
        box-sizing: border-box;
        pointer-events: none;
        padding-top: 125px;
        transition: width 475ms ease-out, transform 450ms ease, border-radius .8s .1s ease;
        border-bottom-left-radius: 100vw;
        background-color: var(--main-bg-color);
        z-index: 5;
    }

    /* Search Feature in Nav */
    /* This styles position of Search in mobile menu - Safari*/
    .nav-search {
        margin-top: 2em;
    }


    .fa {
        box-sizing: border-box;
        padding: 10px;
        width: 42.5px;
        height: 42.5px;
        position: absolute;
        top: 0;
        right: 0;
        border-radius: 50%;
        color: var(--main-red-color);
        /*background-color: var(--main-red-color);*/
        text-align: center;
        font-size: 1.2em;
        transition: all 1s;
    }

    #menu-search:hover, #menu-search:active {
        width: 200px;
        cursor: pointer;
        overflow: auto;
    }

    #menu-search:hover, #menu-search:active input {
        display: block;
    }

    #menu-search:hover, #menu-search:active .fa {
        background: var(--main-red-color);
        color: white;
    }


    @media (min-width: 375px) {
        .search-bar input:focus,
        .search-bar input:valid {
            background: var(--main-btn-color);
            color: var(--is-txt);
        }
    }
    @media (min-width: 768px) {
        menu .drawer-list {
            width: 35vw;
            filter: drop-shadow(0 0 10px rgba(0, 0, 0, .5));
        }
    }

    @media (min-width: 800px) {
        menu .drawer-list {

            width: 37vw;
        }
    }
    @media (min-width: 900px) {
        menu .drawer-list {

            width: 33vw;
        }
    }
    @media (min-width: 1045px) {
        menu .drawer-list {
            width: 35vw;
        }
    }

    menu .drawer-list ul {
        height: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: auto;
        overflow-x: hidden;
        pointer-events: auto;
    }

    menu .drawer-list li {
        list-style: none;
        text-transform: uppercase;
        pointer-events: auto;
        white-space: nowrap;
        box-sizing: border-box;
        transform: translatex(100vw);
        /* ie workaround */
        -ms-transform: translatex(-100vw);
    }

    menu .drawer-list li:last-child {
        margin-bottom: 2em;
    }

    menu .drawer-list li a, menu .drawer-list li div {
        text-decoration: none;
        color: #FEFEFE;
        text-align: center;
        display: block;
        padding: .5rem;
        font-size: 1.2em;
    }

    @media (min-width: 768px) {

        menu .drawer-list li a, menu .drawer-list li div {
            /* font-size: 1rem; */
            text-align: right;
        }
    }

    menu .drawer-list li a:hover, menu .drawer-list li div:hover {
        cursor: pointer;
        background-color: var(--main-red-color);
    }

    menu hamburger {
        position: fixed;
        display: block;
        top: 20px;
        right: 20px;
        height: 50px;
        width: 50px;
        z-index: 7;
        background-color: rgba(0, 51, 102, 0.6);
        border-radius: 5px;
        border: solid 5px rgba(255, 255, 255, 0.1);
        border: solid 2px rgba(255, 255, 255, 1.0);
    }

    menu hamburger:hover {
        cursor: pointer;
    }

    menu hamburger text close, menu hamburger text open {
        text-transform: uppercase;
        font-size: .75em;
        /* align-text: center; */
        position: absolute;
        transform: translateY(50px);
        text-align: center;
        overflow: hidden;
        transition: width .25s .35s, color .45s .35s;
        /* background-color: rgba(197, 30, 62, 0.5); */
        display: none;
    }

    menu hamburger text close {
        color: transparent;
        right: 0;
        width: 0;
    }

    menu hamburger text open {
        color: #FEFEFE;
        width: 100%;
    }

    menu hamburger > i {
        position: absolute;
        width: 80%;
        height: 2px;
        top: 48%;
        margin: 0 10%;
        background-color: #FEFEFE;
        pointer-events: auto;
        transition-duration: .35s;
        transition-delay: .35s;
    }

    menu hamburger > i:before, menu hamburger > i:after {
        position: absolute;
        display: block;
        width: 100%;
        height: 2px;
        left: 50%;
        background: #FEFEFE;
        content: "";
        transition: transform 0.35s;
        transform-origin: 50% 50%;
    }

    menu hamburger > i:before {
        transform: translate(-50%, -14px);
    }

    menu hamburger > i:after {
        transform: translate(-50%, 14px);
    }

    .submenu {
        display: inline-block;
    }

    form#menu-search {
        color: var(--is-txt);
    }
}

li.nav-search form, form.sj-input_input, #nav-search-box, .search-box-styling:before, .search-box-styling:after {
    background-color: #fff;
    color: #000;
}

@media (max-width: 1000px) {
    .endorsements-nav-header {
        font-size: 1.98rem !important;
    }
}