body {
  font-family: "Arial", sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  height: 100vh;
}

.container {
  padding: 50px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 60%;
  margin: 0 auto;
}

.todo-head {
  background-color: #fff;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.list-body {
  background-color: bisque;
}

form {
  display: flex;
  margin-bottom: 20px;
}

input[type="text"] {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 0 10px;
}

button {
  padding: 10px;
  font-size: 16px;
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
}

.list-item span {
  flex: 1;
  border-bottom: 2px solid #ccc;
  padding-bottom: 4px;
  margin: 0 10px;
}

.button-container {
  display: flex;
  gap: 10px;
}

.delete-btn {
  background-color: #e74c3c;
}

@media (max-width: 600px) {
  .container {
    width: 80%;

    form {
      flex-direction: column;
    }

    input[type="text"] {
      margin: 10px 0;
      width: 100%;
      text-align: center;
    }

    button {
      width: 110%;
    }

    .list-item {
      flex-direction: column;
    }

    .list-item span {
      width: 100%; /* Ensure span takes full width */
      margin: 20px 0;
    }
  }
}
