/*** BASE STYLES ***/
/* General/Layout */
body {
    font-family: "Mallory-Book", Verdana, Arial, Helvetica, sans-serif;
    background: #9ab6d9 url("../images/yale-bg.jpg") top center repeat;
    font-size: 16px;
    padding-right: 0!important;
}
section.main-section{
    width: 100%;
    max-width: 970px;
    height: auto;
    margin: 4rem auto;
    background: #fff;
    z-index: 3;
    border: solid 1px #033569;
    -webkit-box-shadow: 0px 2px 5px 1px rgba(0,0,0,0.2);
    -moz-box-shadow: 0px 2px 5px 1px rgba(0,0,0,0.2);
    box-shadow: 0px 2px 5px 1px rgba(0,0,0,0.2);
}
hr {
    border-top-color: #C7C7C7;
    border-top: outset;
}
.bottom-zero {
    margin-bottom: 0!important;
}
.bottom-two {
    margin-bottom: 2rem!important;
}

.bottom-four {
	margin-bottom: 4rem!important;
}

.top-zero {
    margin-top: 0!important;
}
.top-two {
    margin-top: 2rem!important;
}


/* Modal Styles */
.modal {
    padding-right: 0!important;
    width: 100%;
}
.modal .modal-dialog {
    padding: 0 30px;
}
.modal .modal-body {
    padding: 40px 30px 10px;
}
.modal .close {
    top: 5px;
    right: 10px;
    display: inline-block;
    position: absolute;
}
.modal .close:hover {
    text-decoration: none;
}
/* Animate Forms - Linear Stretch */
.stretchy {
    transition-timing-function: linear;
    transition-duration: 1s;  
}

/* YALE UI OVERRIDING STYLE */
.form-check-label, .custom-control label {
    font-family: "Mallory-Book", Verdana, Arial, Helvetica, sans-serif;
    font-size: 0.875rem;
}

/* Hide Desktop/Mobile/All */
.desktop-hide {
    display: none!important;
}
.mobile-hide {
    display: inline-block!important;
}
.hide {
    display: none!important;
}

/* Hide/Show Password */
::-ms-reveal,
::-ms-clear {
  display: none !important;
}

.hideShowPassword-toggle {
  background: transparent;
  border: 0;
  border-radius: 0.25em;
  color: #888;
  cursor: pointer;
  font-size: 0.75em;
  font-weight: bold;
  margin-right: 0.5em;
  padding: 0.5em;
  text-transform: uppercase;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.hideShowPassword-toggle:hover,
.hideShowPassword-toggle:focus {
  background-color: #eee;
  color: #555;
  outline: transparent;
}

/*** HEADER ***/
header h1 {
    margin: 0;
    padding: 1.5rem 30px;
    font-family: "YaleNew", Georgia, "Times New Roman", serif;
    font-size: 2.4rem;
    font-weight: normal;
    line-height: 1.2;
    text-align: left;
    background-color: #033569;
    border: 1px solid #033569;
    color: #fff;
    z-index: 4;
}

/* Navigation Links */
header nav.nav-bar{
    display: flex;
    justify-content: space-between;
    background-color: white;
    border-bottom: 1px #707070 solid;
}
header nav.nav-bar ul.left-nav {
    margin: 0 30px;
}
header nav.nav-bar ul.nav li.nav-item a.nav-link {
    text-decoration: underline;
    color: black;
    padding: .5rem 30px;
    font-size: 1rem;
}
header nav.nav-bar ul.nav li.nav-item a.nav-link:hover,
header nav.nav-bar ul.nav li.nav-item a.nav-link:focus {
    text-decoration: underline;
}
header nav.nav-bar ul.left-nav li.nav-item:last-child a.nav-link {
    padding: 0.5rem 0;
}


/*** MAIN CONTENT ***/
/* Page Copy */
main.main-content {
    margin-left: 30px;
    margin-right: 30px;
    padding-top: 1rem;
}
main.main-content .form-header{
    font-family: "Mallory-Medium", Verdana, Arial, Helvetica, sans-serif;
    color: #2B6DBE;
    font-size: 1.75rem;
    margin-top: 1rem;
}
main.main-content .form-header-sm{
    font-family: "Mallory-Medium", Verdana, Arial, Helvetica, sans-serif;
    color: #2B6DBE;
    font-size: 1.3rem;
    margin-top: 1rem;
}
main.main-content .form-subheader{
    font-family: "Mallory-Book", Verdana, Arial, Helvetica, sans-serif;
    color: #000;
    font-size: 1.563rem;
    margin: 1rem 0;
}
main.main-content p.underline-title {
    text-decoration: underline;
    margin-bottom: 0;
}
main.main-content ul li p {
    margin-bottom: 0;
}

/* Default Form Styles */
main.main-content input[type="radio"], 
main.main-content input[type="checkbox"] {
    margin-right: 10px;
    margin-bottom: 10px;
}
main.main-content input[type=text],
main.main-content input[type=password],
main.main-content input[type=number],
main.main-content select {
    border: solid 1px #707070;
    min-height: 35px;
}
main.main-content label.main-label {
    margin-bottom: 10px;
    text-decoration: none;
}
.form-group.ally-focus-within > label, .form-check.ally-focus-within > label, .form-inline.ally-focus-within > label, .custom-control.ally-focus-within > label, .custom-file.ally-focus-within > label {
    text-decoration: none;
}
/*** FORM DEFAULTS ***/
main.main-content .form fieldset legend {
    font-family: "Mallory-Book", Verdana, Arial, Helvetica, sans-serif;
    font-size: 1rem;
    margin-bottom: 1.375rem;
}
main.main-content .form label {
    font-size: 1rem;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0 1rem;
}
.button-container button {
    min-width: 120px;
}
.button-container button[disabled] {
    background: #7E7E7E;
    border-color: #7E7E7E;
    font-style: normal;
}

/* Error Validation Styles */
.error-border {
    border: 2px solid #BF0000;
    background: #FBF0F0;
}
.error-wrapper ul.error-messages {
    padding: 0;
}
.error-wrapper ul.error-messages li.error-message {
    font-size: 1.25rem;
    line-height: 1.2;
    color: #BF0000;
    list-style-type: none;
}
.error-wrapper ul.error-messages li.error-message::before {
    content: "* ";
} 
  
/*** FOOTER ***/
footer {
    text-align: center;
    display: flex;
    margin-left: 30px;
    margin-right: 30px;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: solid 1px #CCC;
}
footer .footer-content {
    display: flex;
    justify-content: center;
    text-align: left;
}
footer .footer-content br{
    display: none;
}
footer .footer-content img.footer-image {
    align-self: flex-start;
    margin-right: 1rem;
    margin-top: .5rem;
}
footer .footer-content .footer_legal_copy {
    font-size: 14px;
    padding-top: 1.1rem;
}
footer .footer-content .footer_legal_copy a {
    color: #000;
    text-decoration: underline;
}
footer .footer-links ul.footer-nav {
    margin-top: 10px;
}
footer .footer-links ul.footer-nav li.nav-item a {
    color: #000;
    text-decoration: underline;
    padding-right: 0;
}
footer .footer-links ul.footer-nav li.nav-item a:hover {
    text-decoration: underline;
}

/*** RESPONSIVE STYLES ***/
/* Extra large devices (large laptops and desktops, below 1200px) */
/* @media only screen and (max-width: 1199px) {} */

/* Large devices (laptops/desktops, below 992px) */
@media only screen and (max-width: 991px) {
    section.main-section {
        margin: 4rem 2rem;
    }
    header h1 {
        padding: 1rem 30px;
        font-size: 2rem;
    }
    main.main-content h2.form-header{
        font-size: 1.5rem;
    }
}

/* Medium devices (landscape tablets, below 768px) */
@media only screen and (max-width: 767px) {
    body {
        background: #fff;
    }
    section.main-section {
        margin: 0;
        background-position: bottom center;
        padding: 4.5rem 0 5rem;
        border: none;
        -webkit-box-shadow: unset;
        -moz-box-shadow: unset;
        box-shadow: unset;
    }
    .desktop-hide {
        display: inline-block!important;
    }
    .mobile-hide {
        display: none!important;
    }
    header h1 {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        font-size: 2rem;
        -webkit-box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.2);
        -moz-box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.2);
        box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.2);
    }
    header nav.nav-bar ul.nav {
        margin: 0;
    }
    header nav.nav-bar ul.left-nav li.nav-item:last-child a.nav-link {
        padding: 0.5rem 30px;
    } 
    header nav.nav-bar ul.right-nav{
        display: flex;
        justify-content: initial;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 5;
        justify-content: center;
        background: #033569;
        border-top: 1px solid #033569;
        padding: 0;
    }
    header nav.nav-bar ul.right-nav {
        -webkit-box-pack: center;
        justify-content: center;
    }
    header nav.nav-bar ul.right-nav li.nav-item a.nav-link {
        color: #fff;
    }
    header nav.nav-bar ul.right-nav li.nav-item a.nav-link:hover {
        background: #286dc0;
        text-decoration: none;
    }
    main.main-content {
        margin-left: 30px;
        margin-right: 30px;
    }
    footer .footer-content {
        flex-basis: 100%;
        text-align: center;
        flex-wrap: wrap;
        margin-top: 2rem;
    }
    footer .footer-content br {
        display: block;
    }
    footer .footer-content img.footer-image {
        align-self: center;
        margin-right: 0;
        margin-top: 0;
        margin-bottom: -20px;
    }
    footer .footer-content .footer_legal_copy {
        flex-basis: 100%;
        padding-top: 0;
    }
}

/* iPhone 6/7/8 Plus, Pixel 2 XL, Pixel 2  */
@media only screen and (max-width: 414px) {
    section.main-section{
        padding-bottom: 10rem;
    }
    header nav.nav-bar ul.right-nav {
        margin: 0;
    }
    header nav.nav-bar ul.right-nav li.nav-item a.nav-link {
        font-size: .9rem;
        padding: 0.5rem 1rem;
    }
    .button-container {
        display: flex;
        justify-content: center;
        margin: 60px 0 20px;
        flex-wrap: wrap;
    }
    .button-container .left-btn,
    .button-container .right-btn {
        width: 100%;
    }
    .button-container .left-btn {
        order: 1;
    }
    .button-container .right-btn { 
        order: 0;
    }
    .button-container .left-btn button {
        width: 100%;
    }
    .button-container .right-btn button {
       width: 100%; /* overridden in page style sheets with more than 1 button */
       margin-bottom: .7rem;
    }
}

/* iPhone X, iPhone 6/7/8, Galaxy S5 */
@media only screen and (max-width: 375px) {
}

/* Extra small devices (iPhone 5, 320px and below) */
@media only screen and (max-width: 320px) {
    .button-container .right-btn button {
        width: 100%!important;    
        margin-bottom: .7rem;
    }
}

.screen-reader-only {
	position: absolute;
	height: 1px;
	width: 1px;
	clip: rect(1px, 1px, 1px, 1px); // IE 6 and 7 clip : rect( 1px, 1px,
	1px, 1px);
	clip-path: polygon(0px 0px, 0px 0px, 0px 0px);
	-webkit-clip-path: polygon(0px 0px, 0px 0px, 0px 0px);
	overflow: hidden !important;
}