/* Starter CSS for Flyout Menu */
.cssmenu,
.cssmenu ul,
.cssmenu ul li,
.cssmenu ul ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: inherit;
}
.cssmenu ul {
    position: relative;
    /*z-index: 597;*/
    float: left;
}
.cssmenu ul li {
    float: left;
    vertical-align: middle;
}
.cssmenu ul li.hover,
.cssmenu ul li:hover {
    position: relative;
    /*z-index: 599;*/
    cursor: default;
}
.cssmenu ul ul {
    margin-top: 1px;
    visibility: hidden;
    position: absolute;
    top: -12px;
    left: 99%;
    /*z-index: 598;*/
    width: 100%;
}
.cssmenu ul ul li {
    float: none;
}
.cssmenu ul ul ul {
    top: 1px;
    left: 99%;
}
.cssmenu ul li:hover > ul {
    visibility: visible;
}
.cssmenu ul li {
    float: none;
}
.cssmenu ul ul li {
    font-weight: normal;
}
/* Custom CSS Styles */
.cssmenu {
    font-size: 18px;
    width: 36px;
}
.cssmenu ul a,
.cssmenu ul a:link,
.cssmenu ul a:visited {
    display: block;
    color: #C1C4C4;
    text-decoration: none;
    font-weight: 300;
}
.cssmenu > ul {
    float: none;
}
.cssmenu ul {
}
.cssmenu ul li{
}
.cssmenu > ul > li {

}
.cssmenu > ul > li > a {
}
.cssmenu > ul > li:hover {
    /*border-left: 3px solid #fff;*/
    background-color:#7982A6;
}
.cssmenu ul li:hover > a {
    color: #C9C9C9;
}
.cssmenu > ul > li:hover {
    background: #f6f6f6;
}
/* Sub Menu */
.cssmenu ul ul a:link,
.cssmenu ul ul a:visited {
    font-weight: 400;
    font-size: 14px;
}
.cssmenu ul ul {
    width: 125px;
    background: none;
    border-left: 10px solid transparent;
    border-top: -10px solid transparent;
    border-radius: 3px;
}
.cssmenu ul ul a {
    padding: 9px 19px;
}
/*框顏色*/
.cssmenu ul ul li {
    background: #33384C;
    border-bottom: 1px solid #505776;
}
.cssmenu ul ul li:hover a{background: #036EB3; color: #fff}
.cssmenu ul ul li:last-child {
    border-bottom: 1px solid #d7d8da;
    border-radius: 0px 0px 3px 3px;
    padding-bottom: 5px;
}
.cssmenu ul ul li:first-child {
    border-radius: 3px 3px 0px 0;
    padding-top: 5px;
}
.cssmenu ul ul li:last-child > a {
    border-bottom: none;
}
.cssmenu ul ul li:first-child:after {
    content: '';
    background: url("../images/arrowside.png") no-repeat;
    color: #33384C;
    display: block;
    width: 8px;
    height: 19px;
    position: absolute;
    left: -8px;
    top: 13px;
}

/*紫色下拉選單*/

/* Custom dropdown */
#colorNav{width: 36px;}
.custom-dropdown {
    font: inherit;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    float: left;
    margin: 0px 10px 0px 0;
}

.custom-dropdown select {
    background-color: #3D9FA0;
    color: #fff;
    padding: .5em;
    padding-right: 2.5em;
    border: 0;
    margin: 0;
    border-radius: 3px;
    text-indent: 0.01px;
    text-overflow: '';
    -webkit-appearance: none; /* hide default arrow in chrome OSX */
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}
.custom-dropdown select.cdgray{background-color: #8367BF; color: #FFFFFF;}
.custom-dropdown::before,
.custom-dropdown::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.custom-dropdown::after { /*  Custom dropdown arrow */
    content: "\25BC";
    height: 1em;
    font-size: 10px;
    line-height: 1;
    right: 0.6em;
    top: 50%;
    margin-top: -6px;
}

.custom-dropdown::before { /*  Custom dropdown arrow cover */
    width: 2em;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 0 3px 3px 0;
}

.custom-dropdown select[disabled] {
    color: rgba(0,0,0,.3);
}

.custom-dropdown select[disabled]::after {
    color: rgba(0,0,0,.1);
}

.custom-dropdown::before {
    background-color: rgba(0,0,0,.15);
}

.custom-dropdown::after {
    color: #fff;
}

/* login 線框下拉選單*/
/* Custom dropdown */
.login .select .borderd-ropdown.custom-dropdown {
    margin: 0 10px 0 0;
}
.login .borderd-ropdown.custom-dropdown select {
    background-color: #fff;
    color: #449b9c;
    border-radius: 3px;
    border: 1px solid #449b9c;
    padding: .5em;
    padding-right: 2.5em;
    margin: 0;
    text-indent: 0.01px;
    text-overflow: '';
    -webkit-appearance: none; /* hide default arrow in chrome OSX */
}
.borderd-ropdown.custom-dropdown::before {
    background-color: #ffffff;
    border: 1px solid #449b9c;
}
.borderd-ropdown.custom-dropdown::after {
    color: #368788;
    right: 0.7em;
}
.borderd-ropdown.custom-dropdown select[disabled] {
  color: rgba(0,0,0,.3);
  border-color: #c6d2d2;
  cursor:not-allowed;
}
.custom-dropdown select option {
  white-space: normal;   /* 允許文字換行 */
  word-break: break-word; /* 超長英文自動斷行 */ 
}
/*灰色下拉選單*/

/* sliver-dropdown */
/*IE10隱藏下拉*/
.sliver-dropdown select::-ms-expand{display: none;-webkit-appearance: none;}
.sliver-dropdown {
    font-family: inherit;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px 0 0px;/* demo only */
    float: left;
}

.sliver-dropdown select {
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,f1f1f1+50,e1e1e1+51,f6f6f6+100;White+Gloss+%231 */
    background: #AAADAF;/* Old browsers */
-ms-linear-gradient(
top,  #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);/* IE10+ */
    background: linear-gradient(to bottom,  #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);/* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0 );/* IE6-9 */
    border: 1px solid #AAADAF!important;
    color: #666;
    font-size: inherit;
    padding: .5em;
    padding-right: 2.5em;
    border: 0;
    margin: 0;
    border-radius: 3px;
    text-indent: 0.01px;
    text-overflow: '';
    -webkit-appearance: none;/* hide default arrow in chrome OSX */
}
.sliver-dropdown::before,
.sliver-dropdown::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.sliver-dropdown::after { /*  Custom dropdown arrow */
    content: "\25BC";
    height: 1em;
    font-size: .625em;
    line-height: 1;
    right: 0.6em;
    top: 50%;
    margin-top: -.5em;
}

.sliver-dropdown::before { /*  Custom dropdown arrow cover */
    width: 2em;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 0 3px 3px 0;
}

.sliver-dropdown select[disabled] {
    color: rgba(0,0,0,.3);
}

.sliver-dropdown select[disabled]::after {
    color: rgba(0,0,0,.1);
}

.sliver-dropdown::before {
    border:1px solid #AAADAF;
}

.sliver-dropdown::after {
    color: rgba(255,255,255,);
}

.sliver-dropdown select option[disabled]{background-color:#dedede; font-color:#fff;}

/*functionDrop 功能下拉選單*/

#colorNav > ul{
    width: 36px; /* Increase when adding more menu items */
    height: 36px;
    margin:0 auto;
}

#colorNav > ul > li{ /* will style only the top level li */
    list-style: none;
    display: inline-block;
    line-height: 1;
    margin: 1px;
    border-radius: 3px;
    position:relative;
}

#colorNav > ul > li > a{
    color:inherit;
    text-decoration:none !important;
    font-size:24px;
}

#colorNav li ul{
    position:absolute;
    list-style:none;
    text-align:center;
    width:100px;
    left:50%;
    margin-left: -52px;
    top:20px;
    /* This is important for the show/hide CSS animation */
    max-height:0px;
    overflow:hidden;

    -webkit-transition:max-height 0.4s linear;
    -moz-transition:max-height 0.4s linear;
    transition:max-height 0.4s linear;
}

#colorNav li ul li{
    background-color:#313131;
}

#colorNav li ul li a{
    padding:12px;
    color:#fff !important;
    text-decoration:none !important;
    display:block;
}

#colorNav li ul li:nth-child(odd){ /* zebra stripes */
    background-color:#363636;
}

#colorNav li ul li:hover{
    background-color:#444;
}

#colorNav li ul li:first-child{
    border-radius:3px 3px 0 0;
    margin-top:25px;
    position:relative;
}

#colorNav li ul li:first-child:before{ /* the pointer tip */
    content:'';
    position:absolute;
    width:1px;
    height:1px;
    border:5px solid transparent;
    border-bottom-color:#313131;
    left:50%;
    top:-10px;
    margin-left:-5px;
}

#colorNav li ul li:last-child{
    border-bottom-left-radius:3px;
    border-bottom-right-radius:3px;
}

/* This will trigger the CSS */
/* transition animation on hover */

#colorNav li:hover ul{
    max-height:200px; /* Increase when adding more dropdown items */
}


/*----------------------------
  Color Themes
-----------------------------*/


#colorNav li.green{
    /* This is the color of the menu item */
    background-color:#00c08b;

    /* This is the color of the icon */
    color:#127a5d;
}

#colorNav li.red{   background-color:#ea5080;color:#aa2a52;}
#colorNav li.blue{    background-color:#53bfe2;color:#2884a2;}
#colorNav li.yellow{  background-color:#f8c54d;color:#ab8426;}
#colorNav li.purple{  background-color:#df6dc2;color:#9f3c85;}

.dropdownGroup{float: left;}
.dropdownGroup .custom-dropdown{margin: 0 -2px 0 0;}
.dropdownGroup input{}
select > option {
    text-transform: uppercase;
    padding: 5px 0px;
}
