/* navbar */
.navbar {
  position: sticky;
  z-index: 100;
  width: 100%;
  height: var(--navbar-margin);
  padding: 0 2rem;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--background-800);
  color: #fff;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);

  & .logo {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;

    & img {
      height: 3rem;
      vertical-align: middle;
    }
  }
}

.navbar-links {
  display: flex;
  align-items: center;
}

.menu {
  list-style-type: none;
  padding: 0;
  display: flex;
  gap: 15px;

  & li a {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    font-size: var(--step-0);

    &:hover {
      background-color: var(--primary-800);
    }
  }

  &[data-visible="true"] {
    display: flex;
  }

  & .menu-login {
    display: none;
  }
}

.menu li a.active {
  background-color: var(--primary-600);
  font-weight: bold;
}

.menu-button {
  display: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: white;
  padding: 8px 10px;
  width: fit-content;
}


.login-button{
  border-radius: 0.5rem;
  & a {
    color: black;
  }
} 

@media (max-width: 40em) {
  .menu {
    gap: 2rem;
    flex-direction: column;
    width: 100%;
    background-color: #222;
    position: absolute;
    top: var(--navbar-margin);
    left: 0;
    z-index: 99;
    padding: 1rem 0;
    display: none;

    & .menu-login {
    display: block;
  }
  }

  .menu li {
    text-align: center;
    & a {
      font-size: var(--step-4);
    }
  }

  .menu-button {
    display: block;
  }

  .navbar-right {
    display: none;
  }

  
}
