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

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

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

#main-menu ul li a:before {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: transparent;
    position: absolute;
    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 a:hover,
#main-menu ul li.current-menu-item a {
    color: var(--teal);
}

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

#hamburger {
    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; 
    }
    
    #hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 2rem;
        height: 2rem;    
        background: var(--lime);
        border-radius: 50%;
        padding: 0.4rem;
        transition: all 0.3s ease-in-out;
    }
    
    #hamburger.nyitva  {
        background: var(--title);
    }
        
    #hamburger span {
        display: block;
        width: 100%;
        height: 4px;    
        background: var(--title);
        border-radius: 2px;
    }    
    
    #hamburger.nyitva  {
        background: var(--title);
        justify-content: center;
    }
        
    #hamburger.nyitva span {
        background: #fff;
        transition: all 0.3s ease-in-out;
    }       
    
    #hamburger.nyitva span:nth-of-type(2) {
        display: none;
    }   
    
    #hamburger.nyitva span:nth-of-type(1) {
        transform: rotate(45deg);
        margin-bottom: -2px;
    }   
    
    #hamburger.nyitva span:nth-of-type(3) {
        transform: rotate(-45deg);
        margin-top: -2px;
    }   
    
    #main-menu {
        max-height: 0;
        opacity: 0;
        transition: all 0.8s ease-in-out;
        border-top: solid 1px #ddd;
    }
    
    #main-menu.nyitva {
        max-height: 1000px;
        margin-top: 0.75rem;
        opacity: 1;
    }

    .wide {
        width: 100vw;
        left: 50%;
    }
}