body {
  font-family: sans-serif;
  padding: 20px;
  background-color: #f4f4f4;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.list-section {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

textarea {
  width: 100%;
  height: 200px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
  resize: vertical;
  background-color: #fff;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

textarea[readonly] {
  background-color: #e9e9e9;
  cursor: default;
}

button {
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  margin-top: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

button:hover {
  background-color: #0056b3;
}

h1,
h2,
p {
  color: #333;
  transition: color 0.3s ease;
}

h2 {
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
}

.results-container {
  margin-top: 20px;
  border-top: 2px solid #ccc;
  padding-top: 20px;
  transition: border-top-color 0.3s ease;
}

.theme-toggle-button {
  position: absolute;
  top: 15px;
  right: 20px;
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  background-color: #ddd;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}
.theme-toggle-button:hover {
  background-color: #ccc;
}

body.dark-theme {
  background-color: #2c2c2c;
  color: #e0e0e0;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme p {
  color: #e0e0e0;
}

body.dark-theme textarea {
  background-color: #3a3a3a;
  color: #e0e0e0;
  border-color: #555;
}

body.dark-theme textarea[readonly] {
  background-color: #4a4a4a;
}

body.dark-theme .results-container {
  border-top-color: #555;
}

body.dark-theme .theme-toggle-button {
  background-color: #555;
  color: #e0e0e0;
  border-color: #777;
}

body.dark-theme .theme-toggle-button:hover {
  background-color: #666;
}
