/* Organzied, Rewritten, and commented by Drew Lara  */
#tasklist {
  width: 99%;
  height: 99%;
  padding: 1%;
  display: flex;
  flex-direction: column;
  background-color: black;
  color: white;
}
  
#tasklist > #title {
  margin: 0;
}
  
#tasklist > #list {
  flex-grow: 1;
  overflow: hidden auto;  /* Responsible for showing scroll bar*/
  position: relative;
  justify-items: center;
  align-items: center;
}
  
#tasklist > #add-button {
  height: 30px;
  margin: 2%;
  flex-shrink: 0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: rgb(233,233,233);
}
  
#tasklist > #add-button:hover{
  background: rgb(175,175,175);
}
  
#tasklist > #add-button:active{
  background: rgb(75,75,75);
}

.task-entry {
  overflow: hidden;
  width: 96%;
  height: 25px;
  margin: 2%;
  display: flex;
  position: relative;
  gap: 2%;
}
  
.task-entry > .task-text:hover {
  opacity: 30%;
}

.task-entry:hover > button {
  opacity: 100%;
  background: rgb(255, 255, 255);
}
  
/* Styling of the titles for tasks */
.task-entry > input[type="text"] {
  flex-grow: 1;
  padding: 0; 
  font-size: inherit;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  background-color: rgb(0,0,0);
  color: rgb(255,255,255);
  border: none;
  border-bottom: 2px solid rgb(255,255,255);
  overflow: hidden;
  /* 
  Author Jason Boenjamin, Henry Tiet
  added transition */
  transition: text-decoration 
  0.3s ease;
  cursor:grab;
}
  
/* Styling of the remove button */
.task-entry > button {
  position: absolute;
  right: 0px;
  opacity: 0;
  border-radius: 100%;
  cursor: pointer;
}
  
/* Responsible for containing both the checkmark and checkbox */
.checkbox{
  display: block;
  justify-self: center;
  align-self: center;
  justify-content: center;
  align-content: center;
  position: relative;
  height: 50%;
  border: solid;
  aspect-ratio: 1 / 1 ;
  background-color: white;
}

/* Responsible for hiding and styling the ACTUAL checkbox */
.checkbox > input[type="checkbox"] {
  z-index: 1;
  cursor: pointer;
  position: absolute;
  opacity: 0%;
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0%;
  background-color: white;
}

/* Responsible for showing the checkmark when checked*/
.checkbox input[type="checkbox"]:checked ~ .checkmark {
  opacity: 100%;
}
  
/* Responsible for showing preview of checkmark */
.checkbox input[type="checkbox"]:hover ~ .checkmark {
  opacity: 50%;
}

/* Style the actual checkmark */
.checkmark {
  z-index: 0;
  margin: auto;
  width: 20%;
  height: 50%;
  border: solid black;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  opacity: 0;
}
  
.strikethrough {
  text-decoration: line-through;
   /*  
  Author : Jason Boenjamin, Henry Tiet
  added transition 
   */
  transition: text-decoration 1.3s ease;
}