﻿/******************************************
*                                         *
*   1.  HTML Elements                     *
*   2.  Backgrounds                       *
*   3.  DOT/ESC Branding                  *
*   4.  Other Styles                      *
*   5.  Accessibility                     *
*   6.  Breakpoints                       *
*                                         *
******************************************/

/******************************************
*   1.  HTML Elements                     *
******************************************/

html {
    position: relative;
    min-height: 100%;
}

body {
    font-size: 16px;
    font-family: "Source Sans Pro", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 {
    font-size: 1.5em;
    color: #333333;
    padding-bottom: 0.5em;
}

h2 {
    color: #333333;
    font: 0.875em/1 "Source Sans Pro", sans-serif;
    font-weight: bold;
}

footer {
    width: 100%;
    margin-top: auto;
}

/******************************************
*   2.  Backgrounds                       *
******************************************/

.bg-esc-header {
    background-image: url(../img/header_bg_left_esc.png), url(../img/header_bg_right_esc.png);
    background-position: left top, right top;
    background-repeat: no-repeat, no-repeat;
    background-size: 400px 100px, 400px 100px;
}

.bg-dot-blue {
    background-color: #15396c;
}

.bg-esc-blue {
    background-color: #003e7e;
}

.bg-top-menu-blue {
    background-color: #0076c0;
}

.bg-gainsboro {
    background-color: gainsboro;
}

.bg-f5 {
    background-color: #f5f5f5;
}

.bg-faa-footer {
    background: linear-gradient(#e8e8e8, #dcdcdc);
}

/******************************************
*   3.  DOT/ESC Branding                  *
******************************************/
/* dot navbar */
.navbar-dot {
    height: 2.143em;
}

    .navbar-dot a,
    .navbar-dot a:hover,
    .navbar-dot a:visited {
        text-decoration: none;
        text-shadow: none;
        margin-top: 0em;
    }

    .navbar-dot .dot-microbar {
        display: flex;
        justify-content: space-between;
        padding: 0.286em 0.571em 0em 0.571em;
    }

        /* DOT microbar logo & title */
        .navbar-dot .dot-microbar .dot-logo-wrapper {
            display: flex;
            align-items: center;
            cursor: pointer;
        }

            .navbar-dot .dot-microbar .dot-logo-wrapper img {
                vertical-align: text-top;
            }

            .navbar-dot
            .dot-microbar
            .dot-logo-wrapper
            .dot-logo-title {
                color: #ffffff;
                margin-left: 0.143em;
                font-family: "Source Sans Pro", sans-serif;
                font-size: 0.786rem;
            }

/* esc navbar */
.navbar-esc {
    width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.571em;
    padding-right: 0.571em;
}

    .navbar-esc .navbar-brand {
        font-size: 2em;
    }

    /* active list element */
    .navbar-esc li.nav-item-active {
        background: #15396c;
        color: #fff;
    }

    .navbar-esc .nav-link,
    .navbar-esc .nav-link:hover,
    .navbar-esc .nav-link:visited {
        font-size: 0.857rem;
    }

    .navbar-esc .navbar-nav .nav-link:hover {
        background-color: #0f3062;
        transition: .2s linear;
        border-radius: 0.286em;
    }

    .navbar-esc .navbar-nav .nav-link,
    .navbar-esc .navbar-nav .nav-link:hover,
    .navbar-esc .navbar-nav .nav-link:visited {
        color: #ffffff;
        text-decoration: none;
        font-family: "Source Sans Pro", sans-serif;
    }

/* dot footer */
.faa-footer {
    color: #0366d6;
    padding-top: 2em;
    padding-bottom: 1em;
}

    .faa-footer .nav-link {
        color: #0366d6;
        font: 0.875em/1.5 "Source Sans Pro", sans-serif;
        text-decoration: underline;
    }

        .faa-footer .nav-link:visited {
            color: #0366d6;
            text-shadow: none;
            font-style: normal;
        }

        .faa-footer .nav-link:hover {
            color: #0366d6;
            text-shadow: none;
            font-style: normal;
        }

        .faa-footer .nav-link:link {
            color: #0366d6;
            text-shadow: none;
            font-style: normal;
        }

    .faa-footer .address {
        color: #333333;
        font: 0.875em/1.5 "Source Sans Pro", sans-serif;
    }

        .faa-footer .address .a {
            color: #0366d6;
            font: 0.875em/1.5 "Source Sans Pro", sans-serif;
            text-decoration: underline;
        }

            .faa-footer .address a:visited {
                color: #0366d6;
                text-shadow: none;
                font-style: normal;
            }

            .faa-footer .address a:hover {
                color: #0366d6;
                text-shadow: none;
                font-style: normal;
            }

            .faa-footer .address a:link {
                color: #0366d6;
                text-shadow: none;
                font-style: normal;
            }

    .faa-footer .nav-link {
        padding-top: 0.25em;
        padding-bottom: 0.25em;
    }

    .faa-footer h4 {
        color: #333333;
        font: 0.875em/1 "Source Sans Pro", sans-serif;
        text-transform: uppercase;
        line-height: 1;
        font-weight: bold;
    }

/* sidebar nav */
.sidebar {
    background-color: #fff;
    flex: 0 0 14.286em;
}

    .sidebar li:first-of-type {
        border-top: 1px solid #e0e0e0;
    }

    .sidebar li {
        float: left;
        width: 14.286em;
        position: relative;
        overflow: hidden;
        color: #fff;
        border-bottom: 1px solid #e0e0e0;
    }

    .sidebar a,
    .sidebar strong,
    .sidebar span {
        font-size: 0.857em;
        line-height: 1.286em;
        display: block;
        padding: 0.714em 0.714em 0.714em 0.714em;
        text-decoration: none;
    }

        .sidebar a.twoLines {
            line-height: 1.286em;
            padding-top: 0.714em;
        }

        .sidebar a, .sidebar a:visited {
            color: #036;
        }

    .sidebar li:not(.nav-item-active) > a:hover,
    .sidebar li:not(.nav-item-active) > a:focus {
        color: #333;
        background-color: #f0f0f0;
        transition: .2s linear;
    }

    /* active list element */
    .sidebar li.nav-item-active {
        background: #15396c;
        color: #fff;
    }

        .sidebar li.nav-item-active a,
        .sidebar li.nav-item-active a :hover {
            color: #fff;
        }

    .sidebar li a:focus,
    .sidebar li a:hover,
    .sidebar li a:active {
        color: #fff;
        outline: 0em none;
    }

.nav-item,
.nav-item-active {
    cursor: pointer;
}

/* borders */
.border-bottom-top-menu-blue {
    border-bottom: 0.071em solid #00264d;
}

.border-top-faa-footer-blue {
    border-top: 0.214em solid #00264d;
}

/******************************************
*   4.  Other Styles                      *
******************************************/

.content {
    padding-bottom: 2em;
    flex-shrink: 0;
}

.container-fixed-width {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

/* floating buttons */
#btn-back-to-top {
    position: fixed;
    bottom: 10px;
    right: 10px;
    display: none;
    box-shadow: 4px 4px 15px -4px black;
}

/* faq styles */
.alert-faq {
    color: #383d41;
    background-color: #f7f7f7;
    border-color: #e2e3e5;
}

/* system messages table */
.system-messages caption {
    caption-side: top;
}

.system-messages table {
    border-collapse: collapse;
    text-align: left;
    width: 100%;
}

.system-messages {
    display: block;
    background: #fff;
    overflow: hidden;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
}

    .system-messages table td, .system-messages table th {
        padding: 3px 10px;
    }

    .system-messages table thead th {
        background-color: #0b56a2;
        color: #FFFFFF;
        font-size: 15px;
        font-weight: bold;
        border-left: 1px solid #dcdcdc;
    }

        .system-messages table thead th:first-child {
            border: none;
        }

    .system-messages table tbody td {
        color: #333333;
        border-left: 1px solid #dcdcdc;
        font-weight: normal;
    }

        .system-messages table tbody td:first-child {
            border-left: none;
        }

    .system-messages table tbody tr:nth-child(even) {
        background: #f0f0f0;
    }

    .system-messages table tbody tr:nth-child(odd) {
        background: #FFF;
    }


    .system-messages table tbody tr:last-child td {
        border-bottom: none;
    }

    .system-messages table tfoot td div {
        border-top: 1px solid #98B2DC;
        background: #f0f0f0;
    }

    .system-messages table tfoot td {
        padding: 0;
        font-size: 12px
    }

        .system-messages table tfoot td div {
            padding: 2px;
        }

        .system-messages table tfoot td ul {
            margin: 0;
            padding: 0;
            list-style: none;
            text-align: right;
        }

    .system-messages table tfoot li {
        display: inline;
    }

        .system-messages table tfoot li a {
            text-decoration: none;
            display: inline-block;
            padding: 2px 8px;
            margin: 1px;
            color: #F5F5F5;
            border: 1px solid #98B2DC;
            border-radius: 3px;
            background: -webkit-gradient( linear, left top, left bottom, color-stop(0.05, #DBE6F8), color-stop(1, #98B2DC) );
            background: -moz-linear-gradient( center top, #DBE6F8 5%, #98B2DC 100% );
            background-color: #98B2DC;
        }

    .system-messages table tfoot ul.active, .system-messages table tfoot ul a:hover {
        text-decoration: none;
        border-color: #DBE6F8;
        color: #F5F5F5;
        background: none;
        background-color: #98B2DC;
    }

/******************************************
*   5.  Accessibility                     *
******************************************/

#btn-back-to-top:focus,
#btn-back-to-top:active {
    border: 4px solid #fff;
    outline: 3px solid #000;
}

#btn-fullscreen-close:focus,
#btn-fullscreen-close:active {
    border: 4px solid #fff;
    outline: 3px solid #000;
}

/* skip to top */
a.skip-main {
    left: -999px;
    position: absolute;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
}

    a.skip-main:focus, a.skip-main:active {
        color: #fff;
        background-color: #000;
        left: auto;
        top: auto;
        width: 30%;
        height: auto;
        overflow: auto;
        margin: 10px 35%;
        padding: 5px;
        border-radius: 4px;
        border: 2px solid #fff;
        text-align: center;
        font-size: 1.2em;
        z-index: 999;
    }

/******************************************
*   6.  Breakpoints                       *
*                                         *
*   Breakpoint	Class infix	Dimensions    *
*   ----------  ----------- ----------    *
*   X-Small	    None	    <576px        *
*   Small	    sm	        ≥576px        *
*   Medium	    md	        ≥768px        *
*   Large	    lg	        ≥992px        *
*   X large	    xl	        ≥1200px       *
*   XX large	xxl	        ≥1400px       *
*                                         *
*   Site custom N/A         ≤1240px       *
******************************************/

/* media queries */

/* site content width */
@media (max-width: 1240px) {
    /* use dynamic sizing when width < max-width */
    .navbar-esc {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* bootstrap lg */
@media (max-width: 992px) {
    .navbar-esc .nav-item {
        text-align: left;
        margin: 0em;
        padding: 0em;
    }

    .navbar-menu-esc {
        padding-top: 0.5em;
    }

    .navbar-esc .navbar-nav:last-of-type {
        margin: 0px;
        border-top: 0.071em solid #8ca8c5;
        padding-top: 0.5em;
    }


    .navbar-esc .navbar-nav .nav-link,
    .navbar-esc .navbar-nav .nav-link:hover,
    .navbar-esc .navbar-nav .nav-link:visited {
        font-size: 1em;
    }

    .navbar-esc .navbar-nav a {
        text-align: left;
        padding: 12px 8px 12px 8px;
    }
}

/* bootstrap md */
@media (max-width: 768px) {
    .navbar-esc .navbar-nav {
        margin: 0px;
        border-top: 0.071em solid #8ca8c5;
        padding-top: 0.5em;
    }
}

/* bootstrap sm */
@media (max-width: 576px) {
    .navbar-esc .navbar-nav {
        margin: 0px;
        border-top: 0.071em solid #8ca8c5;
        padding-top: 0.5em;
    }

    .navbar-esc .navbar-brand {
        font-size: 1em;
    }
}

/* galaxy fold */
/*@media (max-width: 340px) {
    .bg-esc-header {
        background-size: auto 116px;
    }

    .navbar-dot .dot-microbar {
        justify-content: center;
    }

    .faa-footer .columns {
        font-size: 0.857em;
    }

    .faa-footer .footer-heading {
        font-size: 1.143em;
    }
}
*/