// VALUE:COLOR_2:
// VALUE:COLOR_1:
*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}


/* width */

#main-navigation::-webkit-scrollbar {
    width: 0px;
}


/*This changes the box model of everything in the website and can be overwriten per component if needed. To read more about box-sizing and why you'd want to overwrite it see https://css-tricks.com/international-box-sizing-awareness-day/ or https://www.w3schools.com/cssref/css3_pr_box-sizing.asp*/


/*--------------------------------------------------------
	FONT ASSIGNMENTS
--------------------------------------------------------*/

:root {
    --blue: #3A66B0;
    /*--blue: #d1e2f5 ;*/
    --green: #8AC53D;
    --gray: #6D7072;
    overflow-x: hidden;
    font-size: 16px;
    color: #333;
    font-family: 'Roboto Slab', Georgia, serif;
}

body {
    font-size: inherit;
    color: inherit;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.5em;
}

#subpage-main p:empty {
    display: none;
}


/*--------------------------------------------------------
	H1 - H6
--------------------------------------------------------*/

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 .8em;
    padding: 0;
    font-weight: bold;
    color: var(--gray);
    text-transform: capitalize;
    font-family: 'Roboto Slab', Georgia, serif;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 27px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 21px;
}

h6 {
    font-size: 18px;
}

@media (max-width: 990px) {
    h1 {
        font-size: 30px;
    }
    h2 {
        font-size: 27px;
    }
    h3 {
        font-size: 24px;
    }
    h4 {
        font-size: 21px;
    }
    h5 {
        font-size: 18px;
    }
    h6 {
        font-size: 16px;
    }
}

.mms-titles {
    margin: 0 0 .8em;
    padding: 0;
    font-weight: bold;
    color: var(--gray);
    text-transform: capitalize;
    font-family: 'Roboto Slab', Georgia, serif;
    position: relative;
    font-size: 25px;
}

.title::after,
.mms-titles::after {
    content: '';
    display: block;
    width: 100%;
    height: 10px;
    background-image: url(http://host8.viethwebhosting.com/~ogwa/photos/OGWA-colour-bar.png);
    background-size: 100%;
    margin-top: 10px;
    background-repeat: no-repeat;
}

h1.title:empty {
    display: none;
}


/*^^Hides the extra margin that is added on pages without a title*/

#subpage-main p:not(:empty)+h2,
#subpage-main p:not(:empty)+h3,
#subpage-main p:not(:empty)+h4,
#subpage-main ul+h2,
#subpage-main ul+h3,
#subpage-main ul+h4,
#subpage-main table+h2,
#subpage-main table+h3,
#subpage-main table+h4 {
    margin-top: 1.5em;
}

#subpage-main h2+ul,
#subpage-main h3+ul,
#subpage-main h4+ul {
    margin-top: -.75rem;
    /*Adjusts for the margin-bottom placed on these headings to make the ul's look like they belong to that heading*/
}


/*--------------------------------------------------------
	LINKS
--------------------------------------------------------*/

a {
    color: var(--blue);
    transition: .125s ease-in-out color;
}

a:hover,
a:focus {
    color: var(--green);
    text-decoration: none;
}


/*--------------------------------------------------------
	Objects
--------------------------------------------------------*/


/*Tables*/

#subpage-main .table-colored,
#subpage-main .table-plain,
#mms-main .table-colored,
#mms-main .table-plain {
    border-color: transparent;
}

#subpage-main .table-colored thead tr,
#mms-main .table-colored thead tr {
    background-color: #cde2f7;
    height: 34px;
}

#subpage-main .table-colored tbody tr:nth-child(odd),
#mms-main .table-colored tbody tr:nth-child(odd) {
    background-color: #e7eff7;
    height: 34px;
}

#subpage-main .table-small-spacing thead th,
#subpage-main .table-small-spacing tbody td,
#mms-main .table-small-spacing thead th,
#mms-main .table-small-spacing tbody td {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}


/*----------------------Wrappers----------------------*/


/* .wrapper acts as a more symantic stand in for <container><row><col-md-12></col-md-12></row></container> in sections of this build that don't require stacking columns */

.wrapper {
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
    position: relative;
    height: inherit;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width:768px) {
    .wrapper {
        width: 750px;
    }
}

@media (min-width:992px) {
    .wrapper {
        width: 970px;
    }
}

@media (min-width:1200px) {
    .wrapper {
        width: 1170px;
    }
}

@media (min-width:1280px) {
    .wrapper {
        width: 1250px;
    }
}

.container {
    max-width: calc(100vw - 330px - 30px);
    /*The maximum width of a container should be no wider than the width of the screen minus the width of the #main-navigation minus some padding*/
}

@media (max-width: 1200px) {
    .container {
        max-width: calc(100vw - 300px - 30px);
    }
}

@media (max-width: 990px) {
    .container {
        max-width: calc(100vw - 240px - 30px);
    }
}

@media (max-width: 850px) {
    .container {
        max-width: 100%;
    }
}

#subpage-main img {
    display: block;
    max-width: 100%;
    height: auto;
}

figcaption {
    font-style: italic;
    font-size: .9em;
    padding-top: 5px;
}

@media (max-width: 767px) {
    figcaption {
        font-size: 1em;
    }
}

@media (min-width: 767px) {
    /*The following styles are meant to give more space to the label column in contact forms that are too narrow for the entire label to be read normally*/
    .col-md-5 form[action="contact_form_resp.php"] .col-sm-2,
    .col-md-4 form[action="contact_form_resp.php"] .col-sm-2,
    .col-md-3 form[action="contact_form_resp.php"] .col-sm-2,
    .col-md-2 form[action="contact_form_resp.php"] .col-sm-2,
    .col-md-1 form[action="contact_form_resp.php"] .col-sm-2 {
        width: 25%;
        padding-right: 1em;
    }
    .col-md-5 form[action="contact_form_resp.php"] .col-sm-10,
    .col-md-4 form[action="contact_form_resp.php"] .col-sm-10,
    .col-md-3 form[action="contact_form_resp.php"] .col-sm-10,
    .col-md-2 form[action="contact_form_resp.php"] .col-sm-10,
    .col-md-1 form[action="contact_form_resp.php"] .col-sm-10 {
        width: 75%;
        padding-left: 0;
    }
    .col-md-5 form[action="contact_form_resp.php"] .col-sm-offset-2,
    .col-md-4 form[action="contact_form_resp.php"] .col-sm-offset-2,
    .col-md-3 form[action="contact_form_resp.php"] .col-sm-offset-2,
    .col-md-2 form[action="contact_form_resp.php"] .col-sm-offset-2,
    .col-md-1 form[action="contact_form_resp.php"] .col-sm-offset-2 {
        margin-left: 25%;
    }
    /*^^Adjusts the form-group placement of the reCAPTCHA iframe and submit buttom to match the new widths from the styles above*/
}


/*Styles below are taken from Bootstrap's table style to ensure that tables on content pages are responsive and neat whether Bootstrap classes are added or not*/

#subpage-main table {
    max-width: 100%;
    border-collapse: collapse;
    color: #212529;
    margin-bottom: 1em;
}

#subpage-main table td,
#subpage-main table th {
    border-top: 1px solid #dee2e6;
    padding: .75rem;
    vertical-align: top;
    text-align: inherit;
}

#subpage-main table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    border-top: none;
}

#subpage-main table caption {
    padding-top: .75rem;
    padding-bottom: .75rem;
    color: #6c757d;
    text-align: left;
    caption-side: bottom;
}

#subpage-main table tbody tr:hover {
    color: #212529;
    background-color: rgba(0, 0, 0, .075);
}

grammarly-btn {
    display: none;
    /*If someone copy/pastes text from Grammarly it will add this invisible button and cause the page to scroll horizontally. This style hides that.*/
}


/*--------------------------------------------------------
	Grid Template Areas
--------------------------------------------------------*/

@media (min-width: 850px) {
    body {
        display: grid;
        grid-template-areas: "nav main" "nav footer";
        grid-template-columns: 330px 1fr;
        /*grid-template-rows: minmax(calc(100vh - 310px), max-content);*/
        /*Make the height of the main content row be at least the height of the screen minus the height of the footer*/
    }
}

#main-navigation {
    grid-area: nav;
}

main {
    grid-area: main;
}

footer {
    grid-area: footer;
}


/*--------------------------------------------------------
	Navigation Sidebar
--------------------------------------------------------*/

#main-navigation {
    background: #d1e2f5;
    font-size: 20px;
    padding: 2.5em 2em;
    display: flex;
    flex-direction: column;
    color: white;
    line-height: 1.3em;
    position: fixed;
    width: 330px;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    left: calc(-100% - 70px);
    transition: .125s ease-in-out left;
    overflow: hidden auto;
}

#main-navigation.open {
    left: 0;
}

@media (max-height: 750px) {
    #main-navigation {
        padding: 1.5em 2em;
        font-size: 18px;
    }
}

@media (max-width: 1300px) {
    /*Unfortunately until media queries level 4 is more widely supported I can't use "or" in a query so these queries based on max-height have to be duplicated to cover the max-width*/
    #main-navigation {
        padding: 1.5em 2em;
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    body {
        grid-template-columns: 300px 1fr;
    }
    #main-navigation {
        width: 300px;
    }
}

@media (max-width: 990px) {
    body {
        grid-template-columns: 240px 1fr;
    }
    #main-navigation {
        width: 240px;
    }
}

@media (min-width: 850px) {
    #main-navigation {
        left: 0;
    }
}

#main-navigation a {
    color: #3783d3;
    position: relative;
    font-weight: 600;
}

#main-navigation a:not(.home-link):hover,
#main-navigation a:not(.home-link):focus {
    color: var(--blue);
}

#main-navigation a:not(.home-link)::before {
    content: '';
    background: transparent;
    transition: .125s ease-in-out background;
}

#main-navigation li ul li a:hover:not(.home-link)::before,
#main-navigation li ul li a:focus:not(.home-link)::before {
    background: white;
    top: -.4em;
    bottom: -.4em;
    left: -2000em;
    right: -2000em;
    position: absolute;
    z-index: -1;
}

#main-navigation li:hover .mDropdown {
    display: block;
    transition: .3s ease-in-out background;
}

#main-navigation .social-icons a:hover::before,
#main-navigation .social-icons a:focus::before {
    content: none;
}

#main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mobile-menu>li:not(.mobileMenuTrigger):not(.home-list-item):not(.search) {
    margin-left: 1.2em;
}

#main-navigation li {
    margin-bottom: 1em;
    overflow: hidden;
}

#main-navigation .mDropdown a {
    padding: 8px 0;
    display: block;
}

#main-navigation li a .caret {
    margin-left: 6px;
    vertical-align: middle;
    border-top: 7px dashed;
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
}

#main-navigation li.open>a .caret {
    transform: rotate(270deg);
}

.home-link {
    font-family: 'Roboto Slab', Georgia, serif;
}

@media (max-height: 750px) {
    #main-navigation li {
        margin-bottom: .8em;
    }
}

@media (max-width: 1200px) {
    #main-navigation li {
        margin-bottom: .8em;
    }
}

@media (min-width: 850px) {
    #main-navigation .mobileMenuTrigger {
        display: none;
    }
}

#main-navigation .mobileMenuTrigger {
    text-align: right;
    margin-top: -15px;
    cursor: pointer;
}

.home-link {
    /*margin-bottom: 1.5em;*/
    font-size: 28px;
    font-weight: bold;
    display: block;
    text-align: center;
    line-height: calc(1em + 5px);
}

.home-link img {
    max-width: 100%;
    width: 150px;
    display: block;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    /*margin-bottom: .5em;*/
    margin-bottom: 15px;
}

@media (max-height: 750px) {
    .home-link {
        font-size: 25px;
        margin-bottom: 1em;
    }
    .home-link img {
        width: 120px;
    }
}

@media (max-width: 1200px) {
    #mobile-menu>li:not(.mobileMenuTrigger):not(.home-list-item):not(.search) {
        margin-left: 5px;
    }
    .home-link {
        display: flex;
        flex-direction: row;
        text-align: left;
        font-size: 20px;
        align-items: center;
        margin-bottom: 1em;
    }
    .home-link img {
        width: 60px;
    }
    .home-link span {
        padding-left: .75em;
    }
}

@media (max-height: 600px) {
    #mobile-menu>li:not(.mobileMenuTrigger):not(.home-list-item):not(.search) {
        margin-left: 5px;
    }
    .home-link {
        display: flex;
        flex-direction: row;
        text-align: left;
        font-size: 20px;
        align-items: center;
    }
    .home-link img {
        width: 60px;
    }
    .home-link span {
        padding-left: .75em;
    }
}

@media (max-width: 990px) {
    #main-navigation {
        padding: 1.5em 1.5em;
    }
    .home-link {
        font-size: 16px;
        font-weight: normal;
        line-height: 1;
        margin-bottom: 1.5em;
    }
}

#main-navigation .mDropdown {
    display: none;
}

#main-navigation .mDropdown.open {
    display: block;
}

#main-navigation .mDropdown>li:first-child {
    margin-top: .8em;
}

#main-navigation .mDropdown>li {
    padding-left: 10px;
    margin: 0;
}

#main-navigation .social-icons,
#main-navigation .menu-affiliate {
    display: flex;
    flex-direction: row;
    /*width: 150px;*/
    margin-top: 1.1em;
}

#main-navigation .social-icons img {
    border: 1px solid #4169af;
    padding: 1px;
    margin-right: 1.5ch;
    background: transparent;
    transition: .125s ease-in-out background;
}

#main-navigation .social-icons img:hover,
#main-navigation .social-icons img:focus {
    background: #fff;
}

#main-navigation li.affiliate-wrap span {
    font-size: 16px;
    color: #3783d3;
}

#main-navigation .menu-affiliate img {
    max-width: 100%;
    margin-right: 1.5ch;
    max-height: 70px;
}

#main-navigation .menu-affiliate img:hover,
#main-navigation .menu-affiliate img:focus {
    background: transparent;
}

#main-navigation .menu-affiliate ::before {
    background: transparent !important;
}


/*--------------------------------------------------------
	Login Modal
--------------------------------------------------------*/

.modal-dialog {
    width: 250px;
}

#login-modal input {
    margin-top: 1em;
}

#login-modal input:not([type="submit"]) {
    width: 100%;
    height: 2em;
    padding: .25ch;
}

#login-modal input[type="submit"] {
    margin-left: 1ch;
}


/*--------------------------------------------------------
	Search Bar
--------------------------------------------------------*/

.searchbox {
    position: relative;
    width: 100%;
    height: 32px;
    margin-left: auto;
    margin-right: auto;
    max-width: 21ch;
}

.searchbox .search-input {
    border: none;
    border-radius: 15px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding-left: 1ch;
    bottom: 0;
    z-index: 1;
    background: white;
    width: inherit;
    color: #333;
}

.searchbox .search-button {
    display: none;
}


/*--------------------------------------------------------
	Header
--------------------------------------------------------*/

header {}

header button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem;
    font-size: 18px;
    font-weight: bold;
    color: var(--blue);
}

header path {
    fill: var(--blue);
    transition: .125s ease-in-out fill;
}

header:focus path,
header:focus-within path,
header:hover path {
    fill: var(--green);
}

.logo {
    display: flex;
    align-items: center;
    text-align: left;
}

header img {
    display: inline-block;
    max-width: 100%;
    width: 50px;
    margin-right: .5ch;
}

@media (min-width: 850px) {
    header {
        display: none;
    }
}


/*--------------------------------------------------------
	Index / Main Body
--------------------------------------------------------*/

main {
    position: relative;
    min-height: calc(100vh - 255px - 2rem);
    /*The minimum height of the main element should be at least the height of the screen minus the height of the footer*/
}

@media (max-width: 850px) {
    main {
        min-height: calc(100vh - 255px - 1rem);
    }
}

@media (min-width: 767px) {
    main .row:not(footer) {
        margin-bottom: 2.5em;
    }
}

@media (max-width: 767px) {
    main div[class*="col-md"] {
        margin-bottom: 1em;
    }
}


/*^^These two styles can be tweaked if needed, but they are a handy default for spacing rows (and then columns once the screen hits the col-xs breakpoint on subpages*/

#homepage-main {
    margin-left: 0;
}

#subpage-main,
#mms-main {
    padding-top: 10vh;
}


/*----------------Slideshow----------*/

.carousel-indicators {
    bottom: 0;
    left: 0;
    margin: 0;
    right: 0;
    text-align: left;
}

#slide-row .carousel-indicators {
    padding-left: 1ch;
}

.carousel-indicators>li {
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid var(--green);
}

.carousel-indicators>li.active {
    width: 12px;
    height: 12px;
    background: var(--blue);
    border: 1px solid white;
}

#slide-row {
    margin-bottom: 2em;
}

#slide-row img {
    width: 100%;
    max-height: 50vh;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.carousel-control.left,
.carousel-control.right,
.carousel-control:hover {
    background-image: none;
    font-size: ;
    font-weight: ;
    z-index: 101;
}

.carousel-control {
    top: ;
    width: ;
}

.carousel-caption {
    position: absolute;
    z-index: 100;
    background: rgba(0, 0, 0, .6);
    padding: 1em 2em;
    left: inherit;
    bottom: 0px;
    right: 0px;
    top: inherit;
    width: 100%;
    text-align: left;
    text-shadow: none;
}

/* homepage sponsor slideshow - shrink nav arrows so they don't interfere with first/last slides */
#leftFD2 {
    width: 2% !important;
}
#rightFD2 {
    width: 2% !important;
}

@media (max-width: 600px) {
    .carousel-caption {
        padding: 0px 10px;
    }
}

.carousel-caption p.caption-text {
    line-height: calc(1em + 5px);
    display: block;
    margin-bottom: 0;
    text-align: center;
    color: var(--green);
    font-weight: normal;
    font-size: 24px;
}

.carousel-caption p.alt-text {
    font-size: 16px;
    /*font-style: italic;*/
    color: white;
    margin-bottom: 0;
}

.carousel-caption p+p {
    margin-top: .5em;
}

.carousel .col-sm-2 img {
    /*Styles 6 up slideshow*/
    max-width: 100%;
    display: block;
    height: auto;
    margin: auto;
}


/*----------------End Slideshow------*/

#homepage-main h1 {
    font-size: 30px;
    color: var(--green);
}

@media (min-width: 767px) {
    #homepage-main h1 {
        text-align: center;
        font-weight: normal;
    }
}

@media (max-width: 990px) {
    #homepage-main h1 {
        font-size: 26px;
    }
}


/*--------------------------------------------------------
					News and Events Feeds
--------------------------------------------------------*/

div[class*="-item"]:not(:last-of-type) {
    margin-bottom: .8em;
}

.event-item {
    display: flex;
    flex-direction: row;
}

.event-item time {
    display: flex;
}

div[class*="-item"] time {
    margin-right: .75em;
    font-size: 18px;
    text-align: center;
    flex-direction: column;
    width: 60px;
    min-width: 60px;
    height: 60px;
}

div[class*="-item"] time>div {
    padding: .125em 1px;
}

div[class*="-item"] .month {
    background: var(--blue);
    color: white;
}

div[class*="-item"] .date {
    border: 1px solid var(--blue);
}

div[class*="-item"] h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.news-item time {
    display: none;
}

@media (max-width: 990px) and (min-width: 767px) {
    .event-item {
        display: block;
        font-size: 1rem;
    }
    .event-item time {
        float: left;
    }
}


/*--------------------------------------------------------
	Quick Links
--------------------------------------------------------*/

#home-quick-links ul {
    list-style: none;
    padding: 0;
}

#home-quick-links li {
    margin-bottom: .5em;
}


/*--------------------------------------------------------
				CSS Styles for Inner Pages
--------------------------------------------------------*/


/*----------Responsive Nivo*/

div[id^=slider-container-FD],
div[id^=slider_FD],
.nivoSlider img {
    max-width: 100% !important;
    height: auto !important;
}


/*----------Nivo Controls*/

.nivo-prevNav,
.nivo-nextNav {
    background-image: none !important;
    width: 25px !important;
    top: 25% !important;
    /*Fallback for browsers that don't support calc*/
    top: calc( 50% - 50px) !important;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 75px;
    font-family: Arial, sans-serif;
    text-shadow: 0px 0px 10px rgba(51, 51, 51, 0.4);
}

.nivo-prevNav:hover,
.nivo-nextNav:hover {
    text-decoration: none;
    color: #ae0e0d;
    text-shadow: none;
}

.nivo-prevNav {
    left: 10px !important;
}

.nivo-nextNav {
    right: 10px !important;
}

.nivo-prevNav:after {
    content: "‹";
}

.nivo-nextNav:after {
    content: "›";
}


/*--------------------------------------------------------
						Footer
--------------------------------------------------------*/

footer {
    margin-top: 2rem;
}

@media (max-width: 850px) {
    footer {
        margin-top: 1rem;
    }
}

#mms-footer #sponsors-row {
    display: none;
}

#sponsors-row {
    margin-bottom: 2rem;
}

@media (max-width: 850px) {
    #sponsors-row {
        margin-bottom: 1rem;
    }
}


/*--------------------------------------------------------
	IE Fixes
--------------------------------------------------------*/

@media screen and (min-width:0\0) {
    /*Target just IE*/
    /*IE doesn't support custom properties so we hardcade those values*/
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: #6D7072;
    }
    a {
        color: #3A66B0;
    }
    a:hover,
    a:focus {
        color: #8AC53D;
    }
    #main-navigation {
        background: #3A66B0;
    }
    #main-navigation a:not(.home-link):hover,
    #main-navigation a:not(.home-link):focus {
        color: #3A66B0;
    }
    header button {
        color: #3A66B0;
    }
    header path {
        fill: #3A66B0;
    }
    header:focus path,
    header:focus-within path,
    header:hover path {
        fill: #8AC53D;
    }
    .carousel-indicators>li {
        border: 1px solid #8AC53D;
    }
    .carousel-caption p.caption-text {
        color: #8AC53D;
    }
    #homepage-main h1 {
        color: #8AC53D;
    }
    div[class*="-item"] .month {
        background: #3A66B0;
    }
}

@media screen and (min-width:0\0) {
    #main-navigation,
    main {
        float: left;
        position: relative;
    }
}

/*--------------------------------------------------------
    OGWA MMS ADJUSTMENTS
--------------------------------------------------------*/

.sto_intro { /* remove store verbiage border */
    border: 0px !important;
}

#filearchive_view_intro { /* font size on filearchive_view.php */
    font-size: 18px;
}

.filearchive_view_links { /* font size on filearchive_view.php */
    font-size: 18px;
    font-weight: 500;
}