Spaces:
Running
Running
| /* Fonts */ | |
| body { | |
| margin: 0; | |
| padding: 0; | |
| font-family: 'VT323', monospace; | |
| background-color: #000; | |
| color: #e0e0e0; | |
| overflow: hidden; | |
| height: 100vh; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| /* Background */ | |
| .background-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: url('/static/bg.jpg') no-repeat center center/cover; | |
| z-index: -2; | |
| filter: brightness(0.6) contrast(1.2); | |
| } | |
| /* CRT Scanline Effect */ | |
| .scanlines { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(to bottom, | |
| rgba(255, 255, 255, 0), | |
| rgba(255, 255, 255, 0) 50%, | |
| rgba(0, 0, 0, 0.2) 50%, | |
| rgba(0, 0, 0, 0.2)); | |
| background-size: 100% 4px; | |
| z-index: 10; | |
| pointer-events: none; | |
| animation: scrollLines 10s linear infinite; | |
| mix-blend-mode: overlay; | |
| } | |
| @keyframes scrollLines { | |
| 0% { | |
| background-position: 0 0; | |
| } | |
| 100% { | |
| background-position: 0 100%; | |
| } | |
| } | |
| /* Terminal Container */ | |
| .terminal-container { | |
| width: 95%; | |
| max-width: 900px; | |
| height: 90vh; | |
| max-height: 800px; | |
| background: rgba(10, 10, 20, 0.85); | |
| border: 3px double #00e5ff; | |
| /* Metallic/Neon Blue */ | |
| box-shadow: 0 0 20px rgba(0, 229, 255, 0.5), 0 0 40px rgba(255, 0, 0, 0.2); | |
| display: flex; | |
| flex-direction: column; | |
| position: relative; | |
| z-index: 5; | |
| backdrop-filter: blur(5px); | |
| } | |
| /* Terminal Header */ | |
| .terminal-header { | |
| background: #00334d; | |
| color: #00e5ff; | |
| padding: 10px 15px; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| border-bottom: 2px solid #00e5ff; | |
| font-family: 'Press Start 2P', monospace; | |
| font-size: 12px; | |
| letter-spacing: 2px; | |
| } | |
| /* Chat Window */ | |
| .chat-window { | |
| flex: 1; | |
| padding: 20px; | |
| overflow-y: auto; | |
| font-size: 1.4rem; | |
| scrollbar-width: thin; | |
| scrollbar-color: #ff0000 #111; | |
| } | |
| /* Messages */ | |
| .message { | |
| display: flex; | |
| align-items: flex-start; | |
| margin-bottom: 20px; | |
| animation: fadeIn 0.3s ease; | |
| } | |
| @keyframes fadeIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(10px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .avatar { | |
| width: 50px; | |
| height: 50px; | |
| margin-right: 15px; | |
| border: 2px solid; | |
| image-rendering: pixelated; | |
| } | |
| .bot-avatar { | |
| border-color: #ff0000; | |
| box-shadow: 0 0 10px #ff0000; | |
| } | |
| .user-avatar { | |
| border-color: #00ff00; | |
| box-shadow: 0 0 10px #00ff00; | |
| } | |
| .message-content { | |
| background: rgba(0, 0, 0, 0.6); | |
| padding: 10px 15px; | |
| border-radius: 4px; | |
| border-left: 3px solid #ff0000; | |
| color: #ffcccc; | |
| max-width: 80%; | |
| line-height: 1.4; | |
| text-shadow: 0 0 5px rgba(255, 0, 0, 0.6); | |
| } | |
| .user-message { | |
| flex-direction: row-reverse; | |
| } | |
| .user-message .avatar { | |
| margin-right: 0; | |
| margin-left: 15px; | |
| } | |
| .user-message .message-content { | |
| border-left: none; | |
| border-right: 3px solid #00ff00; | |
| color: #ccffcc; | |
| text-shadow: 0 0 5px rgba(0, 255, 0, 0.6); | |
| } | |
| /* Input Area */ | |
| .input-area { | |
| padding: 20px; | |
| background: #050510; | |
| border-top: 2px solid #00e5ff; | |
| display: flex; | |
| align-items: center; | |
| } | |
| #user-input { | |
| flex: 1; | |
| background: #000; | |
| border: 2px solid #ff0000; | |
| color: #ff0000; | |
| padding: 15px; | |
| font-family: 'VT323', monospace; | |
| font-size: 1.5rem; | |
| outline: none; | |
| box-shadow: inset 0 0 10px rgba(255, 0, 0, 0.5); | |
| } | |
| #user-input::placeholder { | |
| color: rgba(255, 0, 0, 0.5); | |
| } | |
| #send-btn { | |
| background: linear-gradient(#333, #111); | |
| border: 2px solid #888; | |
| color: #ff0000; | |
| padding: 10px 30px; | |
| margin-left: 15px; | |
| font-family: 'Press Start 2P', cursive; | |
| font-size: 12px; | |
| cursor: pointer; | |
| box-shadow: 2px 2px 0 #000; | |
| text-shadow: 0 0 5px #ff0000; | |
| } | |
| #send-btn:hover { | |
| background: linear-gradient(#444, #222); | |
| box-shadow: 0 0 10px #ff0000; | |
| } | |
| #send-btn:active { | |
| transform: translate(2px, 2px); | |
| box-shadow: none; | |
| } | |
| /* Loadings/Typing */ | |
| .typing-indicator { | |
| color: #ff0000; | |
| display: none; | |
| margin-left: 65px; | |
| font-size: 1.2rem; | |
| font-family: 'VT323', monospace; | |
| } | |
| .typing-indicator::after { | |
| content: '_'; | |
| animation: blink 1s infinite; | |
| } | |
| @keyframes blink { | |
| 0%, | |
| 100% { | |
| opacity: 1; | |
| } | |
| 50% { | |
| opacity: 0; | |
| } | |
| } | |
| /* Custom Scrollbar */ | |
| ::-webkit-scrollbar { | |
| width: 10px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: #111; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: #ff0000; | |
| border: 1px solid #000; | |
| } | |
| /* Logo Overlay */ | |
| .logo-overlay { | |
| position: absolute; | |
| top: 20px; | |
| width: 100%; | |
| text-align: center; | |
| font-family: 'ITC Benguiat', serif; | |
| /* Or fallback */ | |
| font-weight: bold; | |
| font-size: 3rem; | |
| color: transparent; | |
| -webkit-text-stroke: 2px #ff0000; | |
| text-shadow: 0 0 20px #ff0000; | |
| z-index: 2; | |
| pointer-events: none; | |
| letter-spacing: 5px; | |
| } |