/* navigation menu styles */
#navmenu {
    display: flex;
    margin-top: 0.7895rem;
    clear: both;
}

#menu {
    float: left;
}

#menu a {
    text-decoration: none;
}

#menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
#menu ul li{
   display: block;
}

#menu>ul>li {
    display: flex;
    background: url('../images/menubg.png');
    margin-left: 0.5263rem;
    border-radius: 5px;
    box-shadow: 0px 4px 3px #999;
    transition-duration: 0.2s;
    position: relative;
    height: 2.0526rem;

}

#menu>ul>li:hover {
  
    background: url('../images/menubg2.png') bottom repeat-x;
    margin-left: 0.5263rem;
    border-radius: 5px;
    box-shadow: 0px 3px 2px #ccc;
    height: 2.0526rem;
    margin-top: 0.1579rem;
}




#menu ul li a {
    color: #fff;
    display: block;
    height: 2.2105rem;
    line-height: 2.2105rem;
    padding: 0 15px 0 0.7895rem;
    font-size: 0.7368rem;
    white-space: nowrap;

}




/* dropdown menu */
#menu ul ul {
    background: -webkit-linear-gradient(#F7F7F7, #F4F4F4) repeat scroll 0 0 padding-box transparent;
    background: -moz-linear-gradient(#F7F7F7, #F4F4F4) repeat scroll 0 0 padding-box transparent;
    background: linear-gradient(#F7F7F7, #F4F4F4) repeat scroll 0 0 padding-box transparent;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F7F7F7', endColorstr='#F4F4F4', GradientType=0);

    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px 5px 5px 5px;
    box-shadow: 0 1px 0 #FFFFFF inset;
    /* height: 0; */
    margin-top: 0px;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    /* display: none; */
    /* visibility: hidden; */
    z-index: 1;

    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -ms-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
}
#menu ul ul li{
    height: 0;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -ms-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
} 
 #menu ul li:hover ul li{
    height: 2.6053rem;
}
#menu ul li:hover ul {
   
    /* min-height: 8.7368rem; */
    margin-top: 0\9;
    opacity: 1;
    visibility: visible;

}

#menu ul ul li:hover {
    
    background-size: contain;
    color: #FFF;
    border-radius: 10px;
}

#menu ul ul a {
    border-right-width: 0;
    border-top: 1px solid #D1D1D1;
    box-shadow: 0 1px 0 #FFFFFF inset;
    color: #444444;
    padding: 0.5263rem 0.6316rem;
    white-space: nowrap;
    height: 1.2632rem;
    line-height: 1.2632rem;
}

#menu ul ul a:hover {
    color: #F57C05;
}

/* search bar */
.searchbox {
    border: 2px solid #efefef;
    border-radius: 4px;
    width: 13.1579rem;
    height: 1.8421rem;
    margin-top: 0.1053rem;
    padding: 0 0.2632rem 0 0.2632rem;
    margin-left: 1.0526rem;
    background: #FFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.searchbox:hover {
    border: 2px solid #F57C05;
    border-radius: 4px;
}
.searchbox img{
    width: 1rem;
height: 1rem;
}
.search2{
    display: none;
}
.searchbox:hover .search2{
    display: inline-block;
    }
    .searchbox:hover .search1{
        display: none;
        }
.searchbox input{
    width: 80%;
    height: 85%;
    border: none;
    outline: none;
}
#search div {
    border: 2px solid #efefef;
    border-radius: 4px;
    width: 13.1579rem;
    height: 1.8421rem;
    margin-top: 0.1053rem;
    padding: 0 0.2632rem 0 0.2632rem;
    margin-right: 1.0526rem;
    background: #FFF
}

#search div:hover {
    border: 2px solid #F57C05;
    border-radius: 4px;
}

#search img {}
@media screen and (max-width: 790px) {
    .searchbox img {
        width: 3rem;
        height: 3rem;
    }
    .searchbox {
        border: 1px solid #efefef;
        border-radius: 4px;
        width: 50%;
        height: 5.8421rem;
        margin-top: 0.1053rem;
        padding: 0 0.2632rem 0 0.2632rem;
        margin-left: 1.0526rem;
        background: #FFF;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .searchbox input{
        padding: 0;
    }
}