:root {
  --menu-icon-stroke-width: 6;
}

.menu {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  padding: 0;
  height: 100%;
  width: 100%;
  align-items: center;
}

.line {
  fill: none;
  stroke: white;
  stroke-width: var(--menu-icon-stroke-width);
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line1 {
  stroke-dasharray: 60 207;
  stroke-width: var(--menu-icon-stroke-width);
}

.line2 {
  stroke-dasharray: 60 60;
  stroke-width: var(--menu-icon-stroke-width);
}

.line3 {
  stroke-dasharray: 60 207;
  stroke-width: var(--menu-icon-stroke-width);
}

.opened .line1 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: var(--menu-icon-stroke-width);
}

.opened .line2 {
  stroke-dasharray: 1 60;
  stroke-dashoffset: -30;
  stroke-width: var(--menu-icon-stroke-width);
}

.opened .line3 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: var(--menu-icon-stroke-width);
}