nav {
  font-family: "Rubik", system-ui, sans-serif;
  font-style: normal;
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-font-kerning: normal;
  -webkit-text-size-adjust: 100%; }

nav {
  width: 0%;
  height: 100vh; 
  transition: 0.8s linear;
}

nav {
  background: linear-gradient(45deg, #123138, #114B52);
  transform-style: preserve-3d;
  transform: perspective(60rem);
  left: -1000px; top: 0;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center; 
  z-index: 9999999;
}

.Menu-list {
  font-size: 4.25rem;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotateX(-10deg) rotateY(20deg); 
  padding: 0; 
}
  

.Menu-list-item {
  position: relative;
  color: transparent;
  cursor: pointer; 
}

.Menu-list-item::before {
  content: '';
  display: block;
  position: absolute;
  top: 49%;
  left: -10%;
  right: -10%;
  height: 4px;
  border-radius: 4px;
  margin-top: -2px;
  background: #FF993B;
  transform: scale(0);
  transition: transform 0.8s cubic-bezier(0.16, 1.08, 0.38, 0.98);
  z-index: 1; 
}

.Mask {
  display: block;
  position: absolute;
  overflow: hidden;
  color: #34B7AA;
  top: 0;
  height: 49%;
  transition: all 0.8s cubic-bezier(0.16, 1.08, 0.38, 0.98); 
}

.Mask span {
  display: block; 
}

.Mask + .Mask {
  top: 48.9%;
  height: 51.1%; }
  .Mask + .Mask span {
   transform: translateY(-49%); 
}

.Menu-list-item:hover .Mask,
.Menu-list-item:active .Mask {
  color: #FFF;
  transform: skewX(12deg) translateX(5px); 
}

.Menu-list-item:hover .Mask + .Mask,
.Menu-list-item:active .Mask + .Mask {
  transform: skewX(12deg) translateX(-5px); }

.Menu-list-item:hover::before,
.Menu-list-item:active::before {
  transform: scale(1); }
  
.closeMenu {
  position: absolute;
  top: 0px;
  right: 45px;
  font-size: 60px;
  color: #fff;
}

@media only screen and (max-width: 796px) { 
  .Menu-list { 
    padding: 0; 
    font-size: 3rem;
  }
  
}
