
nav {
  padding: 5px 5%;
  /*background: #000;*/
  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;
}
nav .logo {
  display: flex;
  align-items: center;
}
nav .logo img {
  height: 90px;
  width: auto;
  margin-right: 10px;
}


nav ul {
  list-style: none;
  display: flex;
}
nav ul li {
  margin-left: 1.5rem;
}
nav ul li a {
  text-decoration: none;
  /*color:#ffffff;*/
  color: #000000;
  font-weight: 600;
  font-size: 95%;
  padding: 4px 8px;
  border-radius: 5px;
}

nav ul li a:hover {
  background-color: #f5f5f5;
  color: #000000;
}

.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: fixed;
  top: 0;
  right: -60%; /* Changed from left to right */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 60%;
  padding: 20% 0;
  background: rgba(0,0,0,1);
  transition: all 0.5s ease-in;
  z-index: 2;
  height: 100vh;
}
.active {
  right: 0; /* Changed from left to right */
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.menubar ul {
  padding: 0;
  list-style: none;
}
.menubar ul li {
  text-align:right;
  margin-bottom: 32px;
}

.menubar ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 95%;
  padding: 5px 10px;
  border-radius: 5px;
}

.menubar ul li a:hover {
  background-color: #f5f5f5;
  color:#000000;
}
@media screen and (max-width: 790px) {
  .hamburger {
    display: block;
  }

  nav .logo img {
    height: 120px;
  }
  nav ul {
    display: none;
  }
}
