/* Global styles */
* {
  margin: 0;
  padding: 0;
  font-family: "Times New Roman", Times, serif;
  box-sizing: border-box;
}

.container {
  width: 100%;
  min-height: 92.1vh;
  background: linear-gradient(135deg, #153677, #4e085f);
  padding: 10px;
}

.todo-app {
  width: 100%;
  max-width: 540px;
  background: #fff;
  margin: 100px auto 20px;
  padding: 40px 30px 70px;
  border-radius: 10px;
}

.todo-app h2 {
  color: #002765;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 50px;
  cursor: default;
}

.todo-app h2 img {
  width: 50px;
  margin-left: 10px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #edeef0;
  border-radius: 30px;
  padding-left: 20px;
  margin-bottom: 25px;
}

input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px;
  font-size: 20px;
}

button {
  border: none;
  outline: none;
  padding: 16px 50px;
  background: #ff5945;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 40px;
}

ul li {
  list-style: none;
  font-size: 17px;
  padding: 12px 8px 8px 50px;
  user-select: none;
  cursor: pointer;
  position: relative;
}

ul li::before {
  content: "";
  position: absolute;
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background-image: url("Images/unchecked.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  top: 12px;
  left: 8px;
}

ul li.checked {
  color: #555;
  text-decoration: line-through;
}

ul li.checked::before {
  background-image: url("Images/checked.png");
  background-repeat: no-repeat;
}

ul li span {
  position: absolute;
  right: 0;
  top: 5px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  color: #555;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
}

ul li span:hover {
  background: #edeef0;
}

footer {
  margin-top: auto;
  width: 100%;
  background-color: #1f2833;
  color: #c5c6c7;
  padding: 20px;
  text-align: center;
  box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.3);
}

footer p {
  font-size: 0.9rem;
}

/* Media Queries */

/* For tablets (768px and below) */
@media (max-width: 768px) {
  .todo-app {
    max-width: 90%;
    margin: 50px auto;
    padding: 30px 20px 60px;
  }

  .todo-app h2 {
    font-size: 40px;
  }

  .row {
    margin-bottom: 20px;
  }

  input {
    font-size: 18px;
  }

  button {
    padding: 14px 40px;
    font-size: 16px;
  }

  ul li {
    font-size: 15px;
    padding: 10px 8px 8px 40px;
  }

  ul li::before {
    height: 24px;
    width: 24px;
    top: 10px;
    left: 6px;
  }
}

/* For smartphones (480px and below) */
@media (max-width: 480px) {
  .todo-app {
    max-width: 95%;
    margin: 30px auto;
    padding: 20px 15px 50px;
  }

  .todo-app h2 {
    font-size: 30px;
  }

  .row {
    margin-bottom: 15px;
  }

  input {
    font-size: 16px;
  }

  button {
    padding: 12px 30px;
    font-size: 14px;
  }

  ul li {
    font-size: 13px;
    padding: 8px 8px 8px 30px;
  }

  ul li::before {
    height: 20px;
    width: 20px;
    top: 8px;
    left: 5px;
  }

  ul li span {
    font-size: 18px;
  }
}
