.card-container {
    position: relative;
    flex-shrink: 1;
    display: flex;
    flex-basis: 1;
    overflow: auto;
    max-width: 100%;
}

.card-slider {
    display: flex;
    flex-grow: 1;
    width: 100%;
}

.card {
    display: flex;
    min-width: 280px;
    flex-basis: 1;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    max-width: 350px;
    transition: transform 0.5s ease;
    text-align: center;
    padding: 10px;
    color: black;
}

.card img {
    display: flex;
    max-width: 300px;
    justify-content: center;
    align-items: center;
}

.prev,
.next {
    padding: 5px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
}

.next {
    right: 0px;
}


/*- second card -*/

.card-container1 {
    position: relative;
    flex-shrink: 1;
    display: flex;
    flex-basis: 1;
    overflow: auto;
    max-width: 100%;
}

.card-slider1 {
    display: flex;
    flex-grow: 1;
    width: 100%;
}

.card1 {
    display: flex;
    min-width: 280px;
    flex-basis: 1;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    max-width: 350px;
    height: 340px;
    transition: transform 0.5s ease;
    text-align: center;
    padding: 10px;
    color: black;
}

.card1 img {
    display: flex;
    max-width: 300px;
    justify-content: center;
    align-items: center;
}

.prev1,
.next1 {
    padding: 5px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
}

.next1 {
    right: 0px;
}

/*- Third card -*/

.card-container2 {
    position: relative;
    flex-shrink: 1;
    display: flex;
    flex-basis: 1;
    overflow: auto;
    max-width: 100%;
}

.card-slider2 {
    display: flex;
    flex-grow: 1;
    width: 100%;
}

.card2 {
    display: flex;
    min-width: 280px;
    flex-basis: 1;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    max-width: 350px;
    height: 340px;
    transition: transform 0.5s ease;
    text-align: center;
    padding: 10px;
    color: black;
}

.card2 img {
    display: flex;
    max-width: 300px;
    justify-content: center;
    align-items: center;
}

.prev2,
.next2 {
    padding: 5px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
}

.next2 {
    right: 0px;
}