/* Clearing floats */
.cf:before,
.cf:after {
  content: " ";
  display: table;
}

.cf:after {
  clear: both;
}

.cf {
  *zoom: 1;
}

/* Mini reset, no margins, paddings or bullets */
.menu,
.submenu {
  margin: 0;
  padding: 0;
  list-style: none;
  position:relative;
  z-index:99;
}

/* Main level */
.menu {			
  
  width: 100%;
  /* http://www.red-team-design.com/horizontal-centering-using-css-fit-content-value */
  width: -moz-fit-content;
  width: -webkit-fit-content;
  width: fit-content;	
}

    .menu > li {
        float: left;
        position: relative;
        transform: skewX(25deg);
        background: #34495e;
        border-left: 1px solid;
        border-right: 1px solid;
        border-color: azure;
    }

.menu a {
  display: block;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  

}		

.menu li:hover {
  background: #e74c3c;
}		

.menu > li > a {
  transform: skewX(-25deg);
  padding: 1em 2em;
}

/* Dropdown */
.submenu {
  position: absolute;
  width: 200px;
  left: 50%; margin-left: -100px;
  transform: skewX(-25deg);
  transform-origin: left top;


}

    .submenu li {
        background-color: #34495e;
        position: relative;
        overflow: hidden;
       
    }						

.submenu > li > a {
  padding: 1em 2em;			
}

.submenu > li::after {
  content: '';
  position: absolute;
  top: -125%;
  height: 100%;
  width: 100%;			
  box-shadow: 0 0 50px rgba(0, 0, 0, .9);			
}		

/* Odd stuff */
.submenu > li:nth-child(odd){
 

}

.submenu > li:nth-child(odd) > a {
  
}

.submenu > li:nth-child(odd)::after {
  right: -50%;
 
}				

/* Even stuff */
.submenu > li:nth-child(even){
  
}

.submenu > li:nth-child(even) > a {
 
}

.submenu > li:nth-child(even)::after {
  left: -50%;
 
}

/* Show dropdown */
    .submenu,
    .submenu li {
        opacity: 0;
        visibility: hidden;
        background: #34495e;
        border-left: 1px solid;
        border-right: 1px solid;
        border-color: azure;
    }

.submenu li {
  transition: .2s ease transform;
}

.menu > li:hover .submenu,
.menu > li:hover .submenu li {
  opacity: 1;
  visibility: visible;
}		

.menu > li:hover .submenu li:nth-child(even){
 	
}

.menu > li:hover .submenu li:nth-child(odd){
 			
}