/* General Dark Theme */
body {
  font-family: 'Courier New', monospace;
  background-color: #0a0a0a;
  color: #e0e0e0;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  background-color: #1a1a1a;
  border: 2px solid #8b0000;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.8);
  width: 90%;
  max-width: 600px;
  padding: 20px;
  text-align: center;
}

h1 {
  color: #ff0000;
  text-shadow: 0 0 10px #ff0000, 0 0 20px #8b0000;
}

input, button {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}

input {
  background-color: #2c2c2c;
  color: #e0e0e0;
}

button {
  background-color: #8b0000;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #ff0000;
}

.game-section, .log-section {
  margin-top: 20px;
  padding: 10px;
  background-color: #2c2c2c;
  border-radius: 5px;
}

.log {
  border: 1px solid #333;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  background-color: #2c2c2c;
}

/* Scan Effect */
.scan-effect {
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
  font-size: 1.2em;
  display: none;
  animation: scan 1.5s ease-out forwards;
}

@keyframes scan {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

/* Cyber Attack Effect */
.cyber-attack-effect {
  color: #ff0000;
  text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
  font-size: 1.2em;
  display: none;
  animation: attack 2s ease-out forwards;
}

@keyframes attack {
  0% { opacity: 0; transform: rotate(-15deg) scale(0.8); }
  100% { opacity: 1; transform: rotate(0deg) scale(1); }
}

/* FBI Seizure Effects */
.fbi-seizure {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: red;
  font-family: 'Courier New', monospace;
  font-size: 2em;
  z-index: 9999;
  text-align: center;
  animation: glitch 1s infinite;
}

@keyframes glitch {
  0% { background-color: black; color: red; transform: scale(1); }
  50% { background-color: darkred; color: white; transform: scale(1.02); }
  100% { background-color: black; color: red; transform: scale(1); }
}

.fbi-lights {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 5px;
  background: linear-gradient(to right, red, blue, red, blue);
  animation: lights 0.5s infinite;
}

@keyframes lights {
  0% { background-position: 0; }
  100% { background-position: 100vw; }
}

/* Terms Modal - Centered and Responsive */
.terms-modal {
  position: fixed;
  top: 50%; /* Pusatkan modal secara vertikal */
  left: 50%; /* Pusatkan modal secara horizontal */
  transform: translate(-50%, -50%); /* Menjamin pemusatan penuh */
  width: 90%; /* Lebar responsif */
  max-width: 500px; /* Had lebar maksimum */
  height: auto; /* Tinggi menyesuaikan isi */
  background-color: rgba(0, 0, 0, 0.9); /* Latar belakang gelap */
  color: white;
  border: 2px solid #8b0000;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8); /* Efek bayangan */
  padding: 20px;
  z-index: 9999;
  overflow-y: auto; /* Gulir jika isi terlalu panjang */
}

.terms-content {
  text-align: center;
}

.terms-content h2 {
  color: #ff0000;
  margin-bottom: 10px;
}

.terms-content ul {
  text-align: left;
  margin: 15px 0;
  padding: 0 20px;
  font-size: 1em; /* Ukuran teks nyaman */
}

.terms-content button {
  background-color: #8b0000;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.terms-content button:hover {
  background-color: #ff0000;
}

/* Responsif untuk Layar Kecil */
@media screen and (max-width: 768px) {
  .terms-modal {
    width: 95%; /* Lebar hampir penuh */
    max-width: none; /* Hilangkan batas lebar */
    font-size: 0.9em; /* Sesuaikan ukuran font */
  }

  .terms-content ul {
    font-size: 0.8em; /* Teks lebih kecil */
  }

  .terms-content button {
    font-size: 14px; /* Ukuran tombol lebih kecil */
  }
}
