nav ul li.menu-item-has-children {
    position: relative;
}

.sub-menu {
    display: none;
}

.menu-item-has-children:after {
    top: 50%;
    margin-top: -5px;
    margin-right: 5px;
    right: -10px;
    content: "";
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid #250708;
}

.ffff-menu {
    position: absolute;
    background: #fae5dc;
    top: 25px;
    left: -13px;
    padding: 10px;
    width: 330px;
    text-align: left;
    z-index: 1;
    display: block;
}

.inner-page .ffff-menu {
    background: rgba(250, 229, 220, 0.8);
}
.ffff-menu ul li a {
    padding:0.6rem 0.5rem 0.2rem 0.5rem!important;
}

.sub-menu ul li {
    position: relative;
  }



@media screen and (max-width: 1300px) {
    #hamburger {
        width: 35px;
        height: 35px;
        background: #fff;
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 10px;
        margin: 2rem 10% 0 auto;
    }

    .space-between {
        flex-wrap: wrap;
    }

    #main-menu {
        background: none;
        width: 100%;
        transition: all 0.3s ease-in-out;
    }

    #main-menu ul {
        display: none;
        margin: 0 auto 0 auto;
    }

    #main-menu ul li {
        display: block;
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
        background: rgba(250, 229, 220, 0.6);
        z-index: 2;
    }

    #hamburger span {
        display: block;
        background: #250708;
        height: 2px;
    }

    #main-menu ul li a {
        border-bottom: 1px solid #dcc29c;
        margin: 0 auto;
        padding: 0.5rem 0;
    }

    #main-menu ul li:last-of-type,
    nav ul li:nth-of-type(4) {
        display: inline-block !important;
        width: auto !important;
        margin: 0 auto 1rem 0;
        padding: 3px 12px 2px 12px;
    }

    .hambi-open span {
        display: none !important;
    }

    .hambi-open span:first-of-type {
        display: block !important;
    }

    .hambi-open {
        justify-content: center !important;
    }

    #main-menu {
        background: none;
        text-align: left;
        width: 100%;
        transition: all 0.3s ease-in-out;
    }

    nav ul,
    nav ul li {
        float: none !important;
    }

    
    .open-sub {
        top: 50%;
        margin-top: -3px;
        margin-right: 5px;
        left: 16.5rem;
        content: "";
        display: block;
        width: 0;
        height: 0;
        position: absolute;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 9px solid #111;
    }

    .sub-open {
        top: 15%;
        left: 9.5rem;
        display: block;
    }

    #main-menu li {
        display: block;
        width: 100%;

    }

    #main-menu li a {

        padding: 0.5rem 0;
    }

    .menu-item-has-children:after {
        display: none;
    }
    .ffff-menu {
    position: absolute;
    background: rgba(250, 229, 220, 0.4);
    top: 120px;
    left: 0;
    padding: 10px;
    width: 100%;
    text-align: left;
    z-index: 0;
    display: block;
}
#szomatologo {
    width: 130px;
    height: 40px;
    margin: 0.2rem 0rem 0 1rem;
    display: inline-block;
     float: right;
}
}

@media screen and (max-width: 768px) {
    #hamburger {
        width: 35px;
        height: 35px;
        background: #fff;
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 10px;
        margin:1.5rem -28% 0 auto;
    }
    #main-menu ul {        
        margin: 0 -45% 0 auto;
    }
    #main-menu ul li {
        position: relative;
        margin-bottom: 0!important;
    }
        #main-menu ul li:last-of-type,
    nav ul li:nth-of-type(4) {
        display: block !important;
        width: auto !important;
        margin: 0 auto 1rem 0;
        padding: 3px 12px 2px 12px;
    }
}
