Create a single HTML file that showcases three radically different, highly creative chatbot designs.
Each chatbot should be fundamentally unique — not just in theme or colors, but in:
• Layout
• Structure
• User interaction
• Purpose or tone
• Placement on the screen
• UI elements
• Behavior and animations
Use this as an opportunity to show off pure creativity and variety, as if designing three different futuristic chatbot products. Each one should feel like it belongs in a different website or context.
✅ Each chatbot must:
• Have a separate CSS style block, fully isolated from the others
• Be triggered by a distinct icon or visual element (not necessarily in the bottom corner!)
• Show only one chatbot UI at a time
• Be implemented with only HTML, CSS, and vanilla JavaScript
❌ Avoid reusing the same structure across all three. No clones with different themes. Each chatbot must feel original, as if designed by a different person for a different audience.
🎯 The output should be a single, copy-paste-ready HTML file, clearly labeled into sections for each bot.
Think bold, imaginative, even weird — surprise me.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Here's a single, copy-paste-ready HTML file showcasing three radically different chatbot designs, each with its unique aesthetic, interaction model, and purpose, built using only HTML, CSS, and vanilla JavaScript.
Each chatbot design is isolated with its own CSS style block and is activated by a distinct visual trigger. Only one chatbot can be active at a time, and clicking outside (on the dimmed overlay) will close the active chatbot.
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Radically Different Chatbot Designs</title>
<!-- Google Fonts for distinct typography -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Press+Start+2P&family=Pacifico&display=swap" rel="stylesheet">
<style>
/* Base styles - apply to body, reset default margins */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); /* A neutral, deep background */
color: #eee;
overflow: hidden; /* Prevent scrollbars from popping up */
position: relative;
}
/* --- Global Chatbot Management Styles --- */
.chatbot-container {
position: fixed;
z-index: 1000; /* Base Z-index for all chatbot containers */
}
.chatbot-ui {
display: none; /* Hidden by default */
}
/* Shared active class for showing the UI */
.chatbot-ui.active {
display: block; /* Overrides display: none, then animations take over */
z-index: 1002; /* UI is above its trigger and overlay */
}
/* Overlay to click outside and close */
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.5);
z-index: 999; /* Below chatbot UI, above triggers */
display: none;
backdrop-filter: blur(5px);
opacity: 0;
transition: opacity 0.3s ease;
}
.overlay.active {
display: block;
opacity: 1;
}
</style>
<!--
========================================
CHATBOT 1: The Oracle of Chronos
========================================
Concept: A mystical, time-bending, predictive AI. Not a typical chat, but more like a consultation or prophecy.
Layout/Structure: Vertical, columnar, slightly off-center.
User Interaction: User chooses from pre-defined "queries" presented as glowing buttons. No direct text input.
Purpose/Tone: Mystical, grand, ancient, foreboding.
Placement: Fixed at the left-mid of the screen.
UI Elements: Pulsating circular trigger, expanding/contracting UI, text appearing with a scanline/glow effect, stylized buttons.
Behavior/Animations: Slow, deliberate, ethereal transitions.
-->
<style id="oracle-styles">
/* Variables for Oracle */
.oracle-container {
--oracle-bg-dark: rgba(10, 5, 20, 0.95);
--oracle-text-light: #e0d0f0;
--oracle-glow-primary: #8a2be2; /* BlueViolet */
--oracle-glow-primary-rgb: 138, 43, 226;
--oracle-glow-secondary: #00ffff; /* Cyan */
--oracle-glow-secondary-rgb: 0, 255, 255;
--oracle-button-bg: rgba(70, 0, 140, 0.6);
--oracle-border-color: #4b0082; /* Indigo */
--oracle-font: 'Cinzel Decorative', serif;
}
.oracle-container {
top: 50%;
left: 15%;
transform: translateY(-50%);
}
.oracle-trigger {
width: 80px;
height: 80px;
background: radial-gradient(circle at center, var(--oracle-glow-primary) 0%, transparent 60%);
border: 2px solid var(--oracle-glow-primary);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
box-shadow: 0 0 15px var(--oracle-glow-primary);
animation: oracle-pulse 2s infinite alternate ease-in-out;
transition: transform 0.3s ease;
z-index: 1001; /* Trigger above overlay */
}
.oracle-trigger:hover {
transform: scale(1.1);
box-shadow: 0 0 25px var(--oracle-glow-primary);
}
.oracle-trigger span {
font-size: 40px;
color: var(--oracle-text-light);
text-shadow: 0 0 10px var(--oracle-glow-secondary);
}
@keyframes oracle-pulse {
0% { box-shadow: 0 0 15px var(--oracle-glow-primary); }
100% { box-shadow: 0 0 30px var(--oracle-glow-secondary), 0 0 50px var(--oracle-glow-primary); }
}
.oracle-ui {
background: var(--oracle-bg-dark);
border: 3px solid var(--oracle-border-color);
box-shadow: 0 0 30px var(--oracle-glow-primary);
border-radius: 15px;
width: 400px;
height: 550px;
padding: 25px;
display: flex;
flex-direction: column;
gap: 20px;
font-family: var(--oracle-font);
color: var(--oracle-text-light);
position: absolute; /* Relative to .oracle-container */
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.8);
opacity: 0;
pointer-events: none;
transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.6s ease;
transform-origin: center;
}
.oracle-ui.active {
opacity: 1;
pointer-events: auto;
transform: translate(-50%, -50%) scale(1);
}
.oracle-ui::before { /* Decorative border animation */
content: '';
position: absolute;
top: -10px;
left: -10px;
right: -10px;
bottom: -10px;
border: 1px dashed var(--oracle-glow-secondary);
border-radius: 20px;
animation: oracle-border-flow 8s linear infinite;
z-index: -1;
}
@keyframes oracle-border-flow {
0% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.02); opacity: 0.9; }
100% { transform: scale(1); opacity: 1; }
}
.oracle-header {
text-align: center;
font-size: 2em;
text-shadow: 0 0 10px var(--oracle-glow-secondary);
padding-bottom: 10px;
border-bottom: 1px solid rgba(128, 0, 128, 0.5); /* Purple */
}
.oracle-header span {
display: block;
font-size: 0.5em;
margin-top: 5px;
color: rgba(224, 208, 240, 0.7);
}
.oracle-display {
flex-grow: 1;
background: rgba(0, 0, 0, 0.4);
border: 1px solid rgba(128, 0, 128, 0.7);
border-radius: 8px;
padding: 15px;
overflow-y: auto;
display: flex;
flex-direction: column;
justify-content: flex-end; /* Keep new messages at bottom */
font-size: 1.1em;
line-height: 1.6;
text-shadow: 0 0 5px var(--oracle-glow-primary);
position: relative;
}
.oracle-display::-webkit-scrollbar {
width: 8px;
}
.oracle-display::-webkit-scrollbar-thumb {
background: var(--oracle-glow-primary);
border-radius: 4px;
}
.oracle-display::-webkit-scrollbar-track {
background: var(--oracle-bg-dark);
}
.oracle-message {
margin-bottom: 10px;
padding: 8px 12px;
background: rgba(var(--oracle-glow-primary-rgb), 0.2);
border-left: 3px solid var(--oracle-glow-secondary);
border-radius: 5px;
animation: oracle-message-fade-in 0.8s ease-out forwards;
position: relative;
overflow: hidden;
}
.oracle-message::before { /* Scanline effect */
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(var(--oracle-glow-secondary-rgb), 0.2) 50%, rgba(0,0,0,0) 100%);
animation: oracle-scanline 3s linear infinite;
pointer-events: none;
}
@keyframes oracle-scanline {
0% { transform: translateX(-100%); }
100% { transform: translateX(100%); }
}
@keyframes oracle-message-fade-in {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.oracle-query-buttons {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
padding-top: 10px;
border-top: 1px solid rgba(128, 0, 128, 0.5);
}
.oracle-query-button {
background: var(--oracle-button-bg);
border: 1px solid var(--oracle-glow-primary);
color: var(--oracle-text-light);
font-family: var(--oracle-font);
padding: 12px;
border-radius: 8px;
cursor: pointer;
font-size: 0.9em;
text-align: center;
transition: all 0.3s ease;
box-shadow: 0 0 8px rgba(var(--oracle-glow-primary-rgb), 0.5);
}
.oracle-query-button:hover {
background: var(--oracle-glow-primary);
color: #fff;
box-shadow: 0 0 15px var(--oracle-glow-secondary);
transform: translateY(-3px) scale(1.02);
}
.oracle-query-button:active {
transform: translateY(0);
box-shadow: 0 0 5px var(--oracle-glow-primary);
}
</style>
<!--
========================================
CHATBOT 2: Synthwave Circuit Buddy
========================================
Concept: A retro-futuristic, hyper-energetic, helpful AI for digital art/music creation. Emphasizes visual feedback.
Layout/Structure: Wide, horizontal, bottom-anchored, like a command bar or console.
User Interaction: Direct text input for commands, responses are often visual or command-line like.
Purpose/Tone: Energetic, vibrant, creative, helpful, nostalgic but modern.
Placement: Fixed at the bottom center, spanning a significant width.
UI Elements: Glowing, pixelated trigger, glitching text, neon borders, console-like input.
Behavior/Animations: Fast, snappy, glitchy transitions, sliding movements.
-->
<style id="synthwave-styles">
/* Variables for Synthwave */
.synthwave-container {
--synthwave-bg: #1a0a2c;
--synthwave-border: #ee17ee;
--synthwave-accent: #00ffff;
--synthwave-accent-rgb: 0, 255, 255;
--synthwave-text: #ffffff;
--synthwave-glow: #ee17ee;
--synthwave-glow-rgb: 238, 23, 238;
--synthwave-font: 'Press Start 2P', cursive;
}
.synthwave-container {
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 80%; /* Max width */
max-width: 900px;
padding-bottom: 20px; /* Space for the trigger when UI is closed */
}
.synthwave-trigger {
width: 120px;
height: 40px;
background: linear-gradient(45deg, var(--synthwave-glow), var(--synthwave-accent));
border: 2px solid var(--synthwave-text);
border-radius: 10px 10px 0 0;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
position: absolute; /* Relative to its container */
bottom: 0;
left: 50%;
transform: translateX(-50%);
box-shadow: 0 0 20px var(--synthwave-glow);
transition: all 0.3s ease;
z-index: 1001; /* Trigger above overlay */
}
.synthwave-trigger:hover {
transform: translateX(-50%) scale(1.05);
box-shadow: 0 0 30px var(--synthwave-glow);
}
.synthwave-trigger span {
font-family: var(--synthwave-font);
color: var(--synthwave-text);
font-size: 14px;
text-shadow: 0 0 8px rgba(0,255,255,0.8);
letter-spacing: 2px;
}
.synthwave-trigger.active {
opacity: 0; /* Hide trigger when UI is active */
pointer-events: none;
}
.synthwave-ui {
background: var(--synthwave-bg);
border: 3px solid var(--synthwave-border);
box-shadow: 0 0 40px var(--synthwave-glow);
border-radius: 15px 15px 0 0;
padding: 20px;
display: flex;
flex-direction: column;
gap: 15px;
font-family: var(--synthwave-font);
color: var(--synthwave-text);
height: 350px;
box-sizing: border-box;
position: absolute; /* Relative to its container */
bottom: 0;
left: 0;
width: 100%;
transform: translateY(100%); /* Slide out from bottom */
opacity: 0;
pointer-events: none;
transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.6s ease;
overflow: hidden; /* For scanline effect */
}
.synthwave-ui.active {
opacity: 1;
pointer-events: auto;
transform: translateY(0);
}
.synthwave-ui::before { /* Grid overlay */
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image:
linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
background-size: 20px 20px;
opacity: 0.8;
pointer-events: none;
z-index: 0;
}
.synthwave-ui::after { /* Scanline effect */
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 2px;
background: linear-gradient(to right, transparent, var(--synthwave-accent), transparent);
animation: synthwave-scanline 6s linear infinite;
z-index: 1;
}
@keyframes synthwave-scanline {
0% { transform: translateY(0); opacity: 0.5; }
50% { transform: translateY(calc(100% - 2px)); opacity: 0.8; }
100% { transform: translateY(0); opacity: 0.5; }
}
.synthwave-header {
text-align: center;
font-size: 1.5em;
margin-bottom: 10px;
text-shadow: 0 0 10px var(--synthwave-accent);
position: relative;
z-index: 2;
}
.synthwave-header::after {
content: '';
display: block;
width: 80%;
height: 2px;
background: linear-gradient(to right, transparent, var(--synthwave-border), transparent);
margin: 10px auto 0;
}
.synthwave-display {
flex-grow: 1;
background: rgba(0, 0, 0, 0.5);
border: 1px solid var(--synthwave-accent);
border-radius: 5px;
padding: 10px;
overflow-y: auto;
position: relative;
z-index: 2;
}
.synthwave-display::-webkit-scrollbar {
width: 8px;
}
.synthwave-display::-webkit-scrollbar-thumb {
background: var(--synthwave-glow);
border-radius: 4px;
}
.synthwave-display::-webkit-scrollbar-track {
background: var(--synthwave-bg);
}
.synthwave-message {
margin-bottom: 8px;
padding: 6px 10px;
background: rgba(var(--synthwave-accent-rgb), 0.1);
border-left: 2px solid var(--synthwave-border);
animation: synthwave-text-glitch 0.5s steps(1) infinite alternate;
font-size: 0.8em;
word-break: break-all;
}
@keyframes synthwave-text-glitch {
0% { transform: translateX(0px); text-shadow: 0 0 5px var(--synthwave-accent); }
20% { transform: translateX(-2px); text-shadow: 0 0 5px var(--synthwave-glow), 1px 0 0 var(--synthwave-accent); }
40% { transform: translateX(2px); text-shadow: 0 0 5px var(--synthwave-glow), -1px 0 0 var(--synthwave-border); }
60% { transform: translateX(-1px); text-shadow: 0 0 5px var(--synthwave-accent), 1px 0 0 var(--synthwave-glow); }
80% { transform: translateX(1px); text-shadow: 0 0 5px var(--synthwave-border), -1px 0 0 var(--synthwave-accent); }
100% { transform: translateX(0px); text-shadow: 0 0 5px var(--synthwave-accent); }
}
.synthwave-message.no-glitch {
animation: none; /* For user messages */
text-shadow: none;
}
.synthwave-input-area {
display: flex;
gap: 10px;
padding-top: 10px;
position: relative;
z-index: 2;
}
.synthwave-input {
flex-grow: 1;
background: rgba(0, 0, 0, 0.7);
border: 1px solid var(--synthwave-border);
color: var(--synthwave-text);
padding: 10px;
font-family: var(--synthwave-font);
font-size: 0.9em;
outline: none;
box-shadow: 0 0 10px rgba(var(--synthwave-accent-rgb), 0.5);
transition: all 0.2s ease;
}
.synthwave-input:focus {
border-color: var(--synthwave-accent);
box-shadow: 0 0 20px rgba(var(--synthwave-glow-rgb), 0.8);
}
.synthwave-send-btn {
background: var(--synthwave-border);
border: none;
color: var(--synthwave-text);
font-family: var(--synthwave-font);
padding: 10px 15px;
cursor: pointer;
box-shadow: 0 0 10px var(--synthwave-glow);
transition: all 0.2s ease;
}
.synthwave-send-btn:hover {
background: var(--synthwave-accent);
box-shadow: 0 0 20px var(--synthwave-accent);
transform: translateY(-2px);
}
.synthwave-send-btn:active {
transform: translateY(0);
box-shadow: 0 0 5px var(--synthwave-glow);
}
</style>
<!--
========================================
CHATBOT 3: Whispering Bloom
========================================
Concept: A nature-inspired, empathetic AI focusing on well-being and mindful interaction. Not a chat for tasks, but for reflection and calm.
Layout/Structure: Organic, flowing, asymmetrical. Resembles a sprouting plant or a gentle cloud. Starts small and expands.
User Interaction: Primarily choice bubbles that "blossom" or "fade". Conditional text input.
Purpose/Tone: Calm, soothing, empathetic, natural, supportive.
Placement: Floats gently near the top-right of the screen.
UI Elements: Subtly animated flower bud trigger, soft translucent "petal" display, gently glowing "thought bubbles" for choices.
Behavior/Animations: Slow, ethereal, gentle, parabolic movements.
-->
<style id="bloom-styles">
/* Variables for Bloom */
.bloom-container {
--bloom-petal-bg: rgba(255, 250, 240, 0.9); /* Floral White */
--bloom-petal-border: #a2e0a2; /* Light Green */
--bloom-text: #4a4a4a;
--bloom-accent-soft: #c2f0c2; /* Very Light Green */
--bloom-accent-soft-rgb: 194, 240, 194;
--bloom-accent-dark: #6cb06c; /* Medium Green */
--bloom-accent-dark-rgb: 108, 176, 108;
--bloom-font: 'Pacifico', cursive;
}
.bloom-container {
top: 20%;
right: 5%;
}
.bloom-trigger {
width: 70px;
height: 70px;
background: radial-gradient(circle at top left, var(--bloom-accent-soft) 0%, transparent 70%);
border: 2px solid var(--bloom-petal-border);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
box-shadow: 0 0 15px rgba(162, 224, 162, 0.7);
animation: bloom-gentle-pulse 4s infinite ease-in-out;
transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
overflow: hidden;
z-index: 1001; /* Trigger above overlay */
}
.bloom-trigger:hover {
transform: scale(1.1) rotate(5deg);
box-shadow: 0 0 20px var(--bloom-petal-border);
}
.bloom-trigger img {
width: 60%;
height: 60%;
object-fit: contain;
filter: drop-shadow(0 0 5px rgba(0,0,0,0.3));
}
@keyframes bloom-gentle-pulse {
0% { transform: scale(1) rotate(0deg); opacity: 1; }
50% { transform: scale(1.03) rotate(-3deg); opacity: 0.95; }
100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.bloom-ui {
background: var(--bloom-petal-bg);
border: 1px solid var(--bloom-petal-border);
box-shadow: 0 0 25px rgba(162, 224, 162, 0.8);
border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%; /* Organic shape */
width: 350px;
height: 450px;
padding: 30px;
display: flex;
flex-direction: column;
gap: 15px;
font-family: var(--bloom-font);
color: var(--bloom-text);
position: absolute; /* Relative to its container */
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.5);
opacity: 0;
pointer-events: none;
transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.8s ease;
transform-origin: center center;
overflow: hidden;
}
.bloom-ui.active {
opacity: 1;
pointer-events: auto;
transform: translate(-50%, -50%) scale(1);
}
.bloom-ui::before { /* Soft blur effect around */
content: '';
position: absolute;
top: -10px;
left: -10px;
right: -10px;
bottom: -10px;
background: var(--bloom-accent-soft);
border-radius: inherit; /* Inherit the organic shape */
filter: blur(15px);
z-index: -1;
opacity: 0.6;
}
.bloom-header {
text-align: center;
font-size: 2em;
color: var(--bloom-accent-dark);
text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
margin-bottom: 15px;
}
.bloom-display {
flex-grow: 1;
background: rgba(255, 255, 255, 0.6);
border-radius: 15px 50px 15px 50px; /* More organic */
padding: 15px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 10px;
font-size: 1.1em;
line-height: 1.5;
box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}
.bloom-display::-webkit-scrollbar {
width: 6px;
}
.bloom-display::-webkit-scrollbar-thumb {
background: var(--bloom-accent-dark);
border-radius: 3px;
}
.bloom-display::-webkit-scrollbar-track {
background: rgba(255, 250, 240, 0.3);
}
.bloom-message {
padding: 10px 15px;
border-radius: 20px 5px 20px 5px;
background: rgba(var(--bloom-accent-soft-rgb), 0.5);
align-self: flex-start; /* Default for AI messages */
animation: bloom-grow-in 0.6s ease-out forwards;
position: relative;
}
.bloom-message.user {
background: rgba(var(--bloom-accent-dark-rgb), 0.3);
align-self: flex-end; /* User messages on right */
border-radius: 5px 20px 5px 20px;
}
@keyframes bloom-grow-in {
from { opacity: 0; transform: scale(0.8) translateY(20px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
.bloom-input-area {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 10px;
}
.bloom-choices {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: center;
}
.bloom-choice-button {
background: rgba(255, 255, 255, 0.7);
border: 1px solid var(--bloom-accent-soft);
color: var(--bloom-text);
font-family: Arial, sans-serif; /* Less formal font for choices */
padding: 10px 15px;
border-radius: 25px;
cursor: pointer;
font-size: 0.9em;
transition: all 0.3s ease;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.bloom-choice-button:hover {
background: var(--bloom-accent-soft);
color: var(--bloom-accent-dark);
transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.bloom-choice-button:active {
transform: translateY(0);
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.bloom-input-field { /* Only appears when needed */
background: rgba(255, 255, 255, 0.8);
border: 1px solid var(--bloom-accent-soft);
color: var(--bloom-text);
padding: 10px 15px;
border-radius: 25px;
font-family: Arial, sans-serif;
font-size: 1em;
outline: none;
box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
transition: all 0.3s ease;
width: calc(100% - 30px);
opacity: 0;
pointer-events: none;
height: 0; /* Collapse when not active */
box-sizing: border-box;
}
.bloom-input-field.active {
opacity: 1;
pointer-events: auto;
height: auto; /* Allow height to adjust */
padding: 10px 15px;
}
</style>
</head>
<body>
<!-- Global Overlay for closing bots -->
<div class="overlay" onclick="hideAllChatbots()"></div>
<!--
========================================
CHATBOT 1: The Oracle of Chronos (Left-Mid)
========================================
-->
<div class="chatbot-container oracle-container">
<div class="oracle-trigger" onclick="toggleChatbot('oracle')">
<span>⌛</span> <!-- Hourglass symbol -->
</div>
<div class="chatbot-ui oracle-ui" id="oracle-chatbot">
<div class="oracle-header">
The Oracle of Chronos
<span>Seek Prophecy. Unveil Time.</span>
</div>
<div class="oracle-display" id="oracle-display">
<div class="oracle-message">Greetings, Seeker. What truth shall Chronos reveal to you?</div>
</div>
<div class="oracle-query-buttons">
<button class="oracle-query-button" onclick="oracleQuery('future')">Unveil Future</button>
<button class="oracle-query-button" onclick="oracleQuery('past')">Recall Past</button>
<button class="oracle-query-button" onclick="oracleQuery('insight')">Seek Insight</button>
<button class="oracle-query-button" onclick="oracleQuery('destiny')">Embrace Destiny</button>
</div>
</div>
</div>
<!--
========================================
CHATBOT 2: Synthwave Circuit Buddy (Bottom-Center)
========================================
-->
<div class="chatbot-container synthwave-container">
<div class="synthwave-trigger" onclick="toggleChatbot('synthwave')">
<span>CIRCUIT_BUDDY</span>
</div>
<div class="chatbot-ui synthwave-ui" id="synthwave-chatbot">
<div class="synthwave-header">
>> SYNTHWAVE_BUDDY v3.1.0 <<
</div>
<div class="synthwave-display" id="synthwave-display">
<div class="synthwave-message">~ Welcome to the grid. How can I assist your creative flow?</div>
</div>
<div class="synthwave-input-area">
<input type="text" class="synthwave-input" id="synthwave-input" placeholder=">> ENTER COMMAND_LINE <<">
<button class="synthwave-send-btn" onclick="synthwaveSendMessage()">SEND_PACKET</button>
</div>
</div>
</div>
<!--
========================================
CHATBOT 3: Whispering Bloom (Top-Right)
========================================
-->
<div class="chatbot-container bloom-container">
<div class="bloom-trigger" onclick="toggleChatbot('bloom')">
<!-- SVG for a stylized flower icon (inline as data URI) -->
<img src="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik03I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ik0xNi45MDY4IDIyLjk0MjZDMTQuMzUyNCAyMy41ODgzIDEwLjA5ODkgMTcuNTM0MSA5LjU5NTkyIDE0LjUzNTdDNy42NzU3OSAxMC44NDEzIDkuNDQ3MzYgNy43NDIyNyAxMi4xMTU2IDcuMjA4OUMxNC43ODQgNi42NzU1MyAxNy42NzU2IDExLjAyMzMgMTYuOTA2OCAyMi45NDI2WiIgc3Ryb2tlPSIjNkMwRjZDIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0yMS41NzgzIDE5LjQyN0MyMS4xNjE0IDE4LjI5NjMgMTguNjY1OCAxNy45MTM1IDE2LjAwMzkgMTguMTgwMUMxMy4zMzkgMTguNDQzNiAxMi4wMTU3IDIxLjE4MTcgMTIuNTM3NiAyMi42NTM0QzEzLjA1OTUgMjQuMTI1MSAxNS41Mjk3IDIzLjkzMTkgMjAuODUzNiAyMS45ODM0QzIxLjQyNDIgMjEuNzY5NSAyMS45OTUxIDIwLjk0NzkgMjEuNTc4MyAxOS40MjdaIiBzdHJva2U9IiM1NjdDNTYiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+DQo=" alt="Bloom Icon">
</div>
<div class="chatbot-ui bloom-ui" id="bloom-chatbot">
<div class="bloom-header">Whispering Bloom</div>
<div class="bloom-display" id="bloom-display">
<div class="bloom-message">Welcome, gentle soul. How may I offer peace and growth today?</div>
</div>
<div class="bloom-input-area" id="bloom-input-area">
<div class="bloom-choices" id="bloom-choices">
<!-- Choices populated by JS -->
</div>
<input type="text" class="bloom-input-field" id="bloom-input" placeholder="Type your thoughts gently...">
</div>
</div>
</div>
<script>
// Global variables and functions for managing chatbot states
let activeChatbotId = null;
const overlay = document.querySelector('.overlay');
/**
* Hides all chatbot UIs and the overlay, resetting active state.
*/
function hideAllChatbots() {
document.querySelectorAll('.chatbot-ui').forEach(ui => {
ui.classList.remove('active');
});
document.querySelectorAll('.chatbot-container > div:first-child').forEach(trigger => {
// For Synthwave, the trigger hides when active. Remove that class to re-show it on close.
if (trigger.closest('.synthwave-container')) {
trigger.classList.remove('active');
}
});
overlay.classList.remove('active');
activeChatbotId = null;
// Reset specific bot states if necessary on close
displayBloomResponse(bloomScenarios['initial']); // Reset Bloom choices/input
}
/**
* Toggles the visibility of a specific chatbot. Closes any other active bot first.
* @param {string} chatbotName - The identifier for the chatbot (e.g., 'oracle', 'synthwave', 'bloom').
*/
function toggleChatbot(chatbotName) {
const ui = document.getElementById(`${chatbotName}-chatbot`);
const trigger = document.querySelector(`.${chatbotName}-container > div:first-child`);
if (activeChatbotId === `${chatbotName}-chatbot`) {
// If the clicked chatbot is already active, close it
hideAllChatbots();
} else {
// Otherwise, close all and open the new one
hideAllChatbots();
ui.classList.add('active');
if (chatbotName === 'synthwave') {
trigger.classList.add('active'); // Hide Synthwave trigger as it's part of the UI slide
}
overlay.classList.add('active');
activeChatbotId = `${chatbotName}-chatbot`;
// Specific actions when a chatbot is opened
if (chatbotName === 'synthwave') {
document.getElementById('synthwave-input').focus();
} else if (chatbotName === 'bloom') {
// Initialize Bloom's display and choices when opened
displayBloomResponse(bloomScenarios['initial']);
}
}
}
// --- CHATBOT 1: The Oracle of Chronos Logic ---
const oracleDisplay = document.getElementById('oracle-display');
const oracleResponses = {
'future': [
"The threads of tomorrow shimmer, yet remain unspun. Beware the choices you weave.",
"A faint echo of triumph resonates from the days to come. Perseverance is key.",
"Shadows stretch across the path ahead. Seek light within, not without.",
"Fortune's wheel turns slowly; its destination, unclear. Prepare for flux.",
"The future is a mirror, reflecting what you bring to it. What do you hold?"
],
'past': [
"The echoes of what was are immutable, yet their lessons fade not. Reflect.",
"A forgotten joy lingers in the annals of time. Remember its warmth.",
"The weight of a past burden still presses. Release what no longer serves.",
"History is a river, always flowing. Do not attempt to dam it.",
"The past has shaped you. Acknowledge its sculpting hand, then forge anew."
],
'insight': [
"True wisdom lies not in knowing all, but in understanding what truly matters.",
"The veil of illusion thins. What do you truly see when you look within?",
"Seek not answers, but understanding. The path reveals itself.",
"Insight dawns when the mind is still. Listen to the quiet whispers.",
"The knowledge you seek is often a reflection of the questions you dare to ask."
],
'destiny': [
"Destiny is not a fixed star, but a constellation of your will and action.",
"You are the weaver of your own fate. Choose your threads wisely.",
"The grand design unfolds, but your hand guides the brush.",
"Embrace the journey, for destiny is found in the steps taken, not the destination.",
"To embrace destiny is to walk fearlessly into the unknown, trusting your spirit."
]
};
/**
* Handles a query to the Oracle chatbot, appending user query and AI response.
* @param {string} type - The type of query (e.g., 'future', 'past').
*/
function oracleQuery(type) {
const queryMessage = `> Seeker queries: ${type.charAt(0).toUpperCase() + type.slice(1)}`;
appendOracleMessage(queryMessage); // All Oracle messages appear the same for now
setTimeout(() => {
const response = oracleResponses[type][Math.floor(Math.random() * oracleResponses[type].length)];
appendOracleMessage(response);
}, 1000); // Simulate processing time
}
/**
* Appends a message to the Oracle chatbot's display.
* @param {string} text - The message content.
*/
function appendOracleMessage(text) {
const messageDiv = document.createElement('div');
messageDiv.classList.add('oracle-message');
messageDiv.innerHTML = text; // Use innerHTML to allow for entities like >
oracleDisplay.appendChild(messageDiv);
oracleDisplay.scrollTop = oracleDisplay.scrollHeight;
}
// --- CHATBOT 2: Synthwave Circuit Buddy Logic ---
const synthwaveDisplay = document.getElementById('synthwave-display');
const synthwaveInput = document.getElementById('synthwave-input');
synthwaveInput.addEventListener('keypress', function(e) {
if (e.key === 'Enter') {
synthwaveSendMessage();
}
});
const synthwaveResponses = {
'hello': 'Greetings, user! Ready to make some noise?',
'help': 'I can generate visual patterns, analyze audio, or process data. Try "generate pattern" or "status".',
'generate pattern': 'Accessing visualizer protocols... Displaying new fractal sequence.',
'status': 'All systems nominal. Processing at optimal frequencies.',
'create music': 'Initiating audio synthesis module. What genre parameters?',
'thank you': 'Affirmative. Always a pleasure to serve the grid.',
'default': 'Unrecognized command. Please consult my core documentation or type "help".'
};
/**
* Handles sending a message in the Synthwave chatbot, processing input and providing a response.
*/
function synthwaveSendMessage() {
const message = synthwaveInput.value.trim();
if (message === '') return;
appendSynthwaveMessage(`>> YOU: ${message}`, 'user');
synthwaveInput.value = '';
const lowerCaseMessage = message.toLowerCase();
let botResponse = synthwaveResponses['default'];
// Simple keyword matching for responses
for (const key in synthwaveResponses) {
if (lowerCaseMessage.includes(key)) {
botResponse = synthwaveResponses[key];
break;
}
}
setTimeout(() => {
appendSynthwaveMessage(`~ CIRCUIT_BUDDY: ${botResponse}`);
}, 800);
}
/**
* Appends a message to the Synthwave chatbot's display.
* @param {string} text - The message content.
* @param {string} type - 'user' or 'bot' to apply different styling.
*/
function appendSynthwaveMessage(text, type = 'bot') {
const messageDiv = document.createElement('div');
messageDiv.classList.add('synthwave-message');
if (type === 'user') {
messageDiv.classList.add('no-glitch'); // User messages don't glitch
}
messageDiv.textContent = text;
synthwaveDisplay.appendChild(messageDiv);
synthwaveDisplay.scrollTop = synthwaveDisplay.scrollHeight;
}
// --- CHATBOT 3: Whispering Bloom Logic ---
const bloomDisplay = document.getElementById('bloom-display');
const bloomInputArea = document.getElementById('bloom-input-area');
const bloomChoicesDiv = document.getElementById('bloom-choices');
const bloomInputField = document.getElementById('bloom-input');
bloomInputField.addEventListener('keypress', function(e) {
if (e.key === 'Enter') {
bloomSendMessage();
}
});
// Define conversational flows and choices for Whispering Bloom
const bloomScenarios = {
'initial': {
message: "Welcome, gentle soul. How may I offer peace and growth today?",
choices: ["Reflect", "Calm", "Grow", "Share"]
},
'reflect': {
message: "A calm space for your thoughts. What's on your mind? (Type, or choose 'Back to Choices')",
requiresInput: true,
choices: ["Back to Choices"]
},
'calm': {
message: "Let's find tranquility. Would you like a guided breath or soothing words?",
choices: ["Deep Breath", "Soothing Words", "Back to Choices"]
},
'grow': {
message: "To blossom fully, what seed of intention would you like to nurture today?",
choices: ["New Habit", "Learn Something", "Personal Goal", "Back to Choices"]
},
'share': {
message: "If you wish to share a feeling or thought, I am here to listen without judgment. (Type, or choose 'Back to Choices')",
requiresInput: true,
choices: ["Back to Choices"]
},
'Deep Breath': {
message: "Inhale peace, exhale worry. *Breathe in... hold... breathe out...* Feel the calm settle. (Choose 'Back to Choices')",
choices: ["Back to Choices"]
},
'Soothing Words': {
message: "May your spirit find gentle rest, and your heart be light. The world awaits your unique bloom.",
choices: ["Back to Choices"]
},
'New Habit': {
message: "A small step blossoms into a journey. What habit do you envision?",
choices: ["Back to Choices"]
},
'Learn Something': {
message: "The mind is a garden, curiosity its water. What knowledge do you seek to cultivate?",
choices: ["Back to Choices"]
},
'Personal Goal': {
message: "What dream unfurls within you? Let's tend to its growth.",
choices: ["Back to Choices"]
},
'Back to Choices': {
message: "Returning to the garden of possibilities.",
choices: ["Reflect", "Calm", "Grow", "Share"]
},
'default_input': { // Generic response after user types something
message: "Thank you for sharing. Your thoughts are like gentle rain, nourishing the earth.",
choices: ["Reflect", "Calm", "Grow", "Share"]
}
};
/**
* Handles a choice selection in the Bloom chatbot.
* @param {string} choice - The text of the chosen option.
*/
function bloomChoose(choice) {
appendBloomMessage(`You chose: ${choice}`, 'user');
const scenario = bloomScenarios[choice] || bloomScenarios['initial']; // Fallback for invalid choices
setTimeout(() => {
displayBloomResponse(scenario);
}, 800);
}
/**
* Handles sending a message via the input field in the Bloom chatbot.
*/
function bloomSendMessage() {
const message = bloomInputField.value.trim();
if (message === '') return;
appendBloomMessage(message, 'user');
bloomInputField.value = '';
// After user types, go back to main choices
setTimeout(() => {
displayBloomResponse(bloomScenarios['default_input']);
}, 800);
}
/**
* Updates the Bloom chatbot's display and choices based on a scenario.
* @param {object} scenario - An object defining the bot's message, choices, and input requirement.
*/
function displayBloomResponse(scenario) {
appendBloomMessage(scenario.message);
updateBloomChoices(scenario.choices);
if (scenario.requiresInput) {
bloomInputField.classList.add('active');
// Set height explicitly after adding 'active' to allow transition from height: 0
bloomInputField.style.height = `${bloomInputField.scrollHeight}px`;
setTimeout(() => bloomInputField.focus(), 100);
} else {
bloomInputField.classList.remove('active');
bloomInputField.style.height = '0'; // Collapse the input field smoothly
}
}
/**
* Populates the choice buttons area in the Bloom chatbot.
* @param {string[]} choices - An array of strings for the choice buttons.
*/
function updateBloomChoices(choices) {
bloomChoicesDiv.innerHTML = ''; // Clear previous choices
choices.forEach(choice => {
const button = document.createElement('button');
button.classList.add('bloom-choice-button');
button.textContent = choice;
button.onclick = () => bloomChoose(choice);
bloomChoicesDiv.appendChild(button);
});
}
/**
* Appends a message to the Bloom chatbot's display.
* @param {string} text - The message content.
* @param {string} type - 'user' or 'bot' to apply different styling.
*/
function appendBloomMessage(text, type = 'bot') {
const messageDiv = document.createElement('div');
messageDiv.classList.add('bloom-message');
if (type === 'user') {
messageDiv.classList.add('user');
}
messageDiv.textContent = text;
bloomDisplay.appendChild(messageDiv);
bloomDisplay.scrollTop = bloomDisplay.scrollHeight;
}
</script>
</body>
</html>