html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

/* body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
} */

.containers {
  position: relative;
  width: 100%;
  height: 300px;
  border: 2px solid white;
}

.containers .img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-size: 900px 100%; */
  background-size: cover;
}

.containers .background-img {
  background-image: url("../images/after1.jpg");
}

.containers .foreground-img {
  background-image: url("../images/before1.jpg");
  width: 50%;
}

.containers .background-img2 {
  background-image: url("../images/after2.jpg");
}

.containers .foreground-img2 {
  background-image: url("../images/before2.jpg");
  width: 50%;
}

.containers .background-img3 {
  background-image: url("../images/after3.jpg");
}

.containers .foreground-img3 {
  background-image: url("../images/before3.jpg");
  width: 50%;
}

.containers .slider, 
.containers .slider2,
.containers .slider3  { 
  position: absolute;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  background: rgba(242, 242, 242, 0.3);
  outline: none;
  margin: 0;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.containers .slider:hover,
.containers .slider2:hover,
.containers .slider3:hover {
  background: rgba(242, 242, 242, 0.1);
}

.containers .slider::-webkit-slider-thumb,
.containers .slider2::-webkit-slider-thumb,
.containers .slider3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 6px;
  height: 300px;
  background: white;
  cursor: pointer;
}

.containers .slider::-moz-range-thumb,
.containers .slider2::-moz-range-thumb,
.containers .slider3::-moz-range-thumb {
  width: 6px;
  height: 300px;
  background: white;
  cursor: pointer;
}

.containers .slider-button,
.containers .slider-button2,
.containers .slider-button3 {
  pointer-events: none;
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: white;
  left: calc(50% - 18px);
  top: calc(50% - 18px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.containers .slider-button:after,
.containers .slider-button2:after,
.containers .slider-button3:after {
  content: "";
  padding: 3px;
  display: inline-block;
  border: solid #5D5D5D;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}

.containers .slider-button:before,
.containers .slider-button2:before,
.containers .slider-button3:before {
  content: "";
  padding: 3px;
  display: inline-block;
  border: solid #5D5D5D;
  border-width: 0 2px 2px 0;
  transform: rotate(135deg);
}