﻿/*********** reset***********/

#menu, #menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/**********Main level**********/
#menu {
    /*	width: 950px;
	padding: 0px 0;
	border-bottom: 1px solid #4e4e4e;
	margin-bottom: 15px;
	color:#FFF;*/
}

    /**********Clear floats************/
    #menu:before,
    #menu:after {
        content: "";
        display: table;
    }

    #menu:after {
        clear: both;
    }

#menu {
    zoom: 1;
    margin: 10px;
}

    /***********List elements*********/
    #menu li {
        float: none;
        position: relative;
        clear: both;
    }

@media (min-width: 768px) {
    #menu li {
        clear: none;
        float: left;
    }
}

#menu a {
    float: left;
    font-weight: normal;
    -webkit-transition: all .5s ease-in;
    -moz-transition: all 0.5s ease-in;
    -ms-transition: all 0.5s ease-in;
    -o-transition: all 0.5s ease-in;
    text-decoration: none;
    padding: 5px;
    margin: 0 5px;
}

    #menu a.current {
        border-radius: 5px;
        -moz-border-radius: 5px;
        -webkit-border-radius: 5px;
        -ms-border-radius: 5px;
        -o-border-radius: 5px;
        background: #FFF;
        color: #005aaa;
    }

#menu li:hover > a {
    color: #ff1200;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    background: #FFF;
    color: #005aaa;
}

*html #menu li a:hover { /* IE6 only */
    color: #fafafa;
}

/*********submenu*********/

#menu ul {
    margin: 20px 0 0 0;
    _margin: 0; /*IE6 only*/
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 24px;
    left: 0;
    z-index: 1;
    background: #FFF;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.176);
    border-radius: 3px;
    /*	border:4px solid #ff1200;*/
    transition: all .2s ease-in-out;
    padding: 10px 0;
    border-color: #72c02c -moz-use-text-color #687074;
    border-style: solid none;
    border-width: 2px medium;
}

#menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    margin: 0;
}

#menu ul ul {
    top: 0;
    left: 97%;
    _margin: 0; /*IE6 only*/
    /*	box-shadow: -1px 0 0 rgba(255,255,255,.3);		*/
}

#menu ul li {
    float: none;
    display: block;
    border: 0;
    _line-height: 0; /*IE6 only*/
    box-shadow: 0 1px 0 #e7e7e7, 0 1px 0 #e7e7e7;
    padding: 0;
    margin: 0;
    position: relative;
    text-align: left;
    padding: 0 10px;
}

    #menu ul li:last-child {
        box-shadow: none;
    }

    #menu ul li > a.submenu::after {
        content: "";
        display: inline-block;
        font-family: FontAwesome;
        font-size: 11px;
        font-weight: normal;
        position: absolute;
        right: 9px;
        top: 8px;
    }

#menu ul a {
    padding: 5px 8px;
    _height: 10px; /*IE6 only*/
    display: inline-block;
    white-space: nowrap;
    float: none;
    text-transform: none;
    color: #555;
    font-weight: normal;
    text-align: left;
    min-width: 120px;
    font-size: 13px;
}

    #menu ul a:hover {
        /*	background-color: #0186ba;
	background-image: linear-gradient(#ff3222, #ff1200);*/
        color: #c4161c;
        background: none !important;
    }

/*#menu ul li:first-child > a {
    border-radius: 3px 3px 0 0;
}

    #menu ul li:first-child > a:after {
        content: '';
        position: absolute;
        left: 10px;
        top: -44px;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 10px solid #ff1200;
    }*/

#menu ul ul li:first-child a:after {
    left: -8px;
    top: 50%;
    margin-top: -6px;
    border-left: 0;
    border-bottom: 8px solid transparent;
    border-top: 8px solid transparent;
    border-right: 10px solid #ffffff;
}

#menu ul li:first-child a:hover:after {
    border-bottom-color: #ff1200;
}

#menu ul ul li:first-child a:hover:after {
    border-right-color: #ffffff;
    border-bottom-color: transparent;
}

#menu ul li:last-child > a {
    border-radius: 0 0 3px 3px;
}

#menu ul li .right-arrow {
    position: absolute;
    right: 0;
    top: 10px;
    width: 8px;
}
