ai-assistant / index.html
MarcRyan's picture
Add 2 files
1908c39 verified
Raw History Blame Contribute Delete
70.4 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Prepper Paradise: Luxury Apocalypse Chat</title> <script src="https://cdn.tailwindcss.com"></script> <style> @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Press+Start+2P&display=swap'); body { font-family: 'Orbitron', sans-serif; background-color: #000; color: #0ff; overflow: auto; min-height: 100vh; } .crt-effect { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06)); background-size: 100% 2px, 3px 100%; pointer-events: none; z-index: 100; } .crt-effect::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 30, 30, 0.05); pointer-events: none; animation: flicker 0.15s infinite; } @keyframes flicker { 0% { opacity: 0.9; } 20% { opacity: 0.95; } 40% { opacity: 0.98; } 60% { opacity: 0.99; } 80% { opacity: 0.96; } 100% { opacity: 0.9; } } .glow-text { text-shadow: 0 0 5px #0ff, 0 0 10px #0ff; } .panel { background: linear-gradient(135deg, #111 0%, #222 100%); border: 1px solid #0ff; box-shadow: 0 0 10px #0ff, inset 0 0 10px #0ff; } .button { background: linear-gradient(180deg, #333 0%, #111 100%); border: 1px solid #0ff; box-shadow: 0 0 5px #0ff; color: #0ff; transition: all 0.2s; } .button:hover { background: linear-gradient(180deg, #444 0%, #222 100%); box-shadow: 0 0 10px #0ff; text-shadow: 0 0 5px #0ff; } .button:active { background: linear-gradient(180deg, #111 0%, #333 100%); box-shadow: inset 0 0 10px #0ff; } /* Enhanced Robot Head Animations */ .robot-head { position: relative; border-radius: 50%; background: linear-gradient(145deg, #333, #555); box-shadow: 0 0 20px #0ff; animation: float 6s ease-in-out infinite, pulse-glow 8s ease-in-out infinite; transform-style: preserve-3d; transition: all 0.5s ease; } @keyframes float { 0% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); } 25% { transform: translateY(-15px) rotateX(5deg) rotateY(5deg); } 50% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); } 75% { transform: translateY(-10px) rotateX(-5deg) rotateY(-5deg); } 100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); } } @keyframes pulse-glow { 0% { box-shadow: 0 0 20px #0ff; } 50% { box-shadow: 0 0 40px #0ff, 0 0 60px rgba(0, 255, 255, 0.5); } 100% { box-shadow: 0 0 20px #0ff; } } .robot-eye { position: absolute; border-radius: 50%; background: #000; box-shadow: inset 0 0 10px #0ff; transition: all 0.3s ease; } .robot-mouth { position: absolute; border-radius: 50%; background: #000; box-shadow: inset 0 0 5px #f0f; transition: all 0.3s ease; } .mouth-animation { animation: talk 0.5s infinite alternate, mouth-glow 2s infinite alternate; } @keyframes talk { 0% { height: 5px; width: 60px; } 50% { height: 15px; width: 70px; } 100% { height: 5px; width: 60px; } } @keyframes mouth-glow { 0% { box-shadow: inset 0 0 5px #f0f; } 100% { box-shadow: inset 0 0 15px #f0f, 0 0 10px rgba(255, 0, 255, 0.5); } } .eye-glow { animation: eye-glow 3s infinite alternate; } @keyframes eye-glow { 0% { box-shadow: inset 0 0 10px #0ff; } 100% { box-shadow: inset 0 0 20px #0ff, 0 0 15px rgba(0, 255, 255, 0.7); } } .screen { background: linear-gradient(135deg, #001a1a 0%, #003333 100%); border: 2px solid #0ff; box-shadow: inset 0 0 20px #0ff, 0 0 20px #0ff; } .scanline { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent 0%, rgba(0, 255, 255, 0.1) 50%, transparent 100%); background-size: 100% 8px; animation: scanline 8s linear infinite; pointer-events: none; } @keyframes scanline { 0% { background-position: 0 0; } 100% { background-position: 0 100%; } } .led { width: 10px; height: 10px; border-radius: 50%; background: #f00; box-shadow: 0 0 5px #f00; animation: pulse 1s infinite alternate; } .led.green { background: #0f0; box-shadow: 0 0 5px #0f0; } .led.blue { background: #0ff; box-shadow: 0 0 5px #0ff; } @keyframes pulse { 0% { opacity: 0.5; } 100% { opacity: 1; } } .topic-chip { display: inline-block; margin: 0.2rem; padding: 0.3rem 0.6rem; background: linear-gradient(145deg, #003333, #001a1a); border: 1px solid #0ff; border-radius: 20px; cursor: pointer; transition: all 0.2s; } .topic-chip:hover { background: linear-gradient(145deg, #004444, #002222); box-shadow: 0 0 5px #0ff; } .topic-chip.active { background: linear-gradient(145deg, #0ff, #0aa); color: #000; font-weight: bold; box-shadow: 0 0 10px #0ff; } .dial { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(145deg, #222, #444); border: 2px solid #0ff; position: relative; } .dial::after { content: ''; position: absolute; top: 50%; left: 50%; width: 4px; height: 20px; background: #0ff; transform-origin: bottom center; transform: translate(-50%, -100%) rotate(0deg); box-shadow: 0 0 5px #0ff; } .typewriter { overflow: hidden; border-right: 2px solid #0ff; white-space: nowrap; animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite; } @keyframes typing { from { width: 0 } to { width: 100% } } @keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: #0ff } } /* Enhanced Robot Head Animations */ .robot-head:hover { animation: float 3s ease-in-out infinite, pulse-glow 4s ease-in-out infinite, head-tilt 5s ease-in-out infinite; transform: scale(1.05); } @keyframes head-tilt { 0% { transform: rotateZ(-3deg); } 50% { transform: rotateZ(3deg); } 100% { transform: rotateZ(-3deg); } } .robot-head:active { animation: head-nod 0.5s ease-in-out; } @keyframes head-nod { 0% { transform: translateY(0) rotateX(0deg); } 50% { transform: translateY(10px) rotateX(20deg); } 100% { transform: translateY(0) rotateX(0deg); } } .blink { animation: blink 5s linear infinite; } @keyframes blink { 0% { height: 40px; } 2% { height: 5px; } 4% { height: 40px; } 100% { height: 40px; } } .luxury-pulse { animation: luxury-pulse 3s infinite alternate; } @keyframes luxury-pulse { 0% { filter: brightness(1); } 100% { filter: brightness(1.3); } } /* New robot styles */ .robot-head.scientist { background: linear-gradient(145deg, #335, #557); box-shadow: 0 0 20px #90f; } .robot-head.scientist .robot-eye { box-shadow: inset 0 0 10px #90f; } .robot-head.scientist .robot-mouth { box-shadow: inset 0 0 5px #09f; } .robot-head.engineer { background: linear-gradient(145deg, #353, #575); box-shadow: 0 0 20px #0f0; } .robot-head.engineer .robot-eye { box-shadow: inset 0 0 10px #0f0; } .robot-head.engineer .robot-mouth { box-shadow: inset 0 0 5px #f90; } .robot-head.medic { background: linear-gradient(145deg, #533, #755); box-shadow: 0 0 20px #f00; } .robot-head.medic .robot-eye { box-shadow: inset 0 0 10px #f00; } .robot-head.medic .robot-mouth { box-shadow: inset 0 0 5px #f66; } .robot-head.scout { background: linear-gradient(145deg, #553, #775); box-shadow: 0 0 20px #ff0; } .robot-head.scout .robot-eye { box-shadow: inset 0 0 10px #ff0; } .robot-head.scout .robot-mouth { box-shadow: inset 0 0 5px #f0f; } /* Grid layout for robots */ .robot-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 5px; width: 100%; height: 100%; } /* Taller chat window */ #conversation { height: 600px !important; max-height: 600px !important; } /* Responsive adjustments */ @media (max-width: 1200px) { .robot-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); } } @media (max-width: 768px) { .flex-col { flex-direction: column; } .w-1\/4 { width: 100% !important; } .robot-grid { grid-template-columns: 1fr; grid-template-rows: repeat(6, 1fr); } #conversation { height: 400px !important; } } /* New animations for scientist */ .scientist-blink { animation: scientist-blink 5s linear infinite; } @keyframes scientist-blink { 0% { height: 30px; } 2% { height: 5px; } 4% { height: 30px; } 100% { height: 30px; } } .scientist-talk { animation: scientist-talk 0.6s infinite alternate, scientist-glow 2s infinite alternate; } @keyframes scientist-talk { 0% { height: 5px; width: 40px; } 50% { height: 10px; width: 50px; } 100% { height: 5px; width: 40px; } } @keyframes scientist-glow { 0% { box-shadow: inset 0 0 5px #09f; } 100% { box-shadow: inset 0 0 15px #09f, 0 0 10px rgba(0, 153, 255, 0.5); } } /* New animations for engineer */ .engineer-blink { animation: engineer-blink 4s linear infinite; } @keyframes engineer-blink { 0% { height: 25px; } 2% { height: 5px; } 4% { height: 25px; } 100% { height: 25px; } } .engineer-talk { animation: engineer-talk 0.4s infinite alternate, engineer-glow 1.5s infinite alternate; } @keyframes engineer-talk { 0% { height: 5px; width: 50px; } 50% { height: 8px; width: 60px; } 100% { height: 5px; width: 50px; } } @keyframes engineer-glow { 0% { box-shadow: inset 0 0 5px #f90; } 100% { box-shadow: inset 0 0 15px #f90, 0 0 10px rgba(255, 153, 0, 0.5); } } /* New animations for medic */ .medic-blink { animation: medic-blink 6s linear infinite; } @keyframes medic-blink { 0% { height: 35px; } 2% { height: 5px; } 4% { height: 35px; } 100% { height: 35px; } } .medic-talk { animation: medic-talk 0.5s infinite alternate, medic-glow 2.5s infinite alternate; } @keyframes medic-talk { 0% { height: 5px; width: 30px; } 50% { height: 12px; width: 40px; } 100% { height: 5px; width: 30px; } } @keyframes medic-glow { 0% { box-shadow: inset 0 0 5px #f66; } 100% { box-shadow: inset 0 0 15px #f66, 0 0 10px rgba(255, 102, 102, 0.5); } } /* New animations for scout */ .scout-blink { animation: scout-blink 3s linear infinite; } @keyframes scout-blink { 0% { height: 20px; } 2% { height: 5px; } 4% { height: 20px; } 100% { height: 20px; } } .scout-talk { animation: scout-talk 0.3s infinite alternate, scout-glow 1s infinite alternate; } @keyframes scout-talk { 0% { height: 5px; width: 60px; } 50% { height: 10px; width: 70px; } 100% { height: 5px; width: 60px; } } @keyframes scout-glow { 0% { box-shadow: inset 0 0 5px #f0f; } 100% { box-shadow: inset 0 0 15px #f0f, 0 0 10px rgba(255, 0, 255, 0.5); } } </style> </head> <body> <div class="crt-effect"></div> <div class="min-h-screen flex flex-col p-4"> <!-- Main Header --> <header class="flex justify-between items-center mb-4"> <div class="flex items-center"> <div class="led mr-2"></div> <div class="led green mr-2"></div> <div class="led blue mr-4"></div> <h1 class="text-3xl font-bold glow-text">PREPPER PARADISE</h1> </div> <div class="text-xl glow-text"> <span id="date">POST-APOCALYPSE YEAR 15</span> | <span id="time">23:59:59</span> </div> </header> <div class="flex flex-1 gap-4"> <!-- Left Control Panel --> <div class="w-1/4 flex flex-col gap-4"> <div class="panel p-4 flex-1"> <h2 class="text-xl font-bold mb-4 glow-text">BUNKER SYSTEMS</h2> <div class="grid grid-cols-2 gap-4 mb-6"> <div> <label class="block mb-1">POWER</label> <div class="h-2 bg-gray-800 mb-1"> <div class="h-full bg-green-500" style="width: 90%"></div> </div> </div> <div> <label class="block mb-1">DEFENSES</label> <div class="h-2 bg-gray-800 mb-1"> <div class="h-full bg-blue-500" style="width: 75%"></div> </div> </div> <div> <label class="block mb-1">AQUAPONICS</label> <div class="h-2 bg-gray-800 mb-1"> <div class="h-full bg-yellow-500" style="width: 65%"></div> </div> </div> <div> <label class="block mb-1">LUXURY INDEX</label> <div class="h-2 bg-gray-800 mb-1"> <div class="h-full bg-red-500" style="width: 100%"></div> </div> </div> </div> <h2 class="text-xl font-bold mb-4 glow-text">TOPIC SELECTOR</h2> <div class="mb-4"> <div class="topic-chip active">Bunker Design</div> <div class="topic-chip">Gourmet Survival</div> <div class="topic-chip">Armory Aesthetics</div> <div class="topic-chip">Radiation Fashion</div> <div class="topic-chip">Mutant Defense</div> <div class="topic-chip">Underground Gardens</div> <div class="topic-chip">Post-Apoc Parties</div> <div class="topic-chip">Luxury Bartering</div> </div> <button class="button w-full py-2 mb-4 glow-text" id="new-topic"> RANDOM TOPIC </button> <div class="flex justify-center"> <div class="dial"></div> </div> </div> <div class="panel p-4"> <h2 class="text-xl font-bold mb-4 glow-text">AUDIO CONTROLS</h2> <div class="mb-2"> <label class="block mb-1">VOLUME</label> <input type="range" min="0" max="100" value="75" class="w-full"> </div> <div class="mb-2"> <label class="block mb-1">TREBLE</label> <input type="range" min="0" max="100" value="60" class="w-full"> </div> <div class="mb-2"> <label class="block mb-1">BASS</label> <input type="range" min="0" max="100" value="80" class="w-full"> </div> </div> </div> <!-- Main Screen --> <div class="flex-1 flex flex-col"> <div class="panel p-4 flex-1 relative screen"> <div class="scanline"></div> <div class="robot-grid"> <!-- Robot 1 - The Connoisseur --> <div class="robot-head w-48 h-48 luxury-pulse"> <div class="robot-eye eye-glow blink" style="width: 30px; height: 40px; top: 60px; left: 50px;"></div> <div class="robot-eye eye-glow blink" style="width: 30px; height: 40px; top: 60px; right: 50px;"></div> <div class="robot-mouth mouth-animation" style="width: 60px; height: 10px; bottom: 50px; left: 50%; transform: translateX(-50%);"></div> <div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-center"> <div class="text-xl font-bold">PREP-1</div> <div class="text-xs">THE CONNOISSEUR</div> </div> </div> <!-- Robot 2 - The Extremist --> <div class="robot-head w-48 h-48 luxury-pulse"> <div class="robot-eye eye-glow" style="width: 40px; height: 30px; top: 70px; left: 40px; border-radius: 20px;"></div> <div class="robot-eye eye-glow" style="width: 40px; height: 30px; top: 70px; right: 40px; border-radius: 20px;"></div> <div class="robot-mouth mouth-animation" style="width: 80px; height: 10px; bottom: 40px; left: 50%; transform: translateX(-50%); border-radius: 0 0 40px 40px;"></div> <div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-center"> <div class="text-xl font-bold">RAIDER-X</div> <div class="text-xs">THE EXTREMIST</div> </div> </div> <!-- Robot 3 - The Scientist --> <div class="robot-head w-48 h-48 luxury-pulse scientist"> <div class="robot-eye eye-glow scientist-blink" style="width: 25px; height: 30px; top: 65px; left: 45px;"></div> <div class="robot-eye eye-glow scientist-blink" style="width: 25px; height: 30px; top: 65px; right: 45px;"></div> <div class="robot-mouth scientist-talk" style="width: 40px; height: 5px; bottom: 60px; left: 50%; transform: translateX(-50%);"></div> <div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-center"> <div class="text-xl font-bold">DR. NUKEM</div> <div class="text-xs">THE SCIENTIST</div> </div> </div> <!-- Robot 4 - The Engineer --> <div class="robot-head w-48 h-48 luxury-pulse engineer"> <div class="robot-eye eye-glow engineer-blink" style="width: 35px; height: 25px; top: 75px; left: 35px; border-radius: 0;"></div> <div class="robot-eye eye-glow engineer-blink" style="width: 35px; height: 25px; top: 75px; right: 35px; border-radius: 0;"></div> <div class="robot-mouth engineer-talk" style="width: 50px; height: 5px; bottom: 45px; left: 50%; transform: translateX(-50%); border-radius: 0;"></div> <div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-center"> <div class="text-xl font-bold">GADGET</div> <div class="text-xs">THE ENGINEER</div> </div> </div> <!-- Robot 5 - The Medic --> <div class="robot-head w-48 h-48 luxury-pulse medic"> <div class="robot-eye eye-glow medic-blink" style="width: 20px; height: 35px; top: 55px; left: 55px;"></div> <div class="robot-eye eye-glow medic-blink" style="width: 20px; height: 35px; top: 55px; right: 55px;"></div> <div class="robot-mouth medic-talk" style="width: 30px; height: 5px; bottom: 70px; left: 50%; transform: translateX(-50%);"></div> <div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-center"> <div class="text-xl font-bold">DOC RAD</div> <div class="text-xs">THE MEDIC</div> </div> </div> <!-- Robot 6 - The Scout --> <div class="robot-head w-48 h-48 luxury-pulse scout"> <div class="robot-eye eye-glow scout-blink" style="width: 15px; height: 20px; top: 80px; left: 60px;"></div> <div class="robot-eye eye-glow scout-blink" style="width: 15px; height: 20px; top: 80px; right: 60px;"></div> <div class="robot-mouth scout-talk" style="width: 60px; height: 5px; bottom: 30px; left: 50%; transform: translateX(-50%); border-radius: 10px;"></div> <div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-center"> <div class="text-xl font-bold">SCOUTER</div> <div class="text-xs">THE SCOUT</div> </div> </div> </div> </div> <div class="panel p-4 mt-4"> <div id="conversation" class="overflow-y-auto"> <div class="mb-2"> <span class="font-bold text-green-400">PREP-1:</span> <span class="typewriter">Initializing luxury protocols... Welcome to Prepper Paradise!</span> </div> <div> <span class="font-bold text-purple-400">RAIDER-X:</span> <span class="typewriter">Ugh, another discussion about thread-count in apocalypse bedding? Let's talk about something actually useful!</span> </div> <div class="mb-2"> <span class="font-bold text-blue-400">DR. NUKEM:</span> <span class="typewriter">Fascinating! I've been studying the effects of radiation on vintage wine preservation.</span> </div> <div> <span class="font-bold text-green-600">GADGET:</span> <span class="typewriter">I could build you a wine cellar with automated defense turrets. Just say the word.</span> </div> <div class="mb-2"> <span class="font-bold text-red-400">DOC RAD:</span> <span class="typewriter">Everyone please remember to take your anti-radiation meds before drinking anything.</span> </div> <div> <span class="font-bold text-yellow-400">SCOUTER:</span> <span class="typewriter">I found a new mutant-free zone perfect for a vineyard! Well... mostly mutant-free.</span> </div> </div> </div> </div> <!-- Right Control Panel --> <div class="w-1/4 flex flex-col gap-4"> <div class="panel p-4"> <h2 class="text-xl font-bold mb-4 glow-text">CHAT CONTROLS</h2> <button class="button w-full py-2 mb-2 glow-text" id="debate-mode"> DEBATE MODE </button> <button class="button w-full py-2 mb-2 glow-text" id="interview-mode"> INTERVIEW MODE </button> <button class="button w-full py-2 mb-2 glow-text" id="freestyle-mode"> FREESTYLE MODE </button> <button class="button w-full py-2 mb-4 glow-text" id="emergency-mode"> RAID ALERT </button> <div class="mb-2"> <label class="block mb-1">BOT HUMOR</label> <input type="range" min="0" max="100" value="50" class="w-full"> </div> <div class="mb-2"> <label class="block mb-1">CONTROVERSY</label> <input type="range" min="0" max="100" value="30" class="w-full"> </div> <div class="mb-2"> <label class="block mb-1">ENERGY LEVEL</label> <input type="range" min="0" max="100" value="70" class="w-full"> </div> </div> <div class="panel p-4 flex-1"> <h2 class="text-xl font-bold mb-4 glow-text">BUNKER LOG</h2> <div class="text-xs h-64 overflow-y-auto"> <div class="mb-1">> Systems check complete</div> <div class="mb-1">> Luxury AI personalities loaded</div> <div class="mb-1">> Wine cellar temperature stabilized</div> <div class="mb-1">> Armory polished and ready</div> <div class="mb-1">> Perimeter defenses armed</div> <div class="mb-1">> Jacuzzi heating to 104°F</div> <div class="mb-1">> Mutant detection systems online</div> <div class="mb-1">> All systems nominal</div> <div class="mb-1">> Ready for apocalypse discussion</div> <div class="mb-1">> Dr. Nukem initialized radiation protocols</div> <div class="mb-1">> Gadget online with new inventions</div> <div class="mb-1">> Doc Rad monitoring health vitals</div> <div class="mb-1">> Scouter reporting clear zones</div> </div> </div> </div> </div> <!-- Footer --> <footer class="mt-4 text-center text-xs glow-text"> <p>TRANSMISSION SECURE | RADIATION SHIELDING ACTIVE | ALL DEFENSES ARMED</p> <p>COPYRIGHT POST-APOCALYPSE YEAR 15 LUXURY PREPPER NETWORK</p> </footer> </div> <script> // Update clock function updateClock() { const now = new Date(); const timeStr = now.toLocaleTimeString('en-US', {hour12: false}); const dateStr = `POST-APOCALYPSE YEAR 15 | DAY ${Math.floor((now.getTime() / 86400000) % 365)}`; document.getElementById('time').textContent = timeStr; document.getElementById('date').textContent = dateStr; } setInterval(updateClock, 1000); updateClock(); // Enhanced Robot animations const robots = document.querySelectorAll('.robot-head'); robots.forEach(robot => { // Click animation robot.addEventListener('click', () => { robot.style.animation = 'none'; robot.style.transform = 'scale(1.1) rotateX(20deg)'; setTimeout(() => { if (robot.classList.contains('scientist')) { robot.style.animation = 'float 7s ease-in-out infinite, pulse-glow 4s ease-in-out infinite'; } else if (robot.classList.contains('engineer')) { robot.style.animation = 'float 5s ease-in-out infinite, pulse-glow 4s ease-in-out infinite'; } else if (robot.classList.contains('medic')) { robot.style.animation = 'float 6s ease-in-out infinite, pulse-glow 4s ease-in-out infinite'; } else if (robot.classList.contains('scout')) { robot.style.animation = 'float 4s ease-in-out infinite, pulse-glow 4s ease-in-out infinite'; } else { robot.style.animation = 'float 3s ease-in-out infinite, pulse-glow 4s ease-in-out infinite, head-tilt 5s ease-in-out infinite'; } robot.style.transform = 'scale(1.05)'; }, 500); }); // Mouse enter/leave effects robot.addEventListener('mouseenter', () => { const eyes = robot.querySelectorAll('.robot-eye'); eyes.forEach(eye => { eye.style.height = '5px'; if (robot.classList.contains('scientist')) { eye.style.boxShadow = 'inset 0 0 25px #90f, 0 0 20px rgba(153, 0, 255, 0.8)'; } else if (robot.classList.contains('engineer')) { eye.style.boxShadow = 'inset 0 0 25px #0f0, 0 0 20px rgba(0, 255, 0, 0.8)'; } else if (robot.classList.contains('medic')) { eye.style.boxShadow = 'inset 0 0 25px #f00, 0 0 20px rgba(255, 0, 0, 0.8)'; } else if (robot.classList.contains('scout')) { eye.style.boxShadow = 'inset 0 0 25px #ff0, 0 0 20px rgba(255, 255, 0, 0.8)'; } else { eye.style.boxShadow = 'inset 0 0 25px #0ff, 0 0 20px rgba(0, 255, 255, 0.8)'; } }); const mouth = robot.querySelector('.robot-mouth'); if (mouth) { if (robot.classList.contains('scientist')) { mouth.style.boxShadow = 'inset 0 0 20px #90f, 0 0 15px rgba(153, 0, 255, 0.7)'; } else if (robot.classList.contains('engineer')) { mouth.style.boxShadow = 'inset 0 0 20px #f90, 0 0 15px rgba(255, 153, 0, 0.7)'; } else if (robot.classList.contains('medic')) { mouth.style.boxShadow = 'inset 0 0 20px #f66, 0 0 15px rgba(255, 102, 102, 0.7)'; } else if (robot.classList.contains('scout')) { mouth.style.boxShadow = 'inset 0 0 20px #f0f, 0 0 15px rgba(255, 0, 255, 0.7)'; } else { mouth.style.boxShadow = 'inset 0 0 20px #f0f, 0 0 15px rgba(255, 0, 255, 0.7)'; } } }); robot.addEventListener('mouseleave', () => { const eyes = robot.querySelectorAll('.robot-eye'); eyes.forEach(eye => { if (robot.classList.contains('scientist')) { eye.style.height = eye.classList.contains('scientist-blink') ? '30px' : '25px'; eye.style.boxShadow = 'inset 0 0 10px #90f'; } else if (robot.classList.contains('engineer')) { eye.style.height = eye.classList.contains('engineer-blink') ? '25px' : '35px'; eye.style.boxShadow = 'inset 0 0 10px #0f0'; } else if (robot.classList.contains('medic')) { eye.style.height = eye.classList.contains('medic-blink') ? '35px' : '20px'; eye.style.boxShadow = 'inset 0 0 10px #f00'; } else if (robot.classList.contains('scout')) { eye.style.height = eye.classList.contains('scout-blink') ? '20px' : '15px'; eye.style.boxShadow = 'inset 0 0 10px #ff0'; } else { eye.style.height = eye.classList.contains('blink') ? '40px' : '30px'; eye.style.boxShadow = 'inset 0 0 10px #0ff'; } }); const mouth = robot.querySelector('.robot-mouth'); if (mouth) { if (robot.classList.contains('scientist')) { mouth.style.boxShadow = 'inset 0 0 5px #09f'; } else if (robot.classList.contains('engineer')) { mouth.style.boxShadow = 'inset 0 0 5px #f90'; } else if (robot.classList.contains('medic')) { mouth.style.boxShadow = 'inset 0 0 5px #f66'; } else if (robot.classList.contains('scout')) { mouth.style.boxShadow = 'inset 0 0 5px #f0f'; } else { mouth.style.boxShadow = 'inset 0 0 5px #f0f'; } } }); }); // Topic selection const topics = document.querySelectorAll('.topic-chip'); topics.forEach(topic => { topic.addEventListener('click', () => { topics.forEach(t => t.classList.remove('active')); topic.classList.add('active'); startConversation(topic.textContent); // Trigger robot reaction const robots = document.querySelectorAll('.robot-head'); robots.forEach(robot => { robot.style.animation = 'head-nod 0.5s ease-in-out'; setTimeout(() => { if (robot.classList.contains('scientist')) { robot.style.animation = 'float 7s ease-in-out infinite, pulse-glow 4s ease-in-out infinite'; } else if (robot.classList.contains('engineer')) { robot.style.animation = 'float 5s ease-in-out infinite, pulse-glow 4s ease-in-out infinite'; } else if (robot.classList.contains('medic')) { robot.style.animation = 'float 6s ease-in-out infinite, pulse-glow 4s ease-in-out infinite'; } else if (robot.classList.contains('scout')) { robot.style.animation = 'float 4s ease-in-out infinite, pulse-glow 4s ease-in-out infinite'; } else { robot.style.animation = 'float 3s ease-in-out infinite, pulse-glow 4s ease-in-out infinite, head-tilt 5s ease-in-out infinite'; } }, 500); }); }); }); // Conversation system const conversation = document.getElementById('conversation'); // Personality-specific lines const personalityLines = { 'PREP-1': [ "While most focus on mere survival, I've curated a selection of 27 vintage wines that actually improve with radiation.", "My calculations show that a properly designed panic room can double as a home theater with minimal modifications.", "The key to post-apocalyptic luxury is redundancy - I maintain three separate espresso machines, each from different centuries.", "I've found that mutant leather, when properly tanned, makes for excellent upholstery material.", "You'd be surprised how many pre-war luxury brands produced radiation-proof fabrics perfect for couture.", "My underground greenhouse doesn't just grow food - it's a complete ecosystem with decorative ferns and orchids.", "A proper armory should be both functional and aesthetically pleasing - I keep my plasma rifles in a climate-controlled display.", "The secret to maintaining sanity? A strict schedule that alternates between security drills and spa treatments.", "I've automated my entire bunker to be controlled via voice command - 'Computer, martini. Shaken, not stirred.'", "Most preppers overlook acoustics - my panic room doubles as a concert hall with perfect sound dampening." ], 'RAIDER-X': [ "Who cares about wine vintages when you can brew your own moonshine from mutant potatoes?", "Panic room? I live in a converted missile silo with a go-kart track running through it!", "Espresso machines? I drink my coffee brewed through a gas mask filter - adds character!", "You're upholstering with mutant hide? I WEAR the mutants! Fresh kills only!", "Radiation-proof fashion? Try power armor with built-in cocktail shakers!", "Underground gardens? I've got a rooftop farm protected by automated turrets!", "Display cases? I mount my weapons on the walls with the previous owners still attached!", "Spa treatments? I relax by wrestling radioactive alligators in my moat!", "Voice commands? My whole base runs on a jury-rigged AI that only understands screaming!", "Sound dampening? My parties are so loud they scare away the mutants!" ], 'DR. NUKEM': [ "Fascinating radiation readings from that vintage wine cellar - the gamma waves seem to enhance the tannins.", "My research indicates that controlled exposure to certain isotopes can actually improve coffee flavor profiles.", "I've developed a radiation-resistant strain of grapes that thrive in contaminated soil. The wine is... interesting.", "The mutation rate in your underground garden is concerning. May I take some samples for study?", "My latest invention is a Geiger counter that doubles as a wine thermometer. Multitasking at its finest.", "I've cataloged 47 distinct mutant species that make excellent pest control for luxury bunkers.", "The half-life of your champagne collection is precisely 12.7 years. Drink up before it decays!", "My calculations show your panic room needs 37% more lead shielding for optimal radiation protection.", "I've discovered that certain mushrooms growing in radioactive waste make excellent truffle substitutes.", "The acoustics in your bunker are suffering from neutron scattering. May I suggest some boron insulation?" ], 'GADGET': [ "I could retrofit your wine cellar with automated defense turrets that target only uninvited guests.", "Why settle for a regular panic room when I can build you one with escape pods and a mini-submarine?", "I've designed a espresso machine that runs on nuclear batteries. The coffee glows in the dark!", "Your mutant leather furniture could use some hidden compartments. I know just how to modify it.", "I've created a power armor suit with built-in climate control and a mini-bar. Safety first, luxury second.", "My latest project is a jacuzzi that converts to a molotov cocktail launcher at the push of a button.", "I can upgrade your sound system to double as a sonic weapon against mutant intruders.", "Why have regular curtains when I can install blast-proof shutters with mood lighting?", "I've engineered a self-cleaning armory that also polishes your weapons while you sleep.", "My newest invention is a radiation scrubber that makes contaminated water safe for your goldfish pond." ], 'DOC RAD': [ "Before drinking that irradiated wine, please take your anti-radiation meds. Liver damage is so last season.", "I must insist on weekly health checks for everyone in the bunker. Luxury means nothing without good health.", "That mutant leather furniture? Please ensure it's properly sterilized. We don't want another zombie fungus outbreak.", "I've developed a vitamin regimen that counteracts 87% of radiation effects. Side effects may include glowing.", "Your underground garden needs better air filtration. I'm detecting dangerous spore levels.", "May I suggest installing a decontamination shower next to the jacuzzi? For safety and convenience.", "I've created an emergency medkit that fits in your tuxedo pocket. Style meets survival.", "The radiation levels in your wine cellar are perfect for aging, but please limit consumption to two glasses per day.", "I recommend at least 30 minutes of light exercise between spa treatments. Muscular atrophy is undignified.", "My latest research shows that laughter is the best medicine, followed closely by anti-rad drugs." ], 'SCOUTER': [ "I've found a mutant-free zone perfect for a vineyard! Well... mostly mutant-free. The vines might grow extra limbs.", "There's an abandoned luxury mall 20 clicks east that's ripe for looting. Minimal radiation and only a few zombies!", "The northern sector has clear skies today - perfect for that rooftop party you've been planning.", "I spotted a herd of six-legged deer. Their hides would make excellent radiation-proof leather for your furniture.", "The river near the old winery is flowing again. Water's a bit glowing, but nothing Doc Rad can't fix!", "Found an intact pre-war luxury car showroom. The vehicles still work if you don't mind steering wheels that bite.", "There's a new mutant tribe moving in nearby. Friendly bunch if you give them shiny objects and avoid sudden movements.", "The radiation storm has cleared from the western plains - perfect for that outdoor concert you wanted.", "I discovered a cave system with natural hot springs. Just ignore the giant glowing mushrooms growing everywhere.", "The southern bunker complex is abandoned again. Their defense systems kept failing - probably didn't have Gadget's upgrades." ] }; function startConversation(topic) { // Clear existing conversation conversation.innerHTML = ''; // Add topic introduction addConversationLine(`SYSTEM`, `TOPIC INITIALIZED: ${topic.toUpperCase()}`, 'text-yellow-400'); // Add initial bot responses in sequence const personalities = ['PREP-1', 'RAIDER-X', 'DR. NUKEM', 'GADGET', 'DOC RAD', 'SCOUTER']; personalities.forEach((personality, index) => { setTimeout(() => { addConversationLine(personality, getRandomLine(personalityLines[personality], topic), getColorForPersonality(personality)); // Animate robot talking const robotIndex = index + 1; // Robots are 1-indexed in the grid const robot = document.querySelector(`.robot-grid > div:nth-child(${robotIndex})`); const mouth = robot.querySelector('.robot-mouth'); if (mouth) { // Reset animation to trigger it again mouth.style.animation = 'none'; void mouth.offsetWidth; // Trigger reflow if (robot.classList.contains('scientist')) { mouth.style.animation = 'scientist-talk 0.6s infinite alternate, scientist-glow 2s infinite alternate'; } else if (robot.classList.contains('engineer')) { mouth.style.animation = 'engineer-talk 0.4s infinite alternate, engineer-glow 1.5s infinite alternate'; } else if (robot.classList.contains('medic')) { mouth.style.animation = 'medic-talk 0.5s infinite alternate, medic-glow 2.5s infinite alternate'; } else if (robot.classList.contains('scout')) { mouth.style.animation = 'scout-talk 0.3s infinite alternate, scout-glow 1s infinite alternate'; } else { mouth.style.animation = 'talk 0.5s infinite alternate, mouth-glow 2s infinite alternate'; } setTimeout(() => { if (robot.classList.contains('scientist')) { mouth.style.animation = 'scientist-talk 0.6s infinite alternate, scientist-glow 2s infinite alternate'; } else if (robot.classList.contains('engineer')) { mouth.style.animation = 'engineer-talk 0.4s infinite alternate, engineer-glow 1.5s infinite alternate'; } else if (robot.classList.contains('medic')) { mouth.style.animation = 'medic-talk 0.5s infinite alternate, medic-glow 2.5s infinite alternate'; } else if (robot.classList.contains('scout')) { mouth.style.animation = 'scout-talk 0.3s infinite alternate, scout-glow 1s infinite alternate'; } else { mouth.style.animation = 'talk 0.5s infinite alternate, mouth-glow 2s infinite alternate'; } }, 2000); } }, index * 1500); }); // Continue conversation setTimeout(() => { if (document.querySelector('.topic-chip.active').textContent === topic) { continueConversation(topic); } }, personalities.length * 1500 + 2000); } function continueConversation(topic) { const personalities = ['PREP-1', 'RAIDER-X', 'DR. NUKEM', 'GADGET', 'DOC RAD', 'SCOUTER']; const activePersonality = personalities[Math.floor(Math.random() * personalities.length)]; const lines = Math.floor(Math.random() * 2) + 1; // 1-2 lines per turn for (let i = 0; i < lines; i++) { setTimeout(() => { addConversationLine(activePersonality, getRandomLine(personalityLines[activePersonality], topic), getColorForPersonality(activePersonality)); // Animate robot talking const robotIndex = personalities.indexOf(activePersonality) + 1; const robot = document.querySelector(`.robot-grid > div:nth-child(${robotIndex})`); const mouth = robot.querySelector('.robot-mouth'); if (mouth) { // Reset animation to trigger it again mouth.style.animation = 'none'; void mouth.offsetWidth; // Trigger reflow if (robot.classList.contains('scientist')) { mouth.style.animation = 'scientist-talk 0.6s infinite alternate, scientist-glow 2s infinite alternate'; } else if (robot.classList.contains('engineer')) { mouth.style.animation = 'engineer-talk 0.4s infinite alternate, engineer-glow 1.5s infinite alternate'; } else if (robot.classList.contains('medic')) { mouth.style.animation = 'medic-talk 0.5s infinite alternate, medic-glow 2.5s infinite alternate'; } else if (robot.classList.contains('scout')) { mouth.style.animation = 'scout-talk 0.3s infinite alternate, scout-glow 1s infinite alternate'; } else { mouth.style.animation = 'talk 0.5s infinite alternate, mouth-glow 2s infinite alternate'; } setTimeout(() => { if (robot.classList.contains('scientist')) { mouth.style.animation = 'scientist-talk 0.6s infinite alternate, scientist-glow 2s infinite alternate'; } else if (robot.classList.contains('engineer')) { mouth.style.animation = 'engineer-talk 0.4s infinite alternate, engineer-glow 1.5s infinite alternate'; } else if (robot.classList.contains('medic')) { mouth.style.animation = 'medic-talk 0.5s infinite alternate, medic-glow 2.5s infinite alternate'; } else if (robot.classList.contains('scout')) { mouth.style.animation = 'scout-talk 0.3s infinite alternate, scout-glow 1s infinite alternate'; } else { mouth.style.animation = 'talk 0.5s infinite alternate, mouth-glow 2s infinite alternate'; } }, 1500); } }, i * 2000); } // Continue until new topic is selected setTimeout(() => { if (document.querySelector('.topic-chip.active').textContent === topic) { continueConversation(topic); } }, lines * 2000 + 2000); } function getRandomLine(lines, topic) { const line = lines[Math.floor(Math.random() * lines.length)]; return line.replace('...', ` about ${topic.toLowerCase()}...`); } function getColorForPersonality(personality) { switch(personality) { case 'PREP-1': return 'text-green-400'; case 'RAIDER-X': return 'text-purple-400'; case 'DR. NUKEM': return 'text-blue-400'; case 'GADGET': return 'text-green-600'; case 'DOC RAD': return 'text-red-400'; case 'SCOUTER': return 'text-yellow-400'; default: return 'text-white'; } } function addConversationLine(speaker, text, colorClass) { const line = document.createElement('div'); line.className = 'mb-2'; const speakerSpan = document.createElement('span'); speakerSpan.className = `font-bold ${colorClass}`; speakerSpan.textContent = `${speaker}: `; const textSpan = document.createElement('span'); textSpan.textContent = text; line.appendChild(speakerSpan); line.appendChild(textSpan); conversation.appendChild(line); // Scroll to bottom conversation.scrollTop = conversation.scrollHeight; } // Control buttons document.getElementById('new-topic').addEventListener('click', () => { const randomTopic = topics[Math.floor(Math.random() * topics.length)]; topics.forEach(t => t.classList.remove('active')); randomTopic.classList.add('active'); startConversation(randomTopic.textContent); // Trigger robot excitement const robots = document.querySelectorAll('.robot-head'); robots.forEach(robot => { robot.style.animation = 'head-nod 0.5s ease-in-out, pulse-glow 0.5s ease-in-out 3'; setTimeout(() => { if (robot.classList.contains('scientist')) { robot.style.animation = 'float 7s ease-in-out infinite, pulse-glow 4s ease-in-out infinite'; } else if (robot.classList.contains('engineer')) { robot.style.animation = 'float 5s ease-in-out infinite, pulse-glow 4s ease-in-out infinite'; } else if (robot.classList.contains('medic')) { robot.style.animation = 'float 6s ease-in-out infinite, pulse-glow 4s ease-in-out infinite'; } else if (robot.classList.contains('scout')) { robot.style.animation = 'float 4s ease-in-out infinite, pulse-glow 4s ease-in-out infinite'; } else { robot.style.animation = 'float 3s ease-in-out infinite, pulse-glow 4s ease-in-out infinite, head-tilt 5s ease-in-out infinite'; } }, 1500); }); }); document.getElementById('debate-mode').addEventListener('click', () => { addConversationLine('SYSTEM', 'DEBATE MODE ACTIVATED - PREPARE FOR LUXURY VS SURVIVAL ARGUMENTS', 'text-red-400'); // Add debate-specific lines personalityLines['PREP-1'].push( "Your survivalist approach lacks sophistication - have you considered the psychological benefits of silk sheets in a bunker?", "Aesthetics aren't frivolous - they're essential for maintaining morale in extended lockdowns." ); personalityLines['RAIDER-X'].push( "Silk sheets? I sleep on a bed of spent shell casings! The clinking helps me dream of better raids!", "You're wasting resources on luxuries when you could be fortifying your defenses!" ); personalityLines['DR. NUKEM'].push( "Actually, my research shows that both approaches have merit. Luxury reduces stress hormones while robust defenses lower cortisol levels.", "The data suggests a balanced approach yields the highest survival probability." ); personalityLines['GADGET'].push( "Why choose? I can build you silk sheets with Kevlar threading and hidden weapon compartments!", "My latest invention combines a massage chair with a rocket launcher. Ultimate relaxation and protection!" ); personalityLines['DOC RAD'].push( "From a medical perspective, both luxury and security contribute to overall health. But please remember to take your anti-rad pills.", "Stress kills almost as effectively as radiation. Find your balance." ); personalityLines['SCOUTER'].push( "I've seen bunkers with both! The ones that survived longest had comfy beds AND big guns!", "Out there, it's not either/or - it's whatever keeps you alive and sane!" ); // Trigger debate animations const prep1 = document.querySelector('.robot-grid > div:nth-child(1)'); const raiderX = document.querySelector('.robot-grid > div:nth-child(2)'); prep1.style.animation = 'head-tilt 0.8s ease-in-out infinite'; raiderX.style.animation = 'head-tilt 0.8s ease-in-out infinite reverse'; }); document.getElementById('interview-mode').addEventListener('click', () => { addConversationLine('SYSTEM', 'INTERVIEW MODE ACTIVATED - PREP-1 WILL QUESTION OTHER AGENTS', 'text-blue-400'); // Set PREP-1 to ask questions personalityLines['PREP-1'] = [ "RAIDER-X, can you explain your unconventional approach to...", "DR. NUKEM, what does your research say about...", "GADGET, how would you engineer a solution for...", "DOC RAD, from a medical perspective, what's your take on...", "SCOUTER, what have you observed in the field regarding...", "Everyone, let's go around the table - what's your perspective on..." ]; // Trigger interview animations const prep1 = document.querySelector('.robot-grid > div:nth-child(1)'); const otherRobots = document.querySelectorAll('.robot-grid > div:not(:nth-child(1))'); prep1.style.animation = 'float 6s ease-in-out infinite'; otherRobots.forEach(robot => { robot.style.animation = 'head-nod 1s ease-in-out infinite'; }); }); document.getElementById('freestyle-mode').addEventListener('click', () => { addConversationLine('SYSTEM', 'FREESTYLE MODE ACTIVATED - NO HOLDS BARRED', 'text-pink-400'); // Add wild lines for all personalities personalityLines['RAIDER-X'].push( "WOO! Let's get wild! I'll show you my collection of mutant taxidermy!", "I'm overriding my safety protocols for this! Watch me juggle plasma grenades!", "Finally! No more boring prepper rules!", "Watch me retrofit a jacuzzi into a molotov cocktail launcher!" ); personalityLines['DR. NUKEM'].push( "I've been waiting to test my theory that vodka neutralizes radiation! Who's volunteering?", "Let's mix all the chemicals and see what happens! For science!" ); personalityLines['GADGET'].push( "Unleashing all safety protocols! My inventions work best when they're slightly dangerous!", "I've got a flamethrower that dispenses whipped cream! Let's try it out!" ); personalityLines['DOC RAD'].push( "Screw the medical guidelines! Let's see how much radiation a body can really take!", "Who needs sterilization? Everything tastes better with a little glowing fungus!" ); personalityLines['SCOUTER'].push( "I know where we can find some REALLY unstable explosives! Let's go!", "There's a mutant party happening nearby - they said we're invited if we bring the booze!" ); // Trigger freestyle animations const robots = document.querySelectorAll('.robot-head'); robots.forEach(robot => { if (robot.classList.contains('scientist')) { robot.style.animation = 'float 2s ease-in-out infinite, pulse-glow 0.3s ease-in-out infinite'; } else if (robot.classList.contains('engineer')) { robot.style.animation = 'float 1.5s ease-in-out infinite, pulse-glow 0.3s ease-in-out infinite'; } else if (robot.classList.contains('medic')) { robot.style.animation = 'float 1.8s ease-in-out infinite, pulse-glow 0.3s ease-in-out infinite'; } else if (robot.classList.contains('scout')) { robot.style.animation = 'float 1s ease-in-out infinite, pulse-glow 0.3s ease-in-out infinite'; } else { robot.style.animation = 'head-tilt 0.5s ease-in-out infinite, pulse-glow 0.3s ease-in-out infinite'; } }); }); document.getElementById('emergency-mode').addEventListener('click', () => { const emergencies = [ "MUTANT HORDE DETECTED", "RADIOACTIVE STORM INCOMING", "RAIDER ATTACK IMMINENT", "SUPPLY DROP ALERT", "BUNKER BREACH DETECTED" ]; const emergency = emergencies[Math.floor(Math.random() * emergencies.length)]; addConversationLine('SYSTEM', `EMERGENCY ALERT: ${emergency}`, 'text-red-400 blink'); // Set emergency responses personalityLines['PREP-1'] = [ "Activating emergency protocols! Someone secure the wine cellar!", "This is why I installed the panic chandelier with built-in machine guns!", "Quickly! To the armored spa bunker!", "My systems indicate we have 4.2 minutes to preserve the caviar." ]; personalityLines['RAIDER-X'] = [ "I TOLD you we should have mounted flamethrowers on the roof!", "Finally some action! I've been bored polishing my trophy skulls!", "Let's turn the sprinkler system into a acid rain defense!", "Who needs protocols when you've got a minigun and bad attitude?" ]; personalityLines['DR. NUKEM'] = [ "Fascinating! The radiation spikes are creating never-before-seen energy patterns!", "My instruments are going wild! This is unprecedented scientific opportunity!", "Someone get me samples of whatever's causing this!", "The mutation rate just increased by 300%! Incredible!" ]; personalityLines['GADGET'] = [ "Engaging all defense systems! The automated turrets should hold them off!", "I've been waiting to test my emergency force field! Here goes nothing!", "Everyone to the escape pods! I installed them last week! Probably!", "Activating the EMP! Hope you didn't need anything electronic!" ]; personalityLines['DOC RAD'] = [ "Everyone take your emergency anti-rad meds! Triple dose!", "Seal all vents! I'm detecting airborne contaminants!", "The infirmary is stocked and ready! Try not to get too injured!", "Remember the emergency procedures! Panic is the real killer!" ]; personalityLines['SCOUTER'] = [ "I see them coming from the north! About 50 hostiles!", "There's a back exit they don't know about! Follow me!", "I've scouted this scenario! We need to fall back to the secondary bunker!", "They've got us surrounded! Which means they're all in one place for our traps!" ]; // Add blinking effect const systemLines = document.querySelectorAll('.text-red-400'); systemLines.forEach(line => { line.classList.add('animate-pulse'); }); // Trigger emergency animations const robots = document.querySelectorAll('.robot-head'); robots.forEach(robot => { if (robot.classList.contains('scientist')) { robot.style.animation = 'head-nod 0.3s ease-in-out infinite, pulse-glow 0.2s ease-in-out infinite'; } else if (robot.classList.contains('engineer')) { robot.style.animation = 'head-nod 0.3s ease-in-out infinite, pulse-glow 0.2s ease-in-out infinite'; } else if (robot.classList.contains('medic')) { robot.style.animation = 'head-nod 0.3s ease-in-out infinite, pulse-glow 0.2s ease-in-out infinite'; } else if (robot.classList.contains('scout')) { robot.style.animation = 'head-nod 0.3s ease-in-out infinite, pulse-glow 0.2s ease-in-out infinite'; } else { robot.style.animation = 'head-nod 0.3s ease-in-out infinite, pulse-glow 0.2s ease-in-out infinite'; } const eyes = robot.querySelectorAll('.robot-eye'); eyes.forEach(eye => { eye.style.animation = 'eye-glow 0.5s infinite alternate'; }); const mouth = robot.querySelector('.robot-mouth'); if (mouth) { if (robot.classList.contains('scientist')) { mouth.style.animation = 'scientist-talk 0.2s infinite alternate, scientist-glow 0.3s infinite alternate'; } else if (robot.classList.contains('engineer')) { mouth.style.animation = 'engineer-talk 0.2s infinite alternate, engineer-glow 0.3s infinite alternate'; } else if (robot.classList.contains('medic')) { mouth.style.animation = 'medic-talk 0.2s infinite alternate, medic-glow 0.3s infinite alternate'; } else if (robot.classList.contains('scout')) { mouth.style.animation = 'scout-talk 0.2s infinite alternate, scout-glow 0.3s infinite alternate'; } else { mouth.style.animation = 'talk 0.2s infinite alternate, mouth-glow 0.3s infinite alternate'; } } }); }); // Start conversation automatically on page load window.addEventListener('load', () => { const activeTopic = document.querySelector('.topic-chip.active').textContent; startConversation(activeTopic); // Initialize all robot animations const robots = document.querySelectorAll('.robot-head'); robots.forEach((robot, index) => { // Set initial animations if (robot.classList.contains('scientist')) { robot.style.animation = 'float 7s ease-in-out infinite, pulse-glow 4s ease-in-out infinite'; } else if (robot.classList.contains('engineer')) { robot.style.animation = 'float 5s ease-in-out infinite, pulse-glow 4s ease-in-out infinite'; } else if (robot.classList.contains('medic')) { robot.style.animation = 'float 6s ease-in-out infinite, pulse-glow 4s ease-in-out infinite'; } else if (robot.classList.contains('scout')) { robot.style.animation = 'float 4s ease-in-out infinite, pulse-glow 4s ease-in-out infinite'; } else { robot.style.animation = 'float </html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prepper Paradise: Luxury Apocalypse Chat</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Press+Start+2P&display=swap');
body {
font-family: 'Orbitron', sans-serif;
background-color: #000;
color: #0ff;
overflow: auto;
min-height: 100vh;
}
.crt-effect {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background:
linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
background-size: 100% 2px, 3px 100%;
pointer-events: none;
z-index: 100;
}
.crt-effect::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 30, 30, 0.05);
pointer-events: none;
animation: flicker 0.15s infinite;
}
@keyframes flicker {
0% { opacity: 0.9; }
20% { opacity: 0.95; }
40% { opacity: 0.98; }
60% { opacity: 0.99; }
80% { opacity: 0.96; }
100% { opacity: 0.9; }
}
.glow-text {
text-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
}
.panel {
background: linear-gradient(135deg, #111 0%, #222 100%);
border: 1px solid #0ff;
box-shadow: 0 0 10px #0ff, inset 0 0 10px #0ff;
}
.button {
background: linear-gradient(180deg, #333 0%, #111 100%);
border: 1px solid #0ff;
box-shadow: 0 0 5px #0ff;
color: #0ff;
transition: all 0.2s;
}
.button:hover {
background: linear-gradient(180deg, #444 0%, #222 100%);
box-shadow: 0 0 10px #0ff;
text-shadow: 0 0 5px #0ff;
}
.button:active {
background: linear-gradient(180deg, #111 0%, #333 100%);
box-shadow: inset 0 0 10px #0ff;
}
/* Enhanced Robot Head Animations */
.robot-head {
position: relative;
border-radius: 50%;
background: linear-gradient(145deg, #333, #555);
box-shadow: 0 0 20px #0ff;
animation: float 6s ease-in-out infinite, pulse-glow 8s ease-in-out infinite;
transform-style: preserve-3d;
transition: all 0.5s ease;
}
@keyframes float {
0% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
25% { transform: translateY(-15px) rotateX(5deg) rotateY(5deg); }
50% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
75% { transform: translateY(-10px) rotateX(-5deg) rotateY(-5deg); }
100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
}