/*-------
// global reset
//-----*/
@font-face {
    font-family: "Arvo";
    src: url("../font/Arvo-Bold_201.woff");
}
@font-face {
    font-family: "Montserrat";
    src: url("../font/Montserrat-Regular.woff2");
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
	border: 0;
	outline: 0;
}
/*------
// body
//-----*/
body {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 1em;
    width: 100%;
	background: #E6E6E6;
}
/*--------
// header
//-------*/
header {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
	background: #FFFFFF;
	position: sticky;
	top: 0;
}
.head {
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    max-width: 1400px;
    background-color: #f4f4f9;
    background-image:url("../img/MARCHeader033.jpg");
    background-position:center center;
    background-repeat:no-repeat;
    background-size:cover;
}
#marc-logo {
    display: inline-block;
    width: 49px;
    min-width: 49px;
    max-width: 49px;
    height: 49px;
    margin: 5px 10px 0 10px;
}
/* Navigation */
.active {
    background-color: #04AA6D;
}
nav {
    display: inline-block;
    flex-grow: 1;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-image: linear-gradient(
        #0E0B04, #261E0C, #382D11, #463422, #4E3A26, #4E3A26, #463422, #382D11, #261E0C, #0E0B04
    );
    border: 2px solid #4E3A26;
}
nav ul li {
    float: left;
    background-image: linear-gradient(
        #0E0B04, #261E0C, #382D11, #463422, #4E3A26, #4E3A26, #463422, #382D11, #261E0C, #0E0B04
    );
    border-right: 2px solid #0E0B04;
}
nav ul li:last-child {
    border-right: none;
}
nav ul li a {
    display: block;
    color: #FFF9A3;
    text-align: center;
    padding: 12px 6px;
    text-decoration: none;
}
nav ul li a:hover:not(.active) {
    background-color: #111;
}
#check, .toggle-menu {
    display: none;
}
/* Responsive Menu */
@media (max-width: 640px) {
    nav ul {
        display: none;
        position: absolute;
        right: 0;
        top: 50px;
        flex-direction: column;
        /*transition: all 0.3s;*/
    }
    nav ul li {
        width: 100%;
        border: none;
    }
    #check:checked ~ ul {
        display: flex;
    }
    .toggle-menu {
        display: block;
        position: absolute;
        right: 20px;
        top: 0px;
    }
    .toggle-menu ul {
        display: block;
        top: 20px;
        background-image: none;
        border: none;
        width: 20px;
    }
    .toggle-menu ul li {
        width: 100%;
        height: 3px;
        background-color: #002e5b;
        background-image: none;
        margin-bottom: 4px;
    }
    .toggle-menu ul li:last-child {
        margin-bottom: 0px;
    }
}
/* Scroll to top of page */
#to-top {
    display: none;
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 99;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 249, 163, 0.67);
    border: none;
    border-radius: 20px;
}
#to-top:hover {
    background-color: rgba(255, 249, 163, 1.0);
    border: 1px solid #002e5b;
}
/*------
// main
//-----*/
main {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
	background: #FFFFFF;
}
section {
    scroll-margin-top: 79px;
}
.subsection {
    min-width: 320px;
    margin: 0 10px 10px 10px;
}
h1 {
    font-size: 1.6em;
    line-height: 1.8em;
}
@supports (-webkit-text-stroke: 1px black) {
    h1 {
        -webkit-text-stroke: 1.5px #463422;
        -webkit-text-fill-color: #FFF9A3;
    }
}
h2 {
    font-size: 1.5em;
    line-height: 1.5em;
}
h3 {
    font-size: 1.4em;
    line-height: 1.4em;
}
h4 {
    font-size: 1.3em;
    line-height: 1.3em;
}
h4 {
    font-size: 1.2em;
    line-height: 1.2em;
}
h5 {
    font-size: 1.1em;
    line-height: 1.1em;
}
h6 {
    font-size: 1em;
    line-height: 1em;
}
h1, h2, h3, h4, h5, h6 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #4E3A26;
}
hr {
    margin: 8px 1px;
    border-top: 1px solid #002e5b;
    border-bottom: 0;
}
.centered {
    text-align: center;
}
a:link {
  text-decoration: none;
}
p {
	text-align: justify;
	margin-bottom: 10px;
}
.itemlabel {
    text-align: left;
}
.flex {
    display: flex;
}
.flex-container {
    display: flex;
    flex-wrap: wrap;
}
.flex-item-text {
    flex: 1 1 60%;
}
.flex-item-image {
    flex: 1 1 40%;
}
.links-left {
    flex: 1 1 50%;
}
.links-right {
    flex: 1 1 50%;
}
.flex-img {
    width: 100%;
    min-width: 350px;
    max-width: 600px;
}
.qr {
    width: 350px;
}
.flex-icon {
    flex: 1 1 20%;
    align-content: center;
    text-align: center;
}
.org-icon {
    width: 150px;
}
#hamstudy {
    font-family: Arvo;
    color: #ff9900;
    text-decoration: none;
}
.hamstudy {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
    vertical-align: sub;
}
#contact {
    padding-bottom: 10px;
}
#contact, #contact * {
    box-sizing: border-box;
}
#contact-head-label {
    font-size: 1.8em;
}
.form-group {
    display: flex;
    padding: 4px;
}
.form-submit {
    display: inline-block;
    width: 100%;
    padding: 0 8px;
}
.hcaptcha {
    display: flex;
    padding: 8px 4px 0 4px;
}
#contact-form {
    font-size: 1em;
    max-width: 610px;
    margin: 0px auto;
    padding: 0 8px 8px 8px;
    text-align: left;
    box-shadow: 0 15px 32px 0 rgba(0,0,0,0.05),0 235px 94px 0 rgba(0,0,0,0.01),0 368px 103px 0 rgba(0,0,0,0);
    border-radius: 5px;
}
label {
    display: inline-block;
	font-family: inherit;
    text-align: left;
    height: 1em;
    padding-bottom: 0.5em;
    vertical-align: middle;
}
.required::after {
    content: "*";
    color: rgba(255, 0, 0, 1);
}
.label-textbox {
    padding: 0.125em 0 0 0;
    width: 150px;
}
input[type=text], input[type=email], textarea {
    font-family: Arial, Helvetica, sans-serif;
    font-size: inherit;
    width: 434px;
    line-height: 1.3em;
    padding: 8px;
    border: 1px solid #CCCCCC;
    border-radius: 3px;
}
.h-captcha {
    width: 434px;
}
#label-error {
    display: none;
    font-size: 0.8em;
    color: rgba(255, 0, 0, 1);
    line-height: 0.8em;
    width: 434px;
}
#send {
    font-size: inherit;
	text-decoration: none;
	background-color: rgb(76, 76, 76);
	color: #FFFFFF;
	width: 9em;
    line-height: 1.3em;
    height: 3em;
	margin: 6px auto;
    border: 0.063em solid #C0C0C0;
	-webkit-border-radius: 0.313em;
    border-radius: 0.313em;
    touch-action: manipulation;
}
#submit-state {
    display: none;
}
#submitted {
    display: none;
}
#submitted-checkmark {
    display: inherit;
    margin: 50px auto;
    font-kerning: normal;
}
#submitted-message {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 1.7em;
}
textarea {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    grid-area: 1/1/2/2;
    display: block;
    overflow: hidden;
    resize: none;
}
/*--------
// footer
//-------*/
footer {
    max-width: 1400px;
    padding: 2px 0;
    margin: 0 auto;
    text-align: center;
	background: #FFFFFF;
	/*
	position: sticky;
	bottom: 0;
	*/
    background-color: rgba(255, 249, 163, 1.0);
    border-top: 1px solid #002e5b;
}
#legal {
    font-size: 0.75em;
    text-align: center;
}