nav {
  padding: 15px 5%;
  display: flex;
  /*justify-content: space-between;*/
  align-items: center;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  z-index: 1;
  background-color: #f3e4b3;
}

.menubar .close-menu {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
}

.menubar .close-menu:hover {
  color: #ff0000;
}

nav .logo {
  display: flex;
  align-items: center;
}
nav .logo img {
    max-height: 70px;
    max-width: auto;
    margin-left: 20%;
}

nav ul {
  list-style: none;
  display: flex;
}
nav ul li {
  margin-left: 0.5rem;
}
nav ul li a {
  font-family: sans-serif;
  text-decoration: none;
  color: black;
  font-size: 120%;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 5px;
  text-underline-offset: .3rem;
}

nav ul li a:hover {
  background-color: #f9f3e4;
  text-decoration: underline;
  color: black;
  cursor: pointer;
  text-underline-offset: .3rem;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger .line {
  width: 25px;
  height: 1px;
  background-color: black;
  display: block;
  margin: 7px auto;
  transition: all 0.3s ease-in-out;
}
.hamburger-active {
  transition: all 0.3s ease-in-out;
  transition-delay: 0.6s;
  transform: rotate(45deg);
}

.hamburger-active .line:nth-child(2) {
  width: 0px;
}

.hamburger-active .line:nth-child(1),
.hamburger-active .line:nth-child(3) {
  transition-delay: 0.3s;
}

.hamburger-active .line:nth-child(1) {
  transform: translateY(12px);
}

.hamburger-active .line:nth-child(3) {
  transform: translateY(-5px) rotate(90deg);
}

.menubar {
  position: absolute;
  top: 0;
  left: -60%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 60%;
  height: 100vh;
  padding: 20% 0;
  background: rgba(255, 255, 255);
  transition: all 0.5s ease-in;
  z-index: 99;
}
.active {
  text-decoration: underline;
  color:white;
  left: 0;
}

.menubar ul {
  padding: 0;
  list-style: none;
}
.menubar ul li {
  margin-bottom: 32px;
}

.menubar ul li a {
  font-family: "Sora-Regular";
  text-decoration: none;
  color: #676668;
  font-size: 120%;
  font-weight: 400;
  padding: 5px 10px;
  border-radius: 5px;
}

.menubar ul li a:hover {
  background-color: #f5f5f5;
}
@media screen and (max-width: 790px) {
  .hamburger {
    display: block;
  }
  nav ul {
    display: none;
  }

  nav {
    justify-content: space-between;
  }
  nav .logo img {
    margin-left: 50%;
  }
}
