%btn{
    display: inline-block;
    padding: 0 15px;
    line-height: 2;
    font-family: inherit;
    font-size: 1rem;
    font-weight: $font_semi_bold;
}

%btn-hover{
    &:after{
        position: absolute;
        height: 100%;
        width: 100%;
        top: 0;
        display: block;
        z-index: -1;
        left: 0;
        background-color: $color_hover;
        content: '';
    }
    &:hover{
        border-color: $color_hover;
        color: $color_hover_bg_text_color;
    }
}
.#{$prefix}-btn-primary{
    @extend %btn;
    @extend %primary-bg;
    // @extend %primary-border;
    color: $color_primary_bg_text_color;
    // @include border();
    @extend %perspective;
    position: relative;
    @extend %btn-hover;
    &:after{
        @include animation(  scale-out-hor-left 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both );
    }
    &:visited{
        color: $color_primary_bg_text_color;
    }
    &:hover{
        color: $color_hover_bg_text_color;
        border-width: 0;
        &:after{
            @include animation( scale-in-hor-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both );
        }
    }
    i{
        position: relative;
        top: 1px;
        padding: 0 5px;
    }
}
.#{$prefix}-btn-white{
    @extend %btn;
    background-color: $color_white;
    color: $color_primary;
    @extend %perspective;
    position: relative;
    @extend %btn-hover;
    &:after{
        @include animation(  scale-out-hor-left 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both );
    }
    &:visited{
        color: $color_primary;
    }
    &:hover{
        color: $color_hover_bg_text_color;
        &:after{
            @include animation( scale-in-hor-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both );
        }
    }
    i{
        position: relative;
        top: 1px;
        padding: 0 5px;
    }
}
.#{$prefix}-btn-md{
    padding: 0 15px;
    line-height: 2.5;
    @include media(md){
        padding: 0 30px;
    }
    @include media(lg){
        line-height: 3;
        font-size: 1.1rem;
       
    }
}
button{
    &.#{$prefix}-btn-border{
        border-top: 0;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        background-color: transparent;
    }
}
.#{$prefix}-btn-border-primary{
    color: $color_primary;
    &:visited{
        color: $color_primary;
    }
}
.#{$prefix}-btn-border{
    display: inline-block;
    padding: 5px;
    cursor: pointer;
    font-weight: $font_semi_bold;
    font-size: 1rem;
    position: relative;
    @include border-bottom(2px,solid);
    border-color: $color_primary;
    @include transition();
    outline: 0;
    &:after{
        position: absolute;
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        left: 0;
        bottom: -2px;
        @include animation(scale-out-hor-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both);
    }
    &:hover{
        color: $color_hover;
        border-color: transparent;
        border-bottom: 0;
        &:after{
            background-color: $color_hover;
            @include animation(scale-in-hor-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both);
        }
    }   
}
