*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  height: 100vh;
  background: linear-gradient(135deg, pink, rgb(255, 161, 161));
}
.container {
  border: 2px solid white;
  width: 40%;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  min-width: 450px;
  padding: 30px 40px;
}
#newtask {
  position: relative;
  background: #fff;
  padding: 30px 20px;
  border-radius: 5px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
#newtask input {
  width: 70%;
  height: 45px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  border: 2px solid #d1d3d4;
  padding: 12px;
  color: #111111;
  font-weight: 500;
  position: relative;
  border-radius: 5px;
}
#newtask input:focus {
  outline: 0;
  border-color: darkmagenta;
}
#newtask button {
  position: relative;
  float: right;
  width: 20%;
  height: 45px;
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 16px;
  background: purple;
  color: white;
  border: 0;
  outline: 0;
  cursor: pointer;
}
#tasks {
  background: #fff;
  padding: 30px 20px;
  margin-top: 60px;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  position: relative;
}
.task {
  background: #fff;
  height: 50px;
  padding: 5px 10px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #474747;
  cursor: pointer;
}
.task span {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 15px;
}
.task button {
  background: purple;
  color: #fff;
  height: 100%;
  width: 40px;
  border-radius: 5px;
  border: none;
  outline: none;
  cursor: pointer;
}
.completed {
  text-decoration: line-through;
}
@media (max-width:500px) {
  .container {
    min-width: 350px;
    border: none;
  }
}
