@import url("https://fonts.googleapis.com/css?family=Muli&display=swap");

* {
  box-sizing: border-box;
}

body {
	background-color: #eafbff;
	background-image: linear-gradient(to bottom, #eafbff 0%, #eafbff 50%, #5290f9 50%, #5290f9 100%);
  font-family: "Muli", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}

nav {
	background-color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
	width: 80px;
	border-radius: 3px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
	transition: width .6s linear;
}

nav.active {
	width: 350px;
}

nav ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 0;
	transition: width .6s linear;
}

nav.active ul {
	width: 100%;
}

nav ul li {
	transform: rotateY(0deg);
	opacity: 0;
	transition: transform .6s linear, opacity .6s linear;
}

nav.active ul li {
	transform: rotateY(360deg);
	opacity: 1;
}

nav ul li a {
	position: relative;
	color: #000;
	text-decoration: none;
	margin: 0 10px;
}

.icon {
	background-color: #fff;
	border: 0;
	height: 30px;
	width: 30px;
	cursor: pointer;
	position: relative;
}

.icon .line {
	background-color: #5290f9;
	height: 2px;
	width: 20px;
	position: absolute;
	top: 10px;
	left: 5px;
	transition: transform .6s linear;
}

.icon .line2 {
	/* top: auto;
	bottom: 10px; */
	top: 20px;
}

nav.active .icon .line1 {
	transform: rotate(-765deg) translateY(5.5px);
}

nav.active .icon .line2 {
	transform: rotate(765deg) translateY(-5.5px);
}