/* Common styles for all menus */
.menu {
}

.menu__list {
}

.menu__item {
	display: block;
	margin: 1em 0;
}

.menu__link {
	font-size: 1.05em;
	font-weight: bold;
	display: block;
	padding: 1em;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	-khtml-user-select: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.menu__link:hover,
.menu__link:focus {
	outline: none;
}

/* Individual styles */

/* Cordelia (by @vivien_le_neez) */
.menu--cordelia .menu__item {
	position: relative;
}

.menu--cordelia .menu__link {
	-webkit-transition: color 0.3s;
	transition: color 0.3s;
}

.menu--cordelia .menu__item--current .menu__link {
	color: #e81a19;
	-webkit-transition: color 0.6s;
	transition: color 0.6s;
}

.menu--cordelia .menu__item::before,
.menu--cordelia .menu__item::after {
	content: '';
	position: absolute;
	z-index: 10;
	width: 100%;
	height: 2px;
	background: #e81a19;
	-webkit-transform: scale3d(0, 1, 1);
	transform: scale3d(0, 1, 1);
	-webkit-animation-fill-mode: initial;
	animation-fill-mode: initial;
}

.menu--cordelia .menu__item::before {
	top: 0;
	right: 0;
	-webkit-transform-origin: 100% 50%;
	transform-origin: 100% 50%;
}

.menu--cordelia .menu__item::after {
	bottom: 0;
	left: 0;
	-webkit-transform-origin: 0% 50%;
	transform-origin: 0% 50%;
}

.menu--cordelia .menu__item--current::before {
	-webkit-animation: anim-cordelia-top 0.6s linear both;
	animation: anim-cordelia-top 0.6s linear both;
}

.menu--cordelia .menu__item--current::after {
	-webkit-animation: anim-cordelia-bottom 0.6s linear both;
	animation: anim-cordelia-bottom 0.6s linear both;
}

@-webkit-keyframes anim-cordelia-top {
	0% {
		-webkit-transform: scale3d(0, 1, 1);
		transform: scale3d(0, 1, 1);
	}

	10% {
		-webkit-transform: scale3d(0.05, 1, 1);
		transform: scale3d(0.05, 1, 1);
		-webkit-animation-timing-function: ease-in;
		animation-timing-function: ease-in;
	}

	50% {
		-webkit-transform: translate3d(-95%, 0, 0) scale3d(0.05, 1, 1);
		transform: translate3d(-95%, 0, 0) scale3d(0.05, 1, 1);
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out;
	}

	100% {
		-webkit-transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
		transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
	}
}

@keyframes anim-cordelia-top {
	0% {
		-webkit-transform: scale3d(0, 1, 1);
		transform: scale3d(0, 1, 1);
	}

	10% {
		-webkit-transform: scale3d(0.05, 1, 1);
		transform: scale3d(0.05, 1, 1);
		-webkit-animation-timing-function: ease-in;
		animation-timing-function: ease-in;
	}

	50% {
		-webkit-transform: translate3d(-95%, 0, 0) scale3d(0.05, 1, 1);
		transform: translate3d(-95%, 0, 0) scale3d(0.05, 1, 1);
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out;
	}

	100% {
		-webkit-transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
		transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
	}
}

@-webkit-keyframes anim-cordelia-bottom {
	0% {
		-webkit-transform: scale3d(0, 1, 1);
		transform: scale3d(0, 1, 1);
	}

	10% {
		-webkit-transform: scale3d(0.05, 1, 1);
		transform: scale3d(0.05, 1, 1);
		-webkit-animation-timing-function: ease-in;
		animation-timing-function: ease-in;
	}

	50% {
		-webkit-transform: translate3d(95%, 0, 0) scale3d(0.05, 1, 1);
		transform: translate3d(95%, 0, 0) scale3d(0.05, 1, 1);
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out;
	}

	100% {
		-webkit-transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
		transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
	}
}

@keyframes anim-cordelia-bottom {
	0% {
		-webkit-transform: scale3d(0, 1, 1);
		transform: scale3d(0, 1, 1);
	}

	10% {
		-webkit-transform: scale3d(0.05, 1, 1);
		transform: scale3d(0.05, 1, 1);
		-webkit-animation-timing-function: ease-in;
		animation-timing-function: ease-in;
	}

	50% {
		-webkit-transform: translate3d(95%, 0, 0) scale3d(0.05, 1, 1);
		transform: translate3d(95%, 0, 0) scale3d(0.05, 1, 1);
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out;
	}

	100% {
		-webkit-transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
		transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
	}
}
/* End: tantalid Styles */

/* YOUR STYLE (Shakespeare character name) see README.md for details */
/* (Please copy these two lines and insert after your custom styles) */


/* Name (by @you) */

/* [Your styles here]*/

/* End: Name Styles */


/* Media queries */

/* Stack items for smaller screens */
@media screen and (max-width:55em) {
	.menu__list {
		display: block;
		margin: 0 auto;
	}
}
