/* Draggable */
#todoContainer {
  position: absolute;
  z-index: 1000;
  cursor:grab;
}

.toDoContainer {
  background-color: #333;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 500px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.header h1 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

h1 {
  align-self: center;
}

.header .close-btn {
  cursor: pointer;
  font-size: 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 50%;
  padding: 0.3rem;
  transition: background-color 0.3s ease;
}

.header .close-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

form {
  display: flex;
  width: 100%;
}

.input {
  flex: 1;
  border: none;
  font-size: 1.2rem;
  padding: 0.5rem 0.8rem;
  border-radius: 5px 0 0 5px;
  outline: none;
}

.input::placeholder {
  color: #ccc;
}

.add-btn {
  border: none;
  background-color: #0b5d93;
  color: #fff;
  font-size: 1.2rem;
  padding: 0.8rem 1.5rem;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-btn:hover {
  background-color: #2980b9;
}

.todos {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.todos li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #eee;
  padding: 1rem;
  color: #ffffff;
}

.todos li.completed {
  text-decoration: line-through;
  color: #b6b6b6;
}

.todos li:last-child {
  border-bottom: none;
}

.close-btn,
.tick-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  margin-left: auto;
}

.close-btn {
  color: #c0392b;
}

.tick-btn {
  color: #2ecc71;
}
