/*** ESSENTIAL STYLES ***/

.menu-alert {
    background: #e7e7e7;
    padding: 10px;
}

.menu, .menu * {
	margin: 0;
	padding: 0;
	list-style: none;
}
.menu li {
	position: relative;
}
.menu ul {
	position: absolute;
	display: none;
	top: 35px;
	right: 0;
	z-index: 99;
}

.menu > li {
	float: right;
}
.menu li:hover > ul,
.menu li.sfHover > ul {
	display: block;
	-webkit-animation: flipInX .5s ease-in-out;
  -moz-animation: flipInX .5s ease-in-out;
  -ms-animation: flipInX .5s ease-in-out;
  -o-animation: flipInX .5s ease-in-out;
  animation: flipInX .5s ease-in-out;
}

@-webkit-keyframes flipInX {
  0% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
            transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    -webkit-transition-timing-function: ease-in;
            transition-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
            transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    -webkit-transition-timing-function: ease-in;
            transition-timing-function: ease-in;
  }

  60% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
            transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }

  80% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
            transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }

  100% {
    -webkit-transform: perspective(400px);
            transform: perspective(400px);
  }
}

@keyframes flipInX {
  0% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
            transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    -webkit-transition-timing-function: ease-in;
            transition-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
            transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    -webkit-transition-timing-function: ease-in;
            transition-timing-function: ease-in;
  }

  60% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
            transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }

  80% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
            transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }

  100% {
    -webkit-transform: perspective(400px);
            transform: perspective(400px);
  }
}

.menu a {
	display: block;
	position: relative;
}
.menu ul ul {
	top: 0;
	right: 100%;
}


/*** DEMO SKIN ***/
.menu {
    background: #e7e7e7;
}
.menu ul {
	box-shadow: 2px 2px 6px rgba(0,0,0,.2);
	min-width: 12em; /* allow long menu items to determine submenu width */
	*width: 12em; /* no auto sub width for IE7, see white-space comment below */
}
.menu a {
	border-right: 1px solid #fff;
	padding: 5px 15px;
	text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    min-width: 100px;
    text-align: center;
}

.menu > li:first-child > a {
    border-right: none;
	padding-right: 40px;
    position: relative;
}

.menu > li:first-child > a:before {
    content: " ";
	position: absolute;
	height: 33px;
	width: 33px;
	background-image: url("../images/home.png");
	background-position: center center;
	background-repeat: no-repeat;
	right: 4px;
	bottom: 0;
}

.menu > li > a:after {
  display: block;
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 10px;
  background-color: #005072;
  content: "";
  -webkit-transition: all 0.4s;
  -moz-transition: all 0.4s;
  -o-transition: all 0.4s;
  transition: all 0.4s;
}
.menu > li > a:hover {
  color: #005072;
}
.menu > li > a:hover:after {
  width: 100%;
}

.menu a {
	color: #009fe3;
}
.menu li {
	background: #e7e7e7;
	white-space: nowrap; /* no need for Supersubs plugin */
	*white-space: normal; /* ...unless you support IE7 (let it wrap) */
	-webkit-transition: all .2s;
	transition: all .2s;
}
.menu ul li {
	background: #e9e9e9;
}
.menu ul ul li {
	background: #eaeaea;
}

.menu li:hover,
.menu li.sfHover {
    background: #ccc;
    /* only transition out, not in */
    -webkit-transition: none;
    transition: none;
}

.menu > li:hover {
    background: #009fe3;
}

.menu > li:hover > a {
    color: #fff;
}

/*** arrows (for all except IE7) **/
.sf-arrows .sf-with-ul {
	padding-left: 2.5em;
}
/* styling for both css and generated arrows */
.sf-arrows .sf-with-ul:after {
	content: '';
	position: absolute;
	top: 50%;
	left: 1em;
	margin-top: -3px;
	height: 0;
	width: 0;
	/* order of following 3 rules important for fallbacks to work */
	border: 5px solid transparent;
	border-top-color: #009fe3;
}
.sf-arrows > li > .sf-with-ul:focus:after,
.sf-arrows > li:hover > .sf-with-ul:after,
.sf-arrows > .sfHover > .sf-with-ul:after {
	border-top-color: white; /* IE8 fallback colour */
}
/* styling for left-facing arrows */
.sf-arrows ul .sf-with-ul:after {
	margin-top: -5px;
	margin-left: -3px;
	border-color: transparent;
	border-right-color: #009fe3;
}
.sf-arrows ul li > .sf-with-ul:focus:after,
.sf-arrows ul li:hover > .sf-with-ul:after,
.sf-arrows ul .sfHover > .sf-with-ul:after {
	border-right-color: white;
}
