:root {
  --app-font-family: "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--app-font-family);
  /* background-image: url("./bg.png");
  background-position: center 57%; */
}

#startARDiv > select {
  width: 56%;
  height: 50px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 1);
  padding: 10px;
  font-size: 16px;
  margin-bottom: 10px;
  background-color: transparent;
}

#startARDiv > select:focus {
  outline: none;
}

#startARDiv > p {
  font-size: 22px;
  margin-bottom: 10px;
  color: rgb(0, 0, 0);
}

/* scene 2 */
.button-container {
  /* Layout container */
  position: absolute;
  bottom: 5%;
  left: 0%;
  width: 100%;
  height: 70px;
  z-index: 100;
}

.button,
#startARButton {
  /* Button styles */
  position: absolute;
  background: rgb(12, 185, 171);
  background: linear-gradient(
    60deg,
    rgb(34, 131, 242) 100%
  );
  border: 2px solid #ffffff;
  border-radius: 30px;
  box-shadow: #818181 4px 4px 0 0;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  font-size: 18px;
  padding: 0 18px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  display: none;
  z-index: 101;
  pointer-events: auto;
}
.button,
#startARButton,
.timer,
.button-container-view > button,
.ctaDiv button {
  font-family: var(--app-font-family);
}
.button-record {
  right: 20%;
}

.button-capture {
  left: 20%;
}

#startARButton {
  top: 70%;
}

.timer {
  width: 100%;
  height: auto;
  color: rgb(255, 255, 255);
  font-size: 16px;
  display: none;
  position: relative;
  top: 0;
  left: calc(50% - 20px);
}

.button-record:active,
.button-capture:active {
  box-shadow: #422800 2px 2px 0 0;
  transform: translate(2px, 2px);
}
.button-record.recording {
  background: #ff2d55;
  border-color: #ffffff;
  color: #ffffff;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.view-container {
  position: relative;
  width: min(95vw, 560px);
  height: auto;
  padding: 8px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 24px;
  box-sizing: border-box;
  box-shadow: 0px 0px 40px 4px rgba(255, 255, 255, 0.35);
  animation: gradient 3s infinite;
}

@keyframes gradient {
  0% {
    box-shadow: 0px 0px 40px 4px rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow: 0px 0px 40px 4px rgba(255, 255, 255, 0.55);
  }
  100% {
    box-shadow: 0px 0px 40px 4px rgba(255, 255, 255, 0.35);
  }
}

.button-container-view {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.button-container-view > button {
  position: static;
  flex: 1;
  min-width: 120px;
  max-width: 200px;
  background: linear-gradient(
    60deg,
    rgb(34, 131, 242) 0%,
    rgb(77, 166, 255) 100%
  );
  border: 2px solid #ffffff;
  border-radius: 25px;
  box-shadow: #181818 0 6px 15px -6px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 16px;
  line-height: 1.2;
  text-align: center;
}

#overlay-root {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

#hand-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(60vw, 360px);
  max-width: 420px;
  transform: translate(-50%, -50%);
  opacity: 0;
  display: none;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

.hand-overlay--active {
  animation: hand-overlay-slide 4s ease-in-out forwards;
}

@keyframes hand-overlay-slide {
  0% {
    transform: translate(-160%, -50%) scale(0.94);
    opacity: 0;
  }
  25% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  35% {
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0;
  }
  55% {
    transform: translate(-150%, -50%) scale(0.92);
    opacity: 0;
  }
  75% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
  }
}