.loading-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f0efe9;
  z-index: 9999;
}

.circle-ex {
  position: relative;
  width: 128px;
  height: 128px;
  background-color: #f0efe9;
}
.circle-ex > .dot {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.circle-ex > .dot:after {
  content: "";
  position: absolute;
  left: calc(50% - 10px);
  top: 0;
  width: 15%;
  height: 15%;
  border-radius: 50%;
  background-color: #a10115;
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 0;
  animation: anim-circle-ex-dot 1.2s ease-in-out infinite;
}
.circle-ex > .dot:nth-child(1) {
  transform: rotate(0deg);
}
.circle-ex > .dot:nth-child(1):after {
  animation-delay: 0s;
}
.circle-ex > .dot:nth-child(2) {
  transform: rotate(30deg);
}
.circle-ex > .dot:nth-child(2):after {
  animation-delay: -1.1s;
}
.circle-ex > .dot:nth-child(3) {
  transform: rotate(60deg);
}
.circle-ex > .dot:nth-child(3):after {
  animation-delay: -1s;
}
.circle-ex > .dot:nth-child(4) {
  transform: rotate(90deg);
}
.circle-ex > .dot:nth-child(4):after {
  animation-delay: -0.9s;
}
.circle-ex > .dot:nth-child(5) {
  transform: rotate(120deg);
}
.circle-ex > .dot:nth-child(5):after {
  animation-delay: -0.8s;
}
.circle-ex > .dot:nth-child(6) {
  transform: rotate(150deg);
}
.circle-ex > .dot:nth-child(6):after {
  animation-delay: -0.7s;
}
.circle-ex > .dot:nth-child(7) {
  transform: rotate(180deg);
}
.circle-ex > .dot:nth-child(7):after {
  animation-delay: -0.6s;
}
.circle-ex > .dot:nth-child(8) {
  transform: rotate(210deg);
}
.circle-ex > .dot:nth-child(8):after {
  animation-delay: -0.5s;
}
.circle-ex > .dot:nth-child(9) {
  transform: rotate(240deg);
}
.circle-ex > .dot:nth-child(9):after {
  animation-delay: -0.4s;
}
.circle-ex > .dot:nth-child(10) {
  transform: rotate(270deg);
}
.circle-ex > .dot:nth-child(10):after {
  animation-delay: -0.3s;
}
.circle-ex > .dot:nth-child(11) {
  transform: rotate(300deg);
}
.circle-ex > .dot:nth-child(11):after {
  animation-delay: -0.2s;
}
.circle-ex > .dot:nth-child(12) {
  transform: rotate(330deg);
}
.circle-ex > .dot:nth-child(12):after {
  animation-delay: -0.1s;
}
@keyframes anim-circle-ex-dot {
  0% {
    transform: scale(0);
  }
  35% {
    transform: scale(1);
  }
  70% {
    transform: scale(0);
  }
  100% {
    transform: scale(0);
  }
}

.hidden {
  display: none;
}

#instruction {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#instruction-img {
  max-width: 85%;
  z-index: 9999;
}

#close-img {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10000;
}

#question-img {
  position: absolute;
  top: 20px;
  right: 25px;
  z-index: 9999;
}

.svg-icon {
  width: 35px;
  height: 35px;
}

#example-scanning-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: transparent;
  z-index: 2;
}
@media (min-aspect-ratio: 1/1) {
  #example-scanning-overlay .inner {
    width: 50vh;
    height: 50vh;
  }
}
@media (max-aspect-ratio: 1/1) {
  #example-scanning-overlay .inner {
    width: 80vw;
    height: 80vw;
  }
}

#example-scanning-overlay .inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  background: linear-gradient(to right, #f0efe9 10px, transparent 10px) 0 0,
    linear-gradient(to right, #f0efe9 10px, transparent 10px) 0 100%,
    linear-gradient(to left, #f0efe9 10px, transparent 10px) 100% 0,
    linear-gradient(to left, #f0efe9 10px, transparent 10px) 100% 100%,
    linear-gradient(to bottom, #f0efe9 10px, transparent 10px) 0 0,
    linear-gradient(to bottom, #f0efe9 10px, transparent 10px) 100% 0,
    linear-gradient(to top, #f0efe9 10px, transparent 10px) 0 100%,
    linear-gradient(to top, #f0efe9 10px, transparent 10px) 100% 100%;
  background-repeat: no-repeat;
  background-size: 40px 40px;
}

#example-scanning-overlay.hidden {
  display: none;
}

#example-scanning-overlay img {
  opacity: 0.6;
  width: 45%;
  align-self: center;
}

#example-scanning-overlay .inner .scanline {
  position: absolute;
  width: 100%;
  height: 10px;
  background: #f0efe9;
  animation: move 2s linear infinite;
}
@keyframes move {
  0%,
  100% {
    top: 0%;
  }
  50% {
    top: calc(100% - 10px);
  }
}
