#MagicNav2 {
	font-family: "Poppins", sans-serif;
	position: relative;
	margin-top: 35px;
	width: 400px;
	height: 60px;
	background: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 10px;
}
#MagicNav2 ul {
	display: flex;
	width: 350px;
}
#MagicNav2 ul li {
	list-style: none;
	position: relative;
	width: 70px; /* 350 / 5 = 70 */
	height: 60px;
	z-index: 2;
}
#MagicNav2 ul li a {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	width: 100%;
	text-align: center;
	font-weight: 500;
}
#MagicNav2 ul li a .icon {
	position: relative;
	display: block;
	line-height: 65px;
	font-size: 1.5em;
	transition: 0.5s;
	color: #222327;
}
#MagicNav2 ul li.active a .icon {
	transform: translateY(-35px);
	color: #2196f3;
}
#MagicNav2 ul li a .text {
	position: absolute;
	background: #2196f3;
	color: #fff;
	padding: 2px 7px;
	border-radius: 12px;
	font-weight: 400;
	font-size: 0.75em;
	letter-spacing: 0.05em;
	transition: 0.5s;
	opacity: 0;
	transform: translateY(15px);
}
#MagicNav2 ul li.active a .text {
	transform: translateY(-4px);
	opacity: 1;
}
#MagicNav2 .indicator {
	position: absolute;
	top: -35px;
	width: 70px;
	height: 70px;
	background: #fff;
	border-radius: 50%;
	z-index 1;
	transition: 0.5s;
}
#MagicNav2 .indicator::before {
	content: "";
	position: absolute;
	top: 5px;
	left: -28px;
	width: 30px;
	height: 30px;
	background: transparent;
	border-radius: 50%;
	box-shadow: 15px 18px #fff;
}
#MagicNav2 .indicator::after {
	content: "";
	position: absolute;
	top: 5px;
	right: -28px;
	width: 30px;
	height: 30px;
	background: transparent;
	border-radius: 50%;
	box-shadow: -15px 18px #fff;
}
#MagicNav2 ul li:nth-child(1).active ~ .indicator {
	transform: translateX(calc(70px * 0));
}
#MagicNav2 ul li:nth-child(2).active ~ .indicator {
	transform: translateX(calc(70px * 1));
}
#MagicNav2 ul li:nth-child(3).active ~ .indicator {
	transform: translateX(calc(70px * 2));
}
#MagicNav2 ul li:nth-child(4).active ~ .indicator {
	transform: translateX(calc(70px * 3));
}
#MagicNav2 ul li:nth-child(5).active ~ .indicator {
	transform: translateX(calc(70px * 4));
}
