*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}


/*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
--------------------------------------------------------*/

html {
    --blue: #044A6B;
    --maroon: #762B2D;
    --teal: #0A5055;
    --light-teal: #398496;
    /*Custom properties are spec'd using the regular values as a fallback for legacy browsers like IE*/
}

body {
    font-size: 16px;
    font-family: 'Nunito', sans-serif;
    color: #4A4F57;
    overflow-x: hidden;
}

p {
    margin-bottom: .75em;
}

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


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

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0px;
    padding: 0px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #0A5055;
    color: var(--teal);
    margin-bottom: 1rem;
}

h1 {
    font-size: 30px;
}

h2 {
    font-size: 27px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

h5 {
    font-size: 18px;
}

h1.title {
    margin-top: 2em;
}

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: inherit;
    text-decoration: underline;
}

a:hover,
a:focus {
    color: #762B2D;
    color: var(--maroon);
}

a.button {
    background: #762B2D;
    background: var(--maroon);
    color: white;
    padding: .5em 1em;
    display: inline-block;
    text-decoration: none;
    border-radius: 0.4ch;
}

a.button:hover,
a.button:focus {
    text-decoration: none;
    color: white;
    background: #044A6B;
    background: var(--blue);
}

a.button+* {
    padding-top: 1.5em;
}

.nav-tabs a,
#mycanvas a {
    text-decoration: none;
}


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

#subpage-main img {
    display: inline-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*/
}

blockquote {
    font-size: inherit;
}


/*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 {
    padding: .75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    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.*/
}


/*--------------------------------------------------------
						HEADER
--------------------------------------------------------*/

header {
    padding-top: 2rem;
}

header section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .rmas-logo {
    max-width: calc(100% - 50px);
}

#header-tools {
    text-align: right;
}

.searchbox {
    position: relative;
    border: 1px solid currentColor;
    border-radius: .4ch;
    width: 240px;
    height: 34px;
    vertical-align: middle;
    display: inline-block;
    top: -1px;
    background: white;
}

.search-input {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border: none;
    padding-left: .5ch;
    background: transparent;
}

.search-button {
    position: absolute;
    right: 0;
    border: none;
    background-color: #762B2D;
    background-color: var(--maroon);
    background-image: url(../images/search.svg);
    background-position: center;
    background-repeat: no-repeat;
    width: 32px;
    height: 32px;
}

#header-tools .button {
    margin: 10px;
    margin-right: 0;
}

#header-tools ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    padding-top: 0.5em;
}

#header-tools li {
    display: inline-block;
}

#header-tools li:not(:last-of-type)::after {
    content: '';
    height: 1em;
    border-right: 2px solid currentColor;
    padding: 0 0.7ch;
}

#header-tools li:last-of-type {
    margin-left: 1ch;
}

header .mobileMenuTrigger {
    display: none;
    cursor: pointer;
}

header .mobileMenuTrigger line {
    stroke: #044A6B;
    stroke: var(--blue);
    stroke-width: 5px;
}

header .mobileMenuTrigger line:nth-of-type(2) {
    stroke-width: 3.5px;
}

@media(max-width: 990px) {
    #header-tools {
        display: none;
    }
    header .mobileMenuTrigger {
        display: block;
    }
}


/*--------------------------------------------------------
					Desktop Navigation
--------------------------------------------------------*/

header nav {
    margin-top: 1.75rem;
    background: #044A6B;
    background: var(--blue);
    color: white;
}

@media (max-width: 990px) {
    header nav {
        display: none;
    }
}

#nav_menu {
    padding: 0;
}

#nav_menu::before,
#nav_menu::after {
    content: none;
}

#nav_menu>ul {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    width: 100%;
    font-size: 14px;
}

#nav_menu>ul>li {
    float: none;
    width: 100%;
    border-right: 2px solid white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#nav_menu>ul>li:first-of-type {
    border-left: 2px solid white;
}

#nav_menu>ul>li:is(:hover, :focus, :focus-within) {
    background: var(--maroon);
    transition: .125s background ease-in-out;
}

#nav_menu a,
#mobile-menu a {
    color: inherit;
    text-decoration: none;
    padding: 10px 5px;
    display: block;
}

#nav_menu a:hover,
#nav_menu a:focus,
#nav_menu a:active,
#nav_menu .nav .open>a,
#nav_menu .nav .open>a:focus,
#nav_menu .nav .open>a:hover {
    transition: .125s background ease-in-out;
    color: inherit;
    text-decoration: none;
    background: #762B2D;
    background: var(--maroon);
}

#nav_menu>ul>li>a {
    text-align: center;
    position: unset;
}

#nav_menu>ul>li>a::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#nav_menu .dropdown-menu {
    background: #044A6B;
    background: var(--blue);
    padding: .5ch 1ch;
}

#nav_menu .dropdown-menu li:not(:last-child),
#mobile-menu li:not(#triggerClose):not(#mobile-search) a:not(last-child) {
    border-bottom: 2px solid #398496;
    border-bottom: 2px solid var(--light-teal);
}


/*--------------------------------------------------------
					Mobile Navigation
--------------------------------------------------------*/

#mobileMenuWrapper {
    color: white;
    background: #044A6B;
    background: var(--blue);
    padding: 1em 1.5ch;
}

#mobile-menu {
    overflow: hidden auto;
}

#mobile-search .searchbox {
    width: 200px;
    margin-top: 1em;
}


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

main {
    min-height: calc(100vh - 195px - 160px - 2.5em);
    /*The minimum height of the main section of the page should be the height of the screen minus the header and footer*/
    position: relative;
}

#homepage-main,
#subpage-main,
#mms-main {
    margin-bottom: 2.5em;
}

@media (max-width: 900px) {
    #homepage-main,
    #subpage-main,
    #mms-main {
        margin-bottom: 2em;
    }
}

@media (min-width: 767px) {
    #subpage-main .row,
    #homepage-main .row {
        margin-bottom: 2em;
    }
}

@media (max-width: 767px) {
    #homepage-main .row,
    #subpage-main .row,
    #homepage-main div[class^="col-md"]:not(:last-child),
    #homepage-main .column:not(:last-child),
    #subpage-main div[class^="col-md"]:not(:last-child),
    #subpage-main .column:not(:last-child) {
        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*/


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

@supports (display: block) {
    /*IE chokes on the full screen slideshow so we use it's weaknesses against it by writing a simple supports query that any modern browers will support*/
    #slide-row .carousel-inner {
        overflow: visible;
    }
    #slide-row img {
        width: 100vw;
        max-width: unset;
        /*Overwrite Bootstrap's default style limiting the image to max-width: 100%;*/
        margin-left: 50%;
        transform: translateX(-50%);
    }
    @media (max-width: 1200px) {
        #slide-row img {
            object-fit: cover;
            max-height: 50vh;
        }
    }
}

@media (max-width: 600px) {
    #slide-row .carousel-inner {
        overflow: hidden;
    }
}

.carousel-indicators {
    bottom: 1em;
    margin-bottom: 0;
    left: 0;
    margin-left: 0;
    margin-right: 0;
    right: 0;
    text-align: left;
    display: flex;
    flex-direction: row;
}


/*@media (max-width: 600px) {
	.carousel-indicators {
		bottom: inherit;
		top: .5em;
		left: .5em;
	}
}*/

.carousel-indicators li,
.carousel-indicators li.active {
    width: 0.8em;
    height: 0.8em;
    border: none;
    padding: 0;
    background: white;
    margin: .25ch;
}

.carousel-indicators li.active {
    background: #762B2D;
}

#slide-row .carousel-control {
    display: none;
}

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

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

.carousel-caption p {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    color: white;
    line-height: 1.1em;
}

.carousel-caption p.caption-text {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

@media (max-width: 500px) {
    .carousel-caption p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
}

.carousel-text:not(:empty)+.caption-text:not(:empty) {
    margin-top: 10px;
}

.carousel-caption p.alt-text:not(:empty) {
    margin-bottom: 10px;
}


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


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

.event-item {
    display: flex;
    margin-bottom: .75em;
}

.event-item section {
    min-width: 50px;
    background: #398496;
    background: var(--light-teal);
    text-align: center;
    margin-right: 1ch;
    color: white;
    display: flex;
    flex-direction: column;
    border-radius: 0.4ch;
}

.event-item h3 {
    font-size: 16px;
    font-family: 'Nunito', sans-serif;
}

@media(max-width: 990px) {
    .event-item h3 {
        font-size: 20px;
    }
}

.event-item h3 a {
    color: #4A4F57;
}

.event-item .month {
    background: #044A6B;
    background: var(--blue);
    border-top-left-radius: 0.4ch;
    border-top-right-radius: 0.4ch;
    padding-top: .25em;
    padding-bottom: .25em;
}

.event-item .day {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 1.5em;
}

#news-row {
    position: relative;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

#news-row::before {
    content: '';
    background-color: #044A6B;
    background-color: var(--blue);
    background-image: url(../images/recent-news-bg.jpg);
    background-size: cover;
    background-position-y: 30%;
    background-blend-mode: multiply;
    z-index: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(-50vw - 5px);
    right: calc(-50vw - 5px);
    display: block;
    opacity: .9;
}

@media screen and (min-width:0\0) {
    #news-row::before {
        background-image: none;
    }
}

@media (max-width: 767px) {
    #news-row::before {
        content: none;
    }
}

#news-row *:not(h2),
#news-row h2 {
    color: white;
}

@media (max-width: 767px) {
    #news-row h2 {
        color: var(--teal);
    }
}

#news-row .button {
    border: 1px solid white;
}

.news-item {
    padding: .75em 2ch;
    position: relative;
    z-index: 2;
    margin-bottom: 1em;
}

.news-item::before {
    content: '';
    background: #044A6B;
    background: var(--blue);
    border: 1px solid white;
    opacity: .7;
    border-radius: .4ch;
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    mix-blend-mode: multiply;
}

@media (max-width: 767px) {
    .news-item::before {
        opacity: 1;
    }
}

.news-item h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    margin-bottom: .25em;
}


/*--------------------------------------------------------
				Sponsors Row
--------------------------------------------------------*/

#sponsors-row {
    max-width: 100vw;
    height: 169px;
    overflow: hidden;
}

#sponsors-row .column {
    text-align: center;
    margin: 0 auto;
}

#sponsors-row .carousel,
#sponsors-row .carousel-inner {
    overflow: hidden;
    width: 185px;
    height: 130px;
    margin: 0 auto;
}

#sponsors-row img {
    /*object-fit: contain;*/
    /*width: 100%;
	height: auto !important;
	max-width: 185px;
	max-height: 130px;*/
}

#sponsors-row .carousel-caption,
#sponsors-row .carousel-indicators {
    display: none;
}

#sponsors-row .left,
#sponsors-row .right,
#sponsors-row .left:hover,
#sponsors-row .right:hover {
    color: #4A4F57;
    text-decoration: none;
    text-shadow: none;
    opacity: 1;
    background-image: none;
}


/*--------------------------------------------------------
				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 {
    background: #044A6B;
    background: var(--blue);
    color: white;
    padding: 4em 0;
}

@media (min-width: 767px) {
    footer .col-md-12 {
        display: flex;
        justify-content: space-between;
    }
    footer section:first-of-type {
        max-width: calc(100% - 250px);
    }
    footer span:first-of-type {
        padding-right: .75em;
        border-right: 1px solid white;
        margin-right: .75em;
    }
    footer section:last-of-type {
        text-align: right;
    }
    footer section:last-of-type a {
        margin-left: 1ch;
    }
}

@media (max-width: 767px) {
    footer span {
        display: block;
    }
    footer span:last-of-type {
        margin-bottom: .75em;
    }
}

footer section:last-of-type a:first-of-type {
    margin-right: 1ch;
}

footer section:last-of-type a:not(:first-of-type) {
    text-decoration: none;
}

footer svg {
    border: 1px solid white;
    vertical-align: middle;
}

footer a:hover,
footer a:focus {
    color: currentcolor;
    text-decoration: underline;
}


/*--------------------------------------------------------
						MMS Styling
--------------------------------------------------------*/

#admin_full .admin-menu {
    background-color: #044a6b !important;
}

#mheader_5_wrapper .nav-tabs li.dropdown:hover,
#mheader_5_wrapper .nav-tabs li.dropdown.open {
    color: #fff;
    background: transparent !important;
}

#mheader_5_wrapper .nav-tabs ul.dropdown-menu li a,
#mheader_5_wrapper .nav-tabs ul.dropdown-menu li a:hover {
    color: #fff;
    background: transparent;
}