/*Initialize*/
ul.menu{
    padding:0;
    margin: 0;
    
}
ul.menu li, ul.menu ul.submenu li {
    list-style-type: none;
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
    
}
/*Link Appearance*/
ul.menu li a{
    text-decoration: none;
    color:#8D38C9;
    background: .666;
    padding: 5px;
    display:inline-block;
    margin-left: 30px;
	 margin-right: 30px;
}
ul.menu a:after {
content: '';
display: block;
height: 2px;
width: 0;
background: transparent;
-webkit-transition: width .5s ease, background-color .5s ease;
-moz-transition: width .5s ease, background-color .5s ease;
-o-transition: width .5s ease, background-color .5s ease;
transition: width .5s ease, background-color .5s ease;
}
ul.menu li a:hover:after {
	width: 100%;
	background: #FFF;  

}
ul.menu a.active { 	 
    color: #FFF;  
    border-bottom: 2px solid #FFF;  
    font-weight: bold;
    height: 20px;
    
	
}
/*Make the parent of sub-menu relative*/
ul.menu li {
    position: relative;
}
/*sub menu*/
ul.menu li ul.submenu {
    display:none;
    position: absolute;
    top: 30px;
    left: 0;
    width: 100px;
}
ul.menu li:hover ul.submenu {
    display:block;
    z-index: 10;
   
    -webkit-perspective: 400px;
    -moz-perspective: 400px;
    -ms-perspective: 400px;
    -o-perspective: 400px;
    perspective: 400px;

}

ul.menu li:hover ul.submenu li a{
	
    width:250px;
    background-color: #FFF;
    border-bottom: 1px solid #fff;
    font-size: 12px;
    font-weight: normal;
    /* gradient */
		background: rgb(255,255,255); /* Old browsers */
		background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(229,229,229,1) 5%); /* FF3.6+ */
		background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(5%,rgba(229,229,229,1))); /* Chrome,Safari4+ */
		background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(229,229,229,1) 5%); /* Chrome10+,Safari5.1+ */
		background: -o-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(229,229,229,1) 5%); /* Opera 11.10+ */
		background: -ms-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(229,229,229,1) 5%); /* IE10+ */
		background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(229,229,229,1) 5%); /* W3C */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */

		padding-left: 10px;
}
/* keyframes #animation */
@-webkit-keyframes animation {
    0% {
        -webkit-transform: scale(1);
    }
    30% {
        -webkit-transform: scale(1.2);
    }
    100% {
        -webkit-transform: scale(1.1);
    }
}
@-moz-keyframes animation {
    0% {
        -moz-transform: scale(1);
    }
    30% {
        -moz-transform: scale(1.2);
    }
    100% {
        -moz-transform: scale(1.1);
    }
}
ul.menu li:hover ul.submenu li a:hover{
    color: #000;
    
    -webkit-animation-name: animation;
    -webkit-animation-duration: 0.3s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-direction: normal;
    -webkit-animation-delay: 0;
    -webkit-animation-play-state: running;
    -webkit-animation-fill-mode: forwards;

    -moz-animation-name: animation;
    -moz-animation-duration: 0.3s;
    -moz-animation-timing-function: linear;
    -moz-animation-iteration-count: 1;
    -moz-animation-direction: normal;
    -moz-animation-delay: 0;
    -moz-animation-play-state: running;
    -moz-animation-fill-mode: forwards;
    
}
