* {
  margin: 0;
  padding: 0;
}

body {
  /* overflow-y: hidden; removed - leonie*/
}

#all_slides {
  position: relative;
  /* height: 100vh; */
  height: 400px; /* leonie */
  width: 700px;
  margin: 0px auto 0px auto;
  padding: 350px 0px 0px 0px;
  /* margin: 0px; */
  list-style-type: none;
}

@media only screen and (max-width: 1200px) /* leonie*/ {
  #all_slides {
    height: 340px; /* leonie */
    padding: 320px 0px 0px 0px;
  }
}
@media only screen and (max-width: 900px) /* leonie*/ {
    #all_slides {
      height: 190px;
      width: 100%;
      padding: 270px 0px 0px 0px;
  }
}
@media only screen and (max-width: 550px) /* leonie*/ {
  #all_slides {
    height: 160px;
    width: 100%;
    padding: 180px 0px 0px 0px;
  }
}

.slide {
  position: absolute;
  /* border-style: solid; */
  /* top: 400px; */
  margin: 0px auto;
  width: 100%;
  height: 100%;
  text-align: center;
  opacity: 0;
  z-index: 1;
  -webkit-transition: opacity 1s;
  -moz-transition: opacity 1s;
  -o-transition: opacity 1s;
  transition: opacity 1s;
}

.active {
  opacity: 1;
  z-index: 2;
}

.controls {
  display: none;
}

.slide {
  font-size: 40px;
  padding: 40px;
  box-sizing: border-box;
  /* background: #333; */
  color: #fff;
  background-position: center bottom;
  /* background-size: cover;
  background-position: 50% 0; */
  background-repeat: no-repeat;
}


.slide:nth-of-type(1) {
  background-image: url("../../../../images/slide_Corolla.png");
}

.slide:nth-of-type(2) {
  background-image: url("../../../../images/slide_Fortuner.png");
}

.slide:nth-of-type(3) {
  background-image: url("../../../../images/slide_ToyotaHilux.png");
}

.slide:nth-of-type(4) {
  background-image: url("../../../../images/slide_QuantumMini.png");
}

.slide:nth-of-type(5) {
  background-image: url("../../../../images/slide_LuxuryBus.png");
}

.slide:nth-of-type(6) {
  background-image: url("../../../../images/slide_CoasterBus.png");
}



@media only screen and (max-width: 1200px) {
  .slide:nth-of-type(1) {
    background-image: url("../../../../images/slide_Corolla_m.png");
  }
  .slide:nth-of-type(2) {
    background-image: url("../../../../images/slide_Fortuner_m.png");
  }
  .slide:nth-of-type(3) {
    background-image: url("../../../../images/slide_ToyotaHilux_m.png");
  }
  .slide:nth-of-type(4) {
    background-image: url("../../../../images/slide_QuantumMini_m.png");
  }
  .slide:nth-of-type(5) {
    background-image: url("../../../../images/slide_LuxuryBus_m.png");
  }
  .slide:nth-of-type(6) {
    background-image: url("../../../../images/slide_CoasterBus_m.png");
  }
  
}

@media only screen and (max-width: 900px) {
    .slide:nth-of-type(1) {
    background-image: url("../../../../images/slide_Corolla_s.png");
  }
  .slide:nth-of-type(2) {
    background-image: url("../../../../images/slide_Fortuner_s.png");
  }
  .slide:nth-of-type(3) {
    background-image: url("../../../../images/slide_ToyotaHilux_s.png");
  }
  .slide:nth-of-type(4) {
    background-image: url("../../../../images/slide_QuantumMini_s.png");
  }
  .slide:nth-of-type(5) {
    background-image: url("../../../../images/slide_LuxuryBus_s.png");
  } 
  .slide:nth-of-type(6) {
    background-image: url("../../../../images/slide_CoasterBus_s.png");
  } 
}

@media only screen and (max-width: 550px) {
  .slide:nth-of-type(1) {
    background-image: url("../../../../images/slide_Corolla_ss.png");
  }
  .slide:nth-of-type(2) {
    background-image: url("../../../../images/slide_Fortuner_ss.png");
  }
  .slide:nth-of-type(3) {
    background-image: url("../../../../images/slide_ToyotaHilux_ss.png");
  }
  .slide:nth-of-type(4) {
    background-image: url("../../../../images/slide_QuantumMini_ss.png");
  }
  .slide:nth-of-type(5) {
    background-image: url("../../../../images/slide_LuxuryBus_ss.png");
  }
  .slide:nth-of-type(6) {
    background-image: url("../../../../images/slide_CoasterBus_ss.png");
  }
}

/* .slide:nth-of-type(4){
  background-image: url('../images/sea-2654890_1920.jpg');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat
} */

.controls {
  display: inline-block;
  position: relative;
  top: 1rem;
  right: 0.5rem;
  border: none;
  outline: none;
  font-size: 20px;
  color: #bca17f; /* added */
  cursor: pointer;
  /* border: 2px solid #fff; */
  border-radius: 1.5rem;
  /* background: #CCCCCC; gold */
  background: rgba(206, 195, 185, 0.5);
  width: 3rem;
  height: 3rem;
  margin-left: 0.5rem;
}

.controls:hover,
.controls:focus {
  background: #eee;
  /* color: #333; */
  color: #bca17f;
}

.container {
  position: relative;
}

.buttons {
  position: absolute;
  right: 0.5rem;
  bottom: 120px;
  z-index: 3000;
  font-size: 0px;
}

@media only screen and (max-width: 800px) {
  .buttons {
    bottom: 15px;
  }
}

.fancy {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  left: -2rem;
  width: 7rem;
  height: 2rem;
  background: gold;
  color: #000;
  z-index: 3;
  transform: rotate(-45deg);
  border-radius: 1rem;
}
