* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
}

#container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(90deg, #708a7d, #a87e66, #708a7d);
}

#animation_container,
#preloader_hazel,
#dom_overlay_container,
#portraitHint,
#splash-screen {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 800px;
  height: 480px;
  transform: translate(-50%, -50%);
}

#animation_container {
  background: transparent;
}

#canvas {
  position: absolute;
  display: none;
  width: 800px;
  height: 480px;
  outline: none;
  background: transparent;
}

#dom_overlay_container {
  pointer-events: none;
  overflow: hidden;
  display: none;
}

#bgImage1,
#bgImage2,
#bgImage3,
#blackpatch {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: -9999px -9999px;
  background-size: cover;
}

#bgImage1 {
  background-image: url("Bg_Step_1.jpg");
}

#bgImage2 {
  background-image: url("Bg_Step_2.jpg");
}

#bgImage3 {
  background-image: url("Bg_Step_3.jpg");
}

#blackpatch {
  z-index: -9999;
  transform: translateZ(-10px);
  background-color: rgba(0, 0, 0, 0.7);
}

.tap_class {
  position: absolute;
  bottom: 0;
  width: 100%;
  line-height: 80px;
  color: #fff;
  text-align: center;
  font-size: min(28px, 3.5vw);
}

#portraitHint {
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  background: #000;
}

#portraitHint img {
  max-width: 70%;
}

#splash-screen {
  z-index: 20;
  display: none;
}

#splash {
  position: relative;
  width: 100%;
  height: 100%;
}

#splashImage,
#splashImage img {
  width: 100%;
  height: 100%;
}

#splashImage img {
  display: block;
  object-fit: contain;
}

.playbtn_class {
  position: absolute;
  left: 50%;
  bottom: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
  cursor: pointer;
}

.playbtn_class img {
  display: block;
  width: min(260px, 42vw);
  animation: playPulse 1s infinite alternate ease-in-out;
}

@keyframes playPulse {
  from { transform: scale(0.96); }
  to { transform: scale(1.04); }
}

#preloader_hazel {
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

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

#progress_div {
  position: absolute;
  left: 50%;
  top: 72%;
  transform: translate(-50%, -50%);
}

#progress_count {
  color: #ad35e8;
  font-size: min(30px, 4vw);
  font-weight: 700;
  text-align: center;
}

.container2,
#captureImage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#captureImage {
  width: 100%;
  height: 100%;
}



