@import url("https://fonts.googleapis.com/css?family=Roboto");

#toggle {
  -webkit-appearance: none;
}

.button {
  position: absolute;
  z-index: 999;
  width: 43px;
  height: 43px;
  background: #2F56EE;
  border-radius: 100%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 70px;
  left: 70px;
}

.button:before {
  position: absolute;
  content: "";
  width: 20px;
  height: 2px;
  background: #fff;
  transform: rotate(90deg);
  transition: all 0.4s ease;
}

.button:after {
  position: absolute;
  content: "";
  width: 20px;
  height: 2px;
  background: #fff;
  transition: all 0.4s ease;
}

.nav {
  position: absolute;
  bottom: 113px;
  left: 70px;
  opacity: 0;
  transition: all 0.4s ease-in-out;
  background: rgb(11, 35, 132);
  width: 15%;
  border-radius: 5px;
  transform: translateY(20%);
  box-shadow: 2px 3px 10px 0 rgba(81, 81, 81, 0.1);
  border: 1px solid #e4e4e4;
  padding: 10px;
}
.nav ul {
  margin: 0;
  padding: 0; 
  display: flex;
  flex-direction: column;
}
.nav a {
  text-align: center;
  margin: 20px 0;
  color: #ffffff;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  letter-spacing: 2px;
  font-size: 14px;
}
.nav a:hover {
  color: #D9E0FC;
}

#toggle:checked ~ .nav {
  opacity: 1;
  transform: translateY(10%);
}

#toggle:checked ~ .button:before {
  transform: rotate(225deg);
}

#toggle:checked ~ .button:after {
  transform: rotate(135deg);
}
