navbar {
  position: absolute;
  z-index: 100;
}

navbar ul {
  top: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background-color: #fff;
  opacity: 0.9;
}

navbar li a {
  display: block;
  padding: 6px 10px;
  border-right: 1px solid #f4f4f4;
  text-decoration: none;
}

section a:link {
  color: midnightblue;
}

section a:visited {
  color: saddlebrown;
}

section a:hover {
  color: dodgerblue;
}

section a:active {
  color: blue;
}

navbar li a:hover,
navbar .menu-btn:hover {
  background-color: #f4f4f4;
}

navbar .logo {
  display: block;
  float: right;
  font-size: 2em;
  padding: 10px 20px;
  text-decoration: none;
}

/* menu */

navbar .menu {
  clear: both;
  max-height: 0;
  transition: max-height .2s ease-out;
  width: 200px;
}

/* menu icon */

navbar .menu-icon {
  cursor: pointer;
  display: inline-block;
  float: right;
  padding: 28px 20px;
  position: relative;
  user-select: none;
}

navbar .menu-icon .navicon {
  background: #333;
  display: block;
  height: 2px;
  position: relative;
  transition: background .2s ease-out;
  width: 18px;
}

navbar .menu-icon .navicon:before,
navbar .menu-icon .navicon:after {
  background: #333;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}

navbar .menu-icon .navicon:before {
  top: 5px;
}

navbar .menu-icon .navicon:after {
  top: -5px;
}

/* menu btn */

navbar .menu-btn {
  display: none;
}

navbar .menu-btn:checked ~ .menu {
  max-height: 100%;
}

navbar .menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}

navbar .menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}

navbar .menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}

navbar .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
navbar .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  top: 0;
}


@media (min-width: 768px) {
  .navbar-a {
    position: fixed;
    top: 0px;
    right: 0px;
    z-index: 1000;
}
 navbar li {
    top: 0;
    float: right;
  }
  navbar li a {
    padding:10px 15px;
  }
  navbar .menu {
    clear: none;
    float: right;
    width: 100%;
    height: 40px;
    font-size: 14px;
    max-height: none;
  }
  navbar .menu-icon {
    display: none;
  }
 }