
.slider {
  position: absolute;
  display:block;
  top: 340px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1110px;
  height: 350px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
  border-radius:5px;
}



.wrapper {
  overflow: hidden;
  position: relative;
  background: #222;
  z-index: 1;
}

#items {
  width: 10000px;
  position: relative;
  top: 0;
  left: -0px;
}

#items.shifting {
  transition: left .2s ease-out;
}

.slide {
  width: 1110px;
  height: 350px;
  cursor: pointer;
  float: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 1s;
  position: relative;
  background: #FFCF47;
  border-radius:5px;
}

.slider.loaded .slide:nth-child(2),
.slider.loaded .slide:nth-child(7) {
  background: #FFCF47;
}
.slider.loaded .slide:nth-child(1),
.slider.loaded .slide:nth-child(6) {
  background: #7ADCEF;
}
.slider.loaded .slide:nth-child(3) {
  background: #F97C68;
}
.slider.loaded .slide:nth-child(4) {
  background: #a78df5;
}
.slider.loaded .slide:nth-child(5) {
  background: #ff8686;
}

.control {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 20px;
  margin-top: -20px;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.prev,
.next {
  background-size: 22px;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.prev {
  background-image: url(https://cdn0.iconfinder.com/data/icons/navigation-set-arrows-part-one/32/ChevronLeft-512.png);
  left: -20px;
}

.next {
  background-image: url(https://cdn0.iconfinder.com/data/icons/navigation-set-arrows-part-one/32/ChevronRight-512.png);
  right: -20px;
}

.prev:active,
.next:active {
  transform: scale(0.8);
}

.img-responsive-item{
  width:100%;
  height:auto;
  overflow: hidden;
}

@media only screen and (max-width: 600px) {
  body {
    /* background-color: lightblue; */
  }

  .slider {
    position: absolute;
    display:block;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 300px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    border-radius:5px;
  }

  .slide {
    width: 400px;
    height: 300px;
    cursor: pointer;
    float: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 1s;
    position: relative;
    background: #FFCF47;
    border-radius:5px;
  }

  #items {
    width: 10000px;
    position: relative;
    top: 0;
    left: -400px;
  }
}
