#hamburger {
  position: relative;
  display: inline-block;
  cursor: pointer;
  height: 35px;
  width: 35px;
}

.hamburgerBar {
  position: absolute;
  width: 35px;
  height: 0px;
  border-color: black;
  border-top: 2.5px solid;
  border-bottom: 2.5px solid;
  margin: 0;
  padding: 0;
}

.hamburgerBar:nth-child(1) { top: 0; }
.hamburgerBar:nth-child(2) { top: 15px; }
.hamburgerBar:nth-child(3) { top: 30px; }

/* Rotate first bar */
.active #hamburger .hamburgerBar:nth-child(1) {
  top: 15px;
  -webkit-transform-origin: center;
  -webkit-transform: rotate(-45deg); 
  transform-origin: center;
  transform: rotate(-45deg); 
}

/* Fade out the second bar */
.active #hamburger .hamburgerBar:nth-child(2) {
  opacity: 0;
}

/* Rotate last bar */
.active #hamburger .hamburgerBar:nth-child(3) {
  top: 15px;
  -webkit-transform-origin: center;
  -webkit-transform: rotate(45deg);
  transform-origin: center;
  transform: rotate(45deg);
}

li{
  list-style: none;
}

li a{
  border: solid 1px #55152e;
  background-color: #A21A4F;
  color: white;
  padding: 10px 20px 10px 20px;
}

li a:hover{
  background-color: #093A3E;
}

@media only screen and ( max-width: 1024px) {
  #menu ul{
    display: none;
  }

  #menu.active ul{
    display: grid;
    background-color: #E01A4F;
  }

  li a{
    display: block;
  }

}
  
  @media only screen and ( min-width: 1025px) {
    #hamburger {
      display: none;
    }
    #menu ul{
      width: 100%;
      display: flex;
      justify-content: space-around;
    }
    #menu li{
      margin-top: 1em;
    }
  }