:root {
    --carebots-nav: #d8e5f8;
}

nav {
    grid-column: 1 / 2;
    max-width: 100%;
    position: sticky;
    top: 0;
    background: var(--carebots-nav);
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
}

@media (min-width: 769px) {
    #menu-toggle {
        display: none;
    }

    nav {
        z-index: 999;
    }

    nav ul {
        display: flex;
        flex-direction: column;
    }

}

#nav-icon {
    width: 4rem;
    margin: 2rem;
}

a.menu-item {
    margin-bottom: 5px;
}

.menu-item,
.menu-item-special {
    color: var(--cb-black);
    font-family: "Roboto Slab";
    flex-wrap: wrap;
    display: flex;
    align-items: center;
}

.menu-item-special {
    background: hsl(0, 50%, 100%);
    border-radius: 1rem;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    overflow-wrap: break-word;
}

nav li img {
    margin-right: 10px;
    height: var(--fs-h4);
}

nav li a {
    padding: 1rem;
    width: 100%;
}

nav li form * {
    padding: 0.5rem 0;
}

nav li form {
    margin: 0.5rem;
    text-align: center;
}

a.menu-item:hover,
a.menu-item-special:hover {
    background: hsl(0, 30%, 100%);
    cursor: pointer;
    border-radius: 1rem;
}

.menu-item:focus, nav a:focus {
    border-radius: 1rem;
}

#menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    margin: 1rem;
    cursor: pointer;
}

/* MD: landscape phones, greater then 575.99 and less than 767.98px */
/* LG: tablets, greater then 767.99 and less than 991.98px */
@media screen and (max-width: 991.98px) {
    nav {
        height: auto;
        width: 100%;
        /* display: flex; */
    }

    nav ul {
        display: none;
        flex-direction: column;
    }

    nav ul.show {
        display: flex;
        align-self: stretch;
    }

    #menu-toggle {
        display: block;
    }

    #menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    #menu.show {
        display: flex;
    }

    #nav-icon {
        display: none;
    }
}

/* SM: portrait phones, less than 576.98px */
@media screen and (max-width: 575.98px) {
    nav {
        height: auto;
        width: 100%;

    }

    nav ul {
        display: none;
        flex-direction: column;
    }

    nav ul.show {
        display: flex;
        height: 100vh;
    }

    #menu-toggle {
        display: block;
    }

    #menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    #menu.show {
        display: flex;
    }

    #nav-icon {
        display: none;
    }
}
  