html,
body {
  margin: 0;
  height: 100vh;
  overflow-x: hidden;
  overscroll-behavior: none;
  zoom: 0.85;
}

.loading-element {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  height: 4px;
  width: 128px;
  transform: translate(-50%, -50%);
  user-select: none;
  pointer-events: none;
  animation: loading-element-enter 0.2s ease 0.5s;
  animation-fill-mode: backwards;
  background-color: #eee;
}

.loading-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  transform-origin: 0% 50%;
  background-color: #aaa;
  transition: transform 0.2s ease-in-out;
}

@keyframes loading-element-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body.is-loading .loading-element {
  display: block;
}

body.is-loading .prototype-container {
  display: none;
}

.prototype-container {
  position: fixed;
  height: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overscroll-behavior: auto;
}

.prototype-container ::-webkit-scrollbar {
  display: none;
}

.artboard {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.artboard.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.artboard-scroll-container,
.artboard-fixed-container {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

.artboard-fixed-container {
  pointer-events: none;
}

.artboard-scroll-container {
  overflow: scroll;
}

.artboard-content {
  position: absolute;
  left: 0;
  top: 0;
  background-size: contain;
  overflow: hidden; /* don't allow hotspots to create scrolling */
}

.hotspot {
  cursor: pointer;
  position: absolute;
  opacity: 0;
}

body[can-show-hotspots] {
  /* this helps hotspots work on iOS */
  cursor: pointer;
}

body[can-show-hotspots] .hotspot {
  background-color: rgba(239, 108, 0, 0.2);
  box-shadow: 0 0 0 3px rgba(239, 108, 0, 0.5) inset,
    0 4px 8px rgba(239, 108, 0, 0.25);
}

.highlight-hotspots .hotspot {
  animation: hotspotAnimation 0.6s ease;
}

@keyframes hotspotAnimation {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
#phone-frame {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-36.25%, -49.8%);
}

#phone-frame img {
  max-width: 100%;
  max-height: 100%;
}
