@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

#example-scanning-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 70px;
  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, white 10px, transparent 10px) 0 0,
    linear-gradient(to right, white 10px, transparent 10px) 0 100%,
    linear-gradient(to left, white 10px, transparent 10px) 100% 0,
    linear-gradient(to left, white 10px, transparent 10px) 100% 100%,
    linear-gradient(to bottom, white 10px, transparent 10px) 0 0,
    linear-gradient(to bottom, white 10px, transparent 10px) 100% 0,
    linear-gradient(to top, white 10px, transparent 10px) 0 100%,
    linear-gradient(to top, white 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.7;
  width: 60%;
  align-self: center;
}

#example-scanning-overlay .inner .scanline {
  position: absolute;
  width: 100%;
  height: 10px;
  background: white;
  animation: move 2s linear infinite;
}
@keyframes move {
  0%,
  100% {
    top: 0%;
  }
  50% {
    top: calc(100% - 10px);
  }
}
button {
  background: linear-gradient(
      to bottom,
      rgb(255 255 255 / 15%) 0%,
      rgb(48 71 120 / 15%) 100%
    ),
    radial-gradient(at top center, #111111 0%, rgba(0, 0, 0, 0.4) 120%) #111111;
  padding: 10px 20px;
  position: absolute;
  bottom: 20%;
  right: 50%;
  display: none;
  color: white;
  transform: translate(50%, 50%);
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: medium;
}
button > i {
  margin-inline-end: 15px;
}
