body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background-color: black;
  overflow: hidden;
}

.intro-screen {
  background: url('assets/standing.png') no-repeat center center;
  background-size: cover;
  position: absolute;
  width: 100vw;
  height: 100vh;
  z-index: 10;
}

.call-prompt {
  position: absolute;
  top: 8vh;
  left: 50%; /* ADD THIS */
  transform: translateX(-50%); /* ADD THIS */
  width: auto; /* Optional but cleaner */
  text-align: center;
  font-size: 1.5vw;
  color: #7ffbff;
  animation: pulseText 1.5s infinite;
}



.mobi-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.mobi-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: auto;
  max-height: 100vh;
  z-index: 1;
}

.screen-content {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  width: 50vw;
  max-width: 700px;
  padding: 2vh 2vw;
  box-sizing: border-box;
  z-index: 2;
  color: #7ffbff;
  text-align: left;
  font-size: 1vw;
  word-wrap: break-word;
  overflow-wrap: break-word;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.screen-content.showing {
  opacity: 1;
}

.question span {
  display: block;
  margin-bottom: 2vh;
  font-size: 1.3vw;
  white-space: normal;
  text-align: left;
  width: 100%;
  position: relative;
}

.question span::after {
  content: '|';
  position: absolute;
  right: -0.6vw;
  animation: blink 1s steps(1) infinite;
  color: #7ffbff;
  opacity: 0.6;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  50.01%, 100% {
    opacity: 0;
  }
}

@keyframes screenFlicker {
  0%   { opacity: 0.2; filter: brightness(300%) contrast(200%); }
  10%  { opacity: 1;   filter: brightness(150%) contrast(150%); }
  20%  { opacity: 0.1; filter: brightness(400%) contrast(300%); }
  30%  { opacity: 0.9; filter: brightness(100%) contrast(100%); }
  40%  { opacity: 0.3; filter: brightness(250%) contrast(200%); }
  50%  { opacity: 1;   filter: none; }
  100% { opacity: 1;   filter: none; }
}

.mobi-wrapper.flicker {
  animation: screenFlicker 0.6s linear forwards;
}

.button {
  background-image: url('assets/blank-button.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 7.5vh;
  margin: 1vh auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7ffbff;
  font-size: 1.1vw;
  cursor: pointer;
  text-shadow: 0 0 5px black;
  transition: all 0.2s ease-in-out;
  animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.button:hover {
  filter: brightness(1.3);
  transform: scale(1.03);
}

.button:active {
  transform: scale(0.97);
  filter: brightness(0.9);
}

.button span {
  padding: 0 1vw;
  white-space: nowrap;
}

.intro-screen {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.intro-content {
  text-align: center;
  color: #7ffbff;
  font-size: 1.5vw;
  max-width: 70vw;
  padding: 2vw;
}

.intro-text {
  margin-bottom: 2vh;
  font-size: 1.2vw;
}

.begin-button {
  font-size: 1.1vw;
  padding: 1vh 3vw;
  font-family: 'Orbitron', sans-serif;
  background: #0ff;
  border: none;
  color: black;
  cursor: pointer;
  text-shadow: 0 0 5px #000;
  box-shadow: 0 0 10px #0ff;
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
  max-width: 20vw;
  text-align: center;
}

.begin-button:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}

.hidden {
  display: none;
}

@keyframes mobiBoot {
  0% {
    opacity: 0;
    transform: scale(0.95);
    filter: brightness(1.5) blur(5px);
  }
  50% {
    opacity: 0.5;
    filter: brightness(2.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
}

@keyframes pulseText {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.initializing-text {
  font-size: 1.2vw;
  color: #7ffbff;
  text-align: center;
  animation: pulseText 1s infinite;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}


.mobi-wrapper.booting {
  animation: mobiBoot 1s ease-out forwards;
}
