.div-biometric {
  height: auto;
}

.biometric-container {
  display: block;
  width: 100%;
  max-width: 640px;
  align-content: center;
}

#video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.mask2, .mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  background: black;
  aspect-ratio: 4/3;
}

.mask {
  background: transparent;
  mask-image: radial-gradient(
    ellipse 53% 100% at 50% 45%,
    transparent 36%,
    black 37%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 53% 100% at 50% 45%,
    transparent 36%,
    black 37%
  );
  transition: background 0.3s ease;
}

.mask2 {
  mask-image: radial-gradient(
    ellipse 54% 99% at 50% 45%,
    transparent 36%,
    black 37%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 54% 99% at 50% 45%,
    transparent 36%,
    black 37%
  );
  transition: background 0.3s ease;
}

.biometric-cancel{
  max-width: 250px;
}

@media (max-width: 768px) {
  .mask2, .mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: none;
    z-index: 10001;
  }

  .biometric-cancel{
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10002;
  }

  .mask {
    background: transparent;
    mask-image: radial-gradient(
      ellipse 86% 64% at 50% 45%,
      transparent 36%,
      black 37%
    );
    -webkit-mask-image: radial-gradient(
      ellipse 86% 64% at 50% 45%,
      transparent 36%,
      black 37%
    );
  }

  .mask2 {
    mask-image: radial-gradient(
      ellipse 88% 66% at 50% 45%,
      transparent 36%,
      black 37%
    );
    -webkit-mask-image: radial-gradient(
      ellipse 88% 66% at 50% 45%,
      transparent 36%,
      black 37%
    );
  }

  #video {
    position: fixed;
    top: 0;
    left: 0;
    margin-top: 180px;
    width: 100vw;
    height: calc(100vh - 360px);
    object-fit: cover;
    z-index: 10000;
    background: #fff;
  }
}
