.menu {
  position: absolute;
  /* float: right; */
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  /* width: 50px; */
  height: 100%;
  aspect-ratio: 1 / 1;
  background-color: transparent;
  border-radius:0;
  transition: transform 250ms ease;
  cursor: pointer;
  z-index: 200;
}

.menu span {
  position: relative;
  display: block;
  width: 50%;
  height: 2px;
  background-color: #444;
  float: left;
  transform-origin: center center;
  transition: transform 250ms ease;
  z-index: 200;
}
.menu span:nth-of-type(1) {
  transform: translateY(-6px);
}
.menu span:nth-of-type(3) {
  transform: translateY(6px);
}


#menu {
  display: none;
}
#menu:checked ~ .menu {
  /* background-color: transparent; */
  /* box-shadow: 0 0 10px silver; */
  transform: rotate(360deg);
  transition: transform 250ms ease;
}
#menu:checked ~ .menu span {
  background-color: white;
  transition: transform 250ms ease;
}
#menu:checked ~ .menu span:nth-of-type(1) {
  transform: translateY(1px) rotate(45deg);
}
#menu:checked ~ .menu span:nth-of-type(2) {
  display: none;
}
#menu:checked ~ .menu span:nth-of-type(3) {
  transform: translateY(-1px) rotate(-45deg);
}
#menu:checked ~ .nav {
  right: 0;
  transition: right 500ms ease;
}
#menu:checked ~ main {
  transform: translateX(-250px);
  transition: transform 500ms ease;
}

.nav {
  position: fixed;
  top: 0;
  right: -90%;
  width: 80%;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #80b33d;
  transition: right 1500ms ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  z-index: 100;
}
.nav ul {
  position: relative;
  list-style-type: none;
  margin: 100px 0;
  padding: 0;
}
.nav ul li {
  position: relative;
  display: block;
  border-bottom: 1px solid white;
}
.nav ul li a {
  position: relative;
  display: block;
  margin: 0;
  padding: 25px 20px;
  color: white;
  font-size: 20px;
  font-weight: 300;
  text-decoration: none;
}
.nav ul li a.selected {
  color: green;
  font-weight: 700;
}
.nav ul li a:before {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  transition: width 250ms ease;
  z-index: -1;
}
.nav ul li a:hover {
  color: #444;
}
.nav ul li a:hover:before {
  width: 100%;
  height: 100%;
  background-color: white;
  transition: width 250ms ease;
}