/* effects */

/* CSS BORDER ANIMATION */


.block {
    position: relative;
    /*margin: 300px auto 0;
    width: 500px;
    height: 250px;*/
    background: linear-gradient(0deg, #000, #272727);
}

.block:before, .block:after {
    content: '';
    position: absolute;
    left: -2px;
    top: -2px;
    /*background: linear-gradient(45deg, #fb0094, #0000ff, #00ff00,#ffff00, #ff0000, #fb0094,
    #0000ff, #00ff00,#ffff00, #ff0000);*/
    background: linear-gradient(45deg, #000000, #01e375, #00ff00, #ffffff, #00ff00, #01e375, #000000, #ffffff);
    background-size: 400%;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    z-index: -1;
    animation: steam 20s linear infinite;
}

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

.block:after {
    filter: blur(50px);
}


/* SVG Border Animation */

.svg-wrapper {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 auto;

}
.shape {
    stroke-dasharray: 140 540;
    stroke-dashoffset: -474;
    stroke-width: 8px;
    fill: transparent;
    stroke: #19f6e8;
    stroke: #ffffff;
    border-bottom: 5px solid black;
    transition: stroke-width 1s, stroke-dashoffset 1s, stroke-dasharray 1s;
}
.text {
    /*font-family: 'Roboto Condensed';*/
    font-size: 22px;
    line-height: 32px;
    letter-spacing: 8px;
    color: #fff;
    top: -48px;
    position: relative;
}
.svg-wrapper:hover .shape {
    stroke-width: 1px;
    stroke-dashoffset: 0;
    stroke-dasharray: 760;
}

/* Border animation on hover */


.border-animation {
    display: inline-block;
    font-size: 1rem;
    line-height: 1rem;
}

.border-animation .material-icons{
    padding-right: 0;
}

.border-animation a {
    position: relative;
    display: inline-block;
    /*margin: 0 2px;*/
    margin: 0 1px;
    /*padding: 0.75rem 0.75rem 0.4rem 0.75rem;*/
    padding: 0.4rem 0.4rem 0.4rem 0.4rem;
    text-transform: uppercase;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

.border-animation a:before {
    box-sizing: border-box;
    transform: translateX(100%);
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 1px);
    height: 1px;
    border-bottom: 1px solid transparent;
    border-left: 1px solid transparent;
}
.border-animation a:after {
    box-sizing: border-box;
    transform: translateX(-100%);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 1px);
    height: 1px;
    border-top: 1px solid transparent;
    border-right: 1px solid transparent;
}

.border-animation a:hover {
    color: inherit;
    text-decoration: none;
}
.border-animation a:hover:before {
    transition: 0.1s transform linear, 0.1s height linear 0.1s;
    transform: translateX(0);
    height: 100%;
    border-color: #ffffff;
}

.border-animation a:hover:after {
    transition: 0.1s transform linear 0.2s, 0.3s height linear 0.3s;
    transform: translateX(0);
    height: 100%;
    border-color: #ffffff;
}