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

:root {
  --sliderPos: 66%;
}

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

img {
  width: 100%;
  height: 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: #202020;
}

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: 10px;
}

.container {
  /* max-width: 800px;
  margin: 0 auto; */
  display: block;
}

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

#after-image {
  display: block;
}

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

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

#resizer:after {
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="10" viewBox="0 0 18 10" fill="white"><path 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  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>');
  background-color: #b81f14;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  position: absolute;
  margin: 0 0 0 1px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 1;
  width: 30px;
  border-radius: 99999px;
  border: 2px solid white;
  cursor: col-resize;
}

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

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