/* General Styles */
body {
  margin: 0;
  min-width: 250px;
  font-family: 'Arial', sans-serif;
  background: #f0f2f5;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
}

/* Task Container */
#myDIV {
  width: 400px;
  max-width: 90%;
  background-color: #5cb85c;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Input Fields and Select */
input,
select {
  width: calc(100% - 20px);
  margin: 5px 0;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* Add Button */
.addBtn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.addBtn:hover {
  background-color: #218838;
}

/* Task List Styles */
ul {
  margin: 20px 0;
  padding: 0;
  list-style-type: none;
  max-height: 300px;
  overflow-y: auto;
  border-radius: 5px;
}

ul li {
  padding: 10px;
  background-color: #fff;
  margin-bottom: 5px;
  font-size: 16px;
  border-left: 5px solid #f44336;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

/* Checked Task */
ul li.checked {
  text-decoration: line-through;
  background-color: #f8d7da;
}

/* Hover Effect */
ul li:hover {
  background-color: #f1f1f1;
}

/* Delete Button */
.deleteBtn {
  float: right;
  color: rgb(0, 0, 0);
  border: none;
  cursor: pointer;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 5px;
}

.deleteBtn:hover {
  background-color: #e60000;
}

/* Action Buttons */
.buttons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.actionBtn {
  padding: 10px;
  font-size: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.actionBtn:hover {
  background-color: #0056b3;
}

/* Responsive Styles */
@media only screen and (max-width: 600px) {
  #myDIV {
    width: 90%;
  }

  .buttons {
    flex-direction: column;
  }

  .actionBtn {
    width: 100%;
  }
}