.fancybutton {
  --border-thickness: 3px;
  --border-type: solid; /* Default border type */
  display: inline-block;
  transition: all 0.2s ease-in;
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: #ffffff;
  /* padding: 0.7em 1.7em; */
  cursor: pointer;
  font-size: 24px;
  border-radius: 0.5em;
  background: #e8e8e822;
  border: var(--border-thickness) var(--border-type) #e8e8e8AA;
  width: 250px;
  box-shadow: 6px 6px 12px #c5c5c555, -6px -6px 12px #ffffff55;
}

.fancybutton:active {
  color: #666;
  box-shadow: inset 4px 4px 12px #c5c5c555, inset -4px -4px 12px #ffffff55;
}

.fancybutton::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scaleY(1) scaleX(1.25);
  top: 100%;
  width: 140%;
  height: 180%;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.fancybutton::after {
  content: "";
  position: absolute;
  left: 55%;
  transform: translateX(-50%) scaleY(1) scaleX(1.45);
  top: 180%;
  width: 160%;
  height: 190%;
  background-color: #00908777;
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.fancybutton:hover {
  color: #ffffff;
  border: var(--border-thickness) var(--border-type) #1B9E7777;
}

.fancybutton:hover::before {
  top: -35%;
  background-color: #3CA59D77;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.fancybutton:hover::after {
  top: -45%;
  background-color: #1B9E7777;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}
