body {
  background-image: url('../images/bg.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  font-family: "Source Sans 3", sans-serif;
}

.top-bar-container {
  padding: 0 16px;

}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 380px;
  margin: 20px auto;
  justify-content: space-between;
  align-items: center;
}

.top-nav .nav-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
}

.top-nav .nav-btn.back {
  background-color: white;
  cursor: pointer;
}

.top-nav .title {
  font-size: 23px;
  color: rgba(107, 102, 93, 1);
  font-weight: 500;
}

.top-nav .progress-bar {
  position: relative;
  width: 100%;
  height: 3px;
  background-color: white;
  margin-top: 20px;
}

.top-nav .progress-bar::before,
.top-nav .progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
} 

.top-nav .progress-bar::before {
  z-index: 1;
  width: 50%;
  background-color: rgba(255, 124, 128, 1);
}

.top-nav .progress-bar::after {
  z-index: 2;
  width: 33.3333%;
  background-color: rgba(237, 28, 36, 1);
}

h2.title {
  font-weight: 500;
  font-size: 40px;
  max-width: 330px;
  margin: 0 auto;
  color: rgba(67, 64, 58, 1);
}

.module-container {
  width: 100%;
}

.scan-face-module{
  position:relative;
  aspect-ratio: 1 / 1;
  border-radius:18px;
  overflow:hidden;
}
.scan-face-module:after{
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background-image: url('../images/ball.png');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.45;
}
.scan-face-module-container {
  position: relative;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.scan-face-module-container .navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 32px);
  height: 0;
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 20%;
}

.scan-face-module-container .navigation a {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  border-radius: 16px;
  width: 48px;
  height: 48px;
}
.scan-face-img{ position: relative; z-index: 2; width:100%; height:100%; object-fit:cover; display:block; }
.scan-face-canvas{ position:absolute; z-index: 3; inset:0; width:100%; height:100%; pointer-events:none; }

.scan-dot {
  position:absolute;
  transform:translate(-50%,-50%);
  border-radius:999px;
  border:none;
  cursor:pointer;
  z-index:5;
  /* width: 12px; */
  min-height: 12px;
  background-color: white;
  font-size: 0;
  transition: all .3s ease-in-out;
  color: rgba(67, 64, 58, 1);
  /* background: radial-gradient(circle at 30% 30%, #eaffff 0%, #68f0ff 25%, #00aaff 60%, rgba(0,0,0,0) 72%);
  box-shadow: 0 0 0 2px rgba(0,200,255,.35), 0 0 18px rgba(0,200,255,.85), 0 0 48px rgba(0,140,255,.55); */
}

.scan-dot.active {
  font-size: 18px;
  min-height: 12px;
  padding: 12px;
}

.scan-dot::after{
  content:"";
  position:absolute;
  inset:-7px;
  border-radius:999px;
  border:14px solid rgba(255,255,255,.4);
  opacity:.75;
  /* animation:pulse 1.8s ease-in-out infinite; */
}
@keyframes pulse{
  0%{transform:scale(.85);opacity:.35;}
  50%{transform:scale(1.15);opacity:.85;}
  100%{transform:scale(.85);opacity:.35;}
}

.button-container {
  position: relative;
  text-align: center;
  margin-bottom: 40px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.button-container:after {
  content: '';
  display: block; 
  background-image: url('../images/ellipse.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  bottom: 0;
  z-index: 2;
  height: 170%;
}

.button-container a {
  position: relative;
  z-index: 3;
}
.button-container a img {
  width: 100%;
  max-width: 400px;
}

@media (max-width: 576px) {
  h2.title {
    font-size: 25px;
    max-width: 310px;
  }

  h2.title br {
    display: none;
  }

  .button-container {
    height: 60px;
  }

  .button-container a {
    display: none;
  }

  .button-container::after {
    height: 150px;
  }

  .scan-face-module {
    width: calc(100% + 100px);
    margin-left: -50px;
  }
  .scan-dot.active {
    font-size: 12px;
    min-height: 12px;
    padding: 6px 9px;
  }
}