html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

body {
  overflow: hidden;
}

#roar-root {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  height: 100%;
  background: #000;
}

.roar-loading,
.roar-error {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
  background: #000;
}

.roar-loading h1,
.roar-error h1 {
  margin: 0 0 12px;
  font-size: 28px;
}

.roar-loading p,
.roar-error p {
  margin: 0;
  max-width: 460px;
  line-height: 1.5;
}

.roar-note {
  margin-top: 12px !important;
  opacity: 0.82;
  font-size: 14px;
}

#example-scanning-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 2;
  flex-direction: column;
}

a-scene,
a-scene canvas {
  background: transparent !important;
}

a-scene {
  position: absolute !important;
  inset: 0;
  z-index: 1;
}

#roar-root > video {
  z-index: 0 !important;
  background: transparent !important;
}

@media (min-aspect-ratio: 1/1) {
  #example-scanning-overlay .inner {
    width: 50vh;
    height: auto;
  }
}

@media (max-aspect-ratio: 1/1) {
  #example-scanning-overlay .inner {
    width: 80vw;
    height: auto;
  }
}

#example-scanning-overlay .inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 10px;
}

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

#example-scanning-overlay.roar-force-hidden {
  display: none !important;
}

.logo {
  width: 60px;
  height: auto;
  margin-bottom: 15px;
}

.scan-message {
  text-align: center;
  font-size: 16px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 5px;
  width: 100%;
  max-width: 90%;
  margin-bottom: 15px;
}

.scan-message p {
  margin: 5px 0;
}

.scan-message p strong {
  font-size: 18px;
}

.browser-tip {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: #f4f4f4;
}

.ar-start-button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
}

.ar-start-button.hidden {
  display: none;
}

.image-container {
  position: relative;
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  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;
  padding: 10px;
}

.image-container img {
  opacity: 0.6;
  width: 100%;
  border-radius: 5px;
}

.scanline {
  position: absolute;
  width: 100%;
  height: 10px;
  background: #fff;
  animation: move 2s linear infinite;
}

@keyframes move {
  0%,
  100% {
    top: 0%;
  }

  50% {
    top: calc(100% - 10px);
  }
}
