
/*Reset CSS as different browsers use different default margins */
* {
    margin: 0;
    padding: 0;
}

body{
    background: #efefef;
    font-size: 16px;
    color: #777;
    font-family: sans-serif;
}

/* Set hyperlink to no decoration and underline link */
a { text-decoration: none; }

.container {
    max-width: 1200px;
    margin: 0 auto; /* <DIV> margin format is (Top Right Bottom Left) */
    width: 100%;
}

/* Setting up out most box for menu bar */
/* Define menu bar background color     */
.nav-bar {
    display: block;
    margin-bottom: 15px 0;
    background: #03a9f4;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.nav-bar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: block;
}

/* Setting up inner box for menu bar */
.nav-bar li {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: inline-block; /* Does not add a line-break after the element, so the element can sit next to other elements.*/
    position: relative;
    font-size: 16px;
    color: #def1f0;
}

/* Setting up outlook for menu bar on every item. */
.nav-bar li a {
    padding: 15px 20px;
    font-size: 16px;
    color: #def1f0;
    display: inline-block;
    outline: 0;
    font-weight: 400;
}

.nav-bar li:hover ul.dropdown { display: block; }

.nav-bar li ul.dropdown {
    position: absolute;
    display: none;
    width: 200px;
    background: #2980B9;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.3);
    padding-top: 0;
}

.nav-bar li ul.dropdown li {
    display: block;
    list-style-type: none;
}

.nav-bar li ul.dropdown li a {
    padding: 15px 20px;
    font-size: 16px;
    color: #fff;
    display: block;
    font-weight: 400;
}

.nav-bar li ul.dropdown li:last-child a { 
    border-bottom: none;

}

/* Change the color or the parent note menu to darker blue */
.nav-bar li:hover a {
    background: #2980B9;
    color: #fff !important;
}

.nav-bar li:first-child:hover a { border-radius: 3px 0 0 3px; }

.nav-bar li ul.dropdown li:hover a { background: rgba(0, 0, 0, 0.1); } /* Changing background color of submenu when mouse hover */

.nav-bar li ul.dropdown li:first-child:hover a { border-radius: 0; }

.nav-bar li:hover .arrow-down { border-top: 5px solid #fff; }

/* Setting up Arrow Icon outlook in the Menu. */
.arrow-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #def1f0;
    position: relative;
    top: 15px;
    right: -5px;
    content: '';
}

/* Use @media queries to check the screen types or devices. */
/* Also when screen resize below 900px the following rules will apply. */
@media only screen and (max-width:900px) {

    .nav-bar {
        background: #fff;
        width: 200px;
        height: 100%;
        display: block;
        position: fixed;
        left: -200px
    }

    .nav-bar.visible {
        left: 0px;
        transition: left 0.3s ease;
    }
    /*==========================*/
    /* DEBUG #03a9f4 COLOR HERE */
    /*==========================*/
    .nav-mobile {
        display: inline-block;
        vertical-align: middle;
        width: 100%;
        height: 50px;
        margin: 0;
        position: absolute;
        top: 0px;
        left: 0px;
        background: #03A9F4;   /*ORIGINAL CODE WAS = padding: 120px 0 0 10px; */
        padding: 8px 0 0 10px; /* BUG FOUND here different from original source.  padding properties as Top Right Bottom Left */
        box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.3);
    }



    /* Setting up Menu Icon when screen fall 900px or using Mobile Device */
    .menu-icon {
        cursor: pointer;
    }

    .menu-icon span {
        height: 2px;
        background: #fff;
        margin: 5px;
        display: block;
        width: 20px;
    }

    /* Setting up MOBILE VIEW for drop down menu padding size */
    /* ORIGINAL CODE WAS padding-top: 50px;                   */
    .nav-bar ul {
        padding-top: 60px; 
    }

    .nav-bar li {
        display: block;
    }

    .nav-bar li a {
        display: block;
        color: #505050;
        font-weight: 600;
    }

    .nav-bar li:first-child:hover a {
        border-radius: 0;
    }

    .nav-bar li ul.dropdown {
        position: relative;
    }

    .nav-bar li ul.dropdown li a {
        background: #2980B9 !important;
        border-bottom: none;
        color: #fff !important;
    }

    /*==========================*/
    /* DEBUG #03a9f4 COLOR HERE     OK*/
    /*==========================*/
    .nav-bar li:hover a {
        background: #03A9F4;
        color: #fff !important;
    }

    .nav-bar li ul.dropdown li:hover a {
        background: rgba(0, 0, 0, 0.1) !important;
        color: #fff !important;
    }

    .nav-bar li ul.dropdown li a {
        padding: 10px 10px 10px 30px;
    }

    .nav-bar li:hover .arrow-down {
        border-top: 5px solid #fff;
    }

    .arrow-down {
        border-top: 5px solid #505050;
        position: absolute;
        top: 20px;
        right: 10px;
    }

}






