
nav {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background-color: rgb(61, 1, 27);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3%;
  box-sizing: border-box;
  padding: 15px 20px;
}

nav img {
  width: 40%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 2rem;
  color: white;
  z-index: 10;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2em;
  flex-grow: 1;
  width: 100%;
}

nav ul li {
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-family: Ubuntu, sans-serif;
  font-size: 1em;
  letter-spacing: 1px;
  transition: color 0.25s ease-in-out;
}

nav a:hover {
  color: rgb(220, 120, 0);
}

@media screen and (max-width: 768px) {

  .menu-toggle {
    display: block;
  }


  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: rgba(61, 1, 27, 15);
    width: 100%;
    position: absolute;
    top: 8%;
    left: 0;
    padding: 1em 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  }

  nav ul.active {
    display: flex;
  }


  nav img {
    width: 50%;
    margin: 0 auto;
  }


  nav a {
    font-size: 1em;
    margin: 0.5em 0;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  nav {
    height: 15%;
  }

  nav img {
    width: 20%;
  }

  nav a {
    font-size: 1.2em;
  }

  nav ul {
    gap: 1.5em;
  }
}
