// -----------------------------------------------------------------------------
// This file contains all styles related to the button component.
// -----------------------------------------------------------------------------
.btn {
    background: #393939;
    position: relative;
    color: $text-color;
    width: 250px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 25x;
    transform: perspective(1) translateZ(0);
    transition: 0.3s ease-in;

    &:before {
        content: '';
        z-index: -1;
        position: absolute;
        background: $brand-color;
        height: 50px;
        width: 250px;
        // top: 0;
        // left: 0;
        // bottom: 0;
        // right: 0;
        transform: scaleX(0);
        transform-origin: 0 50%;
        // border-top-left-radius: 5px;
        // border-bottom-left-radius: 5px;
        border-radius: 5px;
        transition: 0.3s ease-in-out;
    }

    &:after {
        content: '';
        position: absolute;
        background: $brand-color;
        height: 50px;
        width: 15px;
        top: 0;
        left: 0;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        transition: 0.5s ease-in;

    }

    &:hover {
        background: transparent;

        &:before {
            transform: scaleX(1);
        }

        &:after {
            background: transparent;
        }
    }
}