/* My New Rally Menu*/
#menu-button {
  pointer-events: bounding-box;
  position: absolute;
  display: block;
  width: 72px;
  height: 72px;
  right: calc(3.75% - 40px);
  top: 14px;
  z-index: 100;
  transition: transform 0.5s ease-in-out 0.125s;
}

#menu-button div {
  position: absolute;
  left: 24px;
  width: 16px;
  height: 2px;
  background: #1b1b1b;
  background: var(--button-color, #1b1b1b);
  transition: width 0.125s ease-in-out, top 0.25s ease-in-out 0.5s,
    transform 0.25s ease-out 0.25s, opacity 0.001s linear 0.5s,
    background-color 0.25s linear;
}

#menu-button div:nth-child(1) {
  top: 29px;
}
#menu-button div:nth-child(2) {
  top: 35px;
}

#menu-button div:nth-child(1),
#menu-button div:nth-child(2),
#menu-button:hover div {
  width: 24px;
}
#menu-button div:nth-child(3) {
  top: 41px;
}

#menu-button div:nth-child(1),
#menu-button div:nth-child(2),
#menu-button:hover div {
  width: 24px;
}

#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  z-index: 999;
}

#menu-overlay.active {
  display: block;
}

#close-menu {
  float: right;
  top: 40px;
  right: 70px;
  position: relative;
  font-size: 50px;
  font-weight: 300;
}

#follow > p {
  margin-bottom: 1px;
}

#follow-bar {
  position: absolute;
  top: 140px;
  right: calc(3.75vw - 6px);
  width: 60px;
  color: rgba(52, 52, 52, 0.85);
}

#follow-bar a:first-of-type {
  margin: 130px auto 0;
}

#follow-bar a {
  position: relative;
  display: block;
  width: 0px;
  height: 60px;
  margin: 40px auto 0 !important;
}

#follow-bar > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 85px;
  transform: translate(0, 30px) rotate(90deg);
  margin: 0 0 100px 0;
}

.reversed #follow span {
  background-color: #1b1b1b;
}

#follow span {
  display: inline-block;
  width: 12px;
  height: 1px;
  background-color: rgba(52, 52, 52, 0.85);
  position: absolute;
  left: 4.3rem;
}

#follow-bar a .fa.fa-youtube-play,
#follow-bar a .fa.fa-instagram {
  position: absolute;
  left: 2px;
}

#follow-bar a i {
  font-size: 1.2rem;
  color: rgba(52, 52, 52, 0.85);
  transition: transform 0.75s cubic-bezier(0.19, 1, 0.22, 1);
}

#follow-bar a:hover {
  color: rgba(52, 52, 52, 0.85) !important;
}

#follow-bar a:hover i {
  transform: scale(1.15);
}

.menu-panel {
  position: fixed;
  top: 0;
  right: -670px;
  width: 670px;
  height: 100%;
  background: #add5a6;
  /* box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2); */
  transition: right 0.6s ease-in-out;
  z-index: 1000;
}

.menu-panel.open {
  right: 0;
}

.menu-panel a {
  color: rgba(52, 52, 52, 0.85) !important;
}

.menu-panel li a {
  position: relative; 
  display: inline-block; 
  padding: 10px 20px;
  text-decoration: none;
  color: white;
}

.menu-panel li a::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  width: 100%;
  height: 0; 
  background: rgb(27, 27, 27);
  opacity: 0.1;
  transition: height 0.25s ease, opacity 0.25s ease;
}

.menu-panel li a:hover::after,
.menu-panel li a.active::after {
  height: 27px; /* Expands upward */
  opacity: 0.15;
}

/* Lock scroll when menu is open */
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/*===========================================================
====================== Media Quieries =======================
=============================================================*/

@media screen and (min-width: 1500px) {
  .menu-content > ul {
    top: 7rem;
    margin-left: 80px;
    position: relative;
    font-size: 2.9rem;
    font-family: "walkway-bold";
  }

  .menu-content > ul li {
    padding-bottom: 2rem;
  }
}

@media screen and (max-width: 1440px) {
  .menu-content > ul {
    top: 7rem;
    margin-left: 80px;
    position: relative;
    font-size: 2.8rem;
    font-family: "walkway-bold";
  }

  .menu-content > ul li {
    padding-bottom: 1rem;
  }

  #follow-bar {
    right: calc(5vw - 6px);
  }
}
