
/* Overlay style */
.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(140,81,142,.9);	
	z-index: 9999;
	
}

/* Overlay closing cross */
.overlay .overlay-close {
	width: 8%;
	height: 8%;
	position: absolute;
	right: 3%;
	top: 5%;
	overflow: hidden;
	border: none;
	background: url(../images/cross.png) no-repeat center center;	
	text-indent: 200%;
	color: transparent;
	outline: none;
	z-index: 999;
	background-size: 100%;
}

/* Menu style */
.overlay nav {
	display:block;
	width:100%;
	text-align: center;
	position: relative;
	top: 10vh;
	height: 90vh;
	/* -webkit-transform: translateY(-50%);
	transform: translateY(-50%); */
	z-index:70;
	background: none;
	overflow: auto;
}

.overlay ul {
	font-family:"微軟正黑體", "新細明體", "標楷體", Arial, "Arial Black";
	display: block;
	width:90%;
	list-style: none;
	padding: 0;
	margin: 0 auto;
	font-size: 1.5rem;
	color: #666;
	text-align: left;
	height: 90%;
	position: relative;
	background:none;
}

.overlay ul li {
  font-size: 1.5rem;
  font-weight: 600;
  display: block;
  width:90%;
  text-align: center;
  line-height: 1.5;
  color: #8c518e;
  margin: 5vh auto;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 5px;
  padding: 2%;


background: #fff; /* Old browsers */ 
}

.overlay ul a li { display:block;
	font-family:"微軟正黑體", "新細明體", "標楷體", Arial, "Arial Black";
	
	text-decoration:none;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
	/*height:40px;*/
	/*line-height:40px;*/       
	/*border-bottom: 1px solid #666;
	border-left: 3px solid #23569d;
	border-right: 3px solid #d0235a;*/
	overflow: hidden;
}


.overlay ul li img{ width:100%; height:auto; min-width:160px; margin: 0 auto;}

.overlay ul a:hover li,
.overlay ul a:focus li  {
	color:#123e8a;
	text-shadow: 0px 0px 2px #fff,0px 0px 2px #fff,0px 0px 2px #fff;
	box-shadow: 0px 6px 3px #0d306b;	

}

/* Effects */
.overlay-slidedown {
	visibility: hidden;
	-webkit-transform: translateY(-100%);
	transform: translateY(-100%);
	-webkit-transition: -webkit-transform 0.4s ease-in-out, visibility 0s 0.4s;
	transition: transform 0.4s ease-in-out, visibility 0s 0.4s;
	z-index:998;
}

.overlay-slidedown.open {
	visibility: visible;
	-webkit-transform: translateY(0%);
	transform: translateY(0%);
	-webkit-transition: -webkit-transform 0.4s ease-in-out;
	transition: transform 0.4s ease-in-out;
}




