body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #f8f9fa;
  overflow-x: hidden; /* ✅ Prevent right scroll */
}
.todo {
    background-color: #373232;
    padding: 40px;
    border-radius: 20px;
    max-width: 90%;
    width: 330px;
    margin: 100px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: white;
}
h1{
    margin-bottom: 20px;
}
.input{
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.input input{
    padding: 10px;
    border-radius: 6px;
    border: none;
    outline: none;
    width: 100%;
    width: 180px;
    font-size: 16px;
    box-sizing: border-box;
  }

.input input::placeholder {
  color: #aaa;
  font-style: italic;
}
.input input:focus {
  border: 2px solid #28a745;
  background-color: #fff;
}
.input input {
  transition: all 0.2s ease;
}
.input input {
  background-color: #fff;
  color: #000;
}
.input {
  display: flex;
  gap: 10px;
}

.input input {
  flex-grow: 1;
  max-width: 300px;
}
.input button {
  padding: 10px 15px;
  border-radius: 6px;
  border: none;
  background-color: #28a745;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
.input button:hover {
  background-color: #218838;
}
.task-container {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 5px;
}
/* Task list items */
#task-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
#task-list li {
  background-color: #5a5a5a;
  color: white;
  padding: 12px;
  border-radius: 6px;
  margin: 8px 0;
  font-size: 16px;
  word-wrap: break-word;
}
