﻿.button-text-1,
.button-text-2,
.button-text-3 {
    position: relative;
    display: inline-block;
    color: #000;
    font-family: Poppins, sans-serif;
    letter-spacing: -0.2px;
}

    .button-text-1:before {
        content: "";
        position: absolute;
        bottom: -1px;
        left: 0;
        background: rgba(0, 0, 0, 0.2);
        width: 100%;
        height: 1px;
    }

    .button-text-1:after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -1px;
        left: 0;
        background: #000;
        height: 1px;
        -webkit-animation: button-line-out 0.24s cubic-bezier(0.165, 0.84, 0.44, 1) both;
        animation: button-line-out 0.24s cubic-bezier(0.165, 0.84, 0.44, 1) both;
    }

    .button-text-1:hover:after {
        width: 100%;
        -webkit-animation: button-line-in 0.24s cubic-bezier(0.165, 0.84, 0.44, 1) both;
        animation: button-line-in 0.24s cubic-bezier(0.165, 0.84, 0.44, 1) both;
    }

    .button-text-2:before {
        content: "";
        position: absolute;
        top: 40%;
        right: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.2);
        height: 40%;
        -webkit-animation: button-line-out 0.24s cubic-bezier(0.165, 0.84, 0.44, 1) both;
        animation: button-line-out 0.24s cubic-bezier(0.165, 0.84, 0.44, 1) both;
    }

    .button-text-2:after {
        content: "";
        position: absolute;
        bottom: -1px;
        right: 0;
        left: 0;
        background: #000;
        height: 1px;
        -webkit-animation: button-line-in 0.24s cubic-bezier(0.165, 0.84, 0.44, 1) both;
        animation: button-line-in 0.24s cubic-bezier(0.165, 0.84, 0.44, 1) both;
    }

    .button-text-2:hover:before {
        -webkit-animation: button-line-in 0.24s cubic-bezier(0.165, 0.84, 0.44, 1) both;
        animation: button-line-in 0.24s cubic-bezier(0.165, 0.84, 0.44, 1) both;
    }

    .button-text-2:hover:after {
        -webkit-animation: button-line-out 0.24s cubic-bezier(0.165, 0.84, 0.44, 1) both;
        animation: button-line-out 0.24s cubic-bezier(0.165, 0.84, 0.44, 1) both;
    }

.button-text-3 {
    padding-left: 30px;
    -webkit-transition: all 0.24s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.24s cubic-bezier(0.165, 0.84, 0.44, 1);
}

    .button-text-3:before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        background: #000;
        width: 20px;
        height: 1px;
        -webkit-transition: all 0.24s cubic-bezier(0.165, 0.84, 0.44, 1);
        transition: all 0.24s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .button-text-3:hover {
        padding-left: 40px;
    }

        .button-text-3:hover:before {
            width: 30px;
        }

@-webkit-keyframes button-line-out {
    0% {
        -webkit-transform: scaleX(1);
        transform: scaleX(1);
        -webkit-transform-origin: 100% 50%;
        transform-origin: 100% 50%;
    }

    100% {
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
        -webkit-transform-origin: 100% 50%;
        transform-origin: 100% 50%;
    }
}

@keyframes button-line-out {
    0% {
        -webkit-transform: scaleX(1);
        transform: scaleX(1);
        -webkit-transform-origin: 100% 50%;
        transform-origin: 100% 50%;
    }

    100% {
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
        -webkit-transform-origin: 100% 50%;
        transform-origin: 100% 50%;
    }
}

@-webkit-keyframes button-line-in {
    0% {
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
        -webkit-transform-origin: 0 50%;
        transform-origin: 0 50%;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transform-origin: 0 50%;
        transform-origin: 0 50%;
    }
}

@keyframes button-line-in {
    0% {
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
        -webkit-transform-origin: 0 50%;
        transform-origin: 0 50%;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transform-origin: 0 50%;
        transform-origin: 0 50%;
    }
}
