/***********************
THE CASCADE IS:
styles-large.css
styles-medium.css
styles-small.css
styles-menu.css
styles.css  USE THIS FOR DIGITAL ARCHIVE FIXES
***********************/

/*https://www.w3schools.com/howto/howto_js_responsive_navbar_dropdown.asp*/
/* Add a black background color to the top navigation */
nav {
    background-color: none;
    overflow: hidden;
    /* border: 1px solid red; */
}

/* Style the links inside the navigation bar */
nav a {
    color: #666;
    text-align: center;
    padding: 4px 10px;
    text-decoration: none;
    font-size: 1.2em;
}

/* Add an active class to highlight the current page */
body#home a#nbhome,
body#archive a#nbarchive,
body#film a#nbfilm,
body#exhibit a#nbexhibit,
body#words a#nbwords,
body#contact a#nbcontact,
body#contact a#nbother {
    color: #21759b;
    /*font-weight: bold;*/
}

/* Hide the link that should open and close the topnav on small screens */
nav .icon {
    display: none;
}

/* Add a dark background on topnav links and the dropdown button on hover */
nav a:hover {
    color: #2a95c5;
    text-decoration: none;
}

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 1000px) {
    /*nav a:not(:first-child), .dropdown .dropbtn {display: none;} <-- THIS DISPLAYS THE FIRST ELEMENT (HOME) */

    nav {
        background-color: #f7f7f7;
        width: 100%;
        margin: 0;
    }

    nav a:hover {
        background-color: #ddd;
    }

    nav a {
        display: none;
        width: 100%;
        margin-top: 0;
        font-size: 1em;
        padding: 0;
        margin-left: 10px;
    }

    nav a.icon {
        background-color: none;
        float: right;
        display: block;
        text-align: right;
        padding-right: 10px;
    }

    /* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
    nav.responsive a.icon {
        float: right;
        /*position: absolute;*/
        /*left: 70%;
    width: 25%;*/
        top: 0;
        text-align: right;
        /*display: none;*/
    }

    nav.responsive a.icon:hover {
        background-color: #f7f7f7;
    }

    nav.responsive a {
        float: left;
        display: block;
        text-align: center;
    }
}

/* END @media */
