/*
Source: https://freefrontend.com/css-hamburger-menu-icons/
Author: Yacine
Code: https://codepen.io/fromwireframes/pen/arMrYp
*/
:root {
	--bar-bg: #212529;
}

.menu-icon {
	position: relative;
	width: 50px;
	height: 50px;
	cursor: pointer;
}
    
.menu-icon > * {
    display: block;
    margin: auto;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 22px;
    height: 12px;
    transform: scale(1.2);
}
.menu-icon > * > span {
    display: block;
    position: absolute;
    display: block;
    width: 100%;
    height: 2.1px;
    background-color: var(--bar-bg, #000);
    border-radius: 1px;
    transition: all 0.2s cubic-bezier(0.1, 0.82, 0.76, 0.965);
}
.menu-icon > * > span:first-child {
    top: 0;
}
.menu-icon > * > span:last-child {
    bottom: 0;
}
/*TODO*/
.menu-icon.active,
#input-toggle-menu:checked ~ * .menu-icon > * > span:first-child {
    transform: rotate(45deg);
    top: 5px;
}
.menu-icon.active,
#input-toggle-menu:checked ~ * .menu-icon > * > span:last-child {
    transform: rotate(-45deg);
    bottom: 5px;
}

#input-toggle-menu:checked ~ * .menu-icon:hover > * > span:first-child,
#input-toggle-menu:checked ~ * .menu-icon:hover > * > span:last-child{
    width: 22px !important;
}

.menu-icon:hover > * > span:first-child {
    width: 26px;
}

.menu-icon:hover > * > span:last-child {
    width: 12px;
}