/* فونت از گوگل فونت ایمپورت می‌شود */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap");

:root {
  /* تعریف رنگ‌های اصلی برای استفاده در کل سند */
  --primary-color: #333;
  --second-color: #deddde;
  --text-color: #00fee9;
}

/* تنظیمات عمومی برای همه عناصر */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "IBM Plex Sans Arabic", "sans-serif";
}

body {
  /* تنظیم عرض صفحه و رنگ پس‌زمینه */
  width: 100vw;
  background-color: var(--second-color);
}

.todo-app {
  /* تنظیمات بخش اصلی اپلیکیشن */
  width: 500px;
  margin: 100px auto;
  background-color: var(--primary-color);
  padding: 20px 30px;
  border-radius: 15px;
}

.title {
  /* تنظیمات بخش عنوان */
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: start;
  gap: 15px;
  margin-bottom: 35px;
}

.todo-app .title h2 {
  /* تنظیم رنگ متن عنوان */
  color: var(--text-color);
}

.todo-app .title img {
  /* تنظیم اندازه تصویر عنوان */
  width: 40px;
}

.row {
  /* تنظیمات بخش ورودی */
  display: flex;
  align-items: center;
}

#input-box {
  /* تنظیمات فیلد ورودی متن */
  outline: none;
  min-height: 50px;
  width: 100%;
  padding: 0 1rem;
  font-size: 15px;
  font-weight: bold;
  border: 2px solid var(--text-color);
  border-radius: 0 6px 6px 0;
  background-color: transparent;
  color: #fff;
}

.btn {
  /* تنظیمات دکمه اضافه کردن */
  min-height: 50px;
  padding: 0.5em 1em;
  border: none;
  border-radius: 6px 0 0 6px;
  background-color: var(--text-color);
  color: var(--primary-color);
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

li {
  /* تنظیمات آیتم‌های فهرست */
  list-style: none;
  font-size: 18px;
  color: #fff;
  margin: 40px 40px 40px 0;
  user-select: none;
  cursor: pointer;
  position: relative;
}

li::before {
  /* تنظیمات آیکون دایره‌ای کنار هر آیتم فهرست */
  content: "";
  position: absolute;
  height: 48px;
  width: 48px;
  border-radius: 50%;
  background-image: url(./img/icons8-circle-96.png);
  background-size: cover;
  background-position: center;
  right: -50px;
  top: -10px;
}

.checked {
  /* تنظیمات آیتم‌های انجام‌شده */
  color: #03fc03;
  text-decoration: line-through;
}

.checked::before {
  /* تنظیمات آیکون تیک کنار آیتم‌های انجام‌شده */
  background-image: url(./img/icons8-checked-96.png);
}

span {
  /* تنظیمات آیکون حذف کنار هر آیتم فهرست */
  position: absolute;
  left: -10px;
  top: -20px;
  width: 40px;
  height: 40px;
  font-size: 50px;
  color: red;
}
