@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&display=swap');

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

body {
  background-color: #ffffff;
  color: #2d3748;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: fixed;
  width: 100%;
  height: 100vh;
}

.gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top, rgba(102, 126, 234, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.entry-container {
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 20px;
}

.terminal-window {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.terminal-header {
  background: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);
  padding: 0;
  border-bottom: 2px solid #e2e8f0;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  height: 45px;
  position: relative;
}

.window-controls {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  align-items: center;
}

.control-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.control-btn.close {
  background: #ff5f57;
}

.control-btn.minimize {
  background: #ffbd2e;
}

.control-btn.maximize {
  background: #28ca42;
}

.control-btn:hover {
  transform: scale(1.15);
  filter: brightness(0.9);
}

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9em;
  color: #667eea;
  font-weight: 600;
  font-family: 'Fira Code', monospace;
}

.terminal-content {
  padding: 30px;
  font-size: 0.95em;
  line-height: 1.8;
  max-height: 600px;
  overflow-y: auto;
  background: #f8f9fa;
  border-radius: 0 0 10px 10px;
  font-family: 'Fira Code', monospace;
}

.terminal-content::-webkit-scrollbar {
  width: 10px;
}

.terminal-content::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 0 0 10px 0;
}

.terminal-content::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 5px;
  border: 2px solid #f8f9fa;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
  background: #667eea;
}

.terminal-line {
  margin: 8px 0;
  display: block;
}

.prompt {
  color: #667eea;
  margin-right: 8px;
  font-weight: 600;
}

.command {
  color: #d69e2e;
  font-weight: 500;
}

.output {
  color: #4a5568;
  padding-left: 20px;
}

.output.accent {
  color: #667eea;
  font-weight: 600;
}

.output.error {
  color: #e53e3e;
}

.accent {
  color: #667eea;
  font-weight: 600;
}

.welcome-msg {
  color: #2d3748;
  font-size: 1.05em;
  margin: 5px 0;
}

.hint {
  color: #718096;
  font-size: 0.95em;
}

.enter-prompt {
  margin-top: 10px;
}

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

.user-input {
  color: #2d3748;
  min-width: 10px;
  font-weight: 500;
}

#output {
  margin-top: 10px;
}

.cursor {
  display: inline-block;
  width: 10px;
  background-color: #667eea;
  animation: blink 1.2s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #667eea;
    color: white;
}

@keyframes arrowSlide {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .terminal-content {
    padding: 20px;
    font-size: 0.85em;
    max-height: 500px;
  }

  .terminal-window {
    max-width: 95%;
  }

  .window-title {
    font-size: 0.8em;
  }
}

#hiddenInput {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
