/* ========== Reset and Base ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  height: 100%;
  background: black;
  color: #0f0;
  font-family: 'Segoe UI', 'Consolas', monospace;
  overflow: hidden;
}

/* ========== Matrix Canvas ========== */
#matrix {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: black;
}

/* ========== Foreground Container ========== */
.content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  background-color: rgba(0, 0, 0, 0.3);
}

/* ========== Typewriter Title ========== */
.typewriter {
  font-size: 3rem;
  font-weight: bold;
  color: #ff0033;
  text-shadow: 0 0 20px #ff0033, 0 0 10px #ff0033;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  text-align: center;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { text-shadow: 0 0 5px #ff0033; }
  50% { text-shadow: 0 0 20px #ff0033; }
  100% { text-shadow: 0 0 5px #ff0033; }
}

/* ========== Fake Terminal Logs ========== */
.log-area {
  font-family: monospace;
  font-size: 1rem;
  width: 90%;
  max-width: 700px;
  height: 220px;
  padding: 1rem;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #0f0;
  overflow-y: auto;
  border: 2px solid #0f0;
  box-shadow: 0 0 20px #00ff00aa inset;
  margin-bottom: 2rem;
}

/* Scrollbar styling */
.log-area::-webkit-scrollbar {
  width: 6px;
}
.log-area::-webkit-scrollbar-thumb {
  background: #0f0;
  border-radius: 8px;
}

/* ========== Reveal Message Box ========== */
.reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ffffffdd;
  color: #111;
  padding: 2rem;
  border-radius: 12px;
  max-width: 700px;
  box-shadow: 0 0 25px #111;
  transition: all 0.5s ease;
  animation: fadeIn 1s ease forwards;
}

.reveal.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.reveal h2 {
  color: #d00000;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.reveal p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  text-align: center;
}

/* ========== Red Share Button ========== */
.reveal button {
  margin-top: 1.5rem;
  padding: 14px 28px;
  background-color: #d00000;
  color: white;
  font-weight: bold;
  border: none;
  font-size: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 15px #d00000aa;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.reveal button:hover {
  background-color: #a00000;
  transform: scale(1.03);
}

/* ========== Responsive Design ========== */
@media (max-width: 600px) {
  .typewriter {
    font-size: 2rem;
  }
  .log-area {
    font-size: 0.9rem;
    height: 160px;
  }
  .reveal {
    padding: 1.2rem;
  }
  .reveal p {
    font-size: 1rem;
  }
  .reveal button {
    width: 100%;
    font-size: 1rem;
  }
}
