* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0e14;
  color: #35ffb0;
  font-family: 'Courier New', monospace;
  height: 100vh;
  overflow: hidden;
}

.terminal-container {
  display: flex;
  height: 100vh;
}

.terminal {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #0a0e14;
}

#output {
  white-space: pre-wrap;
  margin-bottom: 10px;
}

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

.prompt {
  color: #b349ff;
  margin-right: 5px;
}

#input {
  flex: 1;
  background: transparent;
  border: none;
  color: #35ffb0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  outline: none;
}

.modal {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(10, 14, 20, 0.95);
  border-left: 2px solid #b349ff;
  overflow-y: auto;
  transition: width 0.3s ease;
  z-index: 100;
}

.modal.active {
  width: 70%;
}

.modal-content {
  padding: 30px;
  color: #35ffb0;
}

.modal-content h1 {
  color: #b349ff;
  margin-bottom: 20px;
}

.modal-content p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.ascii-art {
  color: #b349ff;
  line-height: 1.2;
}

.motd {
  color: #35ffb0;
  margin: 20px 0;
}

.command-output {
  color: #a0a2b3;
  margin: 10px 0;
}

.error {
  color: #ff4444;
}

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 20, 0.95);
  border-top: 2px solid #b349ff;
  padding: 10px;
  gap: 10px;
  justify-content: space-around;
  z-index: 200;
}

.mobile-nav-btn {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: 1px solid #b349ff;
  color: #35ffb0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}

.mobile-nav-btn:active {
  background: rgba(179, 73, 255, 0.2);
}

.train {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 100%;
  color: #35ffb0;
  font-size: 24px;
  white-space: pre;
  z-index: 9999;
  animation: trainMove 3s linear;
  pointer-events: none;
}

@keyframes trainMove {
  from {
    left: 100%;
  }
  to {
    left: -100%;
  }
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
  }
  
  .terminal {
    padding-bottom: 70px;
  }
  
  .modal.active {
    width: 90%;
  }
}
