.fancybutton {
  font-family: "Barlow Condensed";
  font-size: 1.4rem;  
    width: 12rem;
    height: 2.8rem;
    color: white;
    background: black;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 999rem;
    border: 3px solid red;
    outline: none;
}

.fancybutton:before {
    content: '';
    background: linear-gradient(45deg, red, black, red, black, red, black);
    position: absolute;
    top:  -4px;
    left: -4px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    animation: glowing 20s linear infinite;
    opacity: 0.2;
    transition: opacity .3s ease-in-out;
    border-radius: 999rem;
}


.fancybutton:active {
    color: black;
}

.fancybutton:active:before {
    background: red;
    filter: none;
}

.fancybutton:active:after {
    background: transparent;
}



.fancybutton:hover:before {
    opacity: 1;
}

.fancybutton:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 999rem;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}



.fancybutton:disabled:hover:before {
  opacity: 0;
}
.fancybutton:disabled {
  background: #888;
  color: #999;
  cursor: default;
  border: none;
  text-shadow: -1px -1px 0 #333;
}
.fancybutton:disabled:before {
    background: #666;
    filter: none;
}
.fancybutton:disabled:after {
    background: #666;
    filter: none;
}