// 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;