nav {
  width: 60%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: end;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  
  padding: 0.5rem 1rem;

  img {
    width: 38px;
    height: 38px;
    background-color: var(--d);
    padding: 3px;
    border-radius: 5px;
  }
  
  #links {
    width: 100%;
    max-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    background-color: var(--l);
    border-radius: 5px;
    transition: max-height 0.3s linear;
    overflow-y: hidden;
    
    a {
      color: var(--d);
      text-transform: uppercase;
      text-decoration: none;
      padding: 10px;
    }

    :active {
      background-color: var(--l);
      color: var(--d);
      border-radius: 5px;
    }
  }

}

/* mobile */
/* @media (min-width: 320px) {
 
} */

/* landscape mobile */
/* @media (min-width: 568px) {

} */

/* tablet */
@media (min-width: 768px) {
  nav {
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: var(--gr);
  
    img {
      width: 35px;
      height: 35px;
      display: none;
    }
    
    #links {
      width: 100%;
      max-height: fit-content;
      background-color: transparent;
      display: flex;
      flex-direction: row;
      justify-content: space-evenly;
      overflow-y: auto;
  
      a {
        color: var(--l);
        text-transform: uppercase;
        text-decoration: none;
        padding: 10px;
      }
  
      :hover {
        background-color: var(--l);
        color: var(--d);
        transition: all 0.2s ease-out;
        border-radius: 5px;
      }
    }
  
  }

  
}

/* desktop */
/* @media (min-width: 1024px) {
 
} */