/** STYLING TO BE LIKE RESOLVE **/
body {
    background: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body .body-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#portal-header {
    position: relative;
    height: 158px;
    display: flex;
    flex-direction: column;
}

#portal-header .header-container {
    height: 100%;
}

#portal-header .header-container .img-container {
    display: flex;
    align-items: center;
    height: 100%;
    color: #00496c;
    padding-bottom: 10px;
}

#portal-header .upper {
    flex: 1;
    height: 114px;
}

#portal-header .upper .img-container img {
    flex: 0;
    max-width: 355px;
    min-width: 355px;
}

#portal-header .lower {
    max-height: 44px;
    min-height: 44px;
    height: 44px;
    background: #002a4e;
    color: white;
    margin-bottom: 1rem;
}

#portal-header .lower:after {
    content: "";
    width: 100%;
    height: 1rem;
    display: block;
    background: url('/brs/images/AFSA-background-blur.jpg') center 100% / 100% no-repeat;
}

#portal-logo {
    display: block;
    position: absolute;
    top: 0px;
    background-image: url('/brs/images/internet_logo.png?v=4');
    background-repeat: no-repeat;
    background-position: 0px 10px;
    width: 387px;
    height: 75px;
}

#print-logo {
    display: block;
    position: absolute;
    top: 0px;
    background-image: url('/brs/images/print_logo.png?v=4') !important; /* to override bootstrap*/
    background-repeat: no-repeat !important;
    background-position: 0px 10px !important;
    width: 406px;
    height: 80px;
}

.menu-bar {
    height: 100%;
    color: white;
}

.menu-bar-link-text {
    max-width: 275px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    white-space: nowrap;
}

.menu-bar .menu {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.menu-bar .menu.menu-right {
    float: right;
}

.menu-bar .menu .menu-item {
    position: relative;
    display: inline-block;
}

.menu-bar .menu .menu-item.open .navbar-btn {
    background: #00496c;
}

.menu-bar .navbar-btn, .menu-bar .navbar-btn:hover, .menu-bar .navbar-btn:focus {
    color: white;
}

.menu-bar .navbar-btn--primary {
    background: #00496c;
}

.menu-bar .navbar-btn:hover, .menu-bar .navbar-btn:focus {
    background: #203d84;
    text-decoration: none;
}

.menu-bar .menu-bar-left {
    height: 100%;
}

.menu-bar .menu-bar-right {
    height: 100%;
    text-align: right;
}

.menu-bar .menu-item .caret {
    margin-left: 0.35rem;
}

.menu-bar .menu-item {
    height: 100%;
    display: inline-block;
}

.menu-bar .navbar-btn {
    padding: 0 1rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.menu-bar .navbar-btn .fa {
    margin-right: 0.5rem;
    font-size: 20px;
}

.menu-bar .dropdown-menu {
    text-align: left;
    right: -1px;
    left: unset;
    padding: 5px;
    margin-top: 0;
    border-radius: 0;
}

.menu-bar .dropdown-menu li {
    display: block;
    float: none;
}

.menu-bar .dropdown-menu a {
    margin: 0;
    padding: 0.5rem;
    display: block;
}

.page-header {
    background: #EDF5FBFF;
    padding: 10px 0 25px;
    margin: 0 0 1rem 0;
}


body .body-content .page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

h1.page-title {
    font-size: 2.5rem;
    color: #002a4e;
    font-weight: 700;
    margin: 40px 0 25px;
}

#afsa_footer {
    border-top: 12px solid rgba(51, 51, 51, 0.1);
    background: #EDEFF3;
    margin-top: 3rem;
}

#afsa_footer.no-top-buffer {
    margin-top: 0;
}

#afsa_footer .footer-top .container {
    padding: 0;
}

#afsa_footer .footer-links {
    padding: 20px 15px;
}

#afsa_footer .footer-links .link--external .fa {
    font-size: 14px;
    color: #002a4e;
    padding-left: 5px;
}

#afsa_footer .footer-bottom {
    background: #002a4e;
}

#afsa_footer .footer-bottom::before {
    content: "";
    width: 100%;
    height: 48px;
    display: block;
    background: url('/brs/images/AFSA-background-blur.jpg') center center no-repeat;
    background-size: 100% auto;
    background-position-y: 100%;
}

#afsa_footer .footer-bottom-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
    color: white;
}

#afsa_footer .footer-bottom-content .footer-bottom-left {
    padding: 1rem 0 0;
    color: white;
    display: flex;
}

#afsa_footer .footer-bottom-content .footer-bottom-left .footer-item {
    display: inline-block;
    padding-right: 0.5rem;
}

#afsa_footer .footer-bottom-content .footer-bottom-left p {
    color: white;
    font-size: 12px;
    padding-left: 1.5rem;
    font-weight: 500;
    line-height: 16px;
}

#afsa_footer .footer-bottom-content .footer-bottom-right {
    padding-left: 1rem;
    text-align: right;
}

@media (max-width: 992px) {
    #afsa_footer .footer-bottom-content .footer-bottom-right {
        text-align: left;
    }
}

#afsa_footer ul.menu {
    list-style: none outside;
    padding: 0;
}

#afsa_footer ul.menu.row {
    padding: 0;
    margin: 0;
    width: 100%;
}

#afsa_footer .footer-top a {
    color: #002a4e;
    font-weight: 500;
}

#afsa_footer .footer-top a:hover {
    color: #002a4e;
    text-decoration: underline;
}

#afsa_footer .footer-bottom a {
    color: white;
    font-weight: 500;
}

#afsa_footer .footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

#afsa_footer li.menu-item {
    margin-top: 5px;
    margin-bottom: 1rem;
}

#afsa_footer .footer-links > ul > li {
    width: 20%;
    float: left;
}

@media (max-width: 768px) {
    #afsa_footer .footer-links > ul > li {
        margin-top: 0;
        width: 100%;
        margin-bottom: 0;
    }

    #afsa_footer .footer-links > ul > li > ul > li {
        display: inline-block;
        width: 50%;
        float: left;
        padding-right: 20px;
        margin-top: 0;
    }

    #afsa_footer .footer-links > ul > li:last-child {
        border-left: none !important;
        padding-left: 0 !important;
    }
}

#afsa_footer .footer-links > ul > li:last-child {
    border-left: 1px solid #d8e1e9;
    padding-left: 20px;
}

@media (max-width: 1000px) {
    .menu-bar-link-text {
        max-width: 150px;
    }
}

@media (max-width: 750px) {
    .menu-bar-link-text {
        max-width: 75px;
    }
}

@media (max-width: 600px) {
    #portal-header .upper .img-container img,
    #afsa_footer .img-container img {
        max-width: 280px;
        min-width: 250px;
    }

    #afsa_footer .img-container img {
        margin-top: 1rem;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .menu-bar .navbar-btn .fa {
        margin-right: 0;
    }

}

/**http://stackoverflow.com/questions/779434/preventing-padding-propety-from-changing-width-or-height-in-css**/
.border-box {
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box; /* Firefox, other Gecko */
    box-sizing: border-box; /* Opera/IE 8+ */
}

#footer_version {
    position: relative;
    top: 140px;
    right: 10px;
    color: #2c7092;
    font-size: 70%;
    text-align: right;
    z-index: 100;
}

@media screen {
    #print-logo {
        display: none;
    }
}

@media print {
    body {
        background: white;
        margin-top: 0px;
    }

    #portal-logo, #portal-header-right, #nav_primary, #afsa_footer, .breadcrumb {
        display: none;
    }

    .container {
        -moz-box-shadow: none;
        box-shadow: 0px 0px 0px white;
    }

    /** By default do not print the URL **/
    a[href]:after {
        content: none !important;
    }
}


.visually-hidden {
    position: absolute !important;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    word-wrap: normal;
}

.visually-hidden.accessibility-link:focus {
    position: fixed !important;
    overflow: visible;
    clip: auto;
    width: auto;
    height: auto;
    background: #2d7c97;
    text-decoration: none;
    padding: 10px 12px;
    display: inline-block;
    border-radius: 4px;
    color: #ffffff;
    margin: 1rem;
}

.main-menu-toggle.open {
    background: #203d84;
}

.main-menu {
    position: absolute;
    width: 100%;
    color: #002a4e;
    z-index: 999;
    background: white;
    min-height: 0;
    max-height: 0;
    left: 0;
    margin-top: 0;
    box-shadow: 0 5px 10px darkgrey;
    transition: max-height .5s ease-in-out, min-height .5s ease-in-out;
    overflow: hidden;
}

.main-menu.expanded {
    /*max-height: calculated at runtime via ss.mainmenu.js to cater for varying menu sizes*/
    /*min-height: set at runtime via ss.mainmenu.js to cater for very small menus when not signed in*/
}

.main-menu--expand {
    color: #00AAB8;
}

.main-menu .main-menu-container {
    display: none;
    padding: 1rem 0;
}

.main-menu.expanded .main-menu-container {
    display: block;
}

.main-menu--menu-list, .main-menu--submenu-list {
    padding: 0;
    margin-bottom: 1rem;
}

.main-menu--menu-list-item {
    border-top: 1px solid #d8e1e9;
    min-height: 35px;
    display: flex;
}

.main-menu--menu-list-item:last-child {
    border-bottom: 1px solid #d8e1e9
}

.main-menu--menu-list-item-link {
    color: #333333;
    text-decoration: none;
    flex: 1;
    display: flex;
    align-items: center;
    background: transparent;
    padding: 8px 15px 8px 7px;
    border-left: 8px solid transparent;
}

.main-menu--menu-list-item-link *:first-child {
    flex: 1;
}

.main-menu--menu-list-item-link *:not(:first-child) {
    flex: 0;
}

.main-menu--menu-list-item-link:hover,
.main-menu--menu-list-item-link.active {
    transition: all 0.4s, border-width 0s, padding 0s, margin 0s, font-weight 0s;
    transform: none;
    background: #E5F6F7;
    text-decoration: none;
    border-left: 8px solid #00AAB8;
}

.main-menu--menu-list-item-link:focus {
    text-decoration: none;
}

.main-menu--menu-list-item-link:hover *:first-child {
    text-decoration: underline;
}

.main-menu--submenu-list {
    display: none;
}

.main-menu--submenu-list.active {
    display: block;
}

.main-menu--exclusive-menu-selection {
    display: none;
    padding-bottom: 1rem;
    color: #002a4e;
}

.main-menu--exclusive-menu-selection .fa {
    margin-right: 0.5rem;
}

.main-menu--exclusive-menu-selection a {
    color: #002a4e;
}

.main-menu--back-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-left: -1rem;
    margin-bottom: 1rem;
}

.main-menu--current {
    background: #E5F6F7;
    text-decoration: none;
    border-left: 8px solid #00AAB8;
    padding: 8px 15px 8px 7px;
}

@media (max-width: 768px) {
    /* bootstrap's extra small breakpoint */
    .main-menu.expanded {
        padding: 1rem;
    }

    .main-menu .main-menu-container {
        padding: 1rem;
    }

    .main-menu--menu-list.exclusive,
    .main-menu--submenu-list.exclusive {
        display: none;
    }

    .main-menu--exclusive-menu-selection {
        display: block;
    }
}

.hide {
    display: none;
}

.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-container-row {
    display: flex;
    flex-direction: row;
    flex: 1;
}

.login-container-col {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.login-blurb-header {
    margin-top: 10px;
    margin-bottom: 20px;
}

.login-blurb {
    padding-left: 18px;
    line-height: 1.7;
}

.login-button {
    background: white;
    color: black;
    border: 1px solid black;
    border-radius: 50px;
    font-size: 1rem;
    height: 40px;
    width: 100%;
    vertical-align: middle;
    margin-top: 1rem;
}

.login-button:active, .login-button:focus, .login-button:hover {
    background-color: #00AAB8;
    color: white;
    border-color: white;
    text-decoration: none;
    outline: none;
}

.login-or {
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(1, 1, 1, 0.3);
    border-radius: 50%;
    height: 36px;
    width: 36px;
    padding-left: 9px;
    padding-top: 6px;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    font-weight: normal !important;
}

.login-or-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.login-or-line {
    border-bottom: 1px solid #c5c5c5;
    width: 100%;
    margin-top: -35px;
}
