/* =========================================== HERE AND NOW AI Chatbot - Wax Crayon Theme =========================================== */ :root { --primary: #ffdf00; --secondary: #004040; --bg-cream: #fff8e7; --bg-paper: #fffef5; --text-dark: #2d2d2d; --text-light: #666; --shadow: rgba(0, 64, 64, 0.15); --crayon-stroke: 3px; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: "Patrick Hand", cursive; background: var(--bg-cream); min-height: 100vh; color: var(--text-dark); overflow-x: hidden; } /* Crayon texture background */ .crayon-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient( 0deg, transparent, transparent 2px, rgba(255, 223, 0, 0.03) 2px, rgba(255, 223, 0, 0.03) 4px ), repeating-linear-gradient( 90deg, transparent, transparent 2px, rgba(0, 64, 64, 0.02) 2px, rgba(0, 64, 64, 0.02) 4px ); pointer-events: none; z-index: -1; } .container { max-width: 900px; margin: 0 auto; padding: 20px; min-height: 100vh; display: flex; flex-direction: column; } /* =========================================== Header - Hand-drawn style =========================================== */ .header { text-align: center; padding: 20px 0; margin-bottom: 20px; } .logo-container { display: inline-block; padding: 15px 25px; background: var(--primary); border: var(--crayon-stroke) solid var(--secondary); border-radius: 20px 5px 20px 5px; box-shadow: 4px 4px 0 var(--secondary), 8px 8px 15px var(--shadow); transform: rotate(-1deg); transition: transform 0.3s ease; } .logo-container:hover { transform: rotate(0deg) scale(1.02); } .logo { height: 50px; width: auto; } .slogan { font-family: "Caveat", cursive; font-size: 1.8rem; color: var(--secondary); margin-top: 15px; font-weight: 600; text-shadow: 2px 2px 0 var(--primary); } /* =========================================== Chat Container - Notebook paper style =========================================== */ .chat-container { flex: 1; background: var(--bg-paper); border: var(--crayon-stroke) solid var(--secondary); border-radius: 15px 30px 15px 30px; box-shadow: 6px 6px 0 var(--primary), 12px 12px 0 var(--secondary), 15px 15px 30px var(--shadow); display: flex; flex-direction: column; overflow: hidden; position: relative; } /* Notebook lines effect */ .chat-container::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient( transparent, transparent 30px, rgba(0, 64, 64, 0.05) 30px, rgba(0, 64, 64, 0.05) 31px ); pointer-events: none; } /* Red margin line */ .chat-container::after { content: ""; position: absolute; top: 0; left: 60px; width: 2px; height: 100%; background: rgba(255, 100, 100, 0.3); pointer-events: none; } .chat-header { display: flex; align-items: center; gap: 15px; padding: 20px 25px; background: linear-gradient(135deg, var(--primary) 0%, #ffe94d 100%); border-bottom: var(--crayon-stroke) solid var(--secondary); position: relative; z-index: 1; } .avatar { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--secondary); box-shadow: 3px 3px 0 var(--secondary); object-fit: cover; } .chat-header-info h2 { font-family: "Caveat", cursive; font-size: 1.8rem; color: var(--secondary); margin-bottom: 2px; } .status { font-size: 0.9rem; color: var(--text-light); } /* =========================================== Messages - Speech bubbles with crayon feel =========================================== */ .chat-messages { flex: 1; overflow-y: auto; padding: 25px; display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; } .message { display: flex; gap: 12px; max-width: 85%; animation: messageSlide 0.3s ease-out; } @keyframes messageSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .message.user { align-self: flex-end; flex-direction: row-reverse; } .message-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--secondary); flex-shrink: 0; object-fit: cover; } .message-content { padding: 15px 20px; border-radius: 20px 20px 20px 5px; position: relative; line-height: 1.5; font-size: 1.1rem; } .message.bot .message-content { background: white; border: 2px solid var(--secondary); box-shadow: 3px 3px 0 var(--primary); } .message.user .message-content { background: var(--primary); border: 2px solid var(--secondary); border-radius: 20px 20px 5px 20px; box-shadow: 3px 3px 0 var(--secondary); } /* =========================================== Input Area - Torn paper effect =========================================== */ .chat-input-container { padding: 20px 25px; background: linear-gradient(to top, var(--bg-cream), var(--bg-paper)); border-top: 3px dashed var(--secondary); position: relative; z-index: 1; } .suggestions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; } .suggestion-btn { font-family: "Patrick Hand", cursive; font-size: 0.95rem; padding: 8px 16px; background: white; border: 2px solid var(--secondary); border-radius: 20px; cursor: pointer; transition: all 0.2s ease; color: var(--text-dark); } .suggestion-btn:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 2px 2px 0 var(--secondary); } .chat-form { display: flex; gap: 12px; } #messageInput { flex: 1; font-family: "Patrick Hand", cursive; font-size: 1.1rem; padding: 15px 20px; border: 3px solid var(--secondary); border-radius: 25px; background: white; outline: none; transition: all 0.2s ease; } #messageInput:focus { box-shadow: 0 0 0 3px var(--primary); } #messageInput::placeholder { color: var(--text-light); } #sendBtn { width: 55px; height: 55px; border-radius: 50%; border: 3px solid var(--secondary); background: var(--primary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; color: var(--secondary); } #sendBtn:hover { transform: scale(1.1) rotate(10deg); box-shadow: 3px 3px 0 var(--secondary); } #sendBtn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } /* =========================================== Footer - Sketchy style =========================================== */ .footer { text-align: center; padding: 25px 0; margin-top: 20px; } .social-links { display: flex; justify-content: center; gap: 15px; margin-bottom: 15px; } .social-links a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--primary); border: 2px solid var(--secondary); border-radius: 50%; color: var(--secondary); transition: all 0.2s ease; } .social-links a:hover { transform: translateY(-3px) rotate(5deg); box-shadow: 2px 2px 0 var(--secondary); } .copyright { font-size: 0.9rem; color: var(--text-light); margin-bottom: 5px; } .contact { font-size: 0.85rem; } .contact a { color: var(--secondary); text-decoration: none; } .contact a:hover { text-decoration: underline; } /* =========================================== Typing indicator =========================================== */ .typing-indicator { display: flex; gap: 5px; padding: 15px 20px; } .typing-indicator span { width: 10px; height: 10px; background: var(--secondary); border-radius: 50%; animation: typing 1.4s infinite ease-in-out; } .typing-indicator span:nth-child(1) { animation-delay: 0s; } .typing-indicator span:nth-child(2) { animation-delay: 0.2s; } .typing-indicator span:nth-child(3) { animation-delay: 0.4s; } @keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-10px); opacity: 1; } } /* =========================================== Mobile Responsive =========================================== */ @media (max-width: 768px) { .container { padding: 10px; } .logo { height: 40px; } .slogan { font-size: 1.4rem; } .chat-container::after { display: none; } .chat-header { padding: 15px 20px; } .avatar { width: 50px; height: 50px; } .chat-header-info h2 { font-size: 1.4rem; } .message { max-width: 90%; } .suggestions { gap: 8px; } .suggestion-btn { font-size: 0.85rem; padding: 6px 12px; } #messageInput { padding: 12px 15px; } #sendBtn { width: 48px; height: 48px; } } /* =========================================== Scrollbar styling =========================================== */ .chat-messages::-webkit-scrollbar { width: 8px; } .chat-messages::-webkit-scrollbar-track { background: transparent; } .chat-messages::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; border: 1px solid var(--secondary); } .chat-messages::-webkit-scrollbar-thumb:hover { background: #ffe94d; }