/* Icon for menu */

:root
{
    --transitionDelay: 0.3s;
}

.icon
{
    display: none;
}

@media (max-width: 400px) {
    .icon{
        margin: auto;
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: space-around;
        flex-direction: column;
    }
}

.icon:hover
{
    cursor: pointer;
}

.icon *
{
    position: relative;
    background-color: black;
    height: 6px;
    border-radius: 5px;
    width: 50px;
    transition: margin var(--transitionDelay), transform var(--transitionDelay), background-color var(--transitionDelay), height var(--transitionDelay), width var(--transitionDelay);
}

.icon.on .mid
{
    height: 0;
    background-color: transparent;
    transform: translate(-100%);
    width: 100px;
}

.icon.on .top
{
    transform: rotate(45deg) translate(11px,11px);
}

.icon.on .bottom
{
    transform: rotate(-45deg) translate(11px,-11px);
}
/*********************************/