/*
==========
Elastic Hamburger-Menu
==========
*/

.hamburger-menu {
    display: none;
}

.hamburger-menu-container {
    /* background-color: grey; */
    position: relative;
    height: 50px;
    width: 50px;
    cursor: pointer;
    z-index: 100;
}

.stroke {
    width: 37px;
    height: 4px;
    background-color: #e6332a;
    position: absolute;
    /* border-radius: 1000px; */
    border-radius: 0px;
    border: none;

    transition: background-color ease-in-out 800ms;
}

.stroke-active {
    background-color: #e6332a;

    transition: background-color ease-in-out 800ms;
}

.stroke1 {
    left: 50%;
    transform: translateX(-50%);
    transform-origin: right;
    top: 28%;
}

.stroke2 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.stroke3 {
    left: 50%;
    transform: translateX(-50%);
    bottom: 28%;
}

@keyframes movement-stroke2 {
    0% {
        left: 50%;
    }

    25% {
        left: 39%;
    }

    50% {
        left: 50%;
        opacity: 1;
    }

    75% {
        left: 60%;
    }

    100% {
        left: 60%;
        opacity: 0;
    }
}

@keyframes movement-stroke2-close {
    0% {
        left: 60%;
        opacity: 0;
    }

    25% {
        left: 60%;
    }

    50% {
        left: 50%;
        opacity: 0;
    }

    75% {
        left: 39%;
    }

    100% {
        left: 50%;
        opacity: 0;
    }

    ;
}

div.stroke2-animation {
    animation-name: movement-stroke2;
    animation-duration: 550ms;
    animation-timing-function: cubic-bezier(.10, .60, .45, .93);
    animation-fill-mode: forwards;
}

div.stroke2-animation-close {
    animation-name: movement-stroke2-close;
    animation-duration: 550ms;
    animation-timing-function: cubic-bezier(.10, .60, .45, .93);
    animation-fill-mode: backwards;
}

@keyframes movement-stroke1 {
    0% {
        left: 50%;
    }

    20% {
        left: 42%;
        transform: translateX(-50%) rotate(3deg);
        top: 28%;
    }

    100% {
        left: 50%;
        transform-origin: center;
        transform: translate(-50%) rotate(-225deg);
        top: 48%;
    }
}

@keyframes movement-stroke1-close {
    0% {
        left: 50%;
        transform-origin: center;
        transform: translate(-50%) rotate(-225deg);
        top: 48%;
    }

    20% {
        left: 50%;
        transform-origin: center;
        transform: translate(-50%) rotate(-235deg);
        top: 48%;
    }

    80% {
        left: 50%;
        transform: translateX(-50%) rotate(2deg);
        top: 28%;
    }

    100% {
        left: 50%;
        transform: translateX(-50%) rotate(0deg);
        top: 28%;
    }

        {
        left: 50%;
    }
}

div.stroke1-animation {
    animation-name: movement-stroke1;
    animation-duration: 800ms;
    animation-timing-function: cubic-bezier(.58, .28, .27, .89);
    animation-delay: 80ms;
    animation-fill-mode: forwards;
}

div.stroke1-animation-close {
    animation-name: movement-stroke1-close;
    animation-duration: 800ms;
    animation-timing-function: cubic-bezier(.63, .10, .25, .88);
    animation-delay: 80ms;
    animation-fill-mode: backwards;
}

@keyframes movement-stroke3 {
    0% {
        left: 50%;
    }

    20% {
        left: 42%;
        transform: translateX(-50%) rotate(-3deg);
        bottom: 29%;
    }

    100% {
        left: 50%;
        transform-origin: center;
        transform: translate(-50%) rotate(225deg);
        bottom: 44.5%;
    }
}

@keyframes movement-stroke3-close {
    0% {
        left: 50%;
        transform-origin: center;
        transform: translate(-50%) rotate(225deg);
        bottom: 44.5%;
    }

    20% {
        left: 50%;
        transform-origin: center;
        transform: translate(-50%) rotate(235deg);
        top: 48%;
    }

    80% {
        left: 50%;
        transform: translateX(-50%) rotate(-2deg);
        bottom: 29%;
    }

    100% {
        left: 50%;
        transform: translateX(-50%) rotate(0deg);
        bottom: 29%;
    }
}

div.stroke3-animation {
    animation-name: movement-stroke3;
    animation-duration: 800ms;
    animation-timing-function: cubic-bezier(.58, .28, .27, .89);
    animation-delay: 80ms;
    animation-fill-mode: forwards;
}

div.stroke3-animation-close {
    animation-name: movement-stroke3-close;
    animation-duration: 800ms;
    animation-timing-function: cubic-bezier(.63, .10, .25, .88);
    animation-delay: 80ms;
    animation-fill-mode: backwards;
}





@media (max-width: 991px) {

    .hamburger-menu {
        width: 50px;
        height: 50px;
        display: block;
    }

    /* ===== Menu ===== */

    .main-hamburger-menu {
        width: 100vw;
        min-width: 300px;
        min-height: 100vh;
        background-color: #fff;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 8;
        transform: translateX(100%);
        opacity: 0;

        transition: all ease 800ms;
        transition-delay: 400ms;
    }

    .main-hamburger-menu > div {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0%;
        left: 0%;
        overflow-y: auto;
    }

}
