:root {
  --color-primary: #009a89;
  --color-black: #000000;
  --color-white: #ffffff;
}

@font-face {
  font-family: "Pepermind";
  src: url("../fonts/pepermind.woff2") format("woff2"),
    url("../fonts/pepermind.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

body {
  font-family: "Pepermind", sans-serif;
  margin: 0;
  background-color: var(--color-black);
}

.image-comparison {
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
}

.image-comparison__slider-wrapper {
  position: relative;
}

.image-comparison__label {
  font-size: 0;
  line-height: 0;
}

.image-comparison__label,
.image-comparison__range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: transparent;
  border: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  cursor: ew-resize;
  z-index: 20;
}

.image-comparison__image-wrapper--overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: var(--color-primary);
  overflow: hidden;
  z-index: 1;
}

.image-comparison__figure {
  margin: 0;
}

.image-comparison__figure:not(.image-comparison__figure--overlay) {
  position: relative;
  height: 100dvh;
}

.image-comparison__caption {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100vw;
  display: flex;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 20px;
}

.image-comparison__caption--before {
  z-index: 2;
}

.image-comparison__caption--before .image-comparison__caption-footer a {
  color: var(--color-white);
}

.image-comparison__caption--before .image-comparison__caption-footer-line {
  background-color: var(--color-white);
}

.image-comparison__caption-body {
  width: 65%;
  text-align: center;
  color: var(--color-white);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

@media screen and (max-width: 640px) {
  .image-comparison__caption-body {
    flex-direction: column;
    gap: 20px;
  }
}

.image-comparison__image-wrapper--overlay .image-comparison__caption-body {
  width: 80%;
}

.image-comparison__caption-body-logo {
  max-width: 100%;
  height: auto;
  max-height: 35vh;
}

.image-comparison__caption-body-logo-symbol {
  max-width: 30vw;
}

.image-comparison__caption-body-logo-label {
  font-size: calc(30px + 1.5vw);
  margin-top: 100px;
}

@media screen and (max-width: 640px) {
  .image-comparison__caption-body-logo-label {
    margin-top: 0;
  }
}

.image-comparison__caption-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

@media screen and (max-width: 640px) {
  .image-comparison__caption-footer {
    gap: 20px;
  }
}

.image-comparison__caption-footer a {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  margin-bottom: 50px;
  position: relative;
}

.image-comparison__caption-footer a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 9999999;
}

@media screen and (max-width: 1024px) {
  .image-comparison__caption-footer a {
    font-size: 25px;
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 640px) {
  .image-comparison__caption-footer a {
    font-size: 20px;
    margin-bottom: 30px;
  }
}

.image-comparison__caption-footer-line {
  width: 1.8px;
  height: 10vh;
  background-color: var(--color-primary);
}

@media screen and (max-width: 1024px) {
  .image-comparison__caption-footer svg {
    width: 40px;
    height: auto;
  }
}

@media screen and (max-width: 640px) {
  .image-comparison__caption-footer svg {
    width: 30px;
  }
}

.fill-primary {
  fill: var(--color-primary);
}

.fill-white {
  fill: var(--color-white);
}

.fill-black {
  fill: var(--color-black);
}

.image-comparison__slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 100%;
  z-index: 10;
}

.image-comparison__thumb {
  position: absolute;
  top: calc(50% - 35px);
  left: calc(50% - 35px);
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--color-black);
  color: var(--color-primary);
  border-radius: 50%;
  transform-origin: center;
  transition: transform 0.3s ease-in-out;
}

@media screen and (max-width: 1024px) {
  .image-comparison__thumb {
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    width: 40px;
    height: 40px;
  }
}

.image-comparison__thumb-icon {
  max-width: 70%;
}

.image-comparison__range::-webkit-slider-runnable-track {
  width: 70px;
  height: 70px;
  opacity: 0;
}

@media screen and (max-width: 1024px) {
  .image-comparison__range::-webkit-slider-runnable-track {
    width: 40px;
    height: 40px;
  }
}

.image-comparison__range::-moz-range-thumb {
  width: 70px;
  height: 70px;
  opacity: 0;
}

@media screen and (max-width: 1024px) {
  .image-comparison__range::-moz-range-thumb {
    width: 40px;
    height: 40px;
  }
}

.image-comparison__range::-webkit-slider-thumb {
  width: 70px;
  height: 70px;
  opacity: 0;
}

@media screen and (max-width: 1024px) {
  .image-comparison__range::-webkit-slider-thumb {
    width: 40px;
    height: 40px;
  }
}

.image-comparison__range::-ms-fill-lower {
  background-color: transparent;
}

.image-comparison__range::-ms-track {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  margin: 0;
  padding: 0;
  background-color: transparent;
  color: transparent;
  outline: none;
  cursor: col-resize;
}

.image-comparison__range::-ms-thumb {
  width: 0.5%;
  height: 100%;
  opacity: 0;
}

.image-comparison__range::-ms-tooltip {
  display: none;
}
