
/* Main nav bar */

#logo-wrapper {
    margin-left: 50px;
}

#logo-section {
    padding: 0 !important;
}

#jagc-crest {
    width: 89px;
    height: 50px;
    margin-left: 50px;
}

#jagc-crest-side {
    width: 89px;
    height: 50px;
    margin-left: 10px;
    padding: 5px;
}

.card-crest {
    width: 50px;
    height: 33px;
    padding: 2px;
}

#crest-logo {
    position: fixed;
    margin-left: 100px;
    /*left: 5%;*/
    display: flex;
    flex-direction: row;
    align-items: center;
}

#logout-wrap {
    align-self: center;
}

#menu-icon {
    color: white;
    font-size: 50px;
    cursor: pointer;
    margin-left: 20px;
    position: relative;
    z-index: 9999;
    background: none;
    border: none;
}

/* Style overrides */

#main-nav {
    position: fixed;
    background: black !important;
    color: white;
    z-index: 999;
    left: 0;
    top: 0;
    right: 0;
    border: none;
}

.nav-wrapper {
    display: none;
    background: #1d285c !important;
    /* height: 44px; */
    height: 240px;
    z-index: 999;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    border: none;
    color: white !important;
}

#side-nav-button {
    background: none;
    border: none;
}

#jagc-title {
    color: white;
    font-family: "Nirmala UI", "GI";
    display: flex;
    flex-direction: column;
    width: 500px;
    font-size: 24px;
}

#jagc-title span#upper-title {
    font-weight: 700;
    margin-bottom: -9px;
}

#jagc-title span#lower-title {
    font-size: 14px;
    color: #ffcc01;
}

.login-wrap {
    
    color: black !important;
    background-color: #ffcc01;
    border-radius: 35px;
    padding: 20px;
}

.login-wrap p {
    color: black;
    margin: auto;
    font-size: 18px;
    text-align:center;
}

.login-wrap:hover {
    background-color: black;
    transition: ease-in;
    border: 1.5px solid #ffcc01;
}

.login-wrap:hover p {
    color: #ffcc01;
}

.offcanvas {
    width: 450px; /* 30% */
}

.offcanvas-body {
    background-color: black;
    color: white !important;
}

.offcanvas-header {
    background: black;
    color: white !important;
    height: 91px;
}

.offcanvas-header button {
    color: white;
}

/*
.offcanvas .accordion-button {
    color: black;
    background-color: white;
}
*/

.offcanvas .accordion-item, .offcanvas .accordion-item:not(.collapsed) {
    border: none;
    color: black !important;

}

.offcanvas .accordion-button:hover::after, .offcanvas .accordion-item .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
}


.offcanvas .accordion-button {
    background-color: black;
    color: white;
    border-bottom: 1px solid white;
    box-shadow: none;
}

.offcanvas .accordion-button:hover, .offcanvas .accordion-item .accordion-button:not(.collapsed)  {
    background-color: #ffcc01;
    color: black;
    border: none;
    box-shadow: none;
}

.offcanvas .accordion-link {
    background-color: black;
}

.offcanvas .accordion-link a {
    text-decoration: none;
    color: white; 
    display: block;
    padding: 12px;
}

/*
.offcanvas .accordion-link:hover {
    background-color: #ffcc01;
}
*/

.offcanvas .accordion-link:hover a {
    text-decoration: none;
    color: black;
    display: block;
    background-color: #ffcc01;
}

.offcanvas .accordion-body h3 {
    font-style: italic;
    color: white !important;
    font-weight: bold;
}


.offcanvas .accordion-collapse {
    background-color: black !important;
    color: white !important;
}

.offcanvas .accordion-body a {
    color: white;
    display: block;
}

/*
.offcanvas .accordion-body .side-menu-sub-option {
    padding: 10px;
}


.offcanvas .accordion-body .side-menu-sub-option:hover {
    background-color: #ffcc01;
    color: black !important;
}
*/

.offcanvas .accordion-button:hover .accordion-button::after {
    color: black;
}

.offcanvas .accordion-body .side-menu-sub-option a {
    padding: 12px;
}

.offcanvas .accordion-body .side-menu-sub-option:hover a {
    color: black;
    text-decoration: none;
    background-color: #ffcc01;
}

    .offcanvas-body ul li {
        margin: 20px 0;
    }

.offcanvas a {
    color: black;
}

.offcanvas a:hover {
    text-decoration: underline;
}

.offcanvas .accordion-button, .offcanvas .accordion-collapse {
    width: 100%;
}

.offcanvas .accordion-collapse {
    padding: 0;
    margin: 0;
}

#side-nav-close {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(183deg) brightness(101%) contrast(101%); 
    color: white;
    padding: 15px;
}
/*
.nav-wrapper {
    padding-top: 100px;
    background-color: #1d285c !important;
    text-align: center;
    height: 60px;
    display: flex;
    align-items: center;
    color: white;
}
*/
#user-profile {
    position: absolute;
    display: flex;
    right: 4%;
    padding-top: 5px;
    padding-left: 9px;
    flex-direction: row;
    text-align: left;
    color: white !important;
    font-size: 12px;
}

#user-icon img {
    height: 50px;
    color: white;
}


/* Side nav bar */
/* The side navigation menu */
.sidenav {
    height: 100%; /* 100% Full-height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 0; /* Stay at the top */
    left: 0;
    background-color: #111; /* Black*/
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 60px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

    /* The navigation menu links */
    .sidenav a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: 25px;
        color: #818181;
        display: block;
        transition: 0.3s;
    }

        /* When you mouse over the navigation links, change their color */
        .sidenav a:hover {
            color: #f1f1f1;
        }

    /* Position and style the close button (top right corner) */
    .sidenav .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
    transition: margin-left .5s;
    padding: 20px;
}

#crest-logo .logo-span {
    margin-left: 34px;
}

.offcanvas .jagc-logo .logo-span {
    color: #ffcc01 !important;
    margin-left: 34px;
}


.scroll-top {
    background-color: #ffcc01 !important;
    color: black !important;
}


.scroll-top i {
    color: black;
}

.overlay {
    top: 0%;
    display: none;
    position: fixed;
    z-index: 700;
    margin-left: 400px;
    width: 100%;
    height: 100vh;
    /*background-color: #17214b !important; */
    background-image: url("../img/jagc-crest.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 1 !important;
}

.leadership-overlay-main {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2),rgba(0, 0, 0, 0.2)), url("../img/Leadership/Leadership.jpeg");
    background-position: left;
    background-size: cover;
    opacity: 1;
    overflow: hidden;
    animation: fadeInBG 250ms ease-in, slide 75s linear infinite;
}

.mission-overlay {
    background-image: url("../img/jagc-mission-vision-stmt.jpeg");
    background-position: center;
    opacity: 1;
    /*
    animation: fadeInBG;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 250ms;
    */
    background-size: auto;
    background-position: 40% 50%;
    background-color: #1d295d;
    /*
    left: -8%;
    z-index: -1000;
    */
}

.ng-overlay-main {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2),rgba(0, 0, 0, 0.2)), url("../img/ng_overlay_01.jpg");
    background-position: center;
    background-size: cover;
    opacity: 1;
    animation: fadeInBG;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 250ms;
}

.careers-overlay-main {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2),rgba(0, 0, 0, 0.2)), url("../img/GoArmyJAG-careers-overlay.jpg");
    background-position: top;
    background-size: cover;
    opacity: 1;
    animation: fadeInBG;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 250ms;
    background-size: cover;
  
}

.reserve-overlay-main {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2),rgba(0, 0, 0, 0.2)), url("../img/reserve.jpg");
    background-position: center;
    background-size: cover;
    opacity: 1;
    animation: fadeInBG;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 250ms;
}


.courts-overlay-main {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2),rgba(0, 0, 0, 0.2)), url("../img/courts.jpg");
    background-position: center;
    background-size: cover;
    opacity: 1;
    animation: fadeInBG;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 250ms;
}

.legal-services-overlay-main {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2),rgba(0, 0, 0, 0.2)), url("../img/legalServices.jpg");
    background-position: center;
    background-size: cover;
    opacity: 1;
    animation: fadeInBG;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 250ms;
}

.resources-overlay-main {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2),rgba(0, 0, 0, 0.2)), url("../img/resources.jpg");
    background-position: center;
    background-size: cover;
    opacity: 1;
    animation: fadeInBG;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 250ms;
}


.annc-overlay {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2),rgba(0, 0, 0, 0.2)), url("../img/helpfulLinks.jpg");
    background-position: center;
    background-size: cover;
    opacity: 1;
    animation: fadeInBG;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 250ms;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

        .sidenav a {
            font-size: 18px;
        }
}

@media (max-width: 900px) {

    .offcanvas {
        width: 100%;
    }

    .overlay {
        display: none !important;
    }

    #mainNavBar {
        width: 100% !important;
    }

    #user-profile {
        display: none;
    }

    #login-wrap-desktop {
        display: none;
    }

  
}

@media (max-width: 2400px) {
    .mission-overlay {
        background-image: url("../img/jagc-mission-vision-stmt-m.jpeg");
        background-color: #1d295d !important;
    }

}

@media (max-width: 1840px) {
    .mission-overlay {
        background-image:  url("../img/JAGC-Compass.png");
        background-size: auto;
        background-color: #17214b;
        background-position-x: 200px;
    }
}
