button, .button {
    border: none;
    padding: 0;
    cursor: pointer;
    @include transition(all 200ms linear 0ms);
    font-size: 18px;
    padding: 0 40px;
    border-radius: 0px;
    line-height: 56px;
    color: #fff;
    background-color: $primary_color;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-weight: 400;
    &:hover {
        color: #fff;
        background-color: $primary_color;
    }
}
input[type="submit"] {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    padding: 0 38px;
    line-height: 56px;
    @include transition(all 300ms linear 0ms);
    position: relative;
    display: inline-block;
    cursor: pointer;
    border: none;
    background-color: $primary_color;
    color: $secondary_color;
    height: auto;
    text-align: center;
    justify-content: center;
    clip-path: polygon(0% 0%, calc(100% - 18px) 0%, 100% 18px, 100% 100%, 18px 100%, 0% calc(100% - 18px));
    &:hover {
        outline: medium none;
        text-decoration: none;
        color: #fff;
        background-color: $secondary_color;
        clip-path: polygon(0% 0%, 100% 0%, 100% 18px, 100% 100%, 18px 100%, 0% 100%);
    }
}

.pxl-icon-active {
    i.flaticon {
        display: inline-flex;
    }
}

.btn {
    font-size: 18px;
    font-weight: 500;
    color: $secondary_color;
    padding: 0 38px;
    line-height: 56px;
    @include transition(all .25s cubic-bezier(.645,.045,.355,1));
    position: relative;
    cursor: pointer;
    border: none;
    height: auto;
    display: inline-flex;
    align-items: center;
    text-align: center;
    background-color: $primary_color;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    border-radius: 0px;
    &:hover {
        outline: medium none;
        text-decoration: none;
        color: #fff;
        background-color: $secondary_color;
    }
    &.btn-default {
        clip-path: polygon(0% 0%, calc(100% - 18px) 0%, 100% 18px, 100% 100%, 18px 100%, 0% calc(100% - 18px));
        &:after {
            content: '';
            position: absolute;
            top: 0;
            left: -200%;
            width: 200%;
            height: 100%;
            @include transform(skewX(-20deg));
            background-image: -webkit-gradient(linear,left top,right top,from(transparent),color-stop(rgba(255,255,255,0.55)),to(transparent));
            background-image: linear-gradient(to right,transparent,rgba(255,255,255,0.55),transparent);
            z-index: -1;
        }
        &:hover {
            background-color: $primary_color;
            color: $secondary_color;
            clip-path: polygon(18px 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0 18px);
            &:after {
                -webkit-animation: pxl_btn_shine 1.2s ease;
              animation: pxl_btn_shine 1.2s ease;
              -webkit-animation-delay: .1s;
              animation-delay: .1s;
            }
        }
    }
    &.btn-skew {
        clip-path: polygon(0% 0%, calc(100% - 18px) 0%, 100% 18px, 100% 100%, 18px 100%, 0% calc(100% - 18px));
        &:before, &:after {
            background-color: #000;
            content: "";
            height: 100%;
            left: -110%;
            opacity: 0.1;
            position: absolute;
            top: 0;
            @include transition(all 0.5s ease 0s);
            @include transform(skewX(25deg));
            width: 100%;
            z-index: -1;
        }
        &:hover {
            background-color: $primary_color;
            clip-path: polygon(0% 0%, 100% 0%, 100% 18px, 100% 100%, 18px 100%, 0% 100%);
            &:before {
                left: -10%;
                @include transition(all 0.3s ease 0s);
            }
            &:after {
                left: -20%;
            }
        }
    }
    i {
        line-height: normal;
        &.flaticon {
            line-height: 1;
        }
    }
    &.pxl-icon--right {
        flex-direction: row-reverse;
    }

    /* Text Hover */
    &.btn-text-nina {
        &.btn-default {
            &:after {
                display: none;
            }
            &:hover {
                clip-path: polygon(0% 0%, calc(100% - 18px) 0%, 100% 18px, 100% 100%, 18px 100%, 0% calc(100% - 18px));
            }
        }
        .pxl--btn-text {
            position: relative;
            direction: ltr;
            
            &:before {
                content: attr(data-text);
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                padding: 0;
                -webkit-transition: -webkit-transform 0.2s, opacity 0.2s;
                transition: transform 0.2s, opacity 0.2s;
                transition-timing-function: ease, ease;
                -webkit-transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
                transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
                white-space: nowrap;
            }
            > span {
                white-space: nowrap;
                display: inline-block;
                padding: 0;
                opacity: 0;
                -webkit-transform: translate3d(0, -14px, 0);
                transform: translate3d(0, -14px, 0);
                -webkit-transition: -webkit-transform 0.2s, opacity 0.2s;
                transition: transform 0.2s, opacity 0.2s;
                transition-timing-function: ease, ease;
                -webkit-transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
                transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
                line-height: normal;
            }
        }
        &:hover {
            @include transform(translateY(0px));
            background-color: $primary_color;
            .pxl--btn-text {
                &:before {
                    opacity: 0;
                    -webkit-transform: translate3d(0, 100%, 0);
                    transform: translate3d(0, 100%, 0);
                }
                span {
                    opacity: 1;
                    -webkit-transform: translate3d(0, 0, 0);
                    transform: translate3d(0, 0, 0);
                }
            }
        }
        &:not(:hover) .pxl--btn-text > span {
            transition-delay: 0s !important;
        }
    }

    &.btn-text-nanuk {
        &.btn-default {
            &:after {
                display: none;
            }
            &:hover {
                clip-path: polygon(0% 0%, calc(100% - 18px) 0%, 100% 18px, 100% 100%, 18px 100%, 0% calc(100% - 18px));
            }
        }
        .pxl--btn-text {
            span {
                display: inline-block;
            }
        }
        &:hover, &:active, &:not([disabled]):not(.disabled).active, &:not([disabled]):not(.disabled):active {
            background-color: $primary_color;
        }
        &:hover .pxl--btn-text {
            span:nth-child(2n+1), span:nth-child(2n) {
                -webkit-animation-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
                transition-animation-function: cubic-bezier(0.75, 0, 0.125, 1);
            }

            span:nth-child(2n+1) {
                -webkit-animation: pxl_nanuk_1 0.5s forwards;
                animation: pxl_nanuk_1 0.5s forwards;
            }

            span:nth-child(2n) {
                -webkit-animation: pxl_nanuk_2 0.5s forwards;
                animation: pxl_nanuk_2 0.5s forwards;
            }
            span:nth-child(1) {-webkit-animation-delay: 0s;animation-delay: 0s;}
            span:nth-child(2) {-webkit-animation-delay: 0.05s;animation-delay: 0.05s;}
            span:nth-child(3) {-webkit-animation-delay: 0.1s;animation-delay: 0.1s;}
            span:nth-child(4) {-webkit-animation-delay: 0.15s;animation-delay: 0.15s;}
            span:nth-child(5) {-webkit-animation-delay: 0.2s;animation-delay: 0.2s;}
            span:nth-child(6) {-webkit-animation-delay: 0.25s;animation-delay: 0.25s;}
            span:nth-child(7) {-webkit-animation-delay: 0.3s;animation-delay: 0.3s;}
            span:nth-child(8) {-webkit-animation-delay: 0.35s;animation-delay: 0.35s;}
            span:nth-child(9) {-webkit-animation-delay: 0.4s;animation-delay: 0.4s;}
            span:nth-child(10) {-webkit-animation-delay: 0.45s;animation-delay: 0.45s;}
            span:nth-child(11) {-webkit-animation-delay: 0.5s;animation-delay: 0.5s;}
            span:nth-child(12) {-webkit-animation-delay: 0.55s;animation-delay: 0.55s;}
            span:nth-child(13) {-webkit-animation-delay: 0.6s;animation-delay: 0.6s;}
            span:nth-child(14) {-webkit-animation-delay: 0.65s;animation-delay: 0.65s;}
            span:nth-child(15) {-webkit-animation-delay: 0.7s;animation-delay: 0.7s;}
            span:nth-child(16) {-webkit-animation-delay: 0.75s;animation-delay: 0.75s;}
            span:nth-child(17) {-webkit-animation-delay: 0.8s;animation-delay: 0.8s;}
            span:nth-child(18) {-webkit-animation-delay: 0.85s;animation-delay: 0.85s;}
            span:nth-child(19) {-webkit-animation-delay: 0.9s;animation-delay: 0.9s;}
            span:nth-child(20) {-webkit-animation-delay: 0.95s;animation-delay: 0.95s;}
            span:nth-child(21) {-webkit-animation-delay: 1s;animation-delay: 1s;}
            span:nth-child(22) {-webkit-animation-delay: 1.05s;animation-delay: 1.05s;}
            span:nth-child(23) {-webkit-animation-delay: 1.1s;animation-delay: 1.1s;}
            span:nth-child(24) {-webkit-animation-delay: 1.15s;animation-delay: 1.15s;}
            span:nth-child(25) {-webkit-animation-delay: 1.2s;animation-delay: 1.2s;}
            span:nth-child(26) {-webkit-animation-delay: 1.25s;animation-delay: 1.25s;}
            span:nth-child(27) {-webkit-animation-delay: 1.3s;animation-delay: 1.3s;}
            span:nth-child(28) {-webkit-animation-delay: 1.35s;animation-delay: 1.35s;}
            span:nth-child(29) {-webkit-animation-delay: 1.4s;animation-delay: 1.4s;}
            span:nth-child(30) {-webkit-animation-delay: 1.45s;animation-delay: 1.45s;}
            span:nth-child(31) {-webkit-animation-delay: 1.5s;animation-delay: 1.5s;}
            span:nth-child(32) {-webkit-animation-delay: 1.55s;animation-delay: 1.55s;}
            span:nth-child(33) {-webkit-animation-delay: 1.6s;animation-delay: 1.6s;}
            span:nth-child(34) {-webkit-animation-delay: 1.65s;animation-delay: 1.65s;}
            span:nth-child(35) {-webkit-animation-delay: 1.7s;animation-delay: 1.7s;}
            span:nth-child(36) {-webkit-animation-delay: 1.75s;animation-delay: 1.75s;}
            span:nth-child(37) {-webkit-animation-delay: 1.8s;animation-delay: 1.8s;}
            span:nth-child(38) {-webkit-animation-delay: 1.85s;animation-delay: 1.85s;}
            span:nth-child(39) {-webkit-animation-delay: 1.9s;animation-delay: 1.9s;}
            span:nth-child(40) {-webkit-animation-delay: 1.95s;animation-delay: 1.95s;}
        }
    }

    /* Styles */
    &.btn-morden {
        font-weight: 700;
        font-size: 18px;
        color: #fff;
        background-color: $third_color;
        border-radius: 51px;
        line-height: 51px;
        border: 3px solid #fff;
        box-shadow: 0 2px 13px rgba(0,0,0,0.23);
        padding: 0 30px;
        &:before {
            content: "";
            background: #fff;
            position: absolute;
            height: 120%;
            width: 15px;
            opacity: 0.2;
            left: -45%;
            top: -10%;
            -webkit-transition: all 0.8s;
            -khtml-transition: all 0.8s;
            -moz-transition: all 0.8s;
            -ms-transition: all 0.8s;
            -o-transition: all 0.8s;
            transition: all 0.8s;
            -webkit-transform: rotate(15deg);
            -khtml-transform: rotate(15deg);
            -moz-transform: rotate(15deg);
            -ms-transform: rotate(15deg);
            -o-transform: rotate(15deg);
            transform: rotate(15deg);
        }
        &:hover {
            @include transform(translate(0, -4px));
            &:before {
                left: 130%;
            }
        }
        &.btn-small {
            line-height: 48px;
            font-size: 15px;
            border-width: 2px;
        }
    }
    &.btn-morden2 {
        font-weight: 700;
        font-size: 16px;
        color: #fff;
        background: none;
        border-radius: 57px;
        line-height: 57px;
        box-shadow: 0 6px 6px rgba(0,0,0,0.4);
        padding: 0 34px;
        &:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: inherit;
            z-index: -2;
            background-color: #{'rgba(var(--primary-color-rgb),0.48)'};
        }
        &:after {
            content: '';
            z-index: -1;
            position: absolute;
            top: 4px;
            right: 4px;
            bottom: 4px;
            left: 4px;
            border-radius: 49px;
            background-color: $third_color;
            box-shadow: 0 10px 18px rgba(#000000, 0.25) inset;
        }
        &:hover {
            @include transform(translate(0, -4px));
        }
    }
    &.btn-outline {
        clip-path: polygon(0% 0%, calc(100% - 18px) 0%, 100% 18px, 100% 100%, 18px 100%, 0% calc(100% - 18px));
        background-color: #fff;
        color: $primary_color;
        overflow: visible;
        &:before {
            content: '';
            z-index: -1;
            position: absolute;
            top: 2px;
            left: 2px;
            bottom: 2px;
            right: 2px;
            background-color: inherit;
            clip-path: polygon(0% 0%, calc(100% - 17px) 0%, 100% 17px, 100% 100%, 17px 100%, 0% calc(100% - 17px));
        }
        &:after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            clip-path: inherit;
            z-index: -2;
            background-color: $primary_color;
        }
    }

    &.btn-text-normal {
        color: $primary_color;
        font-size: 18px;
        padding: 0;
        background-color: transparent;
        &:hover {
            color: $secondary_color;
        }
    }

    &.btn-secondary {
        background: none;
        font-size: 16px;
        font-weight: 700;
        color: #eeeeee;
        padding: 0 26px;
        line-height: 54px;
        border-radius: 4px;
        -webkit-transition: color 0.3s;
        transition: color 0.3s;
        transition-timing-function: ease;
        -webkit-transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
        transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
        overflow: visible;
        &:before, &:after {
            content: '';
            z-index: -1;
            border-radius: inherit;
            pointer-events: none;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            -webkit-backface-visibility: hidden;
            -webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
            transition: transform 0.3s, opacity 0.3s;
            transition-timing-function: ease, ease;
            -webkit-transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
            transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
        }
        &:before {
            border: 2px solid $secondary_color;
            opacity: 0;
            transform: scale3d(1.2, 1.2, 1);
        }
        &:after {
            background-color: $secondary_color;
        }
        &:hover {
            color: $secondary_color;
            background: none;
            &:before {
                opacity: 1;
                -webkit-transform: scale3d(1, 1, 1);
                transform: scale3d(1, 1, 1);
            }
            &:after {
                opacity: 0;
                -webkit-transform: scale3d(0.8, 0.8, 1);
                transform: scale3d(0.8, 0.8, 1);
            }
        }
    }

    &.btn-outline-normal {
        border: 2px solid $secondary_color;
        font-size: 16px;
        font-weight: 700;
        padding: 0 22px;
        line-height: 39px;
        border-radius: 4px;
    }

    &.btn-slider1 {
        line-height: 58px;
        font-size: 18px;
        font-weight: 700;
        padding: 0 44px;
        @include box-shadow(0 9px 13px rgba(#0c0c0c, 0.26));
        border-radius: 58px;
        background-color: $secondary_color;
        color: #fff;
        &:hover {
            box-shadow: none;
            @include transform(translateY(-3px));
        }
        @media #{$max-xsx} {
            font-size: 16px;
            padding: 0 28px;
            line-height: 51px;
            min-width: auto;
        }
    }

    &.btn-slider2 {
        line-height: 58px;
        font-size: 18px;
        font-weight: 700;
        padding: 0 44px;
        @include box-shadow(0 9px 13px rgba(#0c0c0c, 0.26));
        border-radius: 58px;
        background-color: #fff;
        color: #000;
        min-width: 170px;
        &:hover {
            box-shadow: none;
            @include transform(translateY(-3px));
        }
        @media #{$max-xsx} {
            font-size: 16px;
            padding: 0 28px;
            line-height: 51px;
            min-width: auto;
        }
    }
}

.btn--readmore {
    font-size: 16px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    i {
        font-size: 20px;
        @include transition(all 0.5s);
    }
    &:hover {
        i {
            @include transform(translateX(5px));
        }
    }
}

.btn-text-divider1 {
    font-size: 18px;
    font-weight: 700;
    color: #101010;
    display: inline-flex;
    align-items: center;
    span {
        position: relative;
        &:before {
            content: '';
            background-color: #2e2e2e;
            position: absolute;
            bottom: 3px;
            width: 0;
            left: 0;
            @include transition(all 0.4s);
            height: 1px;
        }
    }
    i {
        font-weight: 400;
        font-size: 15px;
        color: $primary_color;
        transform: rotate(-45deg);
        @include transition(all 0.4s);
    }
    &:hover {
        color: #101010;
        i {
            transform: rotate(0deg);
        }
        span:before {
            width: 100%;
        }
    }
}

@-webkit-keyframes pxl_btn_shine{
    100%{
        left:200%
    }
}
@keyframes pxl_btn_shine{
    100%{
        left:200%
    }
}

@keyframes pxl_nanuk_1 {
    0%,
    100% {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    49% {
        opacity: 1;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }
    50% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
        color: inherit;
    }
    51% {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
        color: inherit;
    }
    100% {
        color: inherit;
    }
}

@keyframes pxl_nanuk_2 {
    0%,
    100% {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    49% {
        opacity: 1;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
    50% {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
        color: inherit;
    }
    51% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
        color: inherit;
    }
    100% {
        color: inherit;
    }
}

body.rtl {
    .btn--readmore {
        &:hover i {
            @include transform(scaleX(-1) translateX(5px));
        }
    }
}