@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
}

:root {
  --bgColor: #9cabff;
  --taskColor: #6c55ee;
  --taskColorChecked: #897fad;
  --alertColor: rgb(54, 54, 54);
}

body {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bgColor);
  height: 100vh;
}

h1 {
  margin: 2rem auto;
  border-bottom: 0.1rem solid rgb(0, 0, 0);
  width: max-content;
  font-weight: 500;
}

#lista {
  margin: 1rem;
}

ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

#taskContainer {
  width: 220px;
  height: max-content;
  min-height: 1.8rem;
  background-color: var(--taskColor);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.2s;
  padding: 0px 4px;
  border: 0.13rem solid transparent;
}
#taskContainer:hover {
  border: 0.13rem solid white;
}
#taskContainer p {
  max-width: 160px;
  word-wrap: break-word;
}

#checkbox {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border: 0.11rem solid rgb(255, 255, 255);
  cursor: pointer;
}
#checkbox:checked {
  background-color: rgb(255, 255, 255);
}
#checkbox:checked::before {
  content: "✔";
  color: var(--bgColor);
  background-color: rgb(255, 255, 255);
}

#taskContainer p {
  cursor: pointer;
  font-size: 1rem;
}

#taskContainer img {
  cursor: pointer;
}

#novoItem,
#button {
  height: 1.5rem;
  border: none;
}
#button {
  background-color: var(--taskColor);
  width: 4.2rem;
  cursor: pointer;
  font-weight: 700;
  transition: 0.3s;
}
#button:hover {
  background-color: #2835ec;
}

#alert{
  margin-top: 10px;
  color: var(--alertColor);
  font-weight: bold;
  visibility: hidden;
}
