/*
Mobil menü elemei
Hamburger menü, és kattintásra megjelenő menü panel.
*/

.mobile-menu-toggle {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 0 none transparent;
    z-index: 10001;
}

.lg .mobile-menu-toggle {
    display: none;
}


.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--color-text-primary);
    transition: all .2s;
}

.mobile-menu-toggle span:nth-of-type(1) {
    margin-top: 2px;
}

.mobile-menu-toggle span:nth-of-type(2) {
    margin-top: 3px;
}

.mobile-menu-toggle span:nth-of-type(3) {
    margin-top: 3px;
}


.mobile-menu-toggle[aria-expanded="true"] span {
    background-color: white;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-of-type(1) {
    transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
    width: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
    margin-top: -7px;
    transform: rotate(-45deg);
}



.mobile-menu-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    transition: all .2s;
    color: white;
    background-color: var(--color-primary-900);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    outline: 0 none transparent;
    z-index: 10000;
}


.mobile-menu-nav:not(.is-visible) {
    transform: translateX(100vh);
}


.mobile-menu-nav.is-visible {
    transform: translateX(0vh);
}


.has-mobile-menu {
    overflow: hidden;
}