.container {
    position: absolute;
    width: 400px;
    height: 400px;
    background-color: #3faf82;
    border-radius: 10px;
    overflow: hidden;
    margin-top: -200px;
    margin-left: -200px;
    top: 50%;
    left: 50%;
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


#menu {
    width: 80px;
    height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.bar {
    box-shadow: 0px 0px 5px #555;
    width: 100%;
    height: 10px;
    background-color: #fff;
    border-radius: 4px;
    position: absolute;
}

.bar:nth-child(1) {
    animation: menu-close 1s forwards;
}

.bar:nth-child(2) {
    animation: menu-close2 1s forwards;
}

.bar:nth-child(3) {
    animation: menu-close3 1s forwards;
}

.open .bar:nth-child(1) {
    animation: menu-open 1s forwards
}

.open .bar:nth-child(2) {
    animation: menu-open2 1s forwards
}

.open .bar:nth-child(3) {
    animation: menu-open3 1s forwards
}

@keyframes menu-open {
    0% {
        transform: translateY(-25px);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: rotate(45deg)
    }
}

@keyframes menu-open2 {
    0% {
        transform: scale(100%);
    }

    100% {
        transform: scale(0%);
    }
}


@keyframes menu-open3 {
    0% {
        transform: translateY(25px);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: rotate(135deg)
    }
}

@keyframes menu-close {
    0% {
        transform: rotate(45deg);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-25px)
    }
}

@keyframes menu-close2 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(100%)
    }
}


@keyframes menu-close3 {
    0% {
        transform: rotate(135deg);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(25px)
    }
}