#afui #navbar {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-top: 1px solid #57545b;
    box-shadow: 0px -1px 0px #191a17;
    height: 38px;
    background-color: #000000;
    background-image: -webkit-linear-gradient(#33342f, #000000);
    background-image: -moz-linear-gradient(#33342f, #000000);
    background-image: -ms-linear-gradient(#33342f, #000000);
    background-image: -o-linear-gradient(#33342f, #000000);
    background-image: linear-gradient(#33342f, #000000);
}
    #afui #navbar > * > *, #afui #navbar > a, #afui #navbar > span {
        position: relative;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        display: inline-block;
        float: left;
        border-right:1px solid rgba(255, 255, 255, 0.10);
        width: 20%;
        height: 100%;
        -webkit-backface-visibility: hidden;
        -webkit-perspective: 1000;
        font-size: 12px;
        line-height:38px;
        background-image:none;

        font-weight: normal;
        color: #fff;
        text-align:center;
    }   
    #afui #navbar span > span {
        display: none;
        position: absolute;
        bottom: 50px;
        left: -25%;
        right: 0px;
        z-index: 1001;
        border-radius: 5px;
        width: 150%;
        background: #2a2a28;
        text-indent:0px;
        line-height: 3em;
    }
    #afui #navbar span:first-child > span {
        left: -3%;
    }

    #afui #navbar span:last-child > span {
        left: -53%;
    }
    #afui #navbar span > span::after {
        content: "";
        display: block;
        position: absolute;
        left: 35%;
        bottom: -5px;
        z-index: -1;
        width: 20px;
        height: 20px;
        background-color: inherit;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    #afui #navbar .on > span {
        display: block;
    }

@keyframes myfirst {
    from {
        -webkit-transform: translate3d(0, 200px, 0);
    }

    to {
        -webkit-transform: translate3d(0, 0px, 0);
    }
}

@-moz-keyframes myfirst /* Firefox */
{
    from {
        -webkit-transform: translate3d(0, 200px, 0);
    }

    to {
        -webkit-transform: translate3d(0, 0px, 0);
    }
}

@-ms-keyframes myfirst /* Safari บอ Chrome */
{
    from {
        -webkit-transform: translate3d(0, 200px, 0);
    }

    to {
        -webkit-transform: translate3d(0, 0px, 0);
    }
}

@-webkit-keyframes myfirst /* Safari บอ Chrome */
{
    from {
        -webkit-transform: translate3d(0, 200px, 0);
    }

    to {
        -webkit-transform: translate3d(0, 0px, 0);
    }
}

#afui #navbar .on > * {
    animation: myfirst 0.5s ease-out;
    -moz-animation: myfirst 0.5s ease-out;
    -ms-animation: myfirst 0.5s ease-out;
    -webkit-animation: myfirst 0.5s ease-out;
}

#afui #navbar span a {
    display: block;
    width: 100%;
    color: #ffffff;
    white-space:nowrap;
}

    #afui #navbar span a:not(:first-child) {
        border-top: 1px solid #2e2e2c;
    }

#afui #navbar .pressed {
    background-color: #808080;
}
