.header nav ul {
  display: flex;
  border-radius: 10px;
}

.header ul li a {
  font-size: 2rem;
  font-weight: 500;
  padding: 10px 20px;
  transition: 0.3s;
  border-radius: 50px;
  text-align: center;
}

.header ul li a:hover {
  background-color: var(--dark-color);
  color: var(--medium-color);
}

/* REPONSIVE */

.header .menu {
  display: none;
  width: 60px;
  height: 60px;
  align-self: flex-end;
}
.header .menu:hover {
  background-color: var(--medium-color);

  border-radius: 10px;
}
.header nav label {
  display: flex;
  flex-direction: column;
}

.header .hamburguer {
  background-color: #000;
  position: relative;
  display: block;
  width: 30px;
  height: 2px;
  top: 29px;
  left: 15px;
  transition: 0.5s ease-in-out;
}

.header .hamburguer:before,
.header .hamburguer:after {
  background-color: black;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  transition: 0.2s ease-in-out;
}

.header .hamburguer:before {
  top: -10px;
}
.header .hamburguer:after {
  bottom: -10px;
}

.header input {
  display: none;
}

.header input:checked ~ label .hamburguer {
  transform: rotate(45deg);

  /* Quando for clicado no label será realizada uma animação */
}
.header input:checked ~ label .hamburguer::before {
  transform: rotate(90deg);
  top: 0;
}

.header input:checked ~ label .hamburguer::after {
  transform: rotate(90deg);
  bottom: 0;
}

@media (max-width: 900px) {
  .header .menu {
    display: block;
  }

  .header nav ul {
    display: none;
  }

  .header input:checked ~ ul {
    display: block;
  }

  .header nav {
    position: absolute;
    top: 30px;
    right: 20px;
    z-index: 1;
  }

  .header nav ul {
    width: 200px;
    background-color: var(--medium-color);
    padding: 20px;
  }

  header nav ul a {
    text-align: center;
    padding: 20px;
    display: block;
  }
}
