﻿#topNav {
    position: fixed;
    top: 0px;
    width: 100%; 
    z-index: 999;
    background-color: white;
}


#topNavBar {
    width: 100%;
    /*height: auto;*/
    height: 148px;
}

#restofpage {
    /*margin-top: 148px;*/
}


#navLogo {    
    margin-right: 50px;
    margin-left: 50px;
}

    #navLogo img {
        width: 200px;
    }

#navItems {
    width: 100%;
    position: relative;
}

#navTopItems a{
    font-weight:bold;
}

#navBottomItems {
    clear: both;
    width: 100%;
    position: absolute;
    bottom: 0px;
}

.navlink {    
    width:20%;    
    text-align: center;
    padding:.8em;
}

.navlink:hover{
    opacity: .8;
}


.topNavSectionLink a {
    font-size:1.5em !important;    
}

.menuHiking {
    background-color: var(--green);
    width:16%
}

.menuClimbing{
    background-color:var(--dirtygreen);
    width:18%;
}

.menuTraining{
    background-color:var(--green);
    width:18%;
}

.menuAccess{
    background-color:var(--navy);
    width:30%;
}

.menuMembers{
    background-color:var(--dirtygreen);
    width:18%;
}

.MobileNavSection{
    width:100%;
}

.lhsItem a.selectedLHSItem{
    font-weight:bold;
}

.lhsItem{
    padding:10px;
    font-size:1em;
}

.lhsItem a{
    width:100%;
    height:100%;
    display:block;
    color:var(--white);
}

.lhsItem a:visited, .subMenuItems a:visited {
    color:var(--white);
}

.level1{
    font-weight:bold;
}

.level2 {
    font-size:.9em;
    margin-left:10px;
}

.level3 {
    font-size: .9em;
    margin-left: 20px;
}

.level4 {
    font-size: .9em;
    margin-left: 30px;
}




#navBottomItems a {
    color: white;
    display: block;
    width: 100%;
    height: 100%;
    padding: 8px;
}

/* TOP NAV - SUB MENU SECTION */
.topNavSubMenu {
    position: absolute; 
    z-index:9999;
    width:inherit;
    height: auto;
    overflow: hidden;
    padding:0px;
    margin:0px;   
}

    .topNavSubMenu .inner {
        display:flex;
        flex-direction:row;        
    }

    .topNavSubMenu .header{
        display:none;
    }


    .topNavSubMenu a {
        color: var(--white);
        font-size: 1.1em;
    }

.topNavSubMenu ul{
    list-style:none;
}

.topNavSubMenu li{
    padding:5px;
    margin:0px;
    padding:0px;
    line-height:2.5em;
}

.subMenuList {
    margin-top:3em;
    float:left;
}

.subMenuItems {
    width: 60%;
    padding-left: 20%;
}

.subMenuImage {
    width:40%;
    margin-top:-22px;
}

.subMenuImage img {
    height:100%;
}

.subMenuItems a {
    font-family: Avenir-light;
    font-size:1em;
}

.subMenuBack{
    display:none;
}



#mobileBurger {
    position: absolute;
    right: 30px;
    top: 15px;
    display: none;
    width: 30px;
}

    #mobileBurger:before,
    #mobileBurger:after,
    #mobileBurger div {
        background: var(--navy);
        content: "";
        display: block;
        height: 3px;
        border-radius: 3px;
        margin: 7px 0;
        transition: 0.5s;
    }

    #mobileBurger:hover:before {
        transform: translateY(12px) rotate(135deg);
    }

    #mobileBurger:hover:after {
        transform: translateY(-12px) rotate(-135deg);
    }

    #mobileBurger:hover div {
        transform: scale(0);
    }

#MobileNavLevels{
    display:none;
    width:100%;    
    position:absolute;
    z-index:9999;
    background-color:var(--white);
}

.MobileNavSection a{
    display:block;
    width:100%;
    height:80px;
    padding:2em;
    color: var(--white);    
    font-size:1.5em;
    text-align:center;
}

#MobileNavLevel2 .MobileNavSection a{
    height:30px;
}

.menuBlank a {
    color: var(--navy);
}

#MobileNavLevel1 {
    display: none;
}

#MobileNavLevel2{
    display:none;
}


#homepageBottomNav{
    background-color:var(--navy);
    height:auto;      
    position:relative;
    color:white;
}

    #homepageBottomNav.row {
        margin: 0px;
        padding: 0px;
    }

    #homepageBottomNav .col-md-2 {
        margin: 0px;
        padding: 0px;
    }

    #homepageBottomNav img {
        width:100%;
        margin:0px;        
    }

.inactiveBottomNav, .activeBottomNav {
    height: 100%;
    width: 100%;
    padding: 2em;
    position: relative;
    bottom: 0px;
}

    .inactiveBottomNav p {
        position: absolute;
        bottom: 0px;
        font-weight: bold;
    }

    .activeBottomNav a {
        display:block;
        
        padding-bottom:25px;
        color:white;
    }

.subMenuTitle {
    font-weight:bold;
    border-bottom:2px white solid;
    padding-bottom:3px;
    margin-bottom:25px;
}

.subMenuTitle a{
    padding-bottom:3px;
}


#bottomNavYouth {
    background-color: var(--green);
}

#bottomNavWomen {
    background-color: var(--dirtygreen);    
}

#bottomNavGIW {
    background-color: var(--navy);
}


#activeGIW .GIWText {
    line-height: 2em;
}

a.GIWLink {
    margin-left: auto;
    width: 50%;
    display: block;
    border-bottom: 2px solid white;
    font-weight: bold;
    padding-bottom: 3px;
}

@media (max-width:800px){
    .subMenuImage img {
        max-height: 200px;
    }
}


@media (max-width: 768px) {
    #navItems{
        display:none;
    }

    #navLogo {
        margin-right: 20px;
    }

    #navLogo img{
       
    }

    li.topNavSectionLink {
        padding:15px;
        border-bottom:1px white solid;
        margin-bottom:15px;
    }


    #mobileBurger {
        display:block;
    }

    #topNav{    
        position:relative;  /* without this, the #MobileNavSection won't scroll! Not sure why! */      
    }

    #topNavBar {
    }

    #restofpage {
        margin-top:0px;
    }

    .topNavSubMenu {
        position: absolute;
        width: inherit;
        height: auto;
    }

    .subMenuItems {
        width: 100%;
        text-align:center;
        padding:0;
    }

    .topNavSubMenu .inner {
        display: block;        
    }
    .subMenuList {
        margin: 0;
        padding:0;
        float: none;
    }

    .subMenuImage {
        display:none;
    }

    .topNavSubMenu .header {
        display: block;
        color: var(--white);
        font-size: 1.5em;
        text-align: center;
        border-bottom: 1px white solid;
        padding-top: 2em;
        margin: auto;
        width: 50%;
    }

    .subMenuBack {
        display: block;
        padding-left:2em;
    }


}

@media (max-width:1020px) {
    .navlink, .navTopItem {
        font-size: .6em;
    }
}

@media (max-width:850px) {
    .navTopItem{
        font-size:.5em;
    }
}

