:root {
  --scene-width: 1200px;
  --scene-height: 675px;
  --scene-scale: 1;
}

#demo {
  /* padding-block: 60px; */
}

#scene-wrapper {
  display: block;
  position: relative;
  width: calc(var(--scene-width) * var(--scene-scale));
  height: calc(var(--scene-height) * var(--scene-scale));
  /* margin-top: 40px; */
  margin-inline: auto;
  /* text-align: left; */
  z-index: 101;
}
#scene-wrapper.move::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 99;
}
#scene {
  width: var(--scene-width);
  height: var(--scene-height);
  transform-origin: top left;
  transform: scale(var(--scene-scale));
}

#scene-description-wrapper {
  /* position: absolute; */
  /* left: 50%; */
  /* top: 0; */
  /* transform: translateX(-50%); */
  position: relative;
  margin-inline: auto;
  margin-top: 16px;
  /* width: calc(var(--scene-width) * 0.25 * var(--scene-scale)); */
  height: calc(50px * var(--scene-scale));
  /* padding-left: calc(48px * var(--scene-scale)); */
  z-index: 100;
  overflow: hidden;
}
#scene-description-wrapper * {
  font-size: calc(16px * var(--scene-scale));
  font-weight: bold;
  line-height: calc(24px * var(--scene-scale));
}

#scene-description {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transform: translateY(-100%);
  transition: transform 0.5s;
}
/* #scene-description::after {
  content: '';
  position: absolute;
  left: calc(-44px * var(--scene-scale));
  top: 5px;
  width: calc(40px * var(--scene-scale));
  height: calc(40px * var(--scene-scale));
  background-image: url('https://ams1.vultrobjects.com/askfor/landing/img/demo/hand.webp');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transition: background-image 5s;
  animation: click 5s;
  animation-iteration-count: infinite;
} */

/* #stop-demonstration:hover {
  color: #6889ff;
} */
/* @keyframes click {
  0% {
    background-image: url('https://ams1.vultrobjects.com/askfor/landing/img/demo/hand.webp');
  }
  20% {
    background-image: url('https://ams1.vultrobjects.com/askfor/landing/img/demo/hand-click.webp');
  }
  40% {
    background-image: url('https://ams1.vultrobjects.com/askfor/landing/img/demo/hand.webp');
  }
} */

#scene-message {
  position: relative;
  display: none;
  text-align: center;
  padding: 12px 24px 12px 64px;
  border-radius: 8px;
  background-color: var(--color-gray-light);
  overflow: hidden;
}
#scene-message::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 3px;
  width: 40px;
  height: 40px;
  background-image: url('../https://ams1.vultrobjects.com/askfor/landing/img/demo/hand.webp');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transition: background-image 5s;
  animation: click 5s;
  animation-iteration-count: infinite;
}
@keyframes click {
  0% {
    background-image: url('../https://ams1.vultrobjects.com/askfor/landing/img/demo/hand.webp');
  }
  20% {
    background-image: url('../https://ams1.vultrobjects.com/askfor/landing/img/demo/hand-click.webp');
  }
  40% {
    background-image: url('../https://ams1.vultrobjects.com/askfor/landing/img/demo/hand.webp');
  }
}
#stop-demonstration {
  position: relative;
  display: flex;
  align-items: center;
  height: calc(40px * var(--scene-scale));
  padding-block: calc(16px * var(--scene-scale));
  padding-inline: calc(70px * var(--scene-scale));
  border-radius: calc(8px * var(--scene-scale));
  background-color: var(--color-blue);
  color: white;
  cursor: pointer;
  overflow: hidden;
}
#stop-demonstration:hover {
  background-color: var(--color-blue-hover);
}
#stop-demonstration:active {
  background-color: var(--color-blue-pressed);
}
#stop-demonstration:not(:hover)::before {
  content: '';
  width: 100%;
  height: 300%;
  position: absolute;
  top: -50%;
  left: 0;
  opacity: 0.5;
  filter: blur;
  background: linear-gradient(
    to left,
    transparent 0%,
    #fff 40%,
    #fff 60%,
    transparent 100%
  );
  transform: translate(-100%, -25%) rotate(-20deg);
  animation: glare 5s infinite;
}
@keyframes glare {
  0% {
    transform: translate(-100%, -25%) rotate(-20deg);
  }
  20% {
    transform: translate(100%, -25%) rotate(-20deg);
  }
  100% {
    transform: translate(100%, -25%) rotate(-20deg);
  }
}

/* #scene-description {
  display: none;
  width: var(--scene-width);
  height: 50px;
  text-align: center;
  color: gray;
  margin-top: 12px;
  margin-inline: auto;
} */

#scene-wrapper .scene-title {
  position: relative;
  display: table;
  height: 50px;
  margin-inline: auto;
  max-width: 75%;
  transform: translateX(max(0px, 50% - 300px - 16px));
  font-size: 32px;
  font-weight: bold;
  line-height: 48px;
  /* text-align: center; */
}
#scene-wrapper .organization-name {
  font-size: inherit;
  font-weight: inherit;
}

#scene-wrapper .background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}
#scene-wrapper .background {
  font-size: 700px;
  font-weight: bold;
  color: #f1f4ff;
  transform: rotate(-20deg) translate(-600px, 200px);
}

#scene-wrapper .scene-flex {
  position: relative;
  width: 100%;
  height: calc(var(--scene-height) - 50px);
  display: flex;
}

#scene-wrapper .codes {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  width: 30%;
  height: 100%;
}
#scene-wrapper .code-wrapper {
  max-width: 176px;
}
#scene-wrapper .code-title {
  width: 100%;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-top: 12px;
  margin-inline: auto;
  width: 155px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#scene-wrapper .code {
  position: relative;
  width: 160px;
  height: 254px;
  border-radius: 10px;
  border: 2px solid grey;
  overflow: hidden;
  margin: 8px;
  transition: scale 0.3s, box-shadow 0.3s;
  cursor: pointer;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
#scene-wrapper .code svg {
  width: 100% !important;
  height: 100%;
}
#scene-wrapper:not(.move) .code:hover {
  scale: 1.02;
  box-shadow: 2px 2px 8px grey;
  z-index: 2;
}

#scene-wrapper .phone-block {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-block: 12px;
}
#scene-wrapper .phone-title {
  font-size: 16px;
  font-weight: bold;
  padding-bottom: 12px;
  z-index: -1;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#scene-wrapper .phone {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 2;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

#scene-wrapper .phone-client {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25%;
  height: 100%;
  padding: 12px;
}
#scene-wrapper .phone-client .phone {
  width: 275px;
  height: 550px;
}
#scene-wrapper .phone-client .phone:has(.browser.show) {
  background-image: url('https://ams1.vultrobjects.com/askfor/landing/img/demo/phone-with-browser.png');
  z-index: 1;
}
#scene-wrapper .phone-client .phone:has(.camera.show) {
  background-image: url('https://ams1.vultrobjects.com/askfor/landing/img/demo/phone-with-camera.png');
}
#scene-wrapper .phone-client .phone-block {
  display: none;
  z-index: 2;
}

#scene-wrapper .phones-staff {
  position: relative;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  width: 45%;
  padding: 12px;
}
#scene-wrapper .phones-staff > * {
  padding-inline: 12px;
}
#scene-wrapper .phones-staff .phone {
  max-width: 250px;
}
#scene-wrapper .phones-staff .phone-block:nth-child(2) .phone {
  background-image: url('https://ams1.vultrobjects.com/askfor/landing/img/demo/phone-staff-1.png');
}
#scene-wrapper .phones-staff .phone-block:nth-child(3) .phone {
  background-image: url('https://ams1.vultrobjects.com/askfor/landing/img/demo/phone-staff-2.png');
}
.staff-title {
  position: absolute;
  top: 24px;
  left: 50%;
  height: 36px;
  transform: translateX(-50%);
}

#scene-wrapper .phone-client .browser {
  display: none;
  position: absolute;
  top: -25px;
  left: -25px;
  width: 326px;
  height: 552px;
  transform: scale(0.75);
  z-index: -1;
}

#scene-wrapper .phone-client .browser.show {
  display: block;
}

#scene-wrapper .phone-client .camera {
  display: none;
  position: absolute;
  top: 5px;
  right: 10px;
  bottom: 5px;
  left: 10px;
  border-radius: 40px;
  overflow: hidden;
  z-index: -1;
}
#scene-wrapper .phone-client .camera.show {
  display: block;
}
#scene-wrapper .camera .camera-img {
  position: absolute;
  width: calc(var(--scene-width) * 1.5);
  height: calc(var(--scene-height) * 1.5);
  transform: translate(-210px, -236px);
  z-index: -1;
}
#scene-wrapper .camera .camera-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: white;
  z-index: -2;
}
#scene-wrapper .camera .camera-qr-border {
  position: absolute;
  top: 175px;
  left: 32px;
  width: 190px;
  height: 190px;
  z-index: 1;
}

#scene-wrapper #cursor {
  position: absolute;
  width: 60px;
  height: 60px;
  top: 50px;
  left: 50px;
  z-index: 5;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

#scene-wrapper .phone-notifications {
  position: absolute;
  top: 110px;
  left: 7%;
  width: 86%;
  max-height: 70%;
  display: flex;
  flex-direction: column-reverse;
}
#scene-wrapper .phone-notification {
  width: 100%;
  height: 40px;
  background-image: url('https://ams1.vultrobjects.com/askfor/landing/img/demo/notification.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transition: all 0.5s;
}
#scene-wrapper .phone-notification:nth-last-child(n + 9) {
  display: none;
}
#scene-wrapper .phone-notification.start {
  height: 0;
  transform: scale(0.5);
  opacity: 0;
}
#scene-wrapper .phone-notification.scale {
  transform: scale(1.2) translateY(-2px);
}

#scene-wrapper .notification-title {
  margin-top: 7px;
  margin-left: 35px;
  font-size: 10px;
  font-weight: bold;
  line-height: 14px;
  width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#scene-wrapper .notification-description {
  margin-left: 35px;
  font-size: 10px;
  line-height: 14px;
  width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#scene-wrapper #loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 99;
}
#scene-wrapper #progress-wrapper {
  position: relative;
  margin-top: 12px;
  height: 10px;
  width: 75%;
  background-color: lightgray;
  border-radius: 5px;
}
#scene-wrapper #progress {
  width: 0%;
  height: 10px;
  background-color: #315eff;
  border-radius: 5px;
}

#scene-wrapper .some-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  word-break: break-all;
  padding: 16px;
  background-color: lightgray;
}

#scene-wrapper .link {
  font-size: 20px;
  font-weight: bold;
  color: grey;
  cursor: pointer;
}

#scene-wrapper .link:hover {
  color: #315eff;
}
