.navbar {
    position: sticky;
    display: flex;
    font-family: 'Josefin Sans', sans-serif;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 2.3em;
    margin: auto;
    padding-top: 1em;
    color: #222;
}

.push-right {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    text-align: right;
}

.push-down {
    align-self: flex-end;
    flex-basis: 100%;
    margin-top: auto;
}

.logo {
    flex-grow: 2;
    transform: translatey(-40%);
}

.hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
    outline: none;
    position: relative;
    height: 60px;
    width: 60px;
    z-index: 200;
}

.hamburger-line {
    background: #222;
    height: 6px;
    position: absolute;
    left: 0;
    transition: all 0.2s ease-out;
    width: 100%;
}

.hamburger:hover .hamburger-line {
    background: #555;
}

.hamburger-line-top {
    top: 3px;
}

.menu-active .hamburger-line-top {
    top: 50%;
    transform: rotate(45deg) translatey(-50%);
}

.hamburger-line-middle {
    top: 50%;
    transform: translatey(-50%);
}

.menu-active .hamburger-line-middle {
    left: 50%;
    opacity: 0;
    width: 0;
}

.hamburger-line-bottom {
    bottom: 3px;
}

.menu-active .hamburger-line-bottom {
    bottom: 50%;
    transform: rotate(-45deg) translatey(50%);
}

/* nav menu */

.nav-menu {
    font-family: 'Londrina Solid', cursive;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: all 0.25s ease-in;
}

.nav-menu .menu-item a {
    color: #222;
    display: block;
    line-height: 30px;
    margin: 0px 10px;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-menu .menu-item a:hover {
    color: #555;
    text-decoration: underline;
}

.drop-down {
    z-index: 100;
}

.sub-nav {
    border: 1px solid #ccc;
    display: none;
    position: absolute;
    background-color: #E4D6FF;
    padding: 5px 5px;
    list-style: none;
    width: 230px;
    z-index: 2;
}

@media (pointer:none), (pointer:coarse), screen and (max-width: 900px) {
    .hamburger {
        display: inline-block;
   }
}

/* Make sure the thing doesnt move */
/* .nav-menu {
    transform: translatey(-100%);
} */

@media (pointer:none), (pointer:coarse), screen and (max-width: 900px) {
    .nav-menu {
        position: fixed;
        background: #e4d6ffde;
        flex-direction: column;
        justify-content: center;
        opacity: 0;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        transform: translatey(-100%);
        text-align: center;
        z-index: 100;
   }
    .menu-active .nav-menu {
        transform: translatey(0%);
        opacity: 1;
   }
}

@media (pointer:none), (pointer:coarse), screen and (max-width: 900px) {
    .nav-menu .menu-item a {
        font-size: 1.5em;
        margin: 8px;
    }
}

@media (pointer:none), (pointer:coarse), screen and (max-width: 900px) {
    .sub-nav {
        position: relative;
        width: 100%;
        display: none;
        background-color: rgba(0, 0, 0, 0.20);
        box-sizing: border-box;
    }
}

.nav-link:hover + .sub-nav {
    display: block;
}

.sub-nav:hover {
    display: block;
}

/* search bar */

.secondary-menu {
    display: flex;
    margin-top: 9px;
    flex-direction: row;
    justify-content: space-around;
    color: #222;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
    width: 100%;
}

.search-wrapper {
    flex-basis: 75%;
    height: 100%;
    position: relative;
    display: flex;
    min-width: 100px;
    /* margin-left: 8px; */
    z-index: 1;
}

/* Modified version of https://codepen.io/mihaeltomic/pen/vmwMdm */
#search-bar {
    width: 100%;
    padding: 12px 14px;
    background-color: transparent;
    transition: transform 250ms ease-in-out;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.5em;
    color: #222;
    background-color: transparent;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 27px 27px;
    background-position: 95% center;
    border-radius: 10px;
    border: 2px solid #222;
    transition: all 250ms ease-in-out;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.search__input::placeholder {
    color: rgba(87, 87, 86, 0.8);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

#search-bar:hover, #search-bar:focus {
    padding: 12px 0;
    outline: 0;
    border: 2px solid transparent;
    border-bottom: 2px solid #222;
    border-radius: 0;
    background-position: 100% center;
}


/* #search-bar:hover, #search-bar:focus {
    border: 1.5px solid #009688;
    background-color: white;
} */


#cart-wrapper {
    display: flex;
    flex-basis: 10%;
    justify-content: space-between;
    padding-bottom: 2px;
}

#cart-icon {
    padding-top: 2px;
}

#cart-number {
    padding-top: 9px;
    font-size: 1em;
    font-weight: 100;
}
