* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  align-items: center;
  display: flex;
  font-family: "Inter", sans-serif;
  font-size: 1.125rem;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 25px;
  position: relative;
}

main {
  align-items: center;
  background-color: #000000;
  display: flex;
  flex-basis: 600px;
  height: 200px;
  justify-content: center;
}

input {
  display: none;
}

label {
  cursor: pointer;
  height: 51px;
}

span {
  background-color: #ffffff;
  border-radius: 6px;
  display: block;
  height: 5px;
  position: relative;
  width: 65px;
}

.top {
  top: 0;
  transition: transform .3s, top .3s;
}

.middle {
  top: 18px;
  transition: transform .3s;
}

.bottom {
  top: 36px;
  transition: transform .3s, top .3s;
}

input:checked + label .top {
  top: 21px;
  transform: rotate(45deg);
}

input:checked + label .middle {
  transform: translateX(-1000px);
  transition: transform 1.2s;
}

input:checked + label .bottom {
  top: 11px;
  transform: rotate(-45deg) ;
}

