/* Include padding & border in the element's total width/height */
* {
  box-sizing: border-box;
}

/* Remove default spacing from the list */
ul {
  margin: 0;
  padding: 0;
}

/* Base style for each task item */
ul li {
  cursor: pointer;            /* show it's clickable */
  position: relative;         /* needed for absolute-positioned elements inside */
  padding: 12px 8px 12px 40px;/* left padding leaves space for the checkmark */
  background: #eee;
  font-size: 18px;
  transition: 0.2s;           /* smooth hover/background changes */
  list-style-type: none;      /* remove default bullet */

  /* prevent text selection when clicking */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Zebra effect: every odd item has a slightly different background */
ul li:nth-child(odd) {
  background: #f9f9f9;
}

/* Hover effect on items */
ul li:hover {
  background: #ddd;
}

/* When an item is completed (JS toggles .checked) */
ul li.checked {
  background: #276678;
  color: #fff;
  text-decoration: line-through; /* strike-through text */
}

/* Draw the checkmark using a pseudo-element */
ul li.checked::before {
  content: "";
  position: absolute;
  border-color: #fff;
  border-style: solid;
  border-width: 0 2px 2px 0;  /* creates the "tick" shape */
  top: 10px;
  left: 16px;
  transform: rotate(45deg);   /* rotate to look like a checkmark */
  height: 15px;
  width: 7px;
}

/* Delete button (×) placed inside each <li> */
.close {
  position: absolute;
  right: 0;
  top: 0;
  padding: 12px 16px 12px 16px; /* clickable area */
}

/* Hover effect for delete button */
.close:hover {
  background-color: #f78501;
  color: white;
}

/* Header area (title + input + add button) */
.header {
  background-color: #f78501;
  padding: 30px 40px;
  color: white;
  text-align: center;
}

/* White background behind the logo */
img {
  background-color: white;
}

/* Clear floats used by input/button layout */
.header:after {
  content: "";
  display: table;
  clear: both;
}

/* Task input field */
input {
  margin: 0;
  border: none;
  border-radius: 0;
  width: 75%;
  padding: 10px;
  float: left;       /* place next to the add button */
  font-size: 16px;
}

/* "Add" button (styled as a block next to the input) */
.button {
  padding: 10px;
  width: 25%;
  background: #d9d9d9;
  color: #555;
  float: left;        /* sits next to the input */
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 0;
}

/* Hover effect for the add button */
.button:hover {
  background-color: #bbb;
}

