#header {
  width: 100%;
  height: 75px;

  display: flex;
  justify-content: space-between;

  padding: 1rem;

  background: #e7e7e7;

  position: fixed;
  top: 0;
}

a {
  color: black;
  text-decoration: none;
  font-family: sans-serif;
  border-radius: 15px;
}
a:hover {
  background: rgba(0, 0, 0, 0.5);
}

#logo {
  font-size: 1.5rem;
  font-weight: bold;
}

#header {
  width: 100%;
  display: flex;
  height: 75px;
  padding: 1rem;
  align-items: center;
  justify-content: space-between;
  background: #afacac;
}

#menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

#menu a {
  display: block;
  padding: 0.5rem;
}

#btn-mobile {
  display: none;
}

@media (max-width: 600px) {
  #menu {
    display: block;
    position: absolute;
    width: 100%;
    top: 75px;
    right: 0px;
    height: 0px;
    background: #e7e7e7;
    transition: 0.6s;
    z-index: 1000;
    visibility: hidden;
    overflow-y: hidden;
  }

  #nav.active #menu {
    height: calc(100vh - 75px);
    visibility: visible;
    overflow-y: auto;
  }

  #menu a {
    padding: 1rem 0;
    margin: 0 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  }

  #btn-mobile {
    display: flex;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    gap: 0.5rem;
  }

  #iconM {
    width: 20px;
    border-top: 2px solid;
    display: block;
  }

  #iconM::after,
  #iconM::before {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin-top: 5px;
    transition: 0.3s;
    position: relative;
  }

  #nav.active #iconM {
    border-color: transparent;
  }

  #nav.active #iconM::before {
    transform: rotate(135deg);
  }

  #nav.active #iconM::after {
    transform: rotate(-135deg);
    top: -7px;
  }
}
