/* Styling for the whole document */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: consolas;
}
/* Styling for body */
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #000;

}
/* Styling for the anchor tab */
a{
    position: relative;
    width: 160px;
    height: 50px;
    line-height: 48px ;
    background: #000;
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: 4px;
    text-decoration: none;
    -webkit-box-reflect: below 1px linear-gradient(transparent, #0004);

}
/* Styling before the anchor tag */
a::before{
    content: ''; /*Empty content before anchor element*/
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(465deg, #fb0094,#00f,#0f0,#ff0,#f00,#fb0094,#00f,#0f0,#ff0,#f00);
    background-size: 400%;
    opacity: 0;
    transition: 0.5s;
    animation: animate 20s linear infinite;
}
/* Styling after the anchor tag */
a::after{
    content: '';/*Empty content before anchor element*/
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(465deg, #fb0094,#00f,#0f0,#ff0,#f00,#fb0094,#00f,#0f0,#ff0,#f00);
    background-size: 400%;
    opacity: 0;
    filter: blur(20px);
    transition: 0.5s;
    animation: animate 20s linear infinite;
}
/* Hovering effect on before and after element of anchor tag */
a:hover::before,a:hover::after{
opacity: 1;
}
/* Using the keyframe animate to provide animation */
@keyframes animate{
    0%
    {
        background-position: 0 0;
    }
    50%
    {
        background-position: 300% 0;
    }
    100%
    {
        background-position: 0 0;
    }
}
/* Styling for the span element */
a span{
    position: absolute;
    display: block;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    text-align: center;
    background: #0c0c0c;
    color: rgba(255,255,255,0.2);
    transition: 0.5s;
    z-index: 1;
}
/* Styling on span when hovered on anchor for the text in the button */
a:hover span{
    color: rgba(255,255,255,1);
}
/* Styling on a span when hovered on */
a span::hover{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(255,255,255,0.1);
}