:root { --bg-color: #121212; --text-color: #e0e0e0; --card-bg: #171717; --button-bg: #075e2b; --hover-bg: #0a8c40; --message-bg-color: #075e2b; --scroll-color: #075e2b #1d1d1d; --input-area-bg-color: #212121; --input-bg-color: #272727; --input-text-color: #ebebeb; --header-bg: linear-gradient(90deg, #0f0f0f, #1f1f1f); --highlight-color: #4ba302; --link-color: #76ff03; --shadow-color: rgba(0, 0, 0, 0.8); } [data-theme="light"] { --bg-color: #ffffff; --text-color: #121212; --card-bg: #f0f0f0; --button-bg: #0051a8; --hover-bg: #0066d6; --message-bg-color: #0051a8; --scroll-color: #0051a8 #919191; --input-area-bg-color: #f0f0f0; --input-bg-color: #ffffff; --input-text-color: #000000; --header-bg: linear-gradient(90deg, #e0e0e0, #ffffff); --highlight-color: #0051a8; --link-color: #1b5e20; --shadow-color: rgba(0, 0, 0, 0.2); } body { margin: 0; padding: 0; background-color: var(--bg-color); color: var(--text-color); font-family: 'Courier New', Courier, monospace; display: flex; justify-content: center; align-items: flex-start; min-height: 100vh; } /* Scroll bar */ * { scrollbar-width: thin; scrollbar-color: var(--scroll-color); } /* Stars background */ .stars { position: fixed; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; } .stars::before { content: ''; position: absolute; width: 100%; height: 100%; background: url('https://www.transparenttextures.com/patterns/stardust.png'); opacity: 1; animation: starAnimation 100s linear infinite; } @keyframes starAnimation { 0% { background-position: 0 0; } 100% { background-position: 10000px 10000px; } } /* Chat container */ #chat-container { width: 100%; max-width: 600px; margin-top: 30px; background-color: var(--card-bg); border-radius: 10px; box-shadow: 0 0 15px rgba(0,0,0,0.3); overflow: hidden; } /* Header */ #header { background: var(--header-bg); padding: 15px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); } #home-button { background: none; border: none; color: var(--text-color); font-size: 20px; cursor: pointer; } /* Footer */ #footer { text-align: center; font-size: 0.9em; color: #888; padding: 10px; border-top: 1px solid rgba(255,255,255,0.1); } #footer a { color: var(--link-color); text-decoration: none; } #footer a:hover { text-shadow: 0 0 5px var(--link-color); } /* Scroll bottom button */ #scroll-bottom { position: fixed; bottom: 20px; right: 40px; background-color: var(--button-bg); color: #fff; border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; z-index: 1000; display: flex; align-items: center; justify-content: center; } #scroll-bottom:hover { background-color: var(--hover-bg); } /* Theme toggle */ #theme-toggle-container { position: fixed; top: 20px; right: 20px; z-index: 1000; } #theme-toggle-button { background: transparent; border: none; font-size: 24px; cursor: pointer; color: var(--text-color); } /* Input area */ #input-area { display: flex; align-items: center; padding: 10px; background-color: var(--input-area-bg-color); gap: 8px; } #input-field { flex: 1; resize: none; border: none; border-radius: 5px; padding: 10px; background: var(--input-bg-color); color: var(--input-text-color); font-size: 14px; outline: none; height: 40px; } #send-button, #emoji-button { background-color: var(--button-bg); color: #fff; border: none; border-radius: 5px; padding: 10px 12px; font-size: 16px; cursor: pointer; transition: background-color 0.3s; } #send-button:hover, #emoji-button:hover { background-color: var(--hover-bg); } /* Typing indicator */ .typing-indicator { display: flex; justify-content: center; align-items: center; padding: 10px 0; } .typing-animation { display: flex; gap: 5px; } .dot { width: 8px; height: 8px; background-color: var(--text-color); border-radius: 50%; animation: blink 1.4s infinite both; } .dot:nth-child(2) { animation-delay: 0.2s; } .dot:nth-child(3) { animation-delay: 0.4s; } @keyframes blink { 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } }