/*
 * [atopia][PWRU-393] Player-frame CSS (loaded only inside player.html).
 * Reproduces the legacy iSpring stage styles so the vendor player lays out as
 * before. Scoped to the frame document — it never reaches other routes. The
 * transient preloader keeps the legacy geometry but uses a CSS-only spinner
 * instead of the legacy base64 PNG (player.js removes #preloader on init).
 */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #fff;
  overflow: hidden;
}

.interactive_container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Vendor audio bank: kept in the DOM for player.js, never displayed. */
#spr0_80804d {
  display: none;
}

/*
 * Parent page scales the iframe (1304×742 → 0.9). Inside, pin prod pre-zoom boxes so
 * iSpring does not leave a letterboxed #slidesBackground (~1223 vs prod 1278).
 */
.universal {
  top: 0 !important;
  left: 0 !important;
  box-sizing: border-box !important;
  width: 1304px !important;
  height: 742px !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 7px !important;
  overflow: hidden;
}

.universal .main-container {
  width: 1304px !important;
}

.universal .content-area,
.universal .playerView,
.universal #playerView {
  width: 1280px !important;
  height: 720px !important;
  max-width: none !important;
  max-height: none !important;
  transform: none !important;
}

.universal #slidesBackground {
  width: 1278px !important;
  height: 718px !important;
  left: 1px !important;
  top: 1px !important;
}

#playerView {
  position: absolute;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

#playerView * {
  position: absolute;
}

#playerView img {
  max-width: unset !important;
}

#preloader {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.5);
}

#preloader::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  margin: auto;
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: preloader_spin 1s infinite linear;
  -webkit-animation: preloader_spin 1s infinite linear;
}

@keyframes preloader_spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes preloader_spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}
