

.carousel-text {
    overflow: hidden;
    padding: 10px 0;
    background: #222222;
    color: #fffeea;
    white-space: nowrap;
    position: relative;
    display: flex;
    justify-content: center;
}
.carousel-text:hover .carousel-text__item {
    animation-play-state: paused !important;
}
.carousel-text__item {
    margin: 0 15px;
    display: inline-flex;
    align-items: center;
    animation: 8s slide-horizontal infinite linear;
}
.carousel-text__item span {
    margin: 0 30px;
    font-size: 20px;
}
.carousel-text__item i {
    margin: 0 15px;
    font-size: 10px;
}
.carousel-text.carousel-text-1 .carousel-text__item {
    animation: 5s slide-horizontal infinite linear;
}
.carousel-text.carousel-text-2 .carousel-text__item {
    animation: 10s slide-horizontal infinite linear;
}
.carousel-text.carousel-text-3 .carousel-text__item {
    animation: 15s slide-horizontal infinite linear;
}
.carousel-text.carousel-text-4 .carousel-text__item {
    animation: 20s slide-horizontal infinite linear;
}
.carousel-text.carousel-text-5 .carousel-text__item {
    animation: 25s slide-horizontal infinite linear;
}
@keyframes slide-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (max-width:576px) {
    .carousel-text__item {
        margin: 0 10px;
    }
    .carousel-text__item span {
        margin: 0 20px;
    }
}