@keyframes fadeAndrise {
    0% {
        opacity: 0;
        transform: translateY(2rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.menu-box {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: #df771ce4;
    backdrop-filter: blur(7px);
    overflow: hidden;
    transition: all 0.5s ease;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  
  .menu-box.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  
  .menu-box .nav-text.mobile-collapse {
    display: block;
    position: relative;
    width: 100%;
    margin: 0;
    padding-left: 3rem;
    transform: translate(0, -50%);
    top: 50%;
    line-height: 1;
  }
  
  .menu-box .nav-text.mobile-collapse a {
    line-height: initial;
  }
  
  .menu-box .nav-text.mobile-collapse a h4 {
    -webkit-text-decoration: underline transparent;

    text-decoration: underline solid 0.1em transparent;
    opacity: 0;
    transition: all 0.2s ease;
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 580;
  }

  .menu-box .nav-text.mobile-collapse h4:hover {
    -webkit-text-decoration: underline white;
    text-decoration-thickness: 0.1em;
    text-decoration: underline solid 0.1em white;
    transition: text-decoration --webkit-text-decoration 0.5s ease;
    scale: 100%;
  }
  .menu-box .nav-text.mobile-collapse h4:active {
    scale: 100%;
  }

  .menu-box.active .nav-text.mobile-collapse a:nth-child(1) h4{
    animation: fadeAndrise 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards; 
  }
  .menu-box.active .nav-text.mobile-collapse a:nth-child(2) h4{
    animation: fadeAndrise 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards; 
    animation-delay: 0.1s;
  }
  .menu-box.active .nav-text.mobile-collapse a:nth-child(3) h4{
    animation: fadeAndrise 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards; 
    animation-delay: 0.2s;
  }
  .menu-box.active .nav-text.mobile-collapse a:nth-child(4) h4{
    animation: fadeAndrise 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards; 
    animation-delay: 0.3s;
  }
  .menu-box.active .nav-text.mobile-collapse a:nth-child(5) h4{
    animation: fadeAndrise 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards; 
    animation-delay: 0.4s;
  }


  @media(max-width:500px) {
    .menu-box .nav-text.mobile-collapse {
        padding-left: 2rem;
      }
    .menu-box .nav-text.mobile-collapse a h4 {
        font-size: 2.5rem;
        font-weight: 580;
      }
  }
