@import 'reset.css';

.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1;
  display: none;
  border-bottom: 0.1rem solid var(--light-gray-color);
  background-color: #1f949d;
}

.menu-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  height: 100vh;
}

.menu h1 {
  font-size: 2.3rem;
  color: var(--primary-color);
}

.menu h1 a {
  color: inherit;
}

.menu ul {
  list-style: none;
  display: flex;
}

.menu ul li a {
  display: block;
  padding: 2rem;
  font-size: 1.8rem;
 color: var(--primary-color);   /*cor fonte menu hamb */
  position: relative;
}

/* .menu ul li a::after {
  content: '';
  position: absolute;
  bottom: 1rem;
  left: 50%;
  width: 0;
  height: 0.2rem;
  background: var(--secondary-color);
  transition: all 300ms ease-in-out;
}

.menu ul li a:hover::after {
  width: 50%;
  left: 25%;
} */

.menu-content,
.menu-content ul {
  flex-direction: column;
  justify-content: center;
}

.close-menu{
  display: none;
}
/* .close-menu-label::after {
  content: 'Menu';
  position: fixed;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  background: #7a7a7aaf;
  color: var(--white-color);
  font-size: 1.5rem;
  line-height: 3rem;
  width: 10rem;
  height: 3rem;
  text-align: center;
  padding: 0rem;
  cursor: pointer;
  border-radius: 10px;
} */

.close-menu:checked~.menu {
  display: block;
}

.close-menu:checked~.close-menu-label::after {
  content: '×';
}


@media (max-width: 1199px) {
  .close-menu-label::after {
    content: '☰';
    position: fixed;
    z-index: 2;
    top: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: #000000;
    font-size: 3rem;
    line-height: 3rem;
    width: 3rem;
    height: 3rem;
    text-align: center;
    padding: 0.5rem;
    cursor: pointer;
  }
}

@media (max-width: 280px) {
  .menu {
    bottom: 0;
    text-align: center;
  }

  .menu-content,
  .menu-content ul {
    flex-direction: column;
    justify-content: center;
  }

  .menu-content {
    height: 100vh;
  }

  .menu {
    display: none;
  }

  .close-menu:checked~.menu {
    display: block;
  }

  .menu-spacing {
    display: none;
  }
}