/*!
 * EfChina.org
 * Reset html grid v1.1.0
 */


/*Responsive Menu*/
#mobile-portal-top {
  text-align: center;
  margin-top: 1em;
  padding-left: 25px;
  padding-right: 25px;
}

#mobilemenu .nav button.close {
  float: none;
  font-size: 1em;
  color: white;
  opacity: unset;
  padding-right: 10px;
}

#mobile-portal-top .leftButton {
  float: left;
  font-size: x-large;
  z-index:100;
}

#mobilemenu ul.nav {
    background: rgba(0, 0, 0, 0.85);
    display: none;
    height: auto;
    left: 0;
    list-style: none;
    margin: 0px;
    padding: 0 0 400px 0;
    position: absolute;
    width: 100%;
    z-index: 1000;
}

#mobilemenu ul.nav.showme {
    display: block;
}

#mobilemenu ul.nav ul {
    display: none;
    margin: 0;
    padding: 0;
}

#mobilemenu ul.nav>li:first-child  {
    padding-top: 100px;
}

#mobilemenu ul.nav li {
    background: none;
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
}

#mobilemenu ul.nav li a {
    border-bottom: 1px solid #333;
    color: #fff;
    display: block;
    /*font-family: Arial, serif;*/
    font-family: "Microsoft YaHei", 微软雅黑, STHeiti, 华文黑体, NewsGothicBT-Roman, Arial, FreeSans, sans-serif;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 10px;
    text-align: left;
    text-decoration: none;
}

#mobilemenu ul.nav li a:hover, #mobilemenu ul.nav li a:focus, #mobilemenunav ul.nav li a:active {
    background: rgba(42, 145, 207, 0.8);
}

#mobilemenu ul.nav li a span.mobile-arrow {
    background: url(/images/nav_arrow.png) no-repeat 0 -30px;
    display: inline-block;
    float: right;
    height: 20px;
    margin-bottom: -3px;
    margin-left: 10px;
    text-align: right;
    width: 20px;
}

#mobilemenu ul.nav > li > a.open span.mobile-arrow {
    background: url(/images/nav_arrow.png) no-repeat 0 -100px;
}

#mobilemenu ul.nav > li > ul.open {
    display: block;
}

#mobilemenu ul.nav li.dropdown a.open {
    background-color: rgba(66, 84, 102, 1);
}

#mobilemenu ul.nav li.dropdown a.open span.mobile-arrow {
    background-position: 0 -100px;
}

#mobilemenu ul.nav li.dropdown ul li a {
    background: rgba(47, 55, 68, 0.8);
    border-bottom: 1px solid #000;
    font-weight: normal;
    padding: 10px 10px 10px 25px;
}

#mobilemenu ul.nav li.dropdown ul li a:hover, #mobilemenu ul.nav li.dropdown ul li a:focus, #mobilemenu ul.nav li.dropdown ul li a:active {
    background-color: rgba(84, 121, 148, 0.8);
}

#mobilemenu ul.nav li.dropdown ul li a.open {
    background-color: rgba(84, 121, 148, 1);
}

#mobilemenu .mobile-home-icon {
    left: 6px;
    padding: 0 8px;
    text-indent: -9999em;
    width: 40px;
}

#mobilemenu .mobile-home-icon a {
    background: url(/images/icon_home.png) no-repeat 50% 50%;
    display: block;
    height: 35px;
    text-indent: -9999em;
    width: 20px;
}

#mobilemenu div.leftButton.pressed {
    background: #4286f5;
    background: -moz-linear-gradient(top, #4286f5 0%, #4286f5 50%, #194fdb 50%, #194fdb 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #4286f5), color-stop(50%, #4286f5), color-stop(50%, #194fdb), color-stop(100%, #194fdb));
    background: -webkit-linear-gradient(top, #4286f5 0%, #4286f5 50%, #194fdb 50%, #194fdb 100%);
    background: -o-linear-gradient(top, #4286f5 0%, #4286f5 50%, #194fdb 50%, #194fdb 100%);
    background: -ms-linear-gradient(top, #4286f5 0%, #4286f5 50%, #194fdb 50%, #194fdb 100%);
    background: linear-gradient(top, #4286f5 0%, #4286f5 50%, #194fdb 50%, #194fdb 100%);
}

@media (max-width: 1199px) {
    #mobilemenu {
        display: block !important;
    }
/*    #portal-searchbox {
        margin-top: -35px;
        margin-right: 3.5em;
        float: right!important;
    }
*/
}

#mobilemenu ul.nav > li > ul {
    margin-left: 40px;
}

/* fix tinymce table display*/
#portal-columns-v2.container.redefine td.mceIframeContainer.mceFirst.mceLast,
#portal-columns-v2.container.redefine td.mceStatusbar.mceFirst.mceLast {
	float: initial;
}

#portal-columns-v2.container.redefine tbody, 
#portal-columns-v2.container.redefine tr, 
#portal-columns-v2.container.redefine td {
    display: block;
}

/* fix table listing view*/
#portal-columns-v2.container.redefine table.listing tbody {
    display: table-row-group;
}

#portal-columns-v2.container.redefine tbody tr.row {
    margin-left: 0px;
    margin-right: 0px;
}


/*override for main contents region table format*/
#portal-column-content-v2 div#content-core table td {
    float: none;
    display: table-cell;
    padding: 5px;
}
#portal-column-content-v2 div#content-core table tr {
    float: none;
    display: table-row;
}

/*make portlet content 14px*/
#portal-columns-v2.en dl.portlet {
    font-size: 87.5%;
}

/*#portal-columns-v2.en #content {
    margin: 0em 0em 2em 0em;
}*/


/*adust table element looks*/
@media (min-width: 992px) {
    /*make portlets float to right of main content*/
    #portal-columns-v2.container.redefine td {
        float: left;
    }
    /*adjust folder_contents view back to table format*/
    div#content-core div#folderlisting-main-table tbody {
        float: initial;
        display: table-row-group;
    }
    div#content-core div#folderlisting-main-table tr {
        float: initial;
        display: table-row;
    }
    div#content-core div#folderlisting-main-table td {
        float: initial;
        display: table-cell;
    }
    /*override for main contents region table format*/
    #portal-column-content-v2 div#content-core table td {
        float: none;
        display: table-cell;
        padding: 5px;
    }
    #portal-column-content-v2 div#content-core table tr {
        float: none;
        display: table-row;
    }
}

#portal-columns-v2.container.redefine td {
    position: relative;
    }

.main-title-cn {
    font-size: 2.5em;
}

#portal-footer a {
    display: inline-block;
}