* {
  padding: 0;
  margin: 0;
}

body {
  display: flex;
  justify-content: center;
  background-color: #2c3e50;
  font-family: "Ubuntu";
  font-weight: 500;
}

.navbar {
  position: relative;
  margin: 0;
  margin-top: 20px;
  width: 590px;
  height: 50px;
  background: #34495e;
  border-radius: 8px;
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1);
  font-size: 0;
}

.navbar a {
  font-size: 15px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 50px;
  color: white;
  position: relative;
  z-index: 1;
  display: inline-block;
  text-align: center;
}

.navbar .animate {
  position: absolute;
  top: 0;
  width: 0;
  height: 5px;
  background-color: #1abc9c;
  /* border-radius: 8px; */
  z-index: 0;
  transition: 0.5s;
}

.navbar a:hover ~ .animate {
  height: 100%;
  border-radius: 8px;
}

.navbar a:nth-child(1) {
width: 100px;
}
.navbar .start-home, a:nth-child(1):hover ~ .animate {
  width: 100px;
  left: 0;
}

.navbar a:nth-child(2) {
width: 110px;
}

.navbar .start-about, a:nth-child(2):hover ~ .animate {
  width: 110px;
  left: 100px;
}

.navbar a:nth-child(3) {
width: 100px;
}

.navbar .start-blog, a:nth-child(3):hover ~ .animate {
  width: 100px;
  left: 210px;
}

.navbar a:nth-child(4) {
width: 160px;
}

.navbar .start-portfolio, a:nth-child(4):hover ~ .animate {
  width: 160px;
  left: 310px;
}

.navbar a:nth-child(5) {
width: 120px;
}

.navbar .start-contact, a:nth-child(5):hover ~ .animate {
  width: 120px;
  left: 470px;
}
