/*****************Font*******************/
@font-face {
    font-family: 'TaipeiSans';
    src: url('TaipeiSans.ttf');
}

@font-face {
    font-family: 'Round';
    font-weight: normal;
    src: url("Round.otf")format("opentype");
}

@font-face {
    font-family: 'GenSenRounded';
    src: url("GenSenRounded-M.ttf")format("truetype");
}

@font-face {
    font-family: 'PingFang';
    font-weight: normal;
    src: url("PingFang Bold.ttf")format("opentype");
}

@font-face {
    font-family: 'NotoSans';
    font-weight: normal;
    src: url("NotoSansTC-Regular.otf")format("opentype");
}

/*****************Whole Page Setting*******************/
.mainPage {
    max-width:1400px;
}

.paddleftright {
    padding-left:0px;
    padding-right:0px;
}

#skip-wrap {
    position:relative;
    top:0;
    /*overflow:hidden;
    z-index:-999;*/
}
#skip-wrap a {
    position:absolute;
    border:1px solid #fff;
    left:10px;
    padding:5px 10px;
    text-decoration:none;
    color:#fff;
}

#header {
    background:#fff;
    z-index:1330;
    opacity:1;
}

/*#header {
    flex-shrink: 0;
    height:100%;
    position:absolute;
    overflow:hidden;
}

#subpageContent {
    position:absolute;
    overflow:auto;
    flex: 1;
    overflow: auto;
}

#wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#footer {
    flex-shrink: 0;
    height:100%;
    position:absolute;
    overflow:hidden;
}*/


/*****************Nav1*******************/
.nav1 {
    padding-top:0.5%;
    max-width:1400px;
    margin-left: auto;
    margin-right: auto;
    margin-left: auto;
    position:relative;
}

.navbar-brand img{
    width: 100%; 
    max-width: 510px; 
    height: auto;
}

.topcontrol {
    font-family: "Microsoft JhengHei", "NotoSans", "Yu Gothic","PMingLiU";
    /*font-family: "Microsoft JhengHei", "NotoSans", "Yu Gothic","PMingLiU", "Arial", sans-serif;*/
    /*font-family:'TaipeiSans', 'Georgia', serif;*/
    /*font-family: "Microsoft JhengHei",'NotoSans', "Yu Gothic","PMingLiU",'PingFang',"TaipeiSans", , "�L�n������", "Arial", sans-serif;*/
    font-weight:900;
    /*font-weight:lighter;*/
}

.topcontrolE{
    font-family: 'Arial','Helvetica',sans-serif;
	/*font-family: 'PingFang',"TaipeiSans", "Microsoft JhengHei", "�L�n������", "Arial", sans-serif;*/
	font-weight: normal;
    word-break:break-all;
}

.topcontrolLink a{
    text-decoration: none;
    color:#443e3e;
    font-weight:lighter;
    font-size:100%;
}
.topcontrolLinkE a {
    text-decoration: none;
    color:#443e3e;
    font-weight:normal;
    font-size:100%;
}


.topcontrolLink a:hover, .topcontrolLinkE a:hover {
    text-decoration: underline;
}

.topcontrolLink span,.topcontrolLinkE span {
    color:#443e3e;
    display:inline-block;
}

.topcontrolLink span::after, .topcontrolLinkE span::after  {
    content: "|";
    /*padding: 0 2px;*/
}

.topcontrolLink .fontsmall, .topcontrolLinkE .fontsmall{
    font-size: 16px;
}

.topcontrolLink .fontmed, .topcontrolLinkE .fontmed {
    font-size: 20px;
}

.topcontrolLink .fontlarge, .topcontrolLinkE .fontlarge {
    font-size: 24px;
    bottom: -2px;
}

/*****************Nav2*******************/
.nav2 {
    border-top: 1px solid #f7f7f7;
    border-left:1px solid #f7f7f7;
    border-right: 1px solid #f7f7f7;
    /*box-shadow: 0 3px 3px 0px rgba(0,0,0,.2);*/
    box-shadow: 0 10px 3px 0px rgba(0,0,0,0.15);
    display:flex;
    flex:auto;
    align-items: center;
    vertical-align: middle;
    margin: 0 auto;

    max-width:1400px;
    margin-left: auto;
    margin-right: auto;
    margin-left: auto;
    position:relative;
}

.flex-nav {
    /*padding-right:2%;
    padding-left:2%;*/
    justify-content:space-around;
    justify-content:flex-start;
}

.nav > .nav-item {
    flex:1;
    
    /*text-align: center;
    display: table-cell;
    vertical-align: middle;
    margin:auto;*/
    align-items: center;
    vertical-align: middle;
    justify-content:center;

    margin:0 auto;
    text-align: center;
}

.engnav .nav-item {
    flex:1;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width:100%;
}

.nav-item a {
    font-family: "Microsoft JhengHei", "NotoSans", "Yu Gothic","PMingLiU";
    /*font-family: 'Round','GenSenRounded',"Microsoft JhengHei", "�L�n������" ,'Georgia', "Arial", sans-serif;*/
    /*font-family:'Round','Georgia', serif;*/
    /*font-family: "Microsoft JhengHei", "NotoSans", "Yu Gothic","PMingLiU", "Arial", sans-serif;*/
    /*font-size: 24px;*/
    font-size:100%;
    font-weight:bold;
    /*font-weight:lighter;*/
	color: #797275;
	/*color: #706e70;*/
	
    text-align: center;
    vertical-align:middle;
}

.engnav .nav-item a {
    font-family: 'Arial','Helvetica',sans-serif;
    /*font-family: 'GenSenRounded', "Arial", sans-serif;*/
    /* font-family: 'Round','Georgia', serif; */
    font-size: 100%;
    font-weight: normal;
    /* color: #4B4F54; */
    color: #797275;
	/*color: #706e70;*/
    text-align: center;
    vertical-align:middle;
}


.engnav .nav-link a {
    font-family: 'Arial','Helvetica',sans-serif;
    /*font-family: 'GenSenRounded', "Arial", sans-serif;*/
    font-size:90%;
    font-weight:normal;
    color: #797275;
	/*color: #706e70;*/

    vertical-align: middle;
    justify-content:center;
    text-align: center;
    margin: auto;
    height:100%;
    max-height: 100%;
    display: block;
}


/*.nav-item a:hover, .nav-item a:active {
    background-color:#686e9f;
    font-weight:normal;
    color: #ffffff!important;
    text-decoration: none;
}*/

.nav-item .nav-link:hover , .nav-item .nav-link:active > a, .nav-item .nav-link:hover > a {
    background-color:#686e9f;
    color: #ffffff!important;
    text-decoration: none;
    /*font-weight: normal;*/
}

.nav-item .nav-link.active, .nav-item .show>.nav-link {
    background-color:#686e9f;
}

.nav-item-e .nav-link-e .active, .nav-item-e .show>.nav-link-e {
    background-color:#686e9f;
}

.nav-item .dropdown .show {
    color: #ffffff!important;
    background-color:#686e9f;
}

.nav-item-e .dropdown .show {
    color: #ffffff!important;
    background-color:#686e9f;
}

.nav-item .topcontrolLinkmobile a {
    font-family: "Microsoft JhengHei", "NotoSans", "Yu Gothic","PMingLiU";
    /*font-family: 'PingFang',"TaipeiSans", "Microsoft JhengHei", "�L�n������", "Arial", sans-serif;*/
    font-weight: bold;
    text-decoration: none;
    color:#443e3e;
}

.engnav .nav-item .topcontrolLinkmobile a {
    font-family: "Microsoft JhengHei", "NotoSans", "Yu Gothic","PMingLiU";
    /*font-family: 'PingFang',"TaipeiSans", "Microsoft JhengHei", "�L�n������", "Arial", sans-serif;*/
    font-weight:lighter;
    text-decoration: none;
    color:#443e3e;
    background-color:none;
}

.topcontrolLinkmobile a:hover,.engnav .topcontrolLinkmobileE a:hover {
    text-decoration: underline;
}

.topcontrolLinkmobile span, .engnav .topcontrolLinkmobileE span{
    padding:2%;
}

.engnav .topcontrolLinkmobileE span::after  {
    content: " ";
    padding: 0 2px;
}


.dropdown-menu{
    box-shadow: 0 5px 10px 0 rgba(0,0,0,0.9);
    position: relative;
    left: 40%;
    transform: translateX(-40%);
    /*box-shadow: 5px 5px 0px rgba(197,197,197,0.2);*/
    /*#C5C5C5*/
    /*position:relative;
    width:auto;*/
}

.dropdown-menu a {
    font-family: "Microsoft JhengHei", "NotoSans", "Yu Gothic","PMingLiU";
    /*font-family:'PingFang','TaipeiSans',"Microsoft JhengHei", "�L�n������" ,'Georgia', "Arial", sans-serif;*/
    /*font-size: 20px;*/
    font-size:120%;
    font-weight:bold;
    color: #797275!important;
	/*color: #706e70!important;*/
    font-weight: bold;
    text-align:center;
}

.dropdown-menu a:hover, .dropdown-menu a:active {
    background-color:#fcc2cc;
    color:#595959!important;
	/*background-color:#fcc2cc;
    color:#797275!important;*/
	/*color: #706e70!important;*/
    /*font-weight: bold;*/
}

/*****************Content*******************/
.mainPageContent{
    min-height:75rem;
    padding-top:10.4rem;
    z-index:0;
}

.mainPageContentEng {
    min-height:75rem;
    padding-top:10.5rem;
    z-index:0;
}

/*****************Responsive Setting*******************/
@media only screen and (max-width: 1400px) {
    .paddleftright {
        padding-left:0px;
        padding-right:10px;
    }
	.engnav .nav-item a{
        white-space: normal; 
    }
}

@media only screen and (max-width: 992px) {
    .dropdown-menu {
        left:auto;
        right:auto;
        width:auto;
        position:relative;
        left: 0;
        transform: translateX(0%);
        box-shadow: none;
    }
    .nav2 {
        padding:0px;
    }
    .nav > .nav-item {
        margin:0!important;
    }

    .paddleftright {
        padding-left:10px;
        padding-right:10px;
    }

}

@media only screen and (min-width: 992px) {
    .nav-item a{
        height:100%;
    }
}


/*style="text-align:center;font-size:20px;font-family:'cwTeXYen', sans-serif;"*/

/*.dropdown-submenu{
    position:relative;
}
.dropdown-submenu>.dropdown-menu{
    top:0;
    left:100%;
    margin-top:-6px;
    margin-left:-1px;
    -webkit-border-radius:0 6px 6px 6px;
    -moz-border-radius:0 6px 6px 6px;
    border-radius:0 6px 6px 6px;
}
.dropdown-submenu:hover>.dropdown-menu{
    display:block;
}
.dropdown-submenu>a:after{
    display:block;
    content:" ";
    float:right;
    width:0;
    height:0;
    border-color:transparent;
    border-style:solid;
    border-width:5px 0 5px 5px;
    border-left-color:#cccccc;
    margin-top:5px;
    margin-right:-10px;
}
.dropdown-submenu:hover>a:after{
    border-left-color:#ffffff;
}
.dropdown-submenu.pull-left{
    float:none;
}
.dropdown-submenu.pull-left>.dropdown-menu{
    left:-100%;
    margin-left:10px;
    -webkit-border-radius:6px 0 6px 6px;
    -moz-border-radius:6px 0 6px 6px;
    border-radius:6px 0 6px 6px;
}*/

