@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");

* {
  box-sizing: border-box;
  padding: 0px;
  margin: 0px;
}

img {
  width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

a {
  text-decoration: none;
  color: #4b4b4e;
}

a:hover {
  cursor: pointer;
  color: #293299;
}

.description {
  color: #4b4b4e;
  cursor: default;
  font-family: Helvetica, sans-serif;
  display: block;
  font-size: 13px;
  line-height: 18px;
  padding-top: 6px;
}

.container {
  display: block;
}

#before-after-slider {
  width: 100%;
  position: relative;
  overflow: hidden;
}

#after-image {
  display: block;
}

#before-image {
  position: absolute;
  height: 100%;
  width: 50%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 2;
}

#resizer {
  position: absolute;
  display: flex;
  align-items: center;
  z-index: 5;
  top: 0;
  left: 50%;
  height: 100%;
  background: white;
  border-right: 1px solid white;
  /*Stop vertical scrolling on touch*/
  -ms-touch-action: pan-y;
  touch-action: pan-y;
}

#resizer:after {
  background-color: #b81f14;
  content: url('data:image/svg+xml;utf8,<svg class="image-comparison__thumb-icon" xmlns="http://www.w3.org/2000/svg" width="18" height="10" viewBox="0 0 18 10" fill="white"><path class="image-comparison__thumb-icon--left" d="M12.121 4.703V.488c0-.302.384-.454.609-.24l4.42 4.214a.33.33 0 0 1 0 .481l-4.42 4.214c-.225.215-.609.063-.609-.24V4.703z"></path><path class="image-comparison__thumb-icon--right" d="M5.879 4.703V.488c0-.302-.384-.454-.609-.24L.85 4.462a.33.33 0 0 0 0 .481l4.42 4.214c.225.215.609.063.609-.24V4.703z"></path></svg>');
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  position: absolute;
  margin: 0 0 0 -22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid white;
  cursor: col-resize;
}

@media (max-width: 767px) {
  .container {
    width: 100%;
  }
}

@media (max-width: 599px) {
  #resizer::after {
    width: 30px;
    height: 30px;
    margin: 0 0 0 -18px;
  }
}
