$nav-icon-color:rgba(255, 255, 255, 0.9);
$nav-icon-color:#000;
$nav-icon-color:#fff;

.nav-icon2 {
	width: 24px;
	height: 24px; 
	position: relative;
	// margin: 50px auto;
	@include rotate(0deg);
	@include transition(transform, .5s, ease-in-out);
	cursor: pointer;

	span {
		display: block;
		position: absolute;
		height: 2px;
		width: 50%;
		background: $nav-icon-color;
		opacity: 1;
		@include rotate(0deg);
		@include transition(all, .25s, ease-in-out);
		&:nth-child(even) {
			left: 50%;
			border-radius: 0 0px 0px 0;
		}
		&:nth-child(odd) {
			left: 0px;
			border-radius: 0px 0 0 0px;
		}
		&:nth-child(1), &:nth-child(2) {
			top: 0px;
		}
		&:nth-child(1), &:nth-child(2) {
			top: 0px;
		}

		&:nth-child(3), &:nth-child(4) {
			top: 11px;
		}

		&:nth-child(5), &:nth-child(6) {
			top: 22px;
		}
		&:nth-child(1),&:nth-child(6) {
			.main-menu-open & {
				@include rotate(45deg);
			}
		}
		&:nth-child(2),&:nth-child(5) {
			.main-menu-open & {
				@include rotate(-45deg);
			}
		}
		&:nth-child(1) {
			.main-menu-open & {
				left: 3px;
				top: 9px;
			}
		}

		&:nth-child(2) {
			.main-menu-open & {
				left: calc(50% - 2px);
				top: 9px;
			}
		}

		&:nth-child(3) {
			.main-menu-open & {
				left: -50%;
				opacity: 0;
			}
		}

		&:nth-child(4) {
			.main-menu-open & {
				left: 100%;
				opacity: 0;
			}
		}

		&:nth-child(5) {
			.main-menu-open & {
				left: 3px;
				top: 16px;
			}
		}

		&:nth-child(6) {
			.main-menu-open & {
				left: calc(50% - 2px);
				top: 16px;
			}
		}

		&:nth-child(6) {
			// opacity: 0;
			.main-menu-open & {
				left: calc(50% - 2px);
				top: 16px;
				opacity: 1;
			}
		}
	}
}




