* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.container {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
}

.background {
  position: relative;
  width: min(500px, 100vw);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 200px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.text {
  position: absolute;
  top: 5.5%;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 100%;
  max-width: 370px;
}

.text img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: zoomInOut 1.1s ease-in-out infinite;
}

@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.buttons {
  position: absolute;
  top: 27%;
  left: 50%;
  transform: translate(-50%, 0%);
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px;
}

.models-container {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: flex-end;
}

.models-container img {
  width: 33%;
  object-fit: contain;
  object-position: bottom;
}

.models-container img:nth-child(3) {
  transform: translateY(20px);
}

.character {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: flex-end;
}

.character img {
  width: 30%;
  object-fit: contain;
  object-position: bottom;
}

.character img:nth-child(1) {
  width: 30%;
  transform: translateY(-30px);
}

.character img:nth-child(2) {
  width: 35%;
  transform: translateY(-100px);
}

.character img:nth-child(3) {
  width: 30%;
  transform: translateY(-60px);
}


.frame-table {
  position: absolute;
  top: 64%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 620px;
}

.frame-table img {
  width: 100%;
  object-fit: contain;
}

@keyframes btnPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

#downloadButton {
  width: 70%;
  max-width: 170px;
  display: block;
  cursor: pointer;
  z-index: 99999;
  animation: btnPulse 1.2s ease-in-out infinite;
}

#webButton {
  width: 70%;
  max-width: 170px;
  display: block;
  cursor: pointer;
  z-index: 99999;
  animation: btnPulse 1.2s ease-in-out infinite;
  animation-delay: 0.3s;
}

/* Mobile: fill full screen, scale down elements */
@media (max-width: 500px) {
  .buttons {
    padding: 20px;
    top: 32%;
  }

  .character img:nth-child(1) {
    width: 30%;
    transform: translateY(-30px);
  }

  .character img:nth-child(2) {
    width: 35%;
    transform: translateY(-70px);
  }

  .character img:nth-child(3) {
    width: 30%;
    transform: translateY(-60px);
  }

  .logo {
    max-width: 160px;
  }

  .text {
    max-width: 90%;
  }

  #downloadButton,
  #webButton {
    max-width: 140px;
  }

  .frame-table {
    top: 70%;
    max-width: 100%;
  }
}