/*
*******************************************
NAV
*******************************************
*/

.navmob {
    display: none;
}

nav {
    position: absolute;
    height: 35px;
    bottom: 0;
    width: 100vw;
    background: var(--bg-color);
    z-index: 10;
}

nav ul {
    width: 900px;
    margin: 0 auto;
    padding: 0;
    /* border: 1px solid red; */
}

nav ul li {
    list-style: none;
    display: inline-block;
    padding: 0;
    margin-right: -4px;
    height: 35px;
    /*  */
}

nav ul li:hover {
    background: var(--nav-text);
}

/* menu item bg stay selected */

#home nav ul li a.home, #authors nav ul li a.authors, #books nav ul li a.books, #blog nav ul li a.blog, #about nav ul li a.about, #cat nav ul li a.cat {
    background: var(--nav-text);
    text-decoration: none;
    color: #fff !important;
}

nav ul li a {
    text-transform: uppercase;
    font-family: 'GillSansMT', sans-serif;
    font-weight: normal;
    font-size: 1.6rem;
    display: block;
    height: 35px;
    letter-spacing: 2px;
    padding: 4px 35px 0;
    margin: 0;
    color: #fff;
    /* border: 1px solid red; */
}

/* a {
    color: #212529 !important;
} */

nav ul li a:hover {
    text-decoration: none;
    color: #fff !important;
}

nav ul li.dropdown {
    position: relative;
}

nav ul ul {
    display: none;
    background: var(--bg-color);
    position: absolute;
    top: 33px;
    left: 0px;
    width: 300px;
}

nav ul ul.catlist li {
    padding-bottom: 5px;
    display: block;
    margin: 0;
}

nav ul ul li a {
    font-size: 1.2rem;
    display: block;
}

body#home nav a.home {
    color: var(--nav-text);
}

body#authors nav a.authors {
    color: var(--nav-text);
}

body#books nav a.books {
    color: var(--nav-text);
}

body#blog nav a.blog {
    color: var(--nav-text);
}

body#about nav a.about {
    color: var(--nav-text);
}

body#cat nav a.cat {
    color: var(--nav-text);
}

@media only screen and (max-width: 576px) {
    body {}
    nav {
        display: none;
    }
    .navmob {
        display: block;
        /* width: 80%; */
    }
    .navmob a {
        text-decoration: none;
        color: #232323;
        transition: color 0.3s ease;
    }
    #menuToggle {
        display: inline-block;
        position: relative;
        top: 10px;
        left: 50px;
        z-index: 100;
        -webkit-user-select: none;
        user-select: none;
    }
    #menuToggle input {
        display: block;
        width: 40px;
        height: 32px;
        position: absolute;
        top: -7px;
        left: -5px;
        cursor: pointer;
        opacity: 0;
        /* hide this */
        z-index: 2;
        /* and place it over the hamburger */
        -webkit-touch-callout: none;
    }
    /*
   * Just a quick hamburger
   */
    #menuToggle span {
        display: block;
        width: 33px;
        height: 4px;
        margin-bottom: 5px;
        position: relative;
        background: #000;
        border-radius: 3px;
        z-index: 1;
        transform-origin: 4px 0px;
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), opacity 0.55s ease;
    }
    #menuToggle span:first-child {
        transform-origin: 0% 0%;
    }
    #menuToggle span:nth-last-child(2) {
        transform-origin: 0% 100%;
    }
    /*
   * Transform all the slices of hamburger
   * into a crossmark.
   */
    #menuToggle input:checked~span {
        opacity: 1;
        transform: rotate(45deg) translate(-2px, -1px);
        background: #232323;
    }
    /*
   * But let's hide the middle one.
   */
    #menuToggle input:checked~span:nth-last-child(3) {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }
    /*
   * Ohyeah and the last one should go the other direction
   */
    #menuToggle input:checked~span:nth-last-child(2) {
        transform: rotate(-45deg) translate(0, -1px);
    }
    /*
   * Make this absolute positioned
   * at the top left of the screen
   */
    #menu {
        position: absolute;
        width: 130px;
        margin: 0px 0 0 -50px;
        padding: 10px;
        background: var(--nav-text);
        list-style-type: none;
        -webkit-font-smoothing: antialiased;
        /* to stop flickering of text in safari */
        transform-origin: 0% 0%;
        /* controls how far menu is away to the left when offscreen */
        transform: translate(-500%, 0);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    }
    #menu li {
        padding: 10px 0;
        color: #fff;
        text-transform: uppercase;
    }
}

#menu a li:hover {
    color: #ddd;
}

/* And let's slide it in from the left */

#menuToggle input:checked~ul {
    transform: none;
}

#menu .bookcats {
    display: none;
    list-style: none;
    position: absolute;
    left: 120px;
    top: 105px;
    width: 50vw;
    background: var(--nav-text);
    padding: 0 10px;
    font-size: 1.2rem !important;
}

#menu .bookcats li {
    padding: 5px;
}

#menu .bookcats li.cat-heading {
    font-size: 1.4rem;
    border-bottom: 1px solid #fff;
}

#menu .bookcats a li:hover {
    color: #ddd;
}

#menu li:hover>ul {
    display: block;
}

}