@import '../../common';

.rs-company-slogan {
    position: relative;
    width: 150px;
    height: 150px;
    background: $primaryColor;
    border-radius: 50%;
    padding: 2px;
    .slogan-logo {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 90px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 90px;
        transform: translate(-50%, -50%);
        background: $secondaryColor;
        border-radius: 50%;
        text-align: center;
        padding: 20px;
        z-index: 1;
        img {
            width: auto;
            height: 100%;
        }
    }
    .text-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        span {
            position: absolute;
            color: #fff;
            height: 100%;
            width: 100%;
            text-align: center;
        }
    }
    &.text-anim-yes {
        .text-wrapper {
            animation: slogan-text-anim 30s infinite linear;
        }
    }
    &.image-anim-yes {
        .slogan-logo {
            img {
                animation: slogan-image-anim 1s infinite alternate;
            }
        }
    }
    @keyframes slogan-text-anim {
        0% {
            transform: rotate(0);
            -webkit-transform: rotate(0);
        }
        100% {
            transform: rotate(359deg);
            -webkit-transform: rotate(359deg);
        }
    }
    @keyframes slogan-image-anim {
        0% {
            transform: scale(1);
            -webkit-transform: scale(1);
        }
        100% {
            transform: scale(0.9);
            -webkit-transform: scale(0.9);
        }
    }
}