.button--6 {
  background-color: var(--main-regal-dark-color);
  border: none;
  border-radius: 2px;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
  color: transparent;
  cursor: pointer;
  display: inline-block;
  font-family: 'Oxygen-Bold';
  font-size: 14px;
  font-weight: 900;
  padding: 16px 48px;
  overflow: hidden;
  position: relative;
  text-transform: uppercase;
  transition: background-color 0.35s ease-in, color 0.35s ease-in, box-shadow 0.15s ease-in;
  will-change: background-color, color;

  width: 200px;
  height: 58px;
}

.button--6.white {
    background: var(--main-regal-dark-color);
    color: #FFF;
}


.button--6:before, .button--6:after {
    content: attr(data-text);
    color: #f2f2f2;
    font-weight: 600;
    left: 50%;
    position: absolute;
    transition: 0.25s cubic-bezier(0.26, 0, 0.4, 1);
    width: fit-content;
    will-change: auto;
}

.button--6:before {
    opacity: 1;
    transform: translate(-50%, 0%);
}


.button--6.white:before, .button--6.white:after {
    color: #f2f2f2;
}

.button--6 span {
    opacity: 0;
}


.button--6 .button-bg {
    background: rgba(44, 47, 50, 0.15);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transform: translate3d(100%, 0, 0) skew(0deg);
    transition: 0.45s cubic-bezier(0.26, 0, 0.4, 1);
    width: 140%;
    will-change: auto;
}

.button--6.white .button-bg {
    background: rgba(255, 255, 255, 0.15);
}

.button--6:before, .button--6:after {
    content: attr(data-text);
    color: #f2f2f2;
    font-weight: 600;
    left: 50%;
    position: absolute;
    transition: 0.25s cubic-bezier(0.26, 0, 0.4, 1);
    width: fit-content;
    will-change: auto;
}

.button--6:after {
    opacity: 0;
    transform: translate(50%, 0%);
}

.button--6.white:before, .button--6.white:after {
    color: #f2f2f2;
}

.button--6:hover {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
}

.button--6:hover:before {
    transform: translate(-150%, 0%);
    opacity: 0;
}

.button--6:hover .button-bg {
    transform: translate3d(-4%, 0, 0) skew(-25deg);
}

.button--6:hover:after {
    transform: translate(-50%, 0%);
    opacity: 1;
}