* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.container {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #84b81c, #2999ad);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.todo-app {
  width: 100%;
  max-width: 600px;
  min-height: 250px;
  background: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.todo-app h2 {
  color: #04811b;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.5rem;
  text-align: center;
}

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

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

#input-box {
  flex: 1;
  border: none;
  outline: none;
  background-color: transparent;
  padding: 10px;
  font-size: 1rem;
}

#add {
  border: none;
  outline: none;
  padding: 10px 15px;
  background: #006513;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 20px;
}

.tasklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wrapper {
  width: 100%; 
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 5px 0;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  cursor: pointer;
  background-color: #2999ad;
}

input[type="checkbox"]:checked {
  background-color: darkgreen;
}

input[type="checkbox"]:after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f00c";
  font-size: 16px;
  color: white;
  margin-top: 3px;
  margin-left: 3px;
  display: none;
  background-color: darkgreen;
  border-radius: 50%;
}

.text {
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  color: #006513;
}

input[type="checkbox"]:checked + .text {
  text-decoration: line-through;
  color: grey;
}

input[type="checkbox"]:checked:after {
  display: block;
}

.cross-btn {
  background-color: transparent;
  border: none;
  color: #2999ad;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cross-btn:hover {
  color: grey;
}

/* Responsive Design */
@media (max-width: 768px) {
  .todo-app {
    padding: 20px 15px;
  }

  .todo-app h2 {
    font-size: 1.4rem;
  }

  .row {
    padding-left: 10px;
  }

  #add {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .text {
    font-size: 0.9rem;
  }

  .cross-btn {
    font-size: 1rem;
  }
}

@media (max-width: 430px) {
  .todo-app {
    padding: 15px 10px;
  }

  .todo-app h2 {
    font-size: 1.2rem;
    text-align: center;
  }

  #input-box {
    font-size: 0.9rem;
  }

  #add {
    padding: 10px;
  }

  .text {
    font-size: 0.85rem;
  }

  .cross-btn {
    font-size: 0.9rem;
  }
}