[hidden] {
  display: none;
  visibility: hidden;
}

.vertical-nav a, .vertical-nav label {
  display: block;
  padding: 10px;
  background: transparent;
  transition: all 0.25s ease-in;
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}
.vertical-nav label {
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: center;
}
.vertical-nav label a {
  padding: 0;
  box-shadow: none;
  width: calc(100% - 45px);
}

.nav__list-li, #menu li:hover {
  position: relative;
  background: #707070 !important;
}
.nav__list-li a, #menu li:hover a {
  color: #ffffff;
}

#menu .nav__list-li a {
  color: #fff;
}

.nav__list .group-list a, .nav__list .group-list label {
  padding-left: 2rem;
}

.group-list {
  height: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}
.group-list .sub-group-list a, .group-list .sub-group-list label {
  background: #ffffff;
}
.group-list .sub-sub-group-list a, .group-list .sub-sub-group-list label {
  padding-left: 6rem;
  background: #ffffff;
}

.sub-group-list, .sub-sub-group-list {
  height: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.nav__list input[type=checkbox]:checked + label + ul {
  /* reset the height when checkbox is checked */
  max-height: 1000px;
}
.nav__list label > span {
  float: right;
  transition: transform 0.65s ease;
}
.nav__list input[type=checkbox]:checked + label > span {
  transform: rotate(90deg);
}

#menuToggle {
  display: block;
  position: relative;
}
#menuToggle a {
  text-decoration: none;
  transition: color 0.3s ease;
}

#menu li {
  margin: 5px 0;
  background: #F2F2F2;
  border-radius: 4px;
}
#menu li a {
  text-align: center;
  color: #000000;
}

#menuToggle input:checked ~ ul {
  display: block;
  border-top: solid 3px #2580AC;
  padding: 0;
}

ul.sub-group-list li {
  text-align: center;
}

input[type=checkbox], .left-menu {
  display: none;
}

.center-menu #menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
}
.center-menu #menu li {
  width: calc(25% - 10px);
  text-align: center;
  height: -moz-fit-content;
  height: fit-content;
  border-right: solid 1px #E5E5E5;
  position: relative;
  margin-right: 10px;
  border-radius: 30px;
}
.center-menu #menu li a {
  padding: 8px 10px;
}
.center-menu #menu li .group-list {
  position: absolute;
  width: 100%;
  height: auto;
  background: #ffffff;
  z-index: 2;
}
.center-menu #menu li .group-list li {
  width: 100%;
}

@media screen and (max-width: 991px) {
  .center-menu #menuToggle {
    margin: 15px auto;
  }
  .center-menu li .group-list {
    position: relative !important;
  }
  .center-menu #menu li {
    width: 100%;
  }
  #menuToggle {
    background: #fff;
    position: relative;
    border: solid 2px #000000;
  }
  .left-menu {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 25px;
    display: block;
  }
  #menuToggle {
    height: 60px;
    margin: 30px auto;
    z-index: 2;
    width: calc(100% - 30px);
    padding: 0;
  }
  #menuToggle input:checked ~ ul {
    border-top: none;
  }
  #menuToggle input:checked ~ ul.nav__list {
    margin-top: 58px;
  }
  #menu li {
    margin: 0;
    border-bottom: solid 1px #d8d8d8;
    border-radius: 0px;
  }
  #menuToggle input {
    display: block;
    width: 60px;
    height: 60px;
    position: absolute;
    top: 0px;
    right: 20px;
    cursor: pointer;
    opacity: 0;
    /* hide this */
    z-index: 2;
    /* and place it over the hamburger */
    -webkit-touch-callout: none;
  }
  #menuToggle span.menu-span {
    display: block;
    width: 33px;
    height: 2px;
    margin-bottom: 5px;
    position: absolute;
    top: 15px;
    right: 20px;
    background: #000000;
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
  }
  #menuToggle span.menu-span:nth-last-child(2) {
    top: 25px;
  }
  #menuToggle span.menu-span:nth-last-child(3) {
    top: 35px;
  }
  #menuToggle input:checked ~ span.menu-span {
    opacity: 1;
    transform: rotate(45deg) translate(12px, 4px);
    width: 20px;
    background: #000000;
  }
  #menuToggle input:checked ~ span.menu-span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
  }
  #menuToggle input:checked ~ span.menu-span:nth-last-child(2) {
    transform: rotate(132deg) translate(1px, -2px);
    width: 20px;
  }
  #menu, .center-menu #menu {
    display: none;
  }
}