/* Menu toggler */
.menu-toggler {
    width: 60px;
    height: 60px;
    border: none;
    background-color: transparent;
    outline: none;
    -webkit-appearance: none;
}
.menu-toggler span {
    margin: 2px auto 0;
    height: 2px;
    width: 18px;
    text-indent: -1234em;
    background-color: #b6b3ab;
    display: block;
    transition: transform .2s, opacity .2s;
}
.menu-toggler span:first-child {
    margin-top: 0;
}
.menu-toggler:hover span,
.menu-open .menu-toggler span {
    background-color: #98958e;
}
.menu-open .menu-toggler span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}
.menu-open .menu-toggler span:first-child + span {
    opacity: 0;
}
.menu-open .menu-toggler span:first-child + span + span {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Menu */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    margin-left: -1234em;
    width: 100%;
    height: 100%;
    z-index: 1000;
    transition: margin 0s .3s;
}
.menu-open .menu {
    margin-left: 0;
    transition-delay: 0s;
}
.menu:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: '';
    background-color: #000;
    display: block;
    opacity: .7;
    transition: opacity .3s;
    opacity: 0;
    z-index: 1;
}
.menu-open .menu:before {
    opacity: .8;
}
.menu .menu-container {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    margin-left: -100%;
    width: 75%;
    height: 100%;
    background-color: #fff;
    transition: margin .3s ease-in-out;
    z-index: 2;
    overflow: hidden;
    overflow-y: auto;
}
.menu-open .menu .menu-container {
    margin-left: 0;
}
.menu ul {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 2;
}
.menu li {
    position: relative;
    margin: 0;
    padding: 0;
}
.menu li:last-child {
    border-bottom: none;
}
.menu a {
    position: relative;
    padding: 5px 24px 5px 34px;
    color: #69665e;
    text-decoration: none;
    display: block;
}
.menu li.active > a,
.menu a:hover {
    color: #1ab23a;
}
.menu a > i {
    position: absolute;
    left: 10px;
    color: #b6b3ab;
    display: inline-block;
}
.menu li.active > a > i,
.menu a:hover > i {
    color: #1ab23a;
}
.menu a button {
    position: absolute;
    top: 2px;
    right: 0;
    padding: 0;
    width: 30px;
    height: 30px;
    font-size: 16px;
    color: #b6b3ab;
    border: none;
    background-color: transparent;
    display: inline-block;
    transition: transform .2s ease-in-out;
}
.menu a:hover button,
.menu li.active > a > button {
    color: #1ab23a;
}
.menu li.open > a button {
    transform: rotate(180deg);
}
.menu ul ul {
    margin: 0 0 20px;
    padding: 5px 0 0;
    border-top: 1px solid #e5e2d9;
    display: none;
}
.menu li.open > ul {
    display: block;
}
.menu ul ul ul {
    margin: 0 0 20px;
    padding: 0;
    border-top: none;
}
.menu ul ul ul a {
    padding: 3px 0 3px 55px;
    color: #8e8b84;
}
.menu .menu-toggler {
    margin: 10px;
    height: 40px;
    width: 40px;
    border: 1px solid #e5e2d9;
}
.menu a.cursor-pointer {
    cursor: pointer;
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {

    /* Menu */
    .menu .menu-container {
        width: 50%;
    }

}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {

    /* Menu */
    .menu {
        position: relative;
        margin: 0;
        height: auto;
    }
    .menu:before {
        display: none;
    }
    .menu .menu-container {
        position: relative;
        margin: 0;
        padding: 0;
        width: 100%;
        background-color: transparent;
        overflow: visible;
    }

}
