﻿.carousel {
    margin-left: 10px;
}

.approval {
    margin-bottom: 10em;
    margin: 10px;
}

    .approval .carousel-inner {
        display: flex;
    }

    .approval .carousel-item {
        display: block;
        margin: 0 auto;
        flex: 0 0 calc(100%/3);
    }

    .approval .carousel-inner .carousel-item .card {
        margin: 0 .5em;
        flex-direction: row;
        background: #136a8a; /* fallback for old browsers */
        background: -webkit-linear-gradient(to right, #267871, #136a8a); /* Chrome 10-25, Safari 5.1-6 */
        background: linear-gradient(to right, #267871, #136a8a); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
        color: white;
        height: auto;
        text-align: justify;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        margin-top: 1em;
    }

    .approval .img-wrapper {
        text-align: center;
        height: auto;
    }

    .approval .carousel-control-prev,
    .approval .carousel-control-next {
        background-color: rebeccapurple;
        width: 6vh;
        height: 6vh;
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
    }

@media screen and (max-width:576px) {

    .approval .carousel-inner {
        display: flex;
    }

    .approval .carousel-item {
        display: block;
        margin-right: 0;
        flex: 0 0 calc(100%/1);
    }

    .approval .carousel-inner .carousel-item .card {
        flex-direction: column;
        height: 500px;
    }

    .approval .img-wrapper {
        align-items: start;
        height: auto;
    }

    .approval .carousel-control-prev,
    .approval .carousel-control-next {
        background-color: rebeccapurple;
        width: 6vh;
        height: 6vh;
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
    }
}
