@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap");
html {
  -webkit-text-size-adjust: 100%;
}
* {
  margin: 0;
  padding: 0;
  font-family: "Tajawal", serif;
  box-sizing: border-box;
}
.container {
  background: linear-gradient(135deg, #1a3636, #40534c);
  min-height: 100vh;
  padding: clamp(2rem, 5vw, 4.375rem) clamp(1rem, 4vw, 1.5rem);
}
.card {
  width: min(100%, 520px);
  margin-inline: auto;
  background-color: #e4f1ac;
  border-radius: 15px;
  padding: clamp(1.25rem, 4vw, 1.875rem) clamp(1rem, 4vw, 1.25rem);
  border: 1px solid #edeef0;
}
.title {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}
img {
  width: 40px;
}
h1 {
  color: #1a3636;
  font-size: clamp(1.35rem, 4vw, 2rem);
  text-align: center;
}
.input-area {
  background-color: #edeef0;
  display: flex;
  justify-content: space-between;
  border-radius: 30px;
  margin-bottom: 15px;
}
input {
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 20px;
  flex: 1;
  min-width: 0;
}
button {
  background-color: #40534c;
  padding: 0 20px;
  border-radius: 30px;
  border: none;
  color: #fff;
  font-weight: 600;
  min-height: 44px;
  flex-shrink: 0;
}
.warning {
  color: rgb(141, 9, 9);
  padding-left: 20px;
  display: none;
}
ul {
  margin-top: 10px;
  list-style-type: none;
}
li {
  padding: 10px clamp(0.5rem, 3vw, 1.875rem);
  color: #1a3636;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.tasks li .task-text {
  flex: 1;
  font-weight: bold;
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  color: #1a3636;
  min-width: 0;
  margin: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

li::before {
  content: "";
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  background-image: url(../images/circle-1.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  align-self: center;
}
li.checked .task-text {
  text-decoration: line-through;
  color: #40534c;
}
li.checked::before {
  background-image: url(../images/check.png);
}
li span {
  font-size: 18px;
  font-weight: bold;
  color: rgb(141, 9, 9);
  padding: 10px 12px 8px 12px;
  border-radius: 50%;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
li span:hover {
  background-color: #edeef0;
  cursor: pointer;
}
.task-wrapper {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.task-content {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  align-self: stretch;
}

.Btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  align-self: center;
}
.task {
  display: flex;
  align-items: center;
  justify-content: center;
}
