/* From Uiverse.io by lucifer4330k */ 
.primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 169px;
  height: 60px;
  background-color: #FB3B2E;
  color: #fff;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: bold;
  border: 3px solid #fff;
  outline: 3px solid #000;
  box-shadow: 6px 6px 0 #222;
  transition: all 0.1s ease-out;
  padding: 0 15px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.primary-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  z-index: 1;
  transition: none;
  /* Initially hide the pseudo-element */
  opacity: 0;
}

@keyframes slide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.primary-btn:hover::before {
  /* Show the pseudo-element on hover */
  opacity: 1;
  animation: slide 2s infinite;
}

.primary-btn:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 #222;
  background-color: #FB3B2E;
  color: #fff;
}

@keyframes slide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.primary-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0 #00a4ef;
  background-color: #fff;
  color: #000;
  border-color: #000;
}

.button-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  transition: transform 0.2s ease-out;
  position: relative;
  z-index: 1;
}

.primary-btn:hover .button-text {
  transform: skew(-5deg);
}

.primary-btn:active .button-text {
  transform: skew(5deg);
}

.primary-btn:disabled,
.primary-btn.disabled {
  cursor: not-allowed;
  background-color: #b5625c;
  color: #999;
  border: 3px solid #ddd;
  outline: 3px solid #ccc;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

.primary-btn:disabled::before,
.primary-btn.disabled::before {
  content: none; /* Remove animation shimmer */
}

.primary-btn:disabled .button-text,
.primary-btn.disabled .button-text {
  transform: none;
}



/* Secondary button */ 
.secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 169px;
  height: 60px;
  background-color: #fff;
  color: #FB3B2E;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: bold;
  border: 3px solid #fff;
  outline: 3px solid #000;
  box-shadow: 6px 6px 0 #222;
  transition: all 0.1s ease-out;
  padding: 0 15px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.secondary-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  z-index: 1;
  transition: none;
  /* Initially hide the pseudo-element */
  opacity: 0;
}

@keyframes slide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.secondary-btn:hover::before {
  /* Show the pseudo-element on hover */
  opacity: 1;
  animation: slide 2s infinite;
}

.secondary-btn:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 #222;
  background-color: #FB3B2E;
  color: #fff;
}

@keyframes slide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.secondary-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0 #00a4ef;
  background-color: #fff;
  color: #000;
  border-color: #000;
}

.button-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  transition: transform 0.2s ease-out;
  position: relative;
  z-index: 1;
}

.secondary-btn:hover .button-text {
  transform: skew(-5deg);
}

.secondary-btn:active .button-text {
  transform: skew(5deg);
}


.secondary-btn:disabled,
.secondary-btn.disabled {
  cursor: not-allowed;
  background-color: #f5f5f5;
  color: #999;
  border: 3px solid #ddd;
  outline: 3px solid #ccc;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

.secondary-btn:disabled::before,
.secondary-btn.disabled::before {
  content: none; /* Remove animation shimmer */
}

.secondary-btn:disabled .button-text,
.secondary-btn.disabled .button-text {
  transform: none;
}