.toggle,
[id^=drop] {
    display: none;
}

/* Giving a background-color to the #navmenu container. */
#navmenu {
    margin: 0;
    padding: 0;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    background-color: #ffffff;
}

/* Since we'll have the "ul li" "float:left"
 * we need to add a clear after the container. */

#navmenu:after {
    content: "";
    display: table;
    clear: both;
}

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
#navmenu ul {
    float: right;
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
}

/* Positioning the #navmenuigation items inline */
#navmenu ul li {
    margin: 0;
    display: inline-block;
}

/* Styling the links */
#navmenu a {
    display: block;
    padding: 3px 30px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    border-left: 1px solid #CCC;
    margin: 0px;
    background-color: #ffffff;
}


#navmenu ul li ul li:hover {
    background-color: #54a1b3;
}

/* Background color change on Hover */
#navmenu a:hover {
    color: #ffffff;
    background-color: #54a1b3;
}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
#navmenu ul ul {
    display: none;
    position: absolute;
    /* has to be the same number as the "line-height" of "#navmenu a" */
    /* top: 0; */
}

/* Display Dropdowns on Hover */
#navmenu ul li:hover>ul {
    display: inherit;
    z-index: 100;
}

/* Fisrt Tier Dropdown */
#navmenu ul ul li {
    width: 200px;
    float: none;
    display: list-item;
    position: relative;
}

/* Second, Third and more Tiers	
 * We move the 2nd and 3rd etc tier dropdowns to the left
 * by the amount of the width of the first tier.
*/
#navmenu ul ul ul li {
    position: relative;
    top: -20px;
    /* has to be the same number as the "width" of "#navmenu ul ul li" */
    left: 200px;
}


/* Change ' +' in order to change the Dropdown symbol */
li>a:after {
    content: ' ';
}

li>a:only-child:after {
    content: '';
}


/* Media Queries
--------------------------------------------- */

@media all and (max-width : 300px) {

    #logo {
        display: block;
        padding: 0;
        width: 100%;
        text-align: center;
        float: none;
    }

    #navmenu {
        margin: 0;
    }

    /* Hide the #navmenuigation menu by default */
    /* Also hide the  */
    .toggle+a,
    .menu {
        display: none;
    }

    /* Stylinf the toggle lable */
    .toggle {
        display: block;
        background-color: #54a1b3;
        padding: 0 20px;
        font-size: 17px;
        text-decoration: none;
        border: none;
        color: white
    }

    .toggle:hover {
        background-color: #54a1b3;
    }

    /* Display Dropdown when clicked on Parent Lable */
    [id^=drop]:checked+ul {
        display: block;
    }

    /* Change menu item's width to 100% */
    #navmenu ul li {
        display: block;
        width: 100%;
    }

    #navmenu ul ul .toggle,
    #navmenu ul ul a {
        padding: 0;
    }

    #navmenu ul ul ul a {
        padding: 0;
    }

    #navmenu a:hover,
    #navmenu ul ul ul a {
        color: #ffffff;
        background-color: #54a1b3;
    }

    #navmenu ul li ul li .toggle,
    #navmenu ul ul a,
    #navmenu ul ul ul a {
        padding: 0;
        font-size: 17px;
    }


    #navmenu ul li ul li .toggle,
    #navmenu ul ul a {
        background-color: #212121;
    }

    /* Hide Dropdowns by Default */
    #navmenu ul ul {
        float: none;
        position: static;
        /* has to be the same number as the "line-height" of "#navmenu a" */
    }

    /* Hide menus on hover */
    #navmenu ul ul li:hover>ul,
    #navmenu ul li:hover>ul {
        display: none;
    }

    /* Fisrt Tier Dropdown */
    #navmenu ul ul li {
        display: block;
        width: 100%;
    }

    #navmenu ul ul ul li {
        position: static;
        /* has to be the same number as the "width" of "#navmenu ul ul li" */

    }

}

@media all and (max-width : 330px) {

    #navmenu ul li {
        display: block;
        width: 94%;
    }

}