.t99-menu-block ul {
  list-style: none;
}

ul.t99-menu {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  align-items: center;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;

  overflow: auto;

  background-color: var(--wp--preset--color--white);
  gap: 2vh;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding-right: var(--wp--style--root--padding-right);
  padding-left: var(--wp--style--root--padding-left);
  padding-top: 120px;
}

body.fs_menu_open .t99-menu {
  opacity: 1;
  pointer-events: auto;
}

.t99-menu > li {
  overflow: hidden;
  width: 100%;
  text-align: left;
  position: relative;
}

.t99-menu > li a {
  display: block;
  font-size: 30px;
  font-weight: bold;
  color: var(--wp--preset--color--black);
}

.t99-menu .sub-menu {
  width: 100%;
  margin-block: 0px;
  position: relative;
  height: 0px;
  top: 0;
  padding: 0px !important;
  background: var(--wp--preset--color--white);
  transition: margin 0.5s ease, height 0.5s ease;
  opacity: 1;
  order: 3;
  overflow: hidden;
}

.t99-menu .sub-menu li a {
  font-weight: 400;
  font-size: 2em;
}

.t99-menu li.menu-item:has(.toggle_button) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.t99-menu .toggle_button {
  display: flex;
  align-items: center;
  transition: transform 0.4s ease;
  width: 20px;
  margin-left: 10px;
  cursor: pointer;
  order: 1;
}

.t99-menu .toggle_button.opened {
  transform: rotateX(180deg);
  order: 2;
}

/* - - - - - - - - - - - - - - - - - - - - - - - */
/* # HAMBURGER */
/* - - - - - - - - - - - - - - - - - - - - - - - */

#hamburger_icon {
  display: block;
  position: relative;
  width: 40px;
  height: 18px;
  transform: rotate(0deg);
  transition: 0.5s ease-in-out;
  cursor: pointer;
  z-index: 21;
}

#hamburger_icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--wp--preset--color--black);
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: transform 0.25s ease-in-out, background 0.5s ease;
}

#hamburger_icon span:nth-child(1) {
  top: 0px;
}

#hamburger_icon span:nth-child(2),
#hamburger_icon span:nth-child(3) {
  top: 8px;
}

#hamburger_icon span:nth-child(4) {
  top: 16px;
}

body.fs_menu_open #hamburger_icon span:nth-child(1) {
  top: 10px;
  width: 0%;
  left: 50%;
}

body.fs_menu_open #hamburger_icon span:nth-child(2) {
  transform: rotate(45deg);
}

body.fs_menu_open #hamburger_icon span:nth-child(3) {
  transform: rotate(-45deg);
}

body.fs_menu_open #hamburger_icon span:nth-child(4) {
  top: 10px;
  width: 0%;
  left: 50%;
}
