/* ************ GENERAL STYLES ************ */
body {
    /* styles for sticky footer */
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

#mainBodyContainer {
    flex: 1 0 auto;
    /* style for sticky footer */
}

/* ************ THIN HEADER FROM APA.ORG ************ */
header {
    font-size: 75%;
    font-family: Arial, Helvetica, Sans-serif;
    line-height: 1.3em;
    letter-spacing: normal;
    word-spacing: normal;
    position: relative;
    border-bottom: 2px solid #555;
    overflow: visible;
    width: 100%;
    padding: 0;
    z-index: 110;
    margin: 0 auto;
}

header .banner {
    background: #FFFFFF;
    /* margin-top: 10px; */
    padding-top: 3px; /* added */
    width: 100%;
    overflow: hidden;
}

header .banner img {
    margin: 5px 0 8px 14px;
}

header .banner img.apaLogo {
    width: 155px;
}

header .banner .headLogo {
    float: left;
}

header .banner .headLogo img.large {
    max-width: 430px;
    height: auto;
}

header .banner .headLogo img.small,
header .banner .headLogo img.medium {
    display: none;
}

@media screen and (max-width: 995px) {
    header {
        width: auto;
        border: 0;
        margin: 0;
        clear: both;
    }

    header .header_top .header_left {
        display: none;
    }

    header .banner .headButton {
        display: block;
    }

    header .banner {
        margin-top: 0;
        overflow: visible;
        height: 57px;
        border-bottom: 2px solid #555;
    }

    header .banner .headLogo img {
        margin: 2px 0 0 20px;
        max-height: 55px;
    }
}

@media screen and (min-width: 768px) and (max-width: 995px) {
    header .banner .headLogo img.large {
        margin-top: 12px;
    }
}

@media screen and (max-width: 767px) {
    header .banner .headLogo img.large {
        max-width: 320px;
        height: auto;
        margin: 17px 0 0 10px;
    }
}

@media screen and (max-width: 480px) {
    header .banner .headLogo img.small {
        display: block;
        max-height: 40px;
        margin: 2px 0 0 10px;
        padding-top: 8px;
    }

    header .banner .headLogo img.large {
        display: none;
    }
}

/* ************ FOOTER STYLES ************ */
footer {
    bottom: 0;
    margin-bottom: 0;
    flex-shrink: 0;
    /* style for sticky footer */
    border-top: 2px solid #555;
}

/* footer anchor overrides */
footer a {
    text-decoration: none;
}
footer a:hover {
    text-decoration:underline;
}

/* ************ BOOTSTRAP 4 SWITCH BUTTON STYLES ************ */
.btn-toggle {
    margin: 0 4rem;
    padding: 0;
    position: relative;
    border: none;
    height: 1.5rem;
    width: 3rem;
    border-radius: 1.5rem;
    color: #6b7381;
    background: #bdc1c8;
}

.btn-toggle:focus,
.btn-toggle.focus,
.btn-toggle:focus.active,
.btn-toggle.focus.active {
    outline: none;
}

.btn-toggle:before,
.btn-toggle:after {
    line-height: 1.5rem;
    width: 4rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: absolute;
    bottom: 0;
    transition: opacity 0.25s;
}

.btn-toggle:before {
    content: 'Off';
    left: -4rem;
}

.btn-toggle:after {
    content: 'On';
    right: -4rem;
    opacity: 0.5;
}

.btn-toggle > .handle {
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 1.125rem;
    background: #fff;
    transition: left 0.25s;
}

.btn-toggle.active {
    transition: background-color 0.25s;
}

.btn-toggle.active > .handle {
    left: 1.6875rem;
    transition: left 0.25s;
}

.btn-toggle.active:before {
    opacity: 0.5;
}

.btn-toggle.active:after {
    opacity: 1;
}

.btn-toggle.btn-sm:before,
.btn-toggle.btn-sm:after {
    line-height: -0.5rem;
    color: #fff;
    letter-spacing: 0.75px;
    left: 0.4125rem;
    width: 2.325rem;
}

.btn-toggle.btn-sm:before {
    text-align: right;
}

.btn-toggle.btn-sm:after {
    text-align: left;
    opacity: 0;
}

.btn-toggle.btn-sm.active:before {
    opacity: 0;
}

.btn-toggle.btn-sm.active:after {
    opacity: 1;
}

.btn-toggle:before,
.btn-toggle:after {
    color: #6b7381;
}

.btn-toggle.active {
    background-color: #29b5a8;
}

.btn-toggle.btn-sm {
    margin: 0 0.5rem;
    padding: 0;
    position: relative;
    border: none;
    height: 1.5rem;
    width: 3rem;
    border-radius: 1.5rem;
}

.btn-toggle.btn-sm:focus,
.btn-toggle.btn-sm.focus,
.btn-toggle.btn-sm:focus.active,
.btn-toggle.btn-sm.focus.active {
    outline: none;
}

.btn-toggle.btn-sm:before,
.btn-toggle.btn-sm:after {
    line-height: 1.5rem;
    width: 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: absolute;
    bottom: 0;
    transition: opacity 0.25s;
}

.btn-toggle.btn-sm:before {
    content: 'Off';
    left: -0.5rem;
}

.btn-toggle.btn-sm:after {
    content: 'On';
    right: -0.5rem;
    opacity: 0.5;
}

/* customizations for open and close on the buttons instead for the Polaris design */

.btn-toggle.btn-sm.open-close:before {
    content: 'Open';
    left: -0.5rem;
}

.btn-toggle.btn-sm.open-close:after {
    content: 'Close';
    right: -0.5rem;
    opacity: 0.5;
}

.btn-toggle.btn-sm.btn-sm.open-close:before {
    left: 1.5rem;
    width: 1rem;
}

.btn-toggle.btn-sm.open-close{
    width: 4.1rem;
}
.btn-toggle.btn-sm.active.open-close > .handle {
    left: 2.75rem;
}

/* ********** */

.btn-toggle.btn-sm > .handle {
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 1.125rem;
    background: #fff;
    transition: left 0.25s;
}

.btn-toggle.btn-sm.active {
    transition: background-color 0.25s;
}

.btn-toggle.btn-sm.active > .handle {
    left: 1.6875rem;
    transition: left 0.25s;
}

.btn-toggle.btn-sm.active:before {
    opacity: 0.5;
}

.btn-toggle.btn-sm.active:after {
    opacity: 1;
}

.btn-toggle.btn-sm.btn-sm:before,
.btn-toggle.btn-sm.btn-sm:after {
    line-height: -0.5rem;
    color: #fff;
    letter-spacing: 0.75px;
    left: 0.4125rem;
    width: 2.325rem;
}

.btn-toggle.btn-sm.btn-sm:before {
    text-align: right;
}

.btn-toggle.btn-sm.btn-sm:after {
    text-align: left;
    opacity: 0;
}

.btn-toggle.btn-sm.btn-sm.active:before {
    opacity: 0;
}

.btn-toggle.btn-sm.btn-sm.active:after {
    opacity: 1;
}

/* ************ FROM OLD MYAPACUSTOMCSS.CSS FILE USED FOR INITIAL MYAPA UPLIFT PHASE 1 MOCKUPS (RESEARCH ALERTS SECTION USAGE HERE) ************ */

.smallContainerBox {
    background-color: #f5f5f5;
    border-radius: 3px;
    padding: 20px 10px;
    margin: 10px 10px 20px;
}

.alertLinks {
    padding-left: 20px;
}

/* ************ NOT SURE IF WE NEED THESE STYLES AND/OR NEEDS INTEGRATION INTO MAIN PL CSS ************ */
/* making sure placeholder text is accessible - but we probably just need to take out the light gray override in our Pattern Library */
::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #6c757d !important;
    opacity: 1;
    /* Firefox */
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #6c757d !important;
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #6c757d !important;
}

/* styling an accessible helper text- If no color is defined, then the helper text will take the color of the text within an alert */
.helper-text {
    color: #333333;
}
/* .btn-textbutton = TEXT BUTTON - to be reviewed by UX Team - added with Edit Address screen */
.btn-textbutton{font-family: "ProximaNova","Helvetica Neue",Helvetica,Arial,sans-serif; color: #005499 !important; font-weight: 500; font-size: 12px; text-align: center; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: underline; background-color: inherit;color: #333; border-radius: 3px;transition: background 0.5s ease 0s; -webkit-transition: background 0.5s ease 0s; -moz-transition: background 0.5s ease 0s; -ms-transition: background 0.5s ease 0s;}
.btn-textbutton:hover, .btn-textbutton:focus, .btn-textbutton:active, .btn-textbutton.active, .open .dropdown-toggle.btn-textbutton{background-color: #e0f6fd; color: #23527c; text-decoration: none;}
.btn-textbutton:active, .open .dropdown-toggle.btn-textbutton{background-image: none;}
