html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: black;
}

#unity-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

canvas#unity-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  touch-action: none;
  outline: none;
}

/* LOGO SEQUENCE */
#logo-sequence {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3vw;
  z-index: 10;
  padding: 0 2vw;
  overflow-x: auto;
}

.logo {
  opacity: 0;
  width: 25vw;
  max-width: 300px;
  animation: fadeInLogo 1.5s ease forwards;
}

@media screen and (max-width: 1024px), (orientation: portrait) {
  #logo-sequence {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 300px;
    z-index: 10;
  }

  .logo,
  .logo-1,
  .logo-2,
  .logo-3 {
    width: 80vw;
    max-width: none;
    height: auto;
    max-height: 25vh; /* Optional to prevent huge logos */
    object-fit: contain;
  }
}
.logo-1 {
  animation-delay: 0s;
  width: 35vw; /* smaller */
  max-width: 200px;
}

.logo-2 {
  animation-delay: 1.2s;
  width: 70vw; /* medium */
}

.logo-3 {
  animation-delay: 2.4s;
  width: 45vw; /* larger */
  max-width: 350px;
}

/* Animations */
@keyframes fadeInLogo {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Unity UI elements */
#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  z-index: 10;
}

#unity-progress-bar-empty {
  width: 141px;
  height: 18px;
  margin-top: 10px;
  background: gray;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background: gray;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  background: red;
  color: white;
  padding: 10px;
  display: none;
  z-index: 20;
}

#unity-footer,
#unity-logo,
#unity-fullscreen-button {
  display: none;
}

/* Prevent zoom on iOS inputs */
input,
textarea,
.UnityInput {
  font-size: 16px !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
