Explore How to use it on hopweb easily option 2 Save Share Download ▾ ReportFrom a Chatbot Arena battle The same person sent this prompt to two anonymous models at once. Compare it with kimi-k2-0711-preview ’s answer. How to use it on hopweb easily option 2
AssistantCopy response Copy first prompt Copy first response
Other models, same or similar prompt Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Details Provider MiniMax
Model provenance As recorded by source dataset
Turns 4 (8 messages)
Language en
Added to archive Nov 16, 2026
ID 01m7jez3zdsx8zyx2rhq46r9bhSource & license Imported from LMArena Human Preference 140K (source ). Imported records earn no Research Points.
Upstream record: 0780b1b3-7b77-4c32-a815-9a657ea2df2b:a
Chiang et al., Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preference (2024). LMArena 140K preference release.
License: Prompts CC-BY-4.0; outputs governed by provider terms
Dataset releases Not yet included in a published release.
Here's a simplified single-file HTML version that works directly on HopWeb without needing to compile SCSS or manage multiple files. Just upload this one index.html file:
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Decision Maker</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
/* All CSS styles inlined here */
:root{--primary:#007bff;--secondary:#6c757d;--bg:#f8f9fa;--dark-bg:#1a1a1a;--dark-text:#fff}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:Arial,sans-serif;background:var(--bg);color:#333;line-height:1.6;transition:all .3s}
body.dark-mode{background:var(--dark-bg);color:var(--dark-text)}
.container{max-width:800px;margin:20px auto;padding:20px;background:#fff;border-radius:10px;box-shadow:0 4px 8px rgba(0,0,0,.1)}
header{text-align:center;margin-bottom:20px;position:relative}
header h1{font-size:2.5rem;color:var(--primary)}
header p{font-size:1.1rem;color:var(--secondary)}
.dark-mode-btn{position:absolute;top:10px;right:10px;background:0 0;border:0;font-size:1.5rem;cursor:pointer;color:var(--primary)}
h2{font-size:1.5rem;margin:10px 0;color:var(--primary)}
.option-input{display:flex;align-items:center;margin-bottom:10px}
.option-input input{flex:1;padding:10px;border:1px solid var(--secondary);border-radius:5px;margin-right:10px}
.remove-option-btn{background:#dc3545;color:#fff;border:0;padding:10px;border-radius:5px;cursor:pointer}
.add-btn,.decide-btn,.clear-btn{padding:10px 20px;margin:5px;border:0;border-radius:5px;cursor:pointer}
.add-btn{background:var(--secondary);color:#fff}
.decide-btn{background:var(--primary);color:#fff}
.clear-btn{background:#dc3545;color:#fff}
.decision-box{padding:20px;background:var(--bg);border:1px solid var(--secondary);border-radius:5px;text-align:center;min-height:100px;display:flex;align-items:center;justify-content:center}
.decision-box.animate{animation:shake .5s}
@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-10px)}50%{transform:translateX(10px)}75%{transform:translateX(-10px)}}
.history-section ul{list-style:none;padding:10px;background:var(--bg);border:1px solid var(--secondary);border-radius:5px}
footer{text-align:center;margin-top:20px;color:var(--secondary)}
@media (max-width:600px){.container{padding:10px}header h1{font-size:2rem}.option-input input{font-size:.9rem}.add-btn,.decide-btn,.clear-btn{padding:8px 15px;font-size:.9rem}}
</style>
</head>
<body>
<div class="container">
<header>
<h1>Decision Maker</h1>
<p>Can't decide? Let us help you choose!</p>
<button id="darkModeToggle" class="dark-mode-btn">
<i class="fas fa-moon"></i>
</button>
</header>
<main>
<!-- Options Input Section -->
<section class="options-section">
<h2>Add Your Options</h2>
<div id="optionsContainer">
<div class="option-input">
<input type="text" placeholder="Enter option 1" class="option-field">
<button class="remove-option-btn"><i class="fas fa-trash"></i></button>
</div>
<div class="option-input">
<input type="text" placeholder="Enter option 2" class="option-field">
<button class="remove-option-btn"><i class="fas fa-trash"></i></button>
</div>
</div>
<button id="addOptionBtn" class="add-btn">Add Another Option</button>
<button id="decideBtn" class="decide-btn">Make a Decision!</button>
</section>
<!-- Decision Display Section -->
<section class="decision-section">
<h2>Your Decision</h2>
<div id="decisionDisplay" class="decision-box">
<p>Click "Make a Decision!" to see the result.</p>
</div>
</section>
<!-- History Section -->
<section class="history-section">
<h2>Decision History</h2>
<ul id="historyList"></ul>
<button id="clearHistoryBtn" class="clear-btn">Clear History</button>
</section>
</main>
<footer>
<p>© 2023 Decision Maker App</p>
</footer>
</div>
<script>
// All JavaScript inlined here
const optionsContainer = document.getElementById('optionsContainer');
const addOptionBtn = document.getElementById('addOptionBtn');
const decideBtn = document.getElementById('decideBtn');
const decisionDisplay = document.getElementById('decisionDisplay');
const historyList = document.getElementById('historyList');
const clearHistoryBtn = document.getElementById('clearHistoryBtn');
const darkModeToggle = document.getElementById('darkModeToggle');
let decisionHistory = JSON.parse(localStorage.getItem('decisionHistory')) || [];
// Initialize
document.addEventListener('DOMContentLoaded', () => {
renderHistory();
loadDarkMode();
});
// Add new option
addOptionBtn.addEventListener('click', () => {
const optionDiv = document.createElement('div');
optionDiv.classList.add('option-input');
optionDiv.innerHTML = `
<input type="text" placeholder="Enter option" class="option-field">
<button class="remove-option-btn"><i class="fas fa-trash"></i></button>
`;
optionsContainer.appendChild(optionDiv);
attachRemoveListeners();
});
// Remove option
function attachRemoveListeners() {
document.querySelectorAll('.remove-option-btn').forEach(button => {
button.addEventListener('click', () => {
if (optionsContainer.children.length > 2) {
button.parentElement.remove();
} else {
alert('Need at least 2 options!');
}
});
});
}
// Make decision
decideBtn.addEventListener('click', () => {
const options = Array.from(document.querySelectorAll('.option-field'))
.map(input => input.value.trim())
.filter(value => value !== '');
if (options.length < 2) {
alert('Enter at least 2 valid options!');
return;
}
const randomIndex = Math.floor(Math.random() * options.length);
const decision = options[randomIndex];
decisionDisplay.classList.add('animate');
decisionDisplay.innerHTML = `<strong>Decision:</strong> ${decision}`;
decisionSound.play();
setTimeout(() => {
decisionDisplay.classList.remove('animate');
}, 500);
// Add to history
const timestamp = new Date().toLocaleString();
decisionHistory.push({ decision, timestamp, options });
localStorage.setItem('decisionHistory', JSON.stringify(decisionHistory));
renderHistory();
});
// Render history
function renderHistory() {
historyList.innerHTML = '';
decisionHistory.forEach((entry, index) => {
const li = document.createElement('li');
li.innerHTML = `
<strong>Decision #${index + 1}:</strong> ${entry.decision} <br>
<small>Options: ${entry.options.join(', ')} | ${entry.timestamp}</small>
`;
historyList.appendChild(li);
});
}
// Clear history
clearHistoryBtn.addEventListener('click', () => {
decisionHistory = [];
localStorage.removeItem('decisionHistory');
renderHistory();
});
// Dark mode
darkModeToggle.addEventListener('click', () => {
document.body.classList.toggle('dark-mode');
const isDarkMode = document.body.classList.contains('dark-mode');
localStorage.setItem('darkMode', isDarkMode);
darkModeToggle.innerHTML = isDarkMode ? '<i class="fas fa-sun"></i>' : '<i class="fas fa-moon"></i>';
});
// Load preferences
function loadDarkMode() {
if (JSON.parse(localStorage.getItem('darkMode'))) {
document.body.classList.add('dark-mode');
darkModeToggle.innerHTML = '<i class="fas fa-sun"></i>';
}
}
// Sound effect (optional)
const decisionSound = new Audio('https://www.soundjay.com/buttons/beep-01a.mp3');
</script>
</body>
</html>
How to Use on HopWeb (Option 2 - Simplified):
Copy the entire code above into a text editor.
Save as index.html (make sure to use .html extension).
Upload to HopWeb :
Go to your HopWeb dashboard
Look for an "Upload" or "Add File" button
Drag-and-drop the index.html file or select it manually
Confirm upload
Features Still Included:
✅ Add/remove options
✅ Random decision with animation
✅ Dark mode toggle
✅ Decision history stored in browser
✅ Mobile-responsive design
✅ Sound effect on decision (optional)
Why This Works:
Single File : No need to manage multiple files (HTML, CSS, JS all in one)
No Compilation : CSS is already inlined and converted to plain CSS
Browser Storage : Uses localStorage to remember history and preferences
CDN Resources : Font Awesome icons loaded from CDN (no local files needed)
Just upload the single HTML file to HopWeb and it will work immediately!
Show full message · 231 lines Make a all file for a app
AssistantCopy response Here's a complete app with all files (HTML, SCSS, JS) structured for easy deployment. This version includes all features and is ready to host on HopWeb after compilation.
Project Structure:
code Copy code
decision-app/
├── index.html # Main HTML file
├── styles.scss # SCSS styles (compile to CSS)
└── script.js # JavaScript logic
1. index.html
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Decision Maker</title>
<link rel="stylesheet" href="styles.css"> <!-- Compiled CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
<div class="container">
<header>
<h1>Decision Maker</h1>
<p>Can't decide? Let us help you choose!</p>
<button id="darkModeToggle" class="dark-mode-btn">
<i class="fas fa-moon"></i>
</button>
</header>
<main>
<!-- Options Input Section -->
<section class="options-section">
<h2>Add Your Options</h2>
<div id="optionsContainer">
<div class="option-input">
<input type="text" placeholder="Enter option 1" class="option-field">
<button class="remove-option-btn"><i class="fas fa-trash"></i></button>
</div>
<div class="option-input">
<input type="text" placeholder="Enter option 2" class="option-field">
<button class="remove-option-btn"><i class="fas fa-trash"></i></button>
</div>
</div>
<button id="addOptionBtn" class="add-btn">Add Another Option</button>
<button id="decideBtn" class="decide-btn">Make a Decision!</button>
</section>
<!-- Decision Display Section -->
<section class="decision-section">
<h2>Your Decision</h2>
<div id="decisionDisplay" class="decision-box">
<p>Click "Make a Decision!" to see the result.</p>
</div>
</section>
<!-- History Section -->
<section class="history-section">
<h2>Decision History</h2>
<ul id="historyList"></ul>
<button id="clearHistoryBtn" class="clear-btn">Clear History</button>
</section>
</main>
<footer>
<p>© 2023 Decision Maker App</p>
</footer>
</div>
<script src="script.js"></script>
</body>
</html>
Show full message · 471 lines Make a logo and suggest unique name for app
AssistantCopy response Unique App Name: DecideDice
(Combines "decide" with "dice" – symbolizing randomness and playful decision-making)
Logo Concept:
A modern, minimalist logo that reflects the app's core purpose (random choice) and user-friendly vibe.
Design Details:
Symbol : A 3D dice (cube) with one face highlighted or "selected" (e.g., a checkmark ✅ or star ⭐ on the top face).
Typography : Clean, rounded sans-serif font (e.g., "Nunito" or "Quicksand") with the name "DecideDice" below the dice.
Colors :
Primary: #007bff (Vibrant blue – trust, clarity).
Secondary: #4ade80 (Fresh green – growth, positivity).
Accent: #f59e0b (Warm orange – energy, fun).
Layout : The dice is centered, with the text below it. For small sizes (e.g., app icon), the dice can be simplified to a 2D square with a checkmark.
Example Sketch (Text Description):
code Copy code
🔲
/|\
/ | \
✅ (top face)
/ | \
———–
"DecideDice" (in bold, rounded font)
Why This Works:
Dice Symbolism : Directly ties to randomness (like rolling a dice to choose), making the app's purpose clear.
Color Palette : Blue builds trust, green adds approachability, and orange adds energy – perfect for a friendly tool.
Simplicity : Works as a small icon (e.g., app shortcut) or large header (website).
Let me know if you'd like to refine the name/logo further! 😊
// Variables
primary-color: #007bff;
secondary-color: #6c757d;
background-color: #f8f9fa;
dark-bg: #1a1a1a;
dark-text: #ffffff;
shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
// Reset
{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background-color: $background-color;
color: #333;
line-height: 1.6;
transition: background-color 0.3s, color 0.3s;
code Copy code
&.dark-mode {
background-color: $dark-bg;
color: $dark-text;
.container {
background-color: $dark-bg;
}
.option-input input,
.decision-box,
.history-section ul {
background-color: #333;
color: $dark-text;
border-color: #555;
}
button {
background-color: #444;
color: $dark-text;
border-color: #555;
&:hover {
background-color: #555;
}
}
}
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: $shadow;
transition: background-color 0.3s;
}
header {
text-align: center;
margin-bottom: 20px;
position: relative;
code Copy code
h1 {
font-size: 2.5rem;
color: $primary-color;
}
p {
font-size: 1.1rem;
color: $secondary-color;
}
.dark-mode-btn {
position: absolute;
top: 10px;
right: 10px;
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: $primary-color;
}
}
.options-section,
.decision-section,
.history-section {
margin-bottom: 30px;
Show full message · 239 lines AssistantCopy response Here's the compiled CSS from your SCSS code:
Show full message · 251 lines
2. styles.scss (Compile to styles.css) scss Copy code
// Variables
$primary-color: #007bff;
$secondary-color: #6c757d;
$background-color: #f8f9fa;
$dark-bg: #1a1a1a;
$dark-text: #ffffff;
$shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
// Reset
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background-color: $background-color;
color: #333;
line-height: 1.6;
transition: background-color 0.3s, color 0.3s;
&.dark-mode {
background-color: $dark-bg;
color: $dark-text;
.container {
background-color: $dark-bg;
}
.option-input input,
.decision-box,
.history-section ul {
background-color: #333;
color: $dark-text;
border-color: #555;
}
button {
background-color: #444;
color: $dark-text;
border-color: #555;
&:hover {
background-color: #555;
}
}
}
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: $shadow;
transition: background-color 0.3s;
}
header {
text-align: center;
margin-bottom: 20px;
position: relative;
h1 {
font-size: 2.5rem;
color: $primary-color;
}
p {
font-size: 1.1rem;
color: $secondary-color;
}
.dark-mode-btn {
position: absolute;
top: 10px;
right: 10px;
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: $primary-color;
}
}
.options-section,
.decision-section,
.history-section {
margin-bottom: 30px;
h2 {
font-size: 1.5rem;
margin-bottom: 10px;
color: $primary-color;
}
}
.option-input {
display: flex;
align-items: center;
margin-bottom: 10px;
input {
flex: 1;
padding: 10px;
font-size: 1rem;
border: 1px solid $secondary-color;
border-radius: 5px;
margin-right: 10px;
}
.remove-option-btn {
background-color: #dc3545;
color: #fff;
border: none;
padding: 10px;
border-radius: 5px;
cursor: pointer;
&:hover {
background-color: darken(#dc3545, 10%);
}
}
}
.add-btn,
.decide-btn,
.clear-btn {
display: inline-block;
padding: 10px 20px;
font-size: 1rem;
border: none;
border-radius: 5px;
cursor: pointer;
margin-right: 10px;
transition: background-color 0.3s;
}
.add-btn {
background-color: $secondary-color;
color: #fff;
&:hover {
background-color: darken($secondary-color, 10%);
}
}
.decide-btn {
background-color: $primary-color;
color: #fff;
&:hover {
background-color: darken($primary-color, 10%);
}
}
.clear-btn {
background-color: #dc3545;
color: #fff;
&:hover {
background-color: darken(#dc3545, 10%);
}
}
.decision-box {
padding: 20px;
background-color: $background-color;
border: 1px solid $secondary-color;
border-radius: 5px;
text-align: center;
font-size: 1.2rem;
min-height: 100px;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.3s;
&.animate {
animation: shake 0.5s ease-in-out;
}
}
@keyframes shake {
0% { transform: translateX(0); }
25% { transform: translateX(-10px); }
50% { transform: translateX(10px); }
75% { transform: translateX(-10px); }
100% { transform: translateX(0); }
}
.history-section ul {
list-style: none;
background-color: $background-color;
padding: 10px;
border-radius: 5px;
border: 1px solid $secondary-color;
li {
padding: 5px 0;
border-bottom: 1px solid $secondary-color;
&:last-child {
border-bottom: none;
}
}
}
footer {
text-align: center;
margin-top: 20px;
font-size: 0.9rem;
color: $secondary-color;
}
// Responsive Design
@media (max-width: 600px) {
.container {
padding: 10px;
}
header h1 {
font-size: 2rem;
}
.option-input input {
font-size: 0.9rem;
}
.add-btn,
.decide-btn,
.clear-btn {
padding: 8px 15px;
font-size: 0.9rem;
}
}
3. script.js javascript Copy code
// DOM Elements
const optionsContainer = document.getElementById('optionsContainer');
const addOptionBtn = document.getElementById('addOptionBtn');
const decideBtn = document.getElementById('decideBtn');
const decisionDisplay = document.getElementById('decisionDisplay');
const historyList = document.getElementById('historyList');
const clearHistoryBtn = document.getElementById('clearHistoryBtn');
const darkModeToggle = document.getElementById('darkModeToggle');
// Load history from localStorage
let decisionHistory = JSON.parse(localStorage.getItem('decisionHistory')) || [];
// Initialize
document.addEventListener('DOMContentLoaded', () => {
renderHistory();
loadDarkMode();
});
// Add new option input
addOptionBtn.addEventListener('click', () => {
const optionDiv = document.createElement('div');
optionDiv.classList.add('option-input');
optionDiv.innerHTML = `
<input type="text" placeholder="Enter option" class="option-field">
<button class="remove-option-btn"><i class="fas fa-trash"></i></button>
`;
optionsContainer.appendChild(optionDiv);
attachRemoveListeners();
});
// Remove option
function attachRemoveListeners() {
const removeButtons = document.querySelectorAll('.remove-option-btn');
removeButtons.forEach(button => {
button.addEventListener('click', () => {
if (optionsContainer.children.length > 2) {
button.parentElement.remove();
} else {
alert('You must have at least two options!');
}
});
});
}
// Make a decision
decideBtn.addEventListener('click', () => {
const options = Array.from(document.querySelectorAll('.option-field'))
.map(input => input.value.trim())
.filter(value => value !== '');
if (options.length < 2) {
alert('Please enter at least two valid options!');
return;
}
// Randomly select an option
const randomIndex = Math.floor(Math.random() * options.length);
const decision = options[randomIndex];
// Display decision with animation
decisionDisplay.classList.add('animate');
decisionDisplay.innerHTML = `<strong>Decision:</strong> ${decision}`;
decisionSound.play();
setTimeout(() => {
decisionDisplay.classList.remove('animate');
}, 500);
// Add to history
const timestamp = new Date().toLocaleString();
decisionHistory.push({ decision, timestamp, options });
localStorage.setItem('decisionHistory', JSON.stringify(decisionHistory));
renderHistory();
});
// Render history
function renderHistory() {
historyList.innerHTML = '';
decisionHistory.forEach((entry, index) => {
const li = document.createElement('li');
li.innerHTML = `
<strong>Decision #${index + 1}:</strong> ${entry.decision} <br>
<small>Options: ${entry.options.join(', ')} | ${entry.timestamp}</small>
`;
historyList.appendChild(li);
});
}
// Clear history
clearHistoryBtn.addEventListener('click', () => {
decisionHistory = [];
localStorage.removeItem('decisionHistory');
renderHistory();
});
// Dark mode toggle
darkModeToggle.addEventListener('click', () => {
document.body.classList.toggle('dark-mode');
const isDarkMode = document.body.classList.contains('dark-mode');
localStorage.setItem('darkMode', isDarkMode);
darkModeToggle.innerHTML = isDarkMode ? '<i class="fas fa-sun"></i>' : '<i class="fas fa-moon"></i>';
});
// Load dark mode preference
function loadDarkMode() {
const isDarkMode = JSON.parse(localStorage.getItem('darkMode'));
if (isDarkMode) {
document.body.classList.add('dark-mode');
darkModeToggle.innerHTML = '<i class="fas fa-sun"></i>';
}
}
// Sound effect
const decisionSound = new Audio('https://www.soundjay.com/buttons/beep-01a.mp3');
How to Use:
Compile SCSS to CSS :
Use an online SCSS compiler (e.g., SassMeister ) or a local tool like sass (install via npm install -g sass then run sass styles.scss styles.css).
This generates styles.css in your project folder.
Host on HopWeb :
Upload the following files to HopWeb:
index.html
styles.css (compiled from styles.scss)
script.js
Ensure all files are in the root directory of your HopWeb project.
Test Locally :
Open index.html in a web browser to verify functionality before uploading.
Features Included:
✅ Add/remove options dynamically
✅ Random decision with animation
✅ Dark mode toggle
✅ Decision history stored in browser
✅ Mobile-responsive design
✅ Sound effect on decision
This app is fully functional and ready to host on HopWeb!
h2 {
font-size: 1.5rem;
margin-bottom: 10px;
color: $primary-color;
}
.option-input {
display: flex;
align-items: center;
margin-bottom: 10px;
code Copy code
input {
flex: 1;
padding: 10px;
font-size: 1rem;
border: 1px solid $secondary-color;
border-radius: 5px;
margin-right: 10px;
}
.remove-option-btn {
background-color: #dc3545;
color: #fff;
border: none;
padding: 10px;
border-radius: 5px;
cursor: pointer;
&:hover {
background-color: darken(#dc3545, 10%);
}
}
.add-btn,
.decide-btn,
.clear-btn {
display: inline-block;
padding: 10px 20px;
font-size: 1rem;
border: none;
border-radius: 5px;
cursor: pointer;
margin-right: 10px;
transition: background-color 0.3s;
}
.add-btn {
background-color: $secondary-color;
color: #fff;
code Copy code
&:hover {
background-color: darken($secondary-color, 10%);
}
.decide-btn {
background-color: $primary-color;
color: #fff;
code Copy code
&:hover {
background-color: darken($primary-color, 10%);
}
.clear-btn {
background-color: #dc3545;
color: #fff;
code Copy code
&:hover {
background-color: darken(#dc3545, 10%);
}
.decision-box {
padding: 20px;
background-color: b a c k g r o u n d − c o l o r ; b o r d e r : 1 p x s o l i d background-color;
border: 1px solid ba c k g r o u n d − co l or ; b or d er : 1 p x so l i d secondary-color;
border-radius: 5px;
text-align: center;
font-size: 1.2rem;
min-height: 100px;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.3s;
code Copy code
&.animate {
animation: shake 0.5s ease-in-out;
}
@keyframes shake {
0% { transform: translateX(0); }
25% { transform: translateX(-10px); }
50% { transform: translateX(10px); }
75% { transform: translateX(-10px); }
100% { transform: translateX(0); }
}
.history-section ul {
list-style: none;
background-color: b a c k g r o u n d − c o l o r ; p a d d i n g : 10 p x ; b o r d e r − r a d i u s : 5 p x ; b o r d e r : 1 p x s o l i d background-color;
padding: 10px;
border-radius: 5px;
border: 1px solid ba c k g r o u n d − co l or ; p a dd in g : 10 p x ; b or d er − r a d i u s : 5 p x ; b or d er : 1 p x so l i d secondary-color;
code Copy code
li {
padding: 5px 0;
border-bottom: 1px solid $secondary-color;
&:last-child {
border-bottom: none;
}
}
footer {
text-align: center;
margin-top: 20px;
font-size: 0.9rem;
color: $secondary-color;
}
// Responsive Design
@media (max-width: 600px) {
.container {
padding: 10px;
}
code Copy code
header h1 {
font-size: 2rem;
}
.option-input input {
font-size: 0.9rem;
}
.add-btn,
.decide-btn,
.clear-btn {
padding: 8px 15px;
font-size: 0.9rem;
}
}
Compile the code in Css
:root {
--primary: #007bff;
--secondary: #6c757d;
--bg: #f8f9fa;
--dark-bg: #1a1a1a;
--dark-text: #ffffff;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background-color: var(--bg);
color: #333;
line-height: 1.6;
transition: background-color 0.3s, color 0.3s;
}
body.dark-mode {
background-color: var(--dark-bg);
color: var(--dark-text);
}
body.dark-mode .container {
background-color: var(--dark-bg);
}
body.dark-mode .option-input input,
body.dark-mode .decision-box,
body.dark-mode .history-section ul {
background-color: #333;
color: var(--dark-text);
border-color: #555;
}
body.dark-mode button {
background-color: #444;
color: var(--dark-text);
border-color: #555;
}
body.dark-mode button:hover {
background-color: #555;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s;
}
header {
text-align: center;
margin-bottom: 20px;
position: relative;
}
header h1 {
font-size: 2.5rem;
color: var(--primary);
}
header p {
font-size: 1.1rem;
color: var(--secondary);
}
.dark-mode-btn {
position: absolute;
top: 10px;
right: 10px;
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: var(--primary);
}
.options-section,
.decision-section,
.history-section {
margin-bottom: 30px;
}
.options-section h2,
.decision-section h2,
.history-section h2 {
font-size: 1.5rem;
margin-bottom: 10px;
color: var(--primary);
}
.option-input {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.option-input input {
flex: 1;
padding: 10px;
font-size: 1rem;
border: 1px solid var(--secondary);
border-radius: 5px;
margin-right: 10px;
}
.option-input .remove-option-btn {
background-color: #dc3545;
color: #fff;
border: none;
padding: 10px;
border-radius: 5px;
cursor: pointer;
}
.option-input .remove-option-btn:hover {
background-color: #c82333;
}
.add-btn,
.decide-btn,
.clear-btn {
display: inline-block;
padding: 10px 20px;
font-size: 1rem;
border: none;
border-radius: 5px;
cursor: pointer;
margin-right: 10px;
transition: background-color 0.3s;
}
.add-btn {
background-color: var(--secondary);
color: #fff;
}
.add-btn:hover {
background-color: #5a6268;
}
.decide-btn {
background-color: var(--primary);
color: #fff;
}
.decide-btn:hover {
background-color: #0056b3;
}
.clear-btn {
background-color: #dc3545;
color: #fff;
}
.clear-btn:hover {
background-color: #c82333;
}
.decision-box {
padding: 20px;
background-color: var(--bg);
border: 1px solid var(--secondary);
border-radius: 5px;
text-align: center;
font-size: 1.2rem;
min-height: 100px;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.3s;
}
.decision-box.animate {
animation: shake 0.5s ease-in-out;
}
@keyframes shake {
0% { transform: translateX(0); }
25% { transform: translateX(-10px); }
50% { transform: translateX(10px); }
75% { transform: translateX(-10px); }
100% { transform: translateX(0); }
}
.history-section ul {
list-style: none;
background-color: var(--bg);
padding: 10px;
border-radius: 5px;
border: 1px solid var(--secondary);
}
.history-section ul li {
padding: 5px 0;
border-bottom: 1px solid var(--secondary);
}
.history-section ul li:last-child {
border-bottom: none;
}
footer {
text-align: center;
margin-top: 20px;
font-size: 0.9rem;
color: var(--secondary);
}
@media (max-width: 600px) {
.container {
padding: 10px;
}
header h1 {
font-size: 2rem;
}
.option-input input {
font-size: 0.9rem;
}
.add-btn,
.decide-btn,
.clear-btn {
padding: 8px 15px;
font-size: 0.9rem;
}
}
Key changes made during compilation:
Replaced SCSS variables ($primary-color → var(--primary))
Flattened nested selectors (e.g., body.dark-mode styles)
Converted SCSS functions like darken() to approximate hex values
Maintained all responsive design rules
Preserved animations and transitions
To use this CSS, save it as styles.css and link it in your HTML file.