#main-menu ul{
    display: flex;
    justify-content: center;
    text-decoration: none;
    list-style: none;
    align-items: center;
    
}

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

#main-menu ul li.button {
 margin-bottom: 0; 
 padding: 0.5rem 1rem;
 background-color: var(--turqoise);
 transition: all 0.2s ease-in-out;
}
#main-menu ul li.button a, #main-menu ul li.current-menu-item.button a {
    color: #fff;
}
#main-menu ul li.button:hover {
    background-color: hsl(0, 0%, 0%, 0);
    outline: 2px solid transparent;
    transform: translateX(10px);
    color: var(--title-color);
}
#main-menu ul li.button:hover a, #main-menu ul li.current-menu-item.button:hover a {
    color: var(--title-color);
}

#main-menu ul li a {
    padding: 0.75rem 0;
    font-weight: bold;
    font-size: smaller;
    color: #434F49;
    position: relative;
    
}
#main-menu ul li a:hover:before {
    background: var(--turqoise);
}
#main-menu ul li a:before {
    content: "";
    display: block;
   background: transparent;
    width: 100%;
    height: 2px;
    position: absolute;
    bottom: 5px;
    transition: background 0.3s ease-in-out;
}



#main-menu ul li a:hover, #main-menu ul li.current-menu-item a {
    color: var(--turqoise);
}

#hamburger {
    display: none;
}

.sub-menu {
    display: none!important;
 }

 @media only screen and (max-width: 1281px) {
    #hamburger {
        display: flex;
        flex-direction: column;
       justify-content: space-between;
        width: 2rem;
        height: 2rem;
        background: var(--neon-green);
        border-radius: 50%;
        padding: 0.5rem;
        transition: all 0.3s ease-in-out;

    }

    #hamburger.nyitva {
        background: var(--title-color);
        justify-content: center;

    }

    #hamburger span {
        display: block;
        max-width: 100%;
        height: 4px;
        background: var(--title-color);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }
    #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(135deg);
       margin-top: -2px;
        
    }
    #main-menu {
        max-height: 0;
        opacity: 0;
        border-top: solid 1px rgba(154, 154, 154, 0.4);
       
        transition: all 0.8s ease-in-out;
    }

    #main-menu.nyitva {
        max-height: 100%;
        opacity: 100%;
        margin-top: 0.75rem;
    }
    #main-menu ul {
        display: block;
        margin: 0;
        padding: 0;
    }
    #main-menu ul li{
        margin: 0;
        padding: 0;
    }
    #main-menu ul li a {
        padding: 0.25rem 0;
        display: block;
    }
 }