:root { --bg-color: #272727; --text-color: #ebebeb; --shadow-color: #ebebeb; --message-bg-color: #075e2b; --input-bg-color: #292929; --input-area-bg-color: #1f1f1f; --button-bg-color: #054a22; --header-footer-bg-color: #181818; --header-shadow-rgb: 0 2px 5px rgba(0, 0, 0, 1); --scroll-color: #075e2b #1d1d1d; --input-text-color: #ebebeb; } [data-theme="light"] { --bg-color: #ffffff; --text-color: #edebeb; --header-text-color: #000000; --shadow-color: #000000; --message-bg-color: #0051a8; --input-bg-color: #e0e0e0; --input-area-bg-color: #919191; --button-bg-color: #00458f; --header-footer-bg-color: #d4d5d6; --header-shadow-rgb: 0 2px 5px rgba(230, 230, 230, 1); --scroll-color: #0051a8 #919191; --input-text-color: #000000; } body { background-color: var(--bg-color); color: var(--text-color); font-family: Arial, sans-serif; margin: 0; padding: 0; overflow: hidden; } #chat-container { width: 100%; max-width: 600px; margin: 0 auto; height: 100vh; display: flex; flex-direction: column; background-color: var(--bg-color); box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); backdrop-filter: blur(10px); } #message-area { flex: 1; padding: 20px; overflow-y: auto; } .message { margin-bottom: 15px; display: flex; flex-direction: column; } .message p { background-color: var(--message-bg-color); border-radius: 15px; padding: 12px; /* Artırılmış padding */ margin: 0; display: inline-block; word-wrap: break-word; white-space: pre-wrap; max-width: fit-content; font-size: 16px; /* Yazı boyutu artırıldı */ line-height: 1.5; /* Daha rahat okunabilirlik için satır yüksekliği */ } .message-timestamp { font-size: 12px; color: #888; margin-top: 4px; padding-left: 5px; } #input-area { display: flex; padding: 14px; background-color: var(--input-area-bg-color); } #input-field { flex: 1; background-color: var(--input-bg-color); color: var(--input-text-color); border: none; padding: 10px; font-size: 16px; border-radius: 5px; outline: none; resize: none; white-space: pre-wrap; overflow-wrap: break-word; } #input-field::placeholder { color: #696969; } #send-button { background-color: var(--button-bg-color); color: #ebebeb; padding: 10px 15px; margin-left: 10px; border: none; border-radius: 5px; cursor: pointer; } #emoji-button { background-color: var(--button-bg-color); color: #ebebeb; padding: 10px 15px; margin-left: 10px; border: none; border-radius: 5px; cursor: pointer; } #header { background-color: var(--header-footer-bg-color); color: var(--header-text-color); text-align: center; padding: 12px; font-size: 22px; font-weight: bold; box-shadow: var(--header-shadow-rgb); } #footer { background-color: var(--header-footer-bg-color); color: var(--text-color); text-align: center; padding: 10px; font-size: 17px; font-weight: normal; } /* Update scroll button positioning */ #scroll-bottom { position: fixed; bottom: 140px; left: 55%; /* Positioned to the right of typing indicator */ transform: translateX(100px); background-color: var(--button-bg-color); color: white; border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; display: none; z-index: 1000; margin: 0 auto; } * { scrollbar-width: auto; /* Kaydırma çubuğu genişliği: thin (ince), auto (varsayılan) */ scrollbar-color: var(--scroll-color); /* Tutamaç ve arka plan rengi */ } .emoji-picker { position: absolute !important; bottom: 100% !important; /* Butonun üstünde göster */ left: 0 !important; font-size: 14px !important; width: 250px !important; height: 300px !important; z-index: 999 !important; } #input-area { position: relative; /* Emoji picker'ın konumlandırması için */ } .stars::before { content: ''; position: absolute; top: 0; left: 0; 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; } } #theme-toggle-container { position: fixed; top: 10px; right: 10px; z-index: 1000; } #theme-toggle-button { position: fixed; top: 20px; right: 20px; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-color); } #home-button { position: absolute; left: 10px; background-color: var(--button-bg-color); color: white; border: none; padding: 7px 15px; border-radius: 5px; cursor: pointer; transition: opacity 0.3s; } #leave-room-button { position: absolute; right: 10px; background-color: var(--button-bg-color); color: white; border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; transition: opacity 0.3s; } #home-button:hover, #leave-room-button:hover { opacity: 0.8; } /* Add these styles to your existing CSS */ .typing-indicator { display: none; border-radius: 15px; margin-bottom: 15px; width: fit-content; position: fixed; bottom: 140px; left: 50%; transform: translateX(-18px); z-index: 1000; margin: 0 auto; } .typing-animation { display: inline-flex; align-items: center; column-gap: 5px; } .dot { width: 8px; height: 8px; background: var(--button-bg-color); border-radius: 50%; animation: bounce 1s infinite; } .dot:nth-child(2) { animation-delay: 0.2s; } .dot:nth-child(3) { animation-delay: 0.4s; } @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }