nav ul {
    display: block;
    text-align: center;
}

nav li {
    display: inline-block;
}

nav li a {
    color: inherit;
    padding: 15px 15px;
    display: block;
    font-family: "Sanchez", serif;
}

#main-menu {
    background: url('../img/brush-yellow.gif');
    background-size: 100% 100%;
    transition: all 0.3s ease-in-out;
}

#top-menu {
    background-color: #fff;
    background-image: url('../img/border-horizontal.png');
    background-size: auto 3px;
    background-position: bottom center;
    background-repeat: repeat-x;
}

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

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

/* Media q. */

@media only screen and (max-width: 550px) {
    #top-menu ul, #top-menu li, #foot-menu ul, #foot-menu li {
        display: block;
        width: 100%;
    }

    #top-menu nav li a, #foot-menu li a {
        padding: 5px 15px
    }
}

@media only screen and (min-width: 769px) {
    #main-menu ul li {
        position: relative;
    }
    
    #main-menu ul li ul {
        position: absolute;
        display: block;
        z-index: 2;
        text-align: left;
        overflow: hidden;
        opacity: 0;
        top: 30px;
        transition: all 0.3s ease-in-out;
    }
    
    #main-menu ul li:hover ul {
        opacity: 1;
        top: 40px
    }
    
    #main-menu ul li ul:after {
        content: "";
        display: block;
        width: 100%;
        height: 50px;
        background: url('../img/paint-drop.gif') bottom left no-repeat;
        background-size: auto 140%;
    }
    
    #main-menu ul li ul li {
        background: #ffd20f;
        display: block
    }
    
    #main-menu ul li ul li a {
        white-space: nowrap;
        padding: 10px 15px
    }

    #main-menu ul {
        display: block!important
    }
}

@media only screen and (max-width: 768px) {
    #hamburger {
        display: block;
        width: 100%;
        height: 40px;
        background: url('../img/brush-yellow.gif');
        background-size: 100% 100%;
        position: relative;
        text-align: center;
        cursor: pointer;
        line-height: 40px;
    }

    #hamburger:before {
        content: "Menü";
        display: inline-block;
        vertical-align: middle;
        text-transform: uppercase;
        font-weight: bold;
    }

    #hamburger:after {
        content: "";
        width: 18px;
        height: 16px;
        display: inline-block;
        vertical-align: middle;
        margin-left: 10px;
        border-top: double 6px #000;
        border-bottom: double 6px #000;
        transition: all 0.3s ease-in-out;
    }

    .hambi-open {
        background-size: 100% 150%!important;
    }

    .hambi-open:after {
        height: 0!important;
        border-top: solid 2px #000!important;
        border-bottom: solid 2px #000!important;
    }

    .menu-item-has-children:after {
        content: none
    }

    .open-sub {
        display: block;
        position: absolute;
        width: 30px;
        height: 30px;
        top: 0;
        right: 0;
        cursor: pointer;
        z-index: 5;
    }

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

    .sub-open:before {
        border-left: none!important;
        border-right: none!important;
        border-top: 2px solid #000!important;
        width: 15px;
        right: 15px
    }

    #main-menu {
        background: none;
    }

    #main-menu ul, #main-menu li {
        display: block;
        width: 100%;
        background: #ffd20f;
    }

    #main-menu li a {
        background: #ffd20f;
        padding: 5px 15px
    }

    #main-menu ul {
        display: none
    }

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