@font-face {
  font-family: 'Norms';
  src: url('../fonts/TT-Norms-Fonts/TTNorms-Regular.otf');
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Norms Bold';
  src: url('../fonts/TT-Norms-Fonts/TTNorms-Bold.otf');
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Norms SemiBold';
  src: url('../fonts/TT-Norms-Fonts/TTNorms-Medium.otf');
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Norms Light';
  src: url('../fonts/TT-Norms-Fonts/TTNorms-Light.otf');
  font-style: normal;
  font-display: swap;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.abs {
  position: absolute;
}

a {
  color: white;
  text-decoration: none;
  &:hover {
    color: lightblue;
  }
}

body {
  bottom: 0;
  font-family: 'Titillium Web', sans-serif;
  color: white;
  left: 0;
  margin: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform-origin: 0px 0px;
  /* overflow: hidden; */
}
html, body{
  display: block;
  position: relative;
  width: 100vw;
  height: 100vh;
  font-family: Montserrat, Helvetica, sans-serif;
}
.container {
  position: relative;
  box-sizing: border-box;
  /* background-color: #596e73; */
  width: 100%;
  min-height: 100%;
  /* padding: 2rem; */
  /* max-height: 100%; */
  /* background: url(./design/images/SplashScreenBG.png); */
  height: 100%;
  background-color: #fff;
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
  position: relative;
  overflow: hidden;
}

.input_video {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  &.selfie {
    transform: scale(-1, 1);
  }
}

.input_image {
  position: absolute;
}

.canvas-container {    
  display: flex;
  width: 100%;
  /* max-width: 480px; */
  margin: auto;
  align-items: start;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  height: calc(100%);
  max-height: 100vh;
  transition: 0.5s;
}

.canvas-container.result{
  max-width: 480px;
  max-height: 40vh;
}

.canvas-container canvas{
  border-radius: 1rem;
  height: 100vh;
  /* height: calc(100vh - 12rem); */
}
.capture-modal{
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
}
.capture-modal-background{
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: rgba(0,0,0,.5);
  z-index: 1;
}
.capture-modal-fill{
  background-color: white;
  width: 88vw;
  height: 88vw;
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 30px;
}
.capture-modal-fill img, .capture-modal-fill a{
  position: absolute;
  width: 100%;
  height: 100%;
}
.capture-modal-fill img{
  width: 90%;
  height: 90%;
  top: 5%;
  left: 5%;
}

.canvas-container.show-scan-line .canvas-border::after{
  content: "";
  width: 100%;
  background-image: url("./design/images/GlowLine.png");
  height: 100px;
  position: absolute;
  margin-top: -50px;
  animation-name: animScan;
  animation-duration: 4s;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
}
.raw_canvas{
  position: absolute;
  /* width: 100%; */
  top: 0;
  /* transform:translate(-50%); */
}
#effect_raw{
  display: none!important;
}
#effect_final{
  transform-origin: center;
  transform: translate(-50%, 40%) scale(2.5);
}
.denoise-container{
  padding: 0 2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  max-height: 0;
  overflow: hidden;
  transition: 0.5s;
}
.denoise-container.active {
  max-height: 33vh;
}
.output_canvas {
  /* max-width: 1280px; */
  /* max-height: 640px; */
  /* display: block; */
  /* width: 100%; */
  display: block!important;
  position: relative;
  left: 0;
  top: 0;
  margin: auto;
  
  /* transform: translateX(-50%);
  margin-left: 50%; */
}
.cropped_canvas
{
  min-width: 360px;
  max-height: 640px;
  /* display: block!important; */
  margin: auto;
  position: relative;
}

.logo {
  bottom: 10px;
  right: 20px;

  .title {
    color: white;
    font-size: 28px;
  }

  .subtitle {
    position: relative;
    color: white;
    font-size: 10px;
    left: -30px;
    top: 20px;
  }
}

.control-panel {
  position: absolute;
  left: 10px;
  top: 10px;
}

.raw-canvas-container, .effects-container{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}
.raw-canvas-container.raw-canvas-with-slider{
  border-right: 1px solid white;
  z-index: 7;
}
.effects-container{
  z-index: 8;
}
#canvasSlider{
  position: absolute;
  height: 0;
  appearance: none;
  background-color: transparent;
  border: none;
  top: 50%;
  pointer-events: initial;
  z-index: 9;
}
#canvasSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0px solid transparent;
  background: url(./design/images/arrow-diff.png);
  background-size: 18px 18px;
  cursor: pointer;
  margin-top: -8px;
}
#canvasSlider::-webkit-slider-runnable-track {
  width: 100%;
  height: 0;
  cursor: pointer;
  background: transparent;
  border-radius: 12px;
}
input[type=range]{
  width: 100%;
  height: 3px;
  background-color: white;
  color: white;
  outline: none;
  appearance: none;
  border-radius: 8px;
  border: 1px solid #70CACB;
  margin: 16px 0;
}
.loading {
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  align-items: center;
  backface-visibility: hidden;
  justify-content: center;
  opacity: 1;
  transition: opacity 1s;

  .message {
    font-size: x-large;
  }

  .spinner {
    position: absolute;
    width: 120px;
    height: 120px;
    animation: spin 1s linear infinite;
    border: 32px solid #bebebe;
    border-top: 32px solid #3498db;
    border-radius: 50%;
  }
}

.loaded .loading {
  opacity: 0;
}

.shoutout {
  left: 0;
  right: 0;
  bottom: 40px;
  text-align: center;
  font-size: 24px;
  position: absolute;
}


.status-container {
  /* max-width: 720px; */
  width: 100%;
  color: black;
  margin: auto;
  display: block;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0;
  box-sizing: border-box;
  opacity: 0;
  /* background-color: rgba(0,0,0,.5); */
  pointer-events: none;
  transition: 0.65s;
  z-index: 99;
}
.status-container .status-box{
  display: block;
  position: absolute;
  bottom: 0;
  opacity: 0;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 20px 0 120px;
  border-radius: 1rem 1rem 0 0;
  background-color: #fff;
  color: #000;
  transition: 0.5s;
  margin-top: 100px;
}
.status-container.show-status{
  /* animation-name: showContainer;
  animation-duration: .65s;
  animation-iteration-count: 1;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  pointer-events: initial; */
  opacity: 1;
  pointer-events: initial;
}
.status-container.show-status .status-box{
  /* animation-name: showBox;
  animation-duration: 1s;
  animation-delay: .55s;
  animation-iteration-count: 1;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards; */
  transition-delay: 0.5s;
  opacity: 1;
  pointer-events: initial;
  margin-top: 0;
}
.status-bar{
  display: block;
  width: 100%;
  max-width: 100%;
  height: 3px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #70CACB;
  background-color: #fff;
  overflow: hidden;
}
.status-fill
{
  position: relative;
  display: block;
  max-width: 100%;
  width: 0;
  height: 100%;
  background-color: #6BB7C4;
}
.status-fill--Minimal{
  background-color: #A3E984;
}
.status-fill--Medium{
  background-color: #FFFF32;
}
.status-fill--High{
  background-color: #C46B6D;
}

.status-skin-condition
{
  position: relative;
  display: none;
  max-width: 550px;
  margin: auto;
  color: black;
  margin-top: 2rem;
  padding-bottom: 80px;
}
.status-skin-title, .statis-skin-detail{
  font-size: 1.5em;
  margin-top: 18px auto;
  text-align: center;
}

.status-skin-detail {
  font-size: 1.2em;
  margin-bottom: 30px;
  text-align: center;
}
.status-detail{
  width: auto;
  position: relative;
  display: block;
  max-width: calc(100% - 80px);
  margin: auto;
}
.status-detail-text {
  float: right;
  font-size: .65em;
}
.status-detail-text ~p {
  font-size: .65em;
  font-weight: 600;
  margin: 2px 0 8px;
}
@keyframes animScan{
  0%, 100% {
    top: 0%;
  }
  50%{
    top: 100%

  }
}

.loader, .start-menu{
  color: #000;
  background-color: #ffffff;
}

.loader, .start-menu {
  position: fixed;
  /* color: #000; */
  /* background-color: #000; */
  font-size: 16px;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0;
  z-index: 999;
  transition: 1s;
}
.start-menu
{
  text-align: center;
  z-index: 1000;
  display: block;
}
.start-menu-content {
  position: relative;
  padding-top: 10%;
}
.loader .loading-icon
{
  margin-bottom: .5rem !important;
  width: 36px;
  height: 36px;
}
.loader.fade{
  opacity: 0;
  pointer-events: none;
}

.start-menu-guide-selfie
{
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: auto;
}
.start-menu-title, .wardah-loader-text {
  font-weight: 700;
  font-size: 1rem;
  margin: 0.8rem 0 1rem;
}
.start-menu-subtitle{
  font-size: 0.65rem;
  line-height: 1rem;
  margin: 1rem;
}
.start-menu-subtitle p
{
  margin: 0.2rem 0;
  padding: 0;
}

.start-menu-options
{
  text-align: left;
  padding: 0 2rem;
}
.start-menu-option
{
  padding-left: 60px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1rem 0 1rem 3rem;
  position: relative;
}
.start-menu-option img {
  position: absolute;
  width: 30px;
  height: 30px;
  left: 0;
  top: 0.5rem;
}
.start-menu-guide-selfie img {
  width: 100%;
}
.canvas-border{
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  margin: 0 auto 20px auto;
  border-radius: 2rem;
  border: 2px solid #50FF7F;
  z-index: 0;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 8;
}



input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
  background: #70CACB;
  border-radius: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 3px solid #70CACB;
  background-color: #fff;
  cursor: pointer;
  margin-top: -7px;
}
input[type=range]{
  width: 100%;
  height: 2px;
  background-color: white;
  color: white;
  outline: none;
  appearance: none;
  border-radius: 0;
  border: 0px solid #70CACB;
}
/* .start-button{
  width: 100px;
  height: 62px;
  overflow: hidden;
  position: relative;
  appearance: none;
  background: none;
  border: none;
  border-radius: 20px;
  padding: 0;
  margin: auto;
  margin-top: 20px;
  display: block;
}
.start-button img{
  width: 150%;
  bottom: 0;
  position: absolute;
  left: 0;
} */
.start-button{
  border: 1px solid #ffffff;
  border-width: 1px!important;
}
.start-button--pressed .start-button{
  pointer-events: none;
  animation-name: hideButton;
  animation-duration: 1s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}
.start-button-fill-container{
  position: relative;
  width: 100%;
  overflow: hidden;
}
.start-button-fill
{
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  bottom: 0;
  background-color: #fff;
  border-radius: 1rem;
  transition: 0.25s;
}


@keyframes hideButton{
  0%{
    height: 3rem;
    line-height: 1rem;
    background-color: #70CACB;
    border-color: #007393;
  }
  75% {
    height: 0;
    line-height: 5rem;
    background-color: #ffffff;
    border-color: #007393;
  }
  100%{
    height: 9px;
    line-height: 5rem;
    background-color: #ffffff;
    border-color: #007393;
  }
}
@keyframes showBox{
  0%{
    opacity: 0;
    margin-bottom: -100px;
  }
  40% {
    opacity: 1;
  }
  100%{
    opacity: 1;
    margin-bottom: 0px;
  }
}
@keyframes showContainer{
  0%{
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
}
.footer{
  position: fixed;
  bottom: 0;
  pointer-events: none;
}
.footer p {
  font-size: 8px;
  text-align: center;
  line-height: 11px;
  margin: 20px;
}

.denoise-text{
  display: inline-block;
  text-align: left;
  font-size: 12px;
  color: black;
}
.denoise-text ~ .denoise-text{
  float: right;
  text-align: right;
}

.denoise-container label{
  font-size: .6rem;
  height: 2rem;
  display: block;
  color: black;
}
.status-cta-container
{
  font-weight: 600;
  margin: 1.5rem 0 0.8rem;
  text-align: center;
}
.status-cta-container .bottom-button-container
{
  position: absolute;
}
.status-cta-container p {
  font-size: .8em;
}
.status-cta {
  appearance: none;
  border: 0;
  /* background: linear-gradient(50deg, #04F8FF, #50ff7f); */
  color: #000000;
  padding: 15px 40px;
  border-radius: 15px;
  font-size: 1.2em;
  /* pointer-events: initial; */
  font-weight: 700;
}
.result-button-container{
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9;
}
.result-button-container.screenshot{
  top: 40px;
  bottom: initial;
}

.result-button, .capture-close{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 0;
  position: relative;
  font-size: .8em;
  font-weight: 700;
}
.capture-close {
  position: absolute;
  bottom: -80px;
  right: 0;
}
.result-button::after, .capture-close::after{
  position: absolute;
  width: 100%;
  height: 100%;
  content: "";
  background: url(./design/images/loader-icon.png);
  background-size: contain;
  top: 0;
  left: 0;
}
.product-recommendation{
  width: 100%;
  /* padding-top: 10px; */
  box-sizing: border-box;
  position: relative;
  display: none;
  z-index: 2;
}
.product-recommendation > p {
  font-weight: 600;
}
.product-recommendation--show
{
  display: flex;
  height: 36vh;
  max-height: 36vh;
  width: 100%;
  align-items: center;
  justify-content: center;  
  transition: max-height 0.3s;
}
.product-recommendation-content, .product-recommendation-group {
  /* display: block; */
  margin:  0 ;
  /* overflow-y: hidden;
  overflow-x: scroll; */
  position: relative;
  white-space: nowrap;
  display: flex;
}
.product-recommendation-group{
  opacity: 0;
  transition: opacity 0.2s;
  padding-top: 3.25rem;
}
.product-recommendation-group.active
{
  /* padding-top: 30px; */
  overflow: hidden;
  max-height: 36vh;
  opacity: 1;
}
.product-recommendation-group#category{
  margin: 0;
  padding: 0;
  width: 100%;
}
.product-recommendation-group p {
  position: absolute;
  top: 0;
  left: 0;
  text-align: center;
  right: 0;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
  line-height: 2.5rem;
  pointer-events: none;
  text-transform: capitalize;
  color: #000;
}
.product-recommendation-item
{
  position: relative;
  display: inline-flex;
  /* max-width: 33vw; */
  /* min-width: 30%; */
  width: 100%;
  /* max-width: calc((100%) / 3); */
  margin-right: 1.5rem;
  flex: 1;
  flex-direction: column;    
  height: 20vh;
  min-height: 140px;
  padding: 0.25rem;
  box-sizing: border-box;
}
.product-recommendation-item button{
  border-radius: 0.5rem;
  border-width: 1px;
  transition: 0.5s;
  border-style: solid;
  border-color: transparent;
  background-color: transparent;
  transition: 0.3s;
}
.product-recommendation-item button.active{
  border-color: #fefefe;
  background-color: #7568FF33;
}
.product-recommendation-item:nth-last-child(1)
{
  margin-right: 0;
}
.product-recommendation-item button {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  background-color: transparent;
  appearance: none;
}
.product-recommendation-item img{
  /* aspect-ratio: 1; */ 
  margin-left: 50%;
  transform: translateX(-50%);
  /* width: 100%; */
  /* max-height: 100%; */
  /* max-width: 100%; */
  box-sizing: border-box;
  padding: 0.3rem;
  display: block;
  height: auto;
  max-width: 100%;
  /* height: auto; */
  max-height: 90px;
  width: auto!important;
  object-fit: contain;
}
.product-description {
  white-space: initial;
  text-align: center;
  font-size: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
  color: #000;
  padding: 0 .2rem;
}
.product-image {
  /* width: 100%;
  max-height: 80px;
  max-width: 80px; */

  height: 100px;
  width: 100%;
  max-height: 100px;
  position: relative;
  z-index: 9;
  pointer-events: none;
}

.product-group_template, .product-item_template {
  display: none!important;
}
.toggle-mask-container{ 
  display: inline-flex;
  white-space: nowrap;
}
.toggle-mask-item {
  width: 20vw;
  aspect-ratio: 1.5;
  border-radius: 0.7em;
  position: relative;
  transition: 0.3s;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  text-align: center;
  white-space: initial;
  margin-right: 1rem;
  border: 1px solid #ffffff;
  flex: 0.35;
}
.toggle-mask-item.toggle--active{
  background-color: rgba(255,255,255,0.6);
}

.product-recommend-back, .product-recommend-back button{
  position: relative;
  /* width: 2.5rem; */
  /* height: 2.5rem; */
  appearance: none;
  border: none;
  background-color: transparent;
}

.product-recommend-back img{
  max-width: 100%;
  max-height: 100%;
}

.product-recommendation-content::-webkit-resizer{
  height: 10px;
}
  .product-recommendation-content::-webkit-resizer{
  display: none;
}

.bottom-button-container
{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  border-radius: 0.5rem 0.5rem 0 0;
  z-index: 2;
}
.bottom-button
{
  border-radius: 2rem;
  height: 3rem;
  font-size: 0.8rem;
  font-weight: 700;
  background-color: #70CACB;
  width: 100%;
  border-width: 0;
  appearance: none;
  color: #ffffff;
  transition: 0.2s;
}
.bottom-button:disabled{
  /* opacity: 0.65; */
  background-color: #A0A0A0;
  color: white;
}
.bottom-button-container.style-green{
  background-color: #70CACB;
  color: #70CACB;
}

.bottom-button-container.style-green .bottom-button
{
  color: #70CACB;
  background-color: #ffffff;
}
.start-menu-cancel-button
{
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border-width: 0;
  appearance: none;
  box-sizing: border-box;
  padding: 0;
  background: none;
}
.start-menu-cancel-button img {
  width: 100%;
  height: 100%;
}

.start-menu.fade{
  /* top: 80px; */
  opacity: 0;
  pointer-events: none;
}

.wardah-loader{
  width: 140px;
  height: 28px;
  -webkit-mask-image: url(./design/images/logo-wardah.webp);
  mask-image: url(./design/images/logo-wardah.webp);
  mask-repeat: no-repeat;
  mask-size: 130px;
  margin: auto;
  background-color: #70CACB;
}

.loading-spinner-wardah
{
  position: relative;
  width: 20px;
  height: 20px;
  margin: auto;
}
.loading-spinner-item{
  position: absolute;
  width: 100%;
  height: 100%;
}
.loading-spinner-item::before, .loading-spinner-item::after{
  position: absolute;
  top: 0;
  height: 6px;
  width: 2px;
  left: 50%;
  margin-left: -1px;
  background-color: #70CACB;
  content: "";
  animation-name: pulsing;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  transform-origin: top;
  transform: rotate(180deg);
}
.loading-spinner-item::after
{
  top: 20px;
  transform-origin: top;
  transform: rotate(0);
}
.loading-spinner-item:nth-child(2)::before
{
  animation-delay: 0.25s;
}
.loading-spinner-item:nth-child(3)::before
{
  animation-delay: 0.5s;
}
.loading-spinner-item:nth-child(4)::before
{
  animation-delay: 0.75s;
}
.loading-spinner-item:nth-child(1)::after
{
  animation-delay: 1s;
}
.loading-spinner-item:nth-child(2)::after
{
  animation-delay: 1.25s;
}
.loading-spinner-item:nth-child(3)::after
{
  animation-delay: 1.5s;
}
.loading-spinner-item:nth-child(4)::after
{
  animation-delay: 1.75s;
}

.loading-spinner-item:nth-child(2)
{
  transform: rotate(45deg);
}
.loading-spinner-item:nth-child(3)
{
  transform: rotate(90deg);
}
.loading-spinner-item:nth-child(4)
{
  transform: rotate(135deg);
}

@keyframes pulsing{
  0%, 50% {
    height: 6px;
  }
  25%{
    height: 10px;
  }
}

.wardah-loader-content {
  position: absolute;
  transform: translate(0, 50%);
  width: 100%;
  text-align: center;
  margin-top: -50%;
}
.wardah-loader-content small {
  margin-top: 1rem;
  display: block;
}
.start-container
{
  position: fixed;
}

.start-container-analyze-text {
  color: #ffffff;
  height: 0;
  padding: 0;
  transition: 0.5s;
  text-align: center;
  font-size: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.start-button--pressed .start-container-analyze-text
{
  height: 1rem;
  font-size: 0.65rem;
  margin-bottom: 0.5rem;
}


.owl-carousel .owl-stage-outer
{
  margin: 0;
}

.denoise-container.active ~ .product-recommendation--show
{
  align-self: baseline;
  max-height: 30vh;
}