/* Base Styles */
body {
  margin: 0;
  font-family: "Consolas", "Liberation Mono", monospace;
  background: #0a0f1a;
  color: #00ffcc;
  overflow: hidden;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease;
}

/* Main Content */
.main-content {
  text-align: center;
  max-width: 700px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #00ffcc40;
  border-radius: 12px;
  box-shadow: 0 0 30px #00ffcc25;
  font-size: 20px;
}

.main-content h1 {
  color: #00ffee;
  margin-bottom: 15px;
}

.disclaimer {
  color: #ff5e5e;
  font-size: 1rem;
  margin-top: 15px;
}

#startBtn {
  margin-top: 30px;
  padding: 12px 25px;
  font-size: 1rem;
  background: #ff003c;
  border: 2px solid #ff003c;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.3s;
}

#startBtn:hover {
  background: #000;
  color: #fff;
  border: 2px solid #ff003c;
}

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #111;
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 15px #ffffff88;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-content h2 {
  margin-bottom: 15px;
}

.modal-content label {
  font-size: 1rem;
  display: inline-block;
  margin-top: 15px;
  color: #ff003c;
}

.modal-content input[type="checkbox"] {
  margin-right: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#proceedBtn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #000;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  cursor: not-allowed;
  border-radius: 5px;
  transition: 0.3s;
}

#proceedBtn.enabled {
  cursor: pointer;
  background: #ffffff;
  color: #000;
  border: 2px solid #000000;
}

/* Simulation View */
#simulation {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 999;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#glitch-text {
  color: #00ffcc;
  font-size: 1.2rem;
  animation: flicker 0.15s infinite alternate;
  opacity: 1;
}

@keyframes flicker {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

/* Hacked message */
#blackout {
  display: none;
  width: 100%;
  height: 100%;
  background: black;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: fadeIn 1s ease-in-out forwards;
}

.hacked-message {
  color: #ff003c;
  text-align: center;
  font-size: 1.2rem;
  font-family: 'Courier New', monospace;
  opacity: 0;
  animation: showHack 2s ease-in-out 1s forwards;
}

.hacked-message h2 {
  font-size: 2.3rem;
  margin-bottom: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes showHack {
  to { opacity: 1; }
}

/* Fake Freeze */
#freezeOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.4);
  cursor: wait;
  pointer-events: all;
}

/* Chaos Text */
.chaos-text {
  position: absolute;
  animation: fadeOut 2s ease-in-out forwards;
  user-select: none;
  font-weight: bold;
  color: #ff003c;
  text-shadow: 0 0 5px #ff003c88;
  font-size: 1rem;
}

@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.9); }
}

/* Spinner container */
.spinner-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

/* Spinner animation */
.spinner {
  border: 6px solid #222;
  border-top: 6px solid #ffffff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

.spinner-text {
  color: #ffffff;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.1rem;
}

/* Spin keyframe */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ✅ Mobile Responsive Styles */
@media screen and (max-width: 480px) {
  body {
    padding: 15px;
    font-size: 14px;
    height: auto;
    overflow-y: auto;
  }

  .main-content {
    padding: 20px;
    font-size: 16px;
    width: 100%;
  }

  .main-content h1 {
    font-size: 1.5rem;
  }

  #startBtn {
    width: 100%;
    padding: 10px;
    font-size: 0.95rem;
  }

  .modal-content {
    padding: 20px;
    width: 95%;
  }

  .modal-content h2 {
    font-size: 1.3rem;
  }

  .modal-content label {
    font-size: 0.95rem;
  }

  #proceedBtn {
    width: 100%;
    font-size: 0.95rem;
    padding: 10px;
  }

  #glitch-text {
    font-size: 1rem;
    padding: 10px;
    text-align: center;
  }

  .hacked-message {
    font-size: 1rem;
  }

  .hacked-message h2 {
    font-size: 1.5rem;
  }

  .chaos-text {
    font-size: 0.9rem;
  }

  .spinner {
    width: 40px;
    height: 40px;
    border-width: 5px;
  }

  .spinner-text {
    font-size: 1rem;
  }
}
