* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: linear-gradient(
    to top,
    #470447,
    #861647,
    #ca483e,
    #ef901f,
    #ebe012
  );
  height: 100vh;
  display: flex;
  justify-content: center;
}

.container {
  width: 100vh;
  padding: 1rem;
  margin-top: 4rem;
  border-radius: 1rem;
  background-color: #fff;
}

h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

h1 img {
  width: 3.5rem;
}

form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 2rem;
  border: 2px solid lightgray;
}

input {
  height: 3rem;
  width: 80%;
  padding-left: 2rem;
  font-size: 1.2rem;
  border-radius: 2rem;
}

input,
button {
  border: none;
  outline: none;
}

form button {
  background-color: #80b918;
  height: 2.8rem;
  width: 6rem;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 2rem;
  margin-right: 0.1rem;
}

.head2 {
  margin: 0 1rem 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 0.5rem;
}

h2 {
  flex: 1;
}

p {
  font-size: 1.3rem;
  font-weight: 600;
  animation: rainbow 2s ease infinite;
}

@keyframes rainbow {
  0% {
    color: #9400d3;
  }
  15% {
    color: #4b0082;
  }
  30% {
    color: #0000ff;
  }
  45% {
    color: #00ff00;
  }
  60% {
    color: #ffff00;
  }
  75% {
    color: #ff7f00;
  }
  90% {
    color: #ff0000;
  }
}

.head2 div {
  display: flex;
  height: 1.5rem;
  width: 3rem;
  padding: 0 0.1rem 0 0.1rem;
  align-items: center;
  background-color: #80b918;
  border-radius: 1rem;
  transition: all ease;
}

.btn {
  background-color: #fff;
  height: 1.3rem;
  width: 1.3rem;
  padding: 1px;
  border-radius: 50%;
  transition: all 0.5s ease;
}

.onSlide {
  transform: translate(25px);
}

ul li {
  display: flex;
  align-items: center;
  height: 2.5rem;
  font-size: clamp(12px, 2vw, 16px);
  margin: 1rem 1rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 400;
  list-style: none;
  color: black;
  position: relative;
}

.para {
  width: 86%;
}

ul li::before {
  content: "";
  margin-right: 0.5rem;
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 50%;
  background-size: contain;
  border: 1px solid lightgray;
}

Ul li span {
  position: absolute;
  right: 1rem;
  color: black;
}

.checked {
  text-decoration: line-through;
}

.checked::before {
  background-image: url(images/check.jpg);
}

@media (max-width: 750px) {
  .container {
    width: 85vh;
  }

  ul li {
    margin: 1rem 0.5rem 0 0.5rem;
    font-size: 1.25rem;
  }

  .head2 {
    margin: 1rem 0.5rem 0 0.5rem;
  }
}

@media (max-width: 650px) {
  .container {
    width: 70vh;
  }
}

@media (max-width: 550px) {
  .container {
    width: 60vh;
  }
}

@media (max-width: 450px) {
  .container {
    width: 50vh;
  }

  input {
    padding-left: 1rem;
    font-size: 1rem;
  }

  form button {
    font-size: 1rem;
  }
}

@media (max-width: 350px) {
  .container {
    width: 45vh;
  }
}
