/* logo szerkezeti formazas a menuben - szinek style.css-ben */

#logo a {
    max-width: 12rem;
}

#logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* logoban a hivatkozások közvetlen gyermekre vonatkoztatva - abból is az elsö */
#logo a > span:first-of-type {
    width: 3rem;
    height: auto;
    flex-shrink: 0;
    margin-right: 7px;
}

/* logoban a második span elem második smapnjára hiv */
#logo a > span:nth-of-type(2) > span:nth-of-type(2) {
    font-size: 0.8rem;
}

/* logoban az összes span - igazításhoz */
#logo a span {
    display: block;
}


/* menu formázás */

#main-menu ul {
    display: flex;
    list-style-type: none;
    margin: 0;
}

#main-menu ul li {
    margin-left: 2rem;
}

#main-menu ul li a {
    color: inherit;
    padding: 0.75rem 0;
    font-weight: 400;
    position: relative;
}

/*menu elem alahuzasa animalva */

#main-menu ul li a:before {
    content: "";
    display: block;
    position: absolute;
    width: 0;
    height: 2px;
    background: transparent;
    bottom: 5px;
    transition: all 0.3s ease-in-out;
}

#main-menu ul li a:hover:before {
    background: var(--teal);
    width: 100%;
}

#main-menu ul li.current-menu-item a {
    position: relative;
    color: var(--text);
}

#main-menu ul li.current-menu-item a:before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--coral);
    bottom: 5px;
}


#main-menu ul li ul {
    display: none;
}

@media only screen and (max-width: 1281px) {

    #main-menu ul {
        display: block;
        margin: 0;
        padding: 0;
    }

    #main-menu ul li {
        margin: 0;
        padding: 0;
        border-top: solid 1px #ddd;
    }

    #main-menu ul li a {
        padding: 0.25rem 0;
        display: block;
    }

    #main-menu {
        max-height: 0;
        opacity: 0;
        border-top: solid 1px #ddd;
        transition: all 0.8s ease-in-out;
    }

    #main-menu.nyitva {
        max-height: 1000px;
        opacity: 1;
        margin-top: 0.75rem;
    }

    #hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 2rem;
        height: 2rem;
        
        padding: 0.5rem;
        transition: all 0.3s ease-in-out;
    }

    #hamburger.nyitva {
        background: var(--text);
        justify-content: center;
    }


    #hamburger span {
        display: block;
        width: 100%;
        height: 4px;
        background: var(--text);
        border-radius: 2px;
    }


    #hamburger.nyitva span {
        background: #fff;
        transition: all 0.3s ease-in-out;
    }

    #hamburger.nyitva span:nth-last-of-type(2) {
        display: none;
    }

    #hamburger.nyitva span:nth-last-of-type(1) {
        transform: rotate(45deg);
        margin-top: -2px;
    }

    #hamburger.nyitva span:nth-last-of-type(3) {
        transform: rotate(-45deg);
        margin-bottom: -2px;
    }

}
