/*
  Site-specific CSS customisation
*/

.project-checklist[aria-expanded=false] .list-expanded {
  display: none;
}

.project-checklist[aria-expanded=true] .list-collapsed {
  display: none;
}

/* Remove margins and padding from the list */
ul.checklist {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* Set all odd list items to a different color (zebra-stripes) */
ul.checklist li:nth-child(odd) {
  background: #f9f9f9;
}

/* Style the list items */
ul.checklist li {
  cursor: pointer;
  position: relative;
  padding: 12px 8px 12px 40px;
  background: #eee;
  font-size: 18px;
  transition: 0.2s;

  /* make the list items unselectable */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Darker background-color on hover */
ul.checklist li:hover {
  background: #ddd;
}

/* When clicked on, add a background color and strike out text */
ul.checklist li.checked {
  background: #888;
  color: #fff;
  text-decoration: line-through;
}

/* Add a "checked" mark when clicked on */
ul.checklist li.checked::before {
  content: '';
  position: absolute;
  border-color: #fff;
  border-style: solid;
  border-width: 0 2px 2px 0;
  top: 10px;
  left: 16px;
  transform: rotate(45deg);
  height: 15px;
  width: 7px;
}
