.topnav {
  overflow: hidden;
  border-radius: 0px 0px 15px 15px;
  background: rgba(29, 29, 29, 0.8);
  backdrop-filter: blur(5px);
  width: fit-content;

  /* fixed */
  top: 0px;
  right: 0px;
  left: 0px;
  margin-right: auto;
  margin-left: auto;
  position: fixed;

  /* center to screen */
  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 99;
}

.index {
  text-align: end;
  font-size: 1.2em;
  transition: 0.5s;
}

.vl {
  border-left: 1px solid #ffffff;
  height: 60px;
  margin-right: 10px;
}

.selected {
  padding: 20px 0px;
  border-radius: 5px;
  /* background-color: gray; */
}

.topnav a {
  width: 90px;
  color: #f2f2f2;

  display: block;
  float: left;

  margin-right: 10px;
  padding: 15px 5px;

  text-align: center;
  text-decoration: none;
  font-size: 1.2em;
  font-family: "Libre Baskerville";
  font-weight: 350;
}

.topnav .index:hover {
  font-weight: 600;
}

.topnav a.active > .selected {
  background-color: #2d2d2d;
}

.topnav a:hover > .selected {
  background-color: #2d2d2d;
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .vl {
    border-left: 30px solid #ffffff;
    height: 1px;
  }

  .for-nav,
  .vl {
    display: none;
  }

  .index {
    text-align: center;
  }

  .topnav.responsive {
    padding-top: 10px;
    padding-bottom: 10px;
    position: fixed;
    width: 60%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .topnav.responsive .icon {
    position: static;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    height: fit-content;
    padding: 2px 10px;
    display: block;
    text-align: center;
  }
}
