html {
    height: 100%;
}

#wrapper {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;

    display: flex;
    flex-direction: column;
    -ms-flex-direction: column;

    min-height: 100%;
    height: 100%;
}

.page-container {
    max-width: 940px;
    margin: 0 auto;
}

.page-container:after {
    content: "";
    clear: both;
    display: block;
}

.page-header {
    overflow: hidden;
}

.col-md-9 .page-header,
.col-md-9 .page-header h1 {
    margin-top: 0;
}

.col-md-9 .page-header h1 {
    color: #8d3999;
    line-height: 1;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.main {
    margin-top: 75px;
}

.main--iframe {
    margin-top: 0;

    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;

    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;

    display: flex;

    position: relative;
}

.iframe--primary {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: none;
    overflow-x: hidden;
}

/* Header  */

.global-nav-container .global-nav-button-wrapper {
    max-width: 940px;
}

.ms-cui-tabBody img {

    max-width: none;
}


.ms-cui-tabBody input[type=text] {
    font-size: inherit;
    color: #0a0a0a;
    background-color: #fefefe;
    transition: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: inherit;
    height: 20px;
    box-shadow: none;
    border-radius: 0;
}


.top-bar-wrapper {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;

    display: flex;
    flex-direction: column;
    -ms-flex-direction: column;
    justify-content: space-between;
    -ms-flex-pack: justify;
}


.amf-login {
    border-collapse: separate;
}

.amf-logout {
    font-size: 10pt;
    color: gray;
}

.amf-login a,
.amf-login a:active,
.amf-login a:hover,
.amf-login a:link,
.amf-login a:visited,
.amf-logout a,
.amf-logout a:active,
.amf-logout a:hover,
.amf-logout a:link,
amf-login a:visited {
    color: Purple;
}

.amf-login TD {
    text-align: left;
    color: black;
    border: 0px solid red;
    vertical-align: top;
}

.amf-login .input_bg {
    background: url('images/esmart_input_bg.gif') no-repeat 0 0;
    float: left;
    width: 150px;
    height: 24px !important;
}

.amf-login .input_bg input {
    width: 150px;
    height: 24px !important;
    border: none;
    padding: 5px;
    background: none;
}

.amf-login .go_btn {
    background: url('images/esmart_go_btn.gif') no-repeat 0 0;
    width: 31px;
    height: 25px;
    cursor: pointer;
    margin-left: -10px;
}


.loggedin-wrapper {
    margin-top: 42px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;

    display: flex;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    font-weight: 800;
    color: #2a2a2a;
    font-size: 14px;
}

a.loggedin__logout-link {
    color: #7f2b87;
    text-decoration: underline;
    transition: all 0.5s;
}

a.loggedin__logout-link:hover {
    color: #8d3999;
}

.logo-wrapper {
    display: block;
    margin-top: 15px;
    margin-bottom: 15px;
    max-width: 245px;

    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.svg-icon-logo-container .svg-icon {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.logo-wrapper .svg-icon {
    fill: #872a90;
    color: #ffc627;
}

.svg-icon-logo-container {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    padding-top: 33.84349%;
    width: 100%;
}

/* Footer */

.page-footer > .row {
    font-size: 14px;

}

.page-footer__divider {
    border-top: 1px solid #dbdbdb;
    padding-top: 30px;
    padding-bottom: 30px;
    display: block;
}

.page-footer__help-link {
    margin-top: 0;
}

.page-footer__help-link svg {
    top: 4px;
    margin-right: 5px;
    position: relative;

}

.page-footer__help-link a {
    text-decoration: none;
    color: black;
    font-weight: bold;

}

.page-footer__help-link a:hover {
    text-decoration: underline;
    color: black;
}

.page-footer__sublinks {
    color: black;
}

.page-footer__sublinks a {
    display: inline-block;
    margin-right: 20px;
    text-decoration: none;
    color: black;
}

.page-footer__sublinks a:hover {
    text-decoration: underline;
    color: black;
}

.page-footer__partnership-text {
    font-size: 11px;
    margin-top: 0;
}

.page-footer__partnership-logos a {
    display: inline-block;
    text-decoration: none;

}

.page-footer__partnership-logos a:first-child {
    margin-right: 20px;
}

/* General  */

.left {
    float: left;
}

.right {
    float: right;
}

.text-right {
    text-align: right;
}

label.inline {
    margin: 0 0 0.88889rem 0;
    line-height: 2.11111rem;
}

label.right {
    float: none !important;
    text-align: right;
}

label {
    font-weight: 700;
}

.inline-svg {
    display: inline-block;
}

.not-last-hero-button {

    margin-right: 10px;

}

.button,
.go_btn {
    background: #ffc627;
    position: relative;
    box-shadow: 0 4px #ffa627;
    border-radius: 8px;
    color: #000;
    padding: 14px 4px;
    text-transform: uppercase;
    width: 160px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    -webkit-transition: background .2s ease;
    text-decoration: none;
    transition: background .2s ease;
    border: 0;
    max-width: 100%
}

.button:hover:hover,
.go_btn:hover:hover input[type=button]:hover:hover {
    background: #ffda72
}

.button:focus,
.go_btn:focus,
input[type=button]:focus {
    text-decoration: none;
    color: #000
}


.button--secondary {
    background-color: #e7e7e7;
    box-shadow: 0 4px #cfcfcf;
}

.button.disabled {
    background: white;
    box-shadow: 0 3px #999;
}

.button:hover,
.go_btn:hover {
    text-decoration: none;
    color: #000;
    box-shadow: 0 3px #ffa627;
    top: 1px
}

a.button:hover,
a.go_btn:hover {
    text-decoration: none;
}

.button:active,
.go_btn:active {
    top: 4px;
    box-shadow: 0 0 #ffa627;
}

/* Login Copy Section */

.login-header {
    font-size: 30px;
    line-height: 42px;
    margin-top: 0;
    margin-bottom: 40px;
}

.login-intro {
    font-size: 15px;
}

.login-intro ul {
    padding-left: 16px;
    margin-bottom: 40px;
}

.login-intro li {
    margin-bottom: 10px;
}

.login-actions {
    overflow: hidden;
    margin-bottom: 40px;
}


/* Forms */

/*  Standard  */

[type=color],
[type=date],
[type=datetime-local],
[type=datetime],
[type=email],
[type=month],
[type=number],
[type=password],
[type=search],
[type=tel],
[type=text],
[type=time],
[type=url],
[type=week],
textarea {
    border-color: #cccccc;
    border-radius: 2px;
    box-shadow: none;
}

/* Focus Input  */

[type=color]:focus,
[type=date]:focus,
[type=datetime-local]:focus,
[type=datetime]:focus,
[type=email]:focus,
[type=month]:focus,
[type=number]:focus,
[type=password]:focus,
[type=search]:focus,
[type=tel]:focus,
[type=text]:focus,
[type=time]:focus,
[type=url]:focus,
[type=week]:focus,
textarea:focus {
    border-color: #9831a7;
    box-shadow: none;
}

/* Login Form */

/*
.log-in-form {
    background: white;
    border-radius: 5px;
    -webkit-box-shadow: 0px 3px 5px 3px #d2d0cb;
    box-shadow: 0px 3px 5px 3px #d2d0cb;
    padding: 30px 20px;
    margin-bottom: 60px;
}

.log-in-form__forgot-password {
    color: #9831a7;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}


.log-in-form__title {
    font-size: 18px;
    margin-top: 0;
    font-weight: bold;
}

.log-in-form__note {
    font-size: 14px;
    margin-top: 0;
    font-weight: normal;
    text-align: right;
}

.log-in-form__note .lock {
    display: inline-block;
    position: relative;
    right: 5px;
    top: 2px;
}
 */

/*----------- HEADER NAV -------------*/

.header-nav-wrapper {
    background: #8d3999;
    position: relative;
    z-index: 20;
}

@media only screen and (min-width: 64em) {
    .header-nav-wrapper.stuck {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
}

.header-nav-wrapper:before {
    content: '';
    height: 5px;
    bottom: 0;
    left: 0;
    right: 0;
    background: #80308c;
    position: absolute;
}

.header-nav {
    position: relative;
    z-index: 2;
}

.header-nav__parent-title,
.header-nav__donate-title {
    font-size: 18px;
    display: block;
    font-weight: 700;
}

.header-nav__parent-intro,
.header-nav__donate-intro {
    font-size: 12px;
    line-height: 16px;
    display: block;
    font-weight: 500;
}

.header-nav__list {
    padding: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;

    display: flex;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    height: 56px;
    list-style: none;
    margin-top: 0;
    margin-bottom: 0;
}

.header-nav__list-item {
    position: relative;
    /*
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;*/
}

.header-nav-container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;

    justify-content: space-between;
    -ms-flex-pack: justify;
}

.header-nav__list-item.hover .header-nav__dropdown-btn {
    -webkit-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: rotate(-90deg);
}

.header-nav__dropdown-btn {
    position: absolute;
    top: 13px;
    right: 12px;
    color: #fff;
    opacity: 0.5;
    font-size: 12px;
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    padding: 5px;
    z-index: 5;
    -webkit-transition: -webkit-transform 0.2s ease;
    transition: -webkit-transform 0.2s ease;
    transition: transform 0.2s ease;
    transition: transform 0.2s ease, -webkit-transform 0.2s ease;
}

.header-nav__parent-link,
.header-nav__donate-link {
    text-decoration: none;
    display: block;
    position: relative;
    height: 95px;
    padding: 15px 12px;
}

.header-nav__parent-link:before,
.header-nav__donate-link:before {
    content: '';
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.header-nav__parent-link:after,
.header-nav__donate-link:after {
    content: '';
    width: 100%;
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    bottom: 5px;
}

.header-nav__parent-link:hover,
.header-nav__donate-link:hover {
    background: #ffda72;
}

.header-nav__parent-link:hover:before,
.header-nav__donate-link:hover:before {
    background: #ffcd3f;
}

.header-nav__parent-link {
    color: #fff;
}

.header-nav__parent-link:hover {
    color: #fff;
    background: #a644b2;
}

.header-nav__parent-link:hover:before {
    background: #a644b2;
}

.header-nav__parent-link:before {
    background: #80308c;
}

.header-nav__parent-link:after {
    background: #9a50a1;
}

.header-nav__donate-link {
    color: #000;
    background: #ffc627;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.header-nav__donate-link:hover {
    color: #000;
}

.header-nav__donate-link:before {
    background: #ffa627;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.header-nav__donate-link:after {
    display: none;
}

.header-nav__list-item {
    position: relative;
    display: inline-block;
    text-align: center;
}

.header-nav__list-item:before {
    content: "";
    display: block;
    height: 100%;
    width: 1px;
    background-color: #9a50a1;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

.header-nav__list-item:first-child:before {
    display: none;
}

.header-nav__list-item.hover {
    position: relative;
}

.header-nav__list-item.hover .header-nav__parent-link {
    background: #a644b2;
}

.header-nav__list-item.hover .header-nav__parent-link:before {
    display: none;
}

.header-nav__list-item.hover .header-nav__parent-link:after {
    display: none;
}

.header-nav__list-item.hover .header-nav__child-list {
    display: block;
}

.header-nav__child-list {
    display: none;
    background: #a644b2;
    border-bottom: solid 5px #ffc627;
    padding: 0 0 15px 0;
    width: 185%;
}

.header-nav__list-item:nth-child(n + 4) .header-nav__child-list {
    left: -85%;
}

a.header-nav__item {
    color: #fff;
    display: block;
    height: 100%;
    line-height: 54px;
    font-weight: 700;
    font-size: 13pt !important;
    padding-left: 25px;
    padding-right: 25px;
    transition: all 0.5s;
}

a.header-nav__item:hover {
    background-color: #a644b2;
}

a.header-nav__item span {
    vertical-align: middle;
}

a.header-nav__item--highlighted {
    background-color: #ffc627;
    color: #000;
    transition: all 0.5s;
}

a.header-nav__item--highlighted:before {
    background-color: #ffa627;
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    transition: all 0.5s;
}

a.header-nav__item--highlighted:hover {
    background-color: #ffda72;
}

a.header-nav__item--highlighted:hover:before {
    background-color: #ffcd3f;
}

.header-nav__item-tip {
    background-color: #bf95c3;
    color: #7f2b87;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    line-height: 15px;
    font-size: 10px;
    font-style: normal;
}

.header-nav__child-link {
    color: #fff;
    padding: 7.5px 19.5px;
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.header-nav__child-link:hover {
    color: #fff;
    background: #80308c;
}

.header-nav-wrapper,
.header-top-wrapper,
.sticky-wrapper {
    display: none;
}

@media only screen and (min-width: 64em) {
    .header-nav-wrapper,
    .header-top-wrapper,
    .sticky-wrapper {
        display: block;
    }
    .top-bar-wrapper {
        flex-direction: row;
        -ms-flex-direction: row;
    }
}

.hidden {
    display: none;
}

/* Old IE overwritting flex*/

.ie {
    #wrapper {
        display: block;
        height: 100%;
    }
    .main--iframe {
        display: block;
        height: 100%;
    }
    .iframe--primary {
        display: block;
        position: relative;
        width: 100%;
        height: 100%;
    }
}
