nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
  text-align:left; /* sub menu text center */
  }

nav ul li {
  display:inline-block;
  }

nav a {
  display:block;
  padding:0 10px; 
  color:white; /* sub menu font color */
  font-size:14px; /* navbar font size */ 
  line-height: 30px;
  text-decoration:none;
}

/* Hide Dropdowns by Default */
nav ul ul {
  display: none;
  position: absolute; 
  top: 40px; /* the height of the main nav */
  padding-top:0px;
  padding-bottom:5px;

}
  
/* Display Dropdowns on Hover Style*/
nav ul li:hover > ul {
  z-index: 999;
  position: absolute;
  display:inherit;
  background-color: #fdc04d;
  text-decoration:none;
  color:#fdc04d;
}

.ease-in {
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  overflow: hidden;
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
  -webkit-transition-property: color, background-color;
  transition-property: color, background-color;
}
.ease-in:hover, .ease-in:focus, .ease-in:active {
  background-color:#fdc04d; /*hover background color */

}


/* Fisrt Tier Dropdown */
nav ul ul li {
  width:280px; /* dropdown menu width */
  float:none;
  display:list-item;
  position: relative;
}

/* Second, Third and more Tiers */
nav ul ul ul li {
  position: relative;
  top:-60px; 
  left:170px;

}

  
/* Change this in order to change the Dropdown symbol */
/* li > a:after { content:  '+'; } plus sign after nav 
li > a:only-child:after { content: ''; }*/

/* navbar collapses at 1200px breakpoint */
  @media (max-width: 1200px) {

nav ul li:hover > ul {
  display:inherit;
  background-color:#A0A0A0;
  text-decoration:none;
  width:100%;
  position:relative;
  margin-top:-40px;
  margin-bottom:40px;
}

.ease-in:hover, .ease-in:focus, .ease-in:active {
  background-color:#A0A0A0; /*hover background color */
}

}

@media screen and (max-width: 768px) {
nav ul li:hover > ul {
  display:inherit;
  background-color:#949494;
  text-decoration:none;
  padding-left:6px;
  width:300px;
  position:relative;
  margin-top:-40px;
  margin-bottom:40px;
}

nav a { 
  font-size:16px; /* navbar font size */ 
  line-height: 30px;
  font-weight:500;
  letter-spacing:0px;
  margin-left:-15px;
}

.ease-in:hover, .ease-in:focus, .ease-in:active {
  background-color:#949494; /*hover background color */

}

}

@media screen and (max-width: 480px) {

nav ul li:hover > ul {
  display:inherit;
  background-color:#949494; /* dropdown menu background color */
  text-decoration:none;
  padding-left:6px;
  padding-right:20px;
  width:100%;
  position:relative;
  margin-top:-40px;
  margin-bottom:40px;
  white-space: nowrap;
}

.ease-in:hover, .ease-in:focus, .ease-in:active {
  background-color:#949494; /*hover background color */
}


}
