/*----------------------------------------------------------------------------------FIRST MENU*/

/* Sticky Navigation */
nav { 
	width: 100%; 
	top: 0; 
	z-index: 99; 
	padding-top: 0; 
	padding-bottom: 0; 
	transition: all 400ms ease-in-out 0s; 
	-webkit-transition: all 400ms ease-in-out 0s; 
	-moz-transition: all 400ms ease-in-out 0s;}
.nav-transparent .logo-dark { 
	display: none;}
.shrink-nav.nav-dark, 
.shrink-nav.nav-transparent { 
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 0 5px rgba(0,0,0,0.2);}
/*@media (max-width:991px) and (min-width:768px){
.shrink-nav.nav-dark, 
.shrink-nav.nav-transparent {height: 110px;}}*/

/* Main Navigation */
.navbar-default{
	background-color: transparent;
	box-shadow: 0 0 5px rgba(0,0,0,0);
    border-color: transparent;}
.shrink-nav .logo-light { display: none; }
.shrink-nav .logo-dark { display: inline-block;}
.logo-white, .logo-black { margin: 15px 0;}
img.logo-white:hover, img.logo-black:hover{
	-webkit-filter:opacity(.8);
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;}
@media (max-width:1421px){
.logo-white, .logo-black { height: 40px;}}
@media (max-width:1199px){
.logo-white, .logo-black { height: 40px;}}

/* Color and Other Element */
.navbar-nav{
	position: absolute;
	top: 0;
	right: -65px;}
/* <!--[if IE]>
.navbar-nav{
	right: 60px;
}
<![endif]--> */
.navbar-default{
	border:0;}
.navbar-default .navbar-nav > li > a,
.navbar-default .navbar-nav > li > a:focus{
	color:#fff;
    padding: 33px 18px;
	font-size: 1.25em;}
@media (max-width:1421px){
.navbar-nav{
	position: absolute;
	top: 0;
	right: -65px;}
.navbar-default .navbar-nav > li > a,
.navbar-default .navbar-nav > li > a:focus{
    padding: 22px 10px 21px;
	font-size: 1.15em;}}
@media (max-width:991px){
.logo-white, .logo-black{
	margin: 10px auto 15px 0;
	height: 40px;}
.navbar-nav{
	position: absolute;
	top: 0;
	right: 0;}
.navbar-default .navbar-nav > li > a,
.navbar-default .navbar-nav > li > a:focus{
    padding: 8px 10px 20px;
	font-size: 1.1em;}}
.shrink-nav .navbar-nav > li > a,
.shrink-nav .navbar-nav > li > a:focus {
    color:#333;}

@media (min-width:768px) {
.navbar-default .navbar-nav > li > a {
	border-top: 4px transparent solid;}
.navbar-default .navbar-nav > li > a:hover, 
.navbar-default .navbar-nav > .active > a, 
.navbar-default .navbar-nav > .active > a:hover, 
.navbar-default .navbar-nav > .active > a:focus {
	color:#fff;
	border-top: 4px #fff solid;
	background:transparent;}
.shrink-nav.navbar-default .navbar-nav > li > a:hover,
.shrink-nav.navbar-default .navbar-nav > .active > a,
.shrink-nav.navbar-default .navbar-nav > .active > a:hover{
	color:#009944;
	border-top: 4px #009944 solid;
	background:transparent;}}

/* Sticky Nav */
@media (max-width:767px) {
.logo-white, .logo-black{
	margin: 8px auto 0 -15px;
	height: 33px;}
.logo-dark {
	display: none;}
.logo-light {
	display: inline-block; 
	float: none;}
.shrink-nav .logo-light {
	display: none;}
.shrink-nav .logo-dark {
	display: inline-block;}	
.navbar-default .navbar-toggle {
	border-color: transparent;
	margin: 7px 3px 0 0;}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: transparent;}
.sticky-nav .navbar-toggle .icon-bar {
	background-color: #FFF;}
.shrink-nav .navbar-toggle .icon-bar { 
	background-color: #009944;}}

/*SM轉BAR*/
@media (max-width: 1199px) {
.navbar-header {
float: none;}
.navbar-toggle {
display: block;}
.navbar-collapse {
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);}
.navbar-collapse.collapse {
display: none!important;}
.navbar-nav {
float: none!important;
margin: 7.5px -15px;}
.navbar-nav>li {
float: none;}
.navbar-default .navbar-toggle {
border: none;}
.sticky-nav .navbar-toggle .icon-bar {
background-color: #fff;}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
    background: none;}
.shrink-nav .navbar-toggle .icon-bar {
    background-color: #3b4046;}
.navbar-toggle {
    position: relative;
    float: right;
    padding: 9px 10px;
    margin-top: 18px;
    margin-right: 15px;
    margin-bottom: 8px;}}
@media (max-width: 991px){
.navbar-toggle {
    position: relative;
    float: right;
    padding: 9px 10px;
    margin-top: 11px;
    margin-right: 15px;
    margin-bottom: 8px;}}

/*----------------------------------------------------------------------------------SECOND MENU*/

ul li:hover .menu_second, ul li:focus .menu_second{
	display:block;}
.menu_second{
	display:none;
	position:absolute;
	top:75px;
	left:-2px;
	z-index:9999;
	width:150px;
	margin: 0;
    padding: 0;
	height:auto;
	background: #fff;
	box-shadow: 0 5px 20px rgba(0,0,0,0.2);}
@media (max-width: 1421px){
.menu_second{
	left:-15px;
	top:65px;}}
@media (min-width:768px) and (max-width:991px){
.menu_second{
	left:-20px;
	top:47px;}
.menu_second li a{
	font-size:1.05em;}}
.menu_second ul, .menu_second li{
	margin:0;
	padding: 0;
	text-align:center;
	width:100%;
    list-style-type: none;}
.menu_second li{
	border-bottom: 1px #EEE solid;}
.menu_second li a{
	margin:0;
	padding:10px 10px !important;
	display:inline-block;
	width:100%;
	color:#333;
	font-size:1.1em;}
.menu_second span.triangle{
	position: absolute;
	top: -7px;
    left: 45%;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 7px 7px 7px;
	border-color: transparent transparent #fff transparent;}
.menu_second li:hover, .menu_second li.active{
	-moz-opacity: 1;
    opacity: 1;
	-webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    -ms-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;}
.menu_second li:hover a, .menu_second li.active a{
	color: #60bd4b;
	transform: translateX(3px);
	-webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    -ms-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;}

/*----------------------------------------------------------------------------------MOBILE MENU*/

/* Overlay style */
.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 20;
	background: rgba(0,153,68,0.95);
}

/* Overlay closing cross */
.overlay .overlay-close {
	width: 80px;
	height: 80px;
	position: absolute;
	right: 20px;
	top: 20px;
	overflow: hidden;
	border: none;
	background: url(../img/cross.html) no-repeat center center;
	text-indent: 200%;
	color: transparent;
	outline: none;
	z-index: 100;
}

/* Menu style */
.overlay nav {
	text-align: center;
	position: relative;
	top: 50%;
	height: 65%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

.overlay ul {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	display: inline-block;
	height: 100%;
	position: relative;
}

.overlay ul li {
	display: block;
	height: 20%;
	height: calc(100% / 8);
	min-height: 40px;
}

.overlay ul li a {
	font-size: 1.3em;
	font-weight: 400;
	padding: 5px 30px;
	display: block;
	color: #fff;
}

.overlay ul li a:hover,
.overlay ul li a:focus,
.overlay ul li.active a{
	color: #ff9168;
	background: #fff;
}

/* Effects */
.overlay-hugeinc {
	opacity: 0;
	visibility: hidden;
	-webkit-transition: opacity 0.5s, visibility 0s 0.5s;
	transition: opacity 0.5s, visibility 0s 0.5s;
}

.overlay-hugeinc.open {
	opacity: 1;
	visibility: visible;
	-webkit-transition: opacity 0.5s;
	transition: opacity 0.5s;
}

.overlay-hugeinc nav {
	-webkit-perspective: 1200px;
	perspective: 1200px;
}

.overlay-hugeinc nav ul {
	opacity: 0.4;
	-webkit-transform: translateY(-25%) rotateX(35deg);
	transform: translateY(-25%) rotateX(35deg);
	-webkit-transition: -webkit-transform 0.5s, opacity 0.5s;
	transition: transform 0.5s, opacity 0.5s;
}

.overlay-hugeinc.open nav ul {
	opacity: 1;
	-webkit-transform: rotateX(0deg);
	transform: rotateX(0deg);
}

.overlay-hugeinc.close nav ul {
	-webkit-transform: translateY(25%) rotateX(-35deg);
	transform: translateY(25%) rotateX(-35deg);
}

@media screen and (max-height: 30.5em) {
	.overlay nav {
	 top: 70%;
	 height: 80%;
	 font-size: 1em;
	 line-height: 100%;
	}
	.overlay ul {
	 width: 100%;
	 min-height: 30px;
	}
	.overlay ul li {
	 float: left;
	 height: calc(100% / 6);
	 width: 50%;
	 min-height: 30px;
	}
	.overlay ul li a {
		padding: 11px 30px;}
}
   