@charset "UTF-8";
/* Mandarin Island Nav CSS Document */

/*nav*/
nav {
	background: var(--red);
	position: sticky;
	top: 0;
	z-index: 100;
}
.navigation {
	display: flex;
	justify-content: center;
	list-style-type: none;
}
.navigation > li {
	position: relative;
	text-shadow: 1px 1px 1px #333;
}
.navigation > li ~ li {
	margin-left: 1vw;
}
.navigation > li a {
	font-size: calc(1.2rem + 0.6vw);
	color: white;
	padding: 8px 1vw;
	display: block;
}
.navigation > li a:hover {
	color: black;
	background: orange;
	text-shadow: none;
}

.navigation ul {
	list-style-type: none;
	background: hsl(0, 0%, 45%);
	max-height: 0;
	position: absolute;
	top: 45px;
	left: 0;
	overflow: hidden;
	z-index: 20;
	display: flex;
	flex-flow: column;
	text-align: center;
	transition: max-height 800ms ease-in-out;
}
.navigation li:hover ul {
	max-height: 700px;
}
.navigation ul li {
	border-bottom: solid 1px ivory;
}
.navigation ul li:last-child {
	border-bottom: none;
}
.navigation ul li a {
	font-size: calc(1.2rem + 0.2vw);
	font-weight: 300;
	color: ivory;
	padding: 3px 1.5vw;
	display: block;
	white-space: nowrap;
}
.navigation ul li a:hover {
	background: olivedrab;
	color: linen;
}

.toggle-label, .toggle {
	display: none;
}


@media (max-width: 992px) {
.navigation ul {
		top: 40px;
}
}

@media (max-width: 576px) {
	
nav {
	background: var(--red);
	padding: 6px 0;
	position: relative;
	height: 45px;
	
}
.toggle-label {
		display: block;
		cursor: pointer;
		height: 40px;
		width: 50px;
		padding: 15px 0 ;
		margin: 0 auto;
		transition: width 300ms ease-in-out;
	}
	.toggle-label:hover {
		width: 120px;
	}
	
.toggle-label span,
.toggle-label span::before,
.toggle-label span::after {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: white;
    position: relative;
}
.toggle-label span::before {
     content: '';
     position: absolute;
     bottom: 10px;
     }
.toggle-label span::after {
     content: '';
     position: absolute;
     top: 10px;
     }
	
.navigation {
		max-height: 0;
		width: 100%;
		background: rgb(210, 35, 42);
		flex-flow: column;
		position: absolute;
		top: 45px;
		left: 0;
		z-index: 99;
		overflow: hidden;
		text-align: center;
		transition: max-height 800ms ease-in;
	}
input:checked + .navigation {
		max-height: 1000px;
	}
.navigation li {
		padding: 0;
	}
.navigation li ~ li {
		margin-left: 0;
	}
.navigation > li a {
		font-size: 2rem;
		display: block;
		color: white;
		font-weight: 400;
		padding: 6px 0;
		border-top: solid 1px white;
		text-shadow: none;
		transition: all 300ms ease-in-out;
	}
.navigation > li a:hover {
		background: orange;
	}
	.navigation ul {
		position: static;
		box-shadow: none;
		padding: 0;
		width: 90%;
		margin: 0 auto;
		display: flex;
		flex-flow: row;
		flex-wrap: wrap;
	}
	.navigation ul li {
		width: calc(50% - 10px);
		margin: 0 5px;
	}
	.navigation ul li a {
		font-size: 1.6rem;
		color: white;
		border-top: none;
		}
	.navigation ul li a:hover {
		color: white;
		transform: translateX(0);
		margin-right: 0;
		}
		
	
}

