.rc-tab-slider {
    display: flex;
    background: transparent;
    margin: 70px auto;
    padding: 0;
    width: 991px;
}

.rc-step {
    height: 400px;
    padding: 15px;
    border-right: 1px solid white;
    -webkit-transition: 0.8s;
    -o-transition: 0.8s;
    transition: 0.8s;
    position: relative;
    overflow: hidden;
    list-style: none;
    background-color: #222;
}

.rc-detail {
    width: 85%;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    /* background: white; */
    color: #faf8f8;
    opacity: 0;
    padding: 30px;
    box-sizing: border-box;
    -webkit-transition: 0.8s;
    -o-transition: 0.8s;
    transition: 0.8s;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
    display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
    display: -webkit-flex; /* NEW - Chrome */
    display: -ms-flexbox;  /* TWEENER - IE 10 */
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.rc-detail * {
    color: white
}

.rc-detail p {font-size: 1.2em;line-height: 1.5em;}

.rc-step.active {
    width: 70% !important;
}

.rc-step.active .rc-detail {
    opacity: 1;
    -webkit-transition-delay: 0.6s;
    -moz-transition-delay: 0.6s;
    -o-transition-delay: 0.6s;
    transition-delay: 0.6s;
    transform: none;
    text-shadow: 0px 0px 1px #000;
}

.rc-step span {
    writing-mode: vertical-rl;
    font-size: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 4px;
    width: 40px;
    transform: rotate(180deg);
    font-weight: 700;
    cursor: pointer;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-shadow: 0px 0px 2px #222
}

.rc-step.active span {
    left: 25px;
    right: auto;
    margin: 0;
}

/* STEP/DETAIL BORDER COLORS */

.rc-tab-slider .rc-step {
    background-repeat: no-repeat;
    background-size: cover;
}
.rc-tab-slider .rc-step:nth-child(1) {
    border-top: 10px solid red;
    background-image: url(https://stock.imgix.net/10068?bri=-30);
}

.rc-tab-slider .rc-step:nth-child(2) {
    border-top: 10px solid orangered;
    background-image: url(https://stock.imgix.net/8441?bri=-30);
}

.rc-tab-slider .rc-step:nth-child(3) {
    border-top: 10px solid orange;
    background-image: url(https://stock.imgix.net/6919?bri=-30);
}

.rc-tab-slider .rc-step:nth-child(4) {
    border-top: 10px solid yellow;
    background-image: url(https://stock.imgix.net/4505?bri=-30);
}

.rc-tab-slider .rc-step:nth-child(5) {
    border-top: 10px solid yellowgreen  ;
    background-image: url(https://stock.imgix.net/7947?bri=-30);
}

/* Responsive styles for screens smaller than 1024px */
@media (max-width: 1024px) {
    .rc-tab-slider {
        flex-direction: column;
        width: 100%;
    }
    .rc-step {
        width: initial !important;
        height: auto;
        border-right: none;
        border-bottom: 1px solid white;
    }
    .rc-step.active {
        width: auto !important;
    }
    .rc-step span {
        writing-mode: horizontal-tb;
        font-size: 16px;
        width: auto;
        transform: none;
        font-weight: 400;
        position: static;
        margin: 10px auto;
    }
    .rc-step.active span {
        margin: 10px
    }
    .rc-detail {
        position: relative;
        width: auto;
        opacity: 0;
        transform: none;
        visibility: hidden;
        transition: 0.3s;
        height: 0;
        position: absolute;
        right: -11em;
        text-align: center;
    }
    .rc-step.active .rc-detail {
        transform: none;
        height: 100%;
        opacity: 1;
        visibility: visible;
        height: auto;
        position: relative;
        right: 0;
    }
}