/* css/intro.css - Full restoration for lab1.html animations */

#intro-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.stage {
  width: 100%;
  max-width: 800px;
  text-align: left;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
}

.terminal {
  background: #2a2a2a;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.4);
  max-height: 80vh;
  overflow-y: auto;
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.terminal.scroll-out {
  opacity: 0;
  transform: translateY(-20px);
}

.terminal p {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.input-line {
  display: flex;
  align-items: center;
}

.input-line span {
  font-size: 1.2rem;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 20px;
  background: #00f7ff;
  animation: blink 1s step-end infinite;
}

.firewall {
  background: #2a2a2a;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.4);
  text-align: center;
}

.firewall h2 {
  font-family: 'Orbitron', sans-serif;
  color: #ff00ff;
}

.firewall-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.firewall-btn {
  background: #333;
  padding: 0.8rem 1.2rem;
  border: none;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.firewall-btn[data-correct="true"]:hover,
.firewall-btn:hover {
  background: linear-gradient(90deg, #00f7ff, #ff00ff);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 247, 255, 0.5);
}

.firewall-btn:hover::after {
  content: attr(title);
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #00f7ff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  border: 1px solid #00f7ff;
  z-index: 10;
}

#firewall-logs p {
  margin: 0.6rem 0;
  font-size: 1rem;
  color: #00ff9d;
  text-align: left;
}

#firewall-status {
  margin-top: 1.5rem;
  font-size: 1.3rem;
  font-weight: bold;
}

.decryption {
  background: #2a2a2a;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 247, 255, 0.3);
  text-align: center;
  position: relative;
  z-index: 2;
}

.decryption h2 {
  font-family: 'Orbitron', sans-serif;
  color: #ff00ff;
}

#decryption-logs p {
  margin: 0.7rem 0;
  font-size: 1.2rem;
  color: #00ff9d;
}

#decryption-complete {
  display: none;
  font-size: 2.2rem;
  font-family: 'Orbitron', sans-serif;
  margin-top: 2rem;
}

.glitch {
  color: #00f7ff;
  position: relative;
  animation: glitch 0.6s linear infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch::before {
  color: #ff00ff;
  left: 3px;
  animation: glitch-left 0.6s linear infinite reverse;
}

.glitch::after {
  color: #ffffff;
  left: -3px;
  animation: glitch-right 0.6s linear infinite reverse;
}

#matrix-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Keyframes */
@keyframes blink {
  50% { opacity: 0; }
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(3px, -3px); }
  60% { transform: translate(-3px, 3px); }
  80% { transform: translate(3px, -3px); }
  100% { transform: translate(0); }
}

@keyframes glitch-left {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

@keyframes glitch-right {
  0% { transform: translate(0); }
  20% { transform: translate(2px, -2px); }
  40% { transform: translate(-2px, 2px); }
  100% { transform: translate(0); }
}
