@import url(https://fonts.googleapis.com/css?family=Lato:300);
* {
  margin: 0;
  padding: 0;
}
*, *:before, *:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}


#main-nav, #main-nav ul, #main-nav li  {
  height:24px;
  font-size:.8em;
  font-weight:100;
  cursor:pointer;
}

#main-nav ul {
  list-style: none;
  display: -webkit-flex;
  display: flex;
  background: #0d3349;
}
#main-nav li {
  background: #70a678;
  width: 100%;
  -webkit-transition: width 0.3s ease-out;
  transition: width 0.3s ease-out;
  /* center */
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}
#main-nav li:hover {
  width: 200%;
}
#main-nav li:nth-child(2) {
  background: #7771b9;
}
#main-nav li:nth-child(3) {
  background: #b97296;
}
#main-nav li:nth-child(4) {
  background: #6998b9;
}

#main-nav a {
  font-weight: normal;
  text-decoration: none;
  text-align: center;
  color: #fff;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
#main-nav a:hover {
  background: rgba(255,255,255,.2);
}