.carousel{
    position: relative;
}

.carousel-inner{
    position: relative;
}

.carousel-item{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .8s ease;
}

.carousel-item.active{
    opacity: 1;
    position: relative;
}

.carousel-item .first-word {
    transition: opacity .1s ease, transform 1s ease;
    transform: translateY(-1.5rem);
    display: inline-block;
    opacity: 0;
}

.carousel-item.active .first-word{
    transition: opacity .5s ease, transform .6s ease;
    transform: translateY(0);
    opacity: 1;
}

.carousel-controls .prev{
    display: inline-block;
    height: 32px;
    width: 32px;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url('prev.svg');
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
    cursor: pointer;
    opacity: .5;
}

.carousel-controls .next{
    display: inline-block;
    height: 32px;
    width: 32px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url('next.svg');
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
    cursor: pointer;
    opacity: .5;
}

.prev:hover, .next:hover{
    opacity: 1;
}

.carousel-control-left.disabled,
.carousel-control-right.disabled {
    opacity: 0;
    cursor: auto;
    pointer-events: none;
}

.carousel-indicators{
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.carousel-indicators span{
    display: inline-block;
    background-color: white;
    width: 30px;
    height: 4px;
    border-radius: 2px;
    opacity: .5;
    cursor: pointer;
    margin: 3px;
}

.carousel-indicators span.active{
    opacity: 1;
}

.carousel-testimonial {
    overflow: hidden;
    position: relative;
}

.carousel-testimonial .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: grid;
    align-items: stretch;
    transform: translateX(100%);
    transition: transform 0.5s ease;
    opacity: 1;
}

.carousel-testimonial .carousel-item.active {
    transform: translateX(0);
}

.carousel-testimonial .carousel-item.prev {
    transform: translateX(-100%);
}

.carousel-testimonial .carousel-item.next {
    transform: translateX(100%);
}
