* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  height: 100vh;
  background: linear-gradient(#ffd55c 50%, #5a95ff 50%);
}
.app {
  font-family: "Poppins", sans-serif;
  width: min(95vw, 31.25em);
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  top: 1.875em;
}
.container {
  padding: 2em 2.5em;
  background: #f1f8fb;
  box-shadow: 0 1em 2em rgba(0, 0, 0, 0.3);
  border-radius: 0.8em;
}
#wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 1em;
}
#wrapper input {
  width: 100%;
  background: transparent;
  color: #111111;
  font-size: 0.9em;
  border: none;
  border-bottom: 2px solid #d1d3d4;
  padding: 1em 0.5em;
}
#wrapper input:focus {
  outline: none;
  border-color: #5a95ff;
}
#wrapper button {
  position: relative;
  border-radius: 0.5em;
  font-weight: 500;
  font-size: 1em;
  background-color: #5a95ff;
  border: none;
  outline: none;
  color: #fff;
  cursor: pointer;
}
#error {
  text-align: center;
  background-color: #ffffff;
  color: #ff5c5c;
  margin-top: 1.5em;
  padding: 1em 0;
  border-radius: 0.8em;
  display: none;
}
#tasks {
  margin-top: 1em;
  border-radius: 0.5em;
  width: 100%;
  position: relative;
  padding: 1em 0.5em;
}
.task {
  background: #ffffff;
  padding: 0.8em 1em;
  display: grid;
  grid-template-columns: 1fr 8fr 2fr 2fr;
  gap: 1em;
  border-radius: 0.5em;
  box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.05);
  align-items: center;
  cursor: pointer;
}
.task:not(:first-child) {
  margin-top: 1em;
}
.task input[type="checkbox"] {
  position: relative;
  appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  border: 2px solid #e1e1e1;
  cursor: pointer;
}
.task input[type="checkbox"]::before {
  content: "";
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
}
.task input[type="checkbox"]:checked {
  background: #5a95ff;
  border-color: #5a95ff;
}
.task input[type="checkbox"]:checked::before {
  content: "\f00c";
  position: absolute;
  color: #fff;
  font-size: 0.8em;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.task span{
    font-size: 0.9em;
    font-weight: 400;
    word-break: break-all;
}
.task button{
    color: #fff;
    width: 100%;
    padding: 1em 0;
    border-radius: 0.5em;
    border: none;
    cursor: pointer;
    outline: none;
}
.edit{
    background: #5a95ff;
}
.delete{
    background: #ff5c5c;
}
#pending-tasks span{
    color: #5a95ff;
}
.completed{
    text-decoration: line-through;
    color: #a0a0a0;
}