@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  --background-color: #353836;
  color: white;
  font-family: "Poppins", sans-serif;
}

header a {
  text-decoration: none;
}

header {
  --padding: 0 20px;
  --background-color: #1d1f1d;
  --height: 75px;
  --display: flex;
  --justify-content: space-between;
}

ul {
  list-style: none;
  height: 10%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: white;
}

ul a {
  color: black;
}

ul li {
  padding: 5px;
  margin-left: 10px;
}

ul li:hover {
  transform: scale(1.1);
  transition: 0.3s;
}


#hamburger-icon {
  margin: auto 0;
  display: none;
  cursor: pointer;
}

#hamburger-icon div {
  width: 35px;
  height: 3px;
  background-color: black;
  margin: 6px 0;
  transition: 0.4s;
}

.open .bar1 {
  -webkit-transform: rotate(-45deg) translate(-6px, 6px);
  transform: rotate(-45deg) translate(-6px, 6px);
}

.open .bar2 {
  opacity: 0;
}

.open .bar3 {
  -webkit-transform: rotate(45deg) translate(-6px, -8px);
  transform: rotate(45deg) translate(-6px, -8px);
}

.open .mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 60px;
  left: -120%;
  height: 30vh;
  width: 90px;
}

.mobile-menu li {
  margin-bottom: 10px;
}

@media only screen and (max-width: 900px) {
  header nav {
    display: none;
  }

  #hamburger-icon {
    display: block;
  }
}
