.topnav {
  overflow: hidden;

}

.topnav a {
  float: right;
  display: block;

  text-align: center;
  padding: 15px ;
  text-decoration: none;
  font-size: 15px;
  font-style: none;
  color: black;
}



.tpa {
  color: #000;
  position: relative;
  text-decoration: none;
}

.tpa::before {
  background: hsla(130, 81%, 14%, 0.212);
  content: "";
  inset: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.40s ease-in-out;
  z-index: -1;
}

.tpa:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.topnav a.active {}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 800px) {
  .topnav a:not(:first-child) {
    display: none;
  }

  .topnav a.icon {
    float:right;
    display:block;
  }
}

@media screen and (max-width: 800px) {
  .topnav.responsive {
    position: relative;
  }

  .topnav.responsive .icon {
    color: #000;
    position: absolute;
    right: 5;
    top: 0;


  }

  .icon {
    text-align: right;
    padding: 10px 10px;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: right;
  }
}