body {
  font-family: Arial;
  padding: 20px;

  background: #f4f5f7;
}

.container {
  /* background gradient was tested */
  background: #111;

  width: 600px;
  margin: 0 auto;
  padding: 20px 20px 40px;

  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

/* =======================
   Header
   ======================= */
.head-text {
  text-align: center;
  margin-bottom: 15px;

  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: white;
}

/* =======================
   Form Elements
   ======================= */
.form-elements {
  text-align: center;
  padding: 15px;
  /* background-color: aquamarine; */
  border-radius: 10px;
  margin-bottom: 20px;
}

#task {
  width: 300px;
  height: 40px;
  padding-left: 10px;
  margin-right: 20px;

  border-radius: 10px;
  border: 1px solid #2a2a2a;

  background: #1c1c1c;
  color: #fff;
}

#task::placeholder {
  color: #888;
}

#task:focus {
  outline: none;
  border-color: #2f80ed;
}

/* =======================
   Add Button
   ======================= */
.btn-add {
  height: 40px;
  padding: 10px 18px;

  border: none;
  border-radius: 10px;
  cursor: pointer;

  font-weight: bold;
  color: #fff;
  background: #2f80ed;

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-add:hover {
  background: #1f6fe0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* =======================
   Task List
   ======================= */
.to-do-list {
  width: 320px;
  margin: 0 auto;
  padding-left: 0;

  list-style: none;
}

.list-title {
  text-align: center;
  margin-bottom: 15px;

  font-size: 18px;
  font-weight: bold;
  color: #ccc;
}

.to-do-list li {
  position: relative;
  margin-bottom: 12px;
  padding: 10px 80px 10px 12px;

  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background: #161616;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

/* delete button based on .. absolute */
.to-do-list li input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
  transform: scale(1.1);
  /* vertical-align: middle; */
}

.to-do-list li span {
  color: white;
  font-weight: bold;
  /* vertical-align: middle; */
}

.to-do-list li:hover {
  background: #1e1e1e;
  transform: translateY(-2px);
}

/* (dashed line) ---> li.done to be dynamically , dine in js not in html*/
.to-do-list li.done span {
  text-decoration: line-through;
  text-decoration-style: dashed;
  opacity: 0.7;
}

/* =======================
   Delete Button
   ======================= */
.btn-delete {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  /* to handle button in middle of parent div 50% includd its heiht */

  background-color: transparent;
  border: none;
  cursor: pointer;

  font-weight: bold;
  color: red;
}

/* =======================
   Status Section
   ======================= */
.status {
  margin-top: 20px;
  text-align: center;
}

.status label {
  margin: 0 15px;

  font-size: 18px;
  font-weight: bold;
  color: white;
}
/* =======================
   Celebration Effect
   ======================= */
.celebration {
  margin-top: 15px;
  text-align: center;

  font-size: 18px;
  font-weight: bold;
  color: #27ae60;

  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s ease;
}

.celebration.show {
  opacity: 1;
  transform: scale(1);
}

/* container success glow */
.container.success {
  box-shadow: 0 0 30px rgba(39, 174, 96, 0.6);
  transition: box-shadow 0.4s ease;
}
