:root {
  --color-text-primary: #000000;
  --color-text-secondary: rgba(0, 0, 0, 0.5);
  --color-text-white: #ffffff;
  --color-text-red: #ff3b30;
  --color-text-blue: #007aff;
  --color-basic-bg: #f6f6f6;
  --color-secondary-bg: #ffffff;
  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --color-divide: #e7e7e7;

  padding-top: env(safe-area-inset-top, 110px);
  /* top: calc(env(safe-area-inset-top, 0px) + 11px);  <-- use */
  padding-bottom: env(safe-area-inset-bottom, 110px);
  /* bottom: calc( env(safe-area-inset-bottom, 0px) + 16px);  <-- use */
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border: none;
  outline: none;
  list-style-type: none;
  text-decoration: none;
  font-family: var(--font-family);
  color: var(--color-text-primary);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

input[type='radio'] {
  display: none;
}

img {
  display: block;
}

body {
  background: var(--color-secondary-bg);

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

img,
svg {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: auto;
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow: hidden;
}

.app__container {
  max-width: 500px;
  margin: 0 auto;
}

/* ########## DESCKTOP VIDEO ########## */

.background-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 3;
  transition: filter 0.3s ease;
  top: calc(env(safe-area-inset-top, 0px) + 11px);
}

.background-img img {
  width: 100%;
  object-fit: contain;
  object-position: top;
}

.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  z-index: 3;
  transition: filter 0.3s ease;
  opacity: 0;
  top: calc(env(safe-area-inset-top, 0px) + 11px);
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* ########## ALERT ########## */

.hidden {
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #00000080;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  pointer-events: auto;
  opacity: 1;
}

/* ########## POPUP ########## */
.popup_content {
  position: fixed;
  background: var(--color-basic-bg);
  border-radius: 20px;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 339px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  padding: 16px;
  z-index: 5;
  pointer-events: auto;
}

.popup_content * {
  pointer-events: none;
}

.popup_checkup {
  pointer-events: auto;
}

.popup_imgs {
  display: flex;
  justify-content: center;

  img {
    width: 52px;
  }
}

.popup_title {
  color: #202124;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.408px;
  margin: 5px 0 15px 0;
  padding: 0 40px;
  font-family: Arial;
}

.popup_description {
  color:#4F4642;
  font-weight: 300;
  letter-spacing: -0.072px;
}

.popup_checkup {
  color: var(--color-text-red);
  padding: 13px 0;
  position: relative;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  color: #fff;
  font-size: 20px;
  line-height: 25px;  
  border-radius: 15px;
  background:#FF2E32;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.popup_checkup.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.popup_bottom-text {
  color: #2A2A2A;
  font-size: 12px;
  letter-spacing: -0.054px;
  margin-bottom: 5px;
}

.popup_cta {
  margin-top: 30px;
  width: 100%;
}

#link {
  pointer-events: none;
}

.face-id__animation {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.5s ease;
  z-index: 6;
  opacity: 0;

  top: calc(env(safe-area-inset-top, 0px) + 3%);
}

.face-id__content {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 60%;
  align-items: center;
  text-align: center;
}

.face-id__content * {
  color: var(--color-text-white);
}

.face-id__content > :first-child {
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.41px;
}

.face-id__content > :last-child {
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.08px;
}
