/*-------------------------------------  Button Style  -----------------------------------------*/

.bazario-creative-button {
    position: relative;
    display: block;
    padding: 12px 30px;
    background-color: #272727;
    overflow: hidden;
    line-height: 1;
    transition: all 0.3s ease;
    
    .bazario-creative-button-text {
        position: relative;
        z-index: 2;
        color: #FF783E;
        
    }
    .bazario-creative-button-icon {
        display: inline-block;
        transition: all 0.3s ease;
    } 
    &:hover{
        .corners-in{
            .bazario-border-top{
                transform: scaleX(0) !important;
            }
            .bazario-border-bottom{
                transform: scaleX(0)!important;
            }
            .bazario-border-left{
                transform: scaleY(0)!important;
            }
            .bazario-border-right{
                transform: scaleY(0)!important;
            }
        }
        .corners-out{
            .bazario-border-top{
                transform: scaleX(1) !important;
            }
            .bazario-border-bottom{
                transform: scaleX(1)!important;
            }
            .bazario-border-left{
                transform: scaleY(1)!important;
            }
            .bazario-border-right{
                transform: scaleY(1)!important;
            }
        }
        &::before {
            width: 100%;
            height: 100%;
        }
        &::after{
            width: 100%;
            right: 0;
        }
        
    }
   
    
    .bazario-creative-button-circle{
        background-color: #272727;
        border-radius: 100px;
        position: absolute;
        left:0;
        top:0;
        width: 0px;
        height: 0px;
        margin-left: 0px;
        margin-top: 0px;
        pointer-events: none;
    }
    
    .explode-circle {
        animation: explode 1s forwards;
    }
    
    .desplode-circle{
    animation: desplode 0.5s forwards;
    }
     
}
.animated-icon-bg::after{
    content: '';
    position: absolute;
    right: 5px;
    top: 5px;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    background: rgba(0, 0, 0, 0.05);
    transition: all .4s;
   
}
.animated-border-corners-in{
    .bazario-border-lines{
        display: block;
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        width: 100%;
        z-index: 0;
        pointer-events: none;
        .bazario-border-top{
            width: 100%;
            height: 2px;
            left: 0;
            top: 0;
            position: absolute;
            background-color: #101010;
            transition: transform .3s;
            transform: scaleX(1);
            transform-origin: left;
        }
        .bazario-border-bottom{
            width: 100%;
            height: 2px;
            right: 0;
            bottom: 0;
            position: absolute;
            background-color: #101010;
            transition: transform .3s;
            transform: scaleX(1);
            transform-origin: right;
        }
        .bazario-border-left{
            width: 2px;
            height: 100%;
            left: 0;
            top: 0;
            position: absolute;
            background-color: #101010;
            transition: transform .3s;
            transform: scaleY(1);
            transform-origin: top;
        }
        .bazario-border-right{
            width: 2px;
            height: 100%;
            right: 0;
            bottom: 0;
            position: absolute;
            background-color: #101010;
            transition: transform .3s;
            transform: scaleY(1);
            transform-origin: bottom;
        }
    }
}
.animated-border-corners-out{
    .bazario-border-lines{
        display: block;
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        width: 100%;
        z-index: 0;
        pointer-events: none;
        .bazario-border-top{
            width: 100%;
            height: 2px;
            left: 0;
            top: 0;
            position: absolute;
            background-color: #101010;
            transition: transform .3s;
            transform: scaleX(0);
            transform-origin: left;
        }
        .bazario-border-bottom{
            width: 100%;
            height: 2px;
            right: 0;
            bottom: 0;
            position: absolute;
            background-color: #101010;
            transition: transform .3s;
            transform: scaleX(0);
            transform-origin: right;
        }
        .bazario-border-left{
            width: 2px;
            height: 100%;
            left: 0;
            top: 0;
            position: absolute;
            background-color: #101010;
            transition: transform .3s;
            transform: scaleY(0);
            transform-origin: top;
        }
        .bazario-border-right{
            width: 2px;
            height: 100%;
            right: 0;
            bottom: 0;
            position: absolute;
            background-color: #101010;
            transition: transform .3s;
            transform: scaleY(0);
            transform-origin: bottom;
        }
    }
}
.animated-bg-slide-left::before{
    position: absolute;
    content: "";
    right: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background-color: #002C47;
    transition: all .3s ease;
    border-radius: inherit;
}
.animated-bg-slide-right::before{
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background-color: #002C47;
    transition: all .3s ease;
    border-radius: inherit;
}
.animated-bg-slide-top::before{
    position: absolute;
    content: "";
    right: 0;
    bottom: 0;
    height: 0%;
    width: 100%;
    background-color: #002C47;
    transition: all .3s ease;
    border-radius: inherit;
}
.animated-bg-slide-bottom::before{
    position: absolute;
    content: "";
    right: 0;
    top: 0;
    height: 0%;
    width: 100%;
    background-color: #002C47;
    transition: all .3s ease;
    border-radius: inherit;
}

 
 
@keyframes explode {
    0% {
        width: 0px;
        height: 0px;
        margin-left: 0px;
        margin-top: 0px;
    }
    100% {
        width: 1000px;
        height: 1000px;
        margin-left: -500px;
        margin-top: -500px;
    }
}
@keyframes desplode {
    0% {
        width: 1000px;
        height: 1000px;
        margin-left: -500px;
        margin-top: -500px;
    }
    100% {
        width: 0px;
        height: 0px;
        margin-left: 0px;
        margin-top: 0px;
    }
}
 