/* main menu
----------------------------*/

#ddmenu {
    display: block;
    text-align: left;
    letter-spacing: normal;
    float: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20000;
    width: 220px;
    background-color: rgba(255, 255, 255, 1);
}
#ddmenu ul {
    margin: 40px 0 0 0;
    zoom: 1;
    padding: 0 20px;
    position: relative;
    line-height: 30px;
    vertical-align: middle;
    transition: background-color 0.2s;
    border: none;
    outline: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}
#ddmenu li:hover {
    background-color: #6e91a9;
    background-color: #c31c1b;
    color: white;
}
#ddmenu li {
    margin: 0;
    padding: 0;
    font-size: 14px;
    display: block;
    zoom: 1; /*for IE6-7*/
    position: relative;
    color: #62839a;
    color: black;
    vertical-align: middle;
    transition: background-color 0.2s;
    border: none;
    outline: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
#ddmenu .full-width {
    position: static;
}
#ddmenu .over {
    text-decoration: none;
}
#ddmenu .over.no-sub {
}
#ddmenu .top-heading {
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: 13px;
    text-decoration: none;
    display: block;
    padding: 15px 10px;
    outline: 0;
    cursor: pointer;
}

/* links of top-heading */
#ddmenu a,
#ddmenu a:link,
#ddmenu a:hover {
    color: inherit;
}
#ddmenu a:hover {
    text-decoration: none;
}
#ddmenu a:focus {
    outline: 0px dotted #09f;
}

/* caret(arrow icon) */
#ddmenu .caret {
    color: inherit;
    left: -18px;
    width: 0;
    height: 0;
    overflow: hidden; /*for IE6*/
    vertical-align: middle;
    margin-bottom: 2px;
    border-top: 4px solid; /*caret size is 4px now*/
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    display: inline-block;
    position: relative;
}

/* sub-menu layout
----------------------------*/

#ddmenu .dropdown {
    width: auto;
    left: 0px;
    color: #000000;
    /*background-color:#fff;*/
    padding: 0;
    margin: 0;
    display: none;
    position: absolute;
    overflow: hidden;
    top: 100%;
    border-top: none;
    border-radius: 0 0 0px 0px;
    box-shadow: outset 0px 4px 7px 0px #dadada;
}
#ddmenu .full-width .dropdown {
    width: 100%;
    padding: 0;
    margin: 0;
}
#ddmenu .offset300 {
    left: -300px;
    right: auto;
}
#ddmenu .right-aligned {
    left: auto;
    right: 0px;
}
#ddmenu .over .dropdown {
    display: block;
}
#ddmenu .dd-inner {
    text-align: center;
    background-color: #f7f7f7;
    white-space: nowrap;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
#ddmenu ul ul {
    margin: 0;
    padding: 0;
    text-align: left;
    width: auto;
    background: none;
    border: none;
    display: block;
    position: static;
    z-index: 0;
    border-radius: 0;
}
#ddmenu ul ul li {
    font-size: 14px;
    padding: 10px 15px;
    color: inherit;
    /* line-height: 30px; */
    margin: 0;
    display: block;
    position: static;
    background: none;
    border: none;
    transition: none;
    border-radius: 0;
}

/* links in sub menu
----------------------------*/

#ddmenu .dropdown a {
    /* color: #000000; */
    /* font-weight: bold; */
    /* line-height: 1; */
    /* font-size: 15px; */
    text-decoration: none;
    transition: color 0.4s;
}
#ddmenu .dropdown a:hover,
#ddmenu .dropdown a:focus {
    text-decoration: none;
    color: #498c0c;
    outline: 0px dotted #09f;
}

/* blocks within the sub-menu
-----------------------------*/
#ddmenu .column {
    text-align: left;
    vertical-align: top;
    display: inline-block;
    white-space: normal;
    width: auto;
    /* min-width: 80px; */
    /* padding: 0 20px; */
    /* border-right: 1px solid #666; */
    text-transform: uppercase;
}
#ddmenu .dd-inner ul:last-child {
    border-right: none;
}
#ddmenu h3 {
    font-weight: 500;
    line-height: 1;
    margin-top: 9px;
    margin-bottom: 7px;
    font-size: 15px;
    color: #fff;
}
#ddmenu .top-heading {
    text-transform: uppercase;
}
/* useful when http://www.menucool.com/ddmenu/one-menu-for-all-pages */
#ddmenuLink {
    display: none;
}

/*######## add additional styles for mobile-friendly responsive menu ########*/

#ddmenu .menu-icon {
    display: none; /* hide menu icon initially */
}

/*styles for mobile*/
@media only screen and (max-width: 768px) {
    #ddmenu {
        text-align: center;
        letter-spacing: normal;
        float: none;
        position: absolute;
        top: 0%;
        z-index: 200000;
        width: 100%;
        height: 70px;
        border-bottom: 0px solid #eee;
        line-height: 0px;
        background-color: #fff;
        background-image: none;
    }
    #ddmenu .column.mayHide {
        display: none;
    }
    /*override the original settings*/
    #ddmenu ul {
        width: 100%;
        display: none;
        border-radius: 0;
        z-index: 10000;
        margin-bottom: 70px;
    }
    #ddmenu li {
        position: relative;
        display: block;
        color: #000;
        text-align: center;
        border-bottom: 1px solid #eee;
        background: #fff;
        z-index: 10000;
    }
    #ddmenu .full-width {
        position: relative;
    }
    #ddmenu .dropdown {
        position: relative;
        *top: auto; /*for IE7*/
        border: none;
        border-radius: 0;
        box-shadow: none;
        background-color: #ffffff;
        z-index: 10000;
    }
    #ddmenu .offset300 {
        left: 0;
    }
    #ddmenu .full-width .dropdown {
        width: auto;
    }
    #ddmenu .dd-inner {
        margin: 0;
        background: none;
        text-align: left;
    }
    /*turn each column to list vertically instead of horizontally */
    #ddmenu .column {
        width: auto;
        padding: 0;
        border: none;
        display: block;
        padding: 8px;
        border-bottom: 1px solid #ddd;
        background: #eee;
        text-transform: uppercase;
    }
    /*move the arrow icon to right*/
    #ddmenu .caret {
        position: absolute;
        left: auto;
        right: 14px;
        top: 27px;
        border-width: 5px;
    }
    /* All the following are for the .menu-icon (pure CSS) */
    #ddmenu .menu-icon {
        font-size: 40px;
        display: block;
        position: relative;
        width: 30px;
        height: 42px;
        text-align: center;
        cursor: pointer;
        -moz-user-select: none;
        -webkit-user-select: none;
        background-color: transparent;
        border-radius: 0px;
        margin-bottom: 28px;
        margin-left: auto;
        margin-right: 30px;
    }
    #ddmenu .menu-icon::before {
        content: "";
        position: absolute;
        top: 25px;
        left: 4px;
        /* height: 70px; */
        width: 1em;
        height: 0.125em;
        border-top: 0.375em double #000;
        border-bottom: 0.125em solid #000;
        box-sizing: content-box;
    }
    #ddmenu .menu-icon-active {
        background-color: transparent;
    }
    #ddmenu .menu-icon-active::before {
        border-color: #000;
    }
}
