
/* Overlay style */
.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: #5e89cc;
	z-index: 9999;
	
}

/* Overlay closing cross */
.overlay .overlay-close {
	display:block;
	width: 8%;
	height: 8%;
	position: absolute;
	right: 3%;
	top: 5%;
	overflow: hidden;
	border: none;
	background: url(../images/cross.svg) 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: 20vh;
	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:70%;
	list-style: none;
	padding: 0;
	margin: 0 auto;
	font-size: 1.5rem;
	color: #666;
	text-align: left;
	height: 90%;
	position: relative;
	background:none;
}


/* Effects */
.overlay-slidedown {
	visibility: hidden;
	-webkit-transform: translateX(-100%);
	transform: translateX(-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: translateX(0%);
	transform: translateX(0%);
	-webkit-transition: -webkit-transform 0.4s ease-in-out;
	transition: transform 0.4s ease-in-out;
}

.overlay nav{
    display: flex;
    top:0;
    align-items: center;
  }

  .overlay nav ul{
    display: flex;
    flex-flow:column wrap;
    justify-content:space-around;
    align-items: center;
    height: 60vh;    
  }
  .overlay nav ul li{
    width:90%;
    border:1px solid #fff; 
    border-radius: 50px;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    text-align: center;    
    &:nth-child(4){
      border-radius: 50px;
      border:1px solid #fff;
    }
  }
  .overlay nav ul li a {
    display: block;
    width:100%; 
    font-size: 1.5rem;
    color:#FFF;       
  } 

