* {
  margin: 0;
  padding: 0;
}

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

#all_slides {
  position: relative;
  /* width: 100%; */
  /* height: 100vh; */
  height: 750px;
  margin: 0px;
  padding: 0px;
  /* margin: 0px; */
  list-style-type: none;
}

@media only screen and (max-width: 1550px) /* leonie*/ {
  #all_slides {
    height: 600px; /* leonie */
  }
}

@media only screen and (max-width: 1050px) /* leonie*/ {
    #all_slides {
      height: 600px;
  }
}
@media only screen and (max-width: 560px) /* leonie*/ {
  #all_slides {
    height: 480px;
  }
}

.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/pic_4x4Camper.jpg");

  background-image: -webkit-image-set(
    url("../../../../images/pic_4x4Camper.webp") 1x,
    url("../../../../images/pic_4x4Camper.jpg") 1x
  );

  background-image: image-set(
    url("../../../../images/pic_4x4Camper.webp") type("image/webp"),
    url("../../../../images/pic_4x4Camper.jpg") type("image/jpeg")
  );
}

.slide:nth-of-type(2) {
  /* The order is important - browsers will use apply the last valid instruction they understand */
  /* 1. Universal Fallback: For older browsers (like IE or legacy Safari/Chrome) */
  background-image: url("../../../../images/pic_conversionSouthAfrica.jpg");

  /* 2. Legacy Vendor Prefix: For older Safari, iOS, and older Chrome/Edge */
  background-image: -webkit-image-set(
    url("../../../../images/pic_conversionSouthAfrica.webp") 1x,
    url("../../../../images/pic_conversionSouthAfrica.jpg") 1x
  );

  /* 3. Modern Standard: For all up-to-date modern web browsers */
  background-image: image-set(
    url("../../../../images/pic_conversionSouthAfrica.webp") type("image/webp"),
    url("../../../../images/pic_conversionSouthAfrica.jpg") type("image/jpeg")
  );
}



@media only screen and (max-width: 1050px) {
  .slide:nth-of-type(1) {
    background-image: url("../../../../images/pic_4x4Camper_m.jpg");

    background-image: -webkit-image-set(
      url("../../../../images/pic_4x4Camper_m.webp") 1x,
      url("../../../../images/pic_4x4Camper_m.jpg") 1x
    );

    background-image: image-set(
      url("../../../../images/pic_4x4Camper_m.webp") type("image/webp"),
      url("../../../../images/pic_4x4Camper_m.jpg") type("image/jpeg")
    );
    
  }

  .slide:nth-of-type(2) {
    background-image: url("../../../../images/pic_conversionSouthAfrica_m.jpg");

    background-image: -webkit-image-set(
      url("../../../../images/pic_conversionSouthAfrica_m.webp") 1x,
      url("../../../../images/pic_conversionSouthAfrica_m.jpg") 1x
    );

    background-image: image-set(
      url("../../../../images/pic_conversionSouthAfrica_m.webp") type("image/webp"),
      url("../../../../images/pic_conversionSouthAfrica_m.jpg") type("image/jpeg")
    );

  }
}


/* @media only screen and (max-width: 900px) {
    .slide:nth-of-type(1) {
    background-image: url("../../../../images/pic_4x4Camper.jpg");
  }
  .slide:nth-of-type(2) {
    background-image: url("../../../../images/pic_4x4Camper.jpg");
  }
} */

@media only screen and (max-width: 600px) {
  .slide:nth-of-type(1) {
    background-image: url("../../../../images/pic_4x4Camper_s.jpg");

    background-image: -webkit-image-set(
      url("../../../../images/pic_4x4Camper_s.webp") 1x,
      url("../../../../images/pic_4x4Camper_s.jpg") 1x
    );

    background-image: image-set(
      url("../../../../images/pic_4x4Camper_s.webp") type("image/webp"),
      url("../../../../images/pic_4x4Camper_s.jpg") type("image/jpeg")
    );

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

    background-image: -webkit-image-set(
      url("../../../../images/pic_conversionSouthAfrica_s.webp") 1x,
      url("../../../../images/pic_conversionSouthAfrica_s.jpg") 1x
    );

    background-image: image-set(
      url("../../../../images/pic_conversionSouthAfrica_s.webp") type("image/webp"),
      url("../../../../images/pic_conversionSouthAfrica_s.jpg") type("image/jpeg")
    );
  }
}

/* .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;
}
