:root{
  --dark: #374151;
  --darker:#1F2937;
  --darkest :#111827;
  --gray:#6B7280;
  --light : #EEE;
  --pink : #CE4899;
  --purple: #8B5CF6;
}

*{
  box-sizing: border-box;
  margin: 0;
  font-family: 'Fira Sans ' ,'sans serif';
}
body{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--dark);
  color: #FFF;
}

header {
  padding: 2rem 1rem;
  max-width: 800px;
  width: 100%;
  margin:  0 auto;
}

header h1{
  font-size: 2rem;
  font-weight: 300;
  color: var(--gray);
  margin-bottom: 1rem;
}

#newTaskForm {
  display: flex;
}

input,button { /*to unstyle default values */
  appearance: none;
  border: none;
  background: none;
  outline: none;
}


#newTaskInput {
  flex: 1 1 0%;
  background-color: var(--darker);
  padding: 1rem;
  border-radius: 1rem;
  font-size: 1.25rem;
  color: white;
}

#newTaskInput::placeholder {
  color : var(--gray);
}

#newTaskSubmit{
  
  color: var(--pink);
  font-size: 1.25rem;
  font-weight: 700;
  background-image: linear-gradient(to right, var(--pink) ,var(--purple));
  
  -webkit-background-clip: text;
  -webkit-text-fill-color : transparent;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: 0.4s ;
}
#newTaskSubmit:hover {
  opacity: 0.8;
}

#newTaskSubmit:active {
  opacity: 0.6;
}


main{
  flex: 1 1 0%;
  padding: 2rem 1rem;
  max-width: 800px;
  width: 100%;
  margin:  0 auto;
}
.taskList {
  
}

.taskList h2 {
  
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gray);
  margin-bottom: 1rem;
}

.task {
  display: flex;
  justify-content: space-between;
  background-color: var(--darkest);
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
}
.task .text {
  color: var(--light);
  font-size: 1.125rem;
  width: 100%;
  display: block;
  transition: 0.4s;
  
}

.task .content .text:not(:read-only){
  color: var(--pink);
}

.task .actions {
  display: flex;
  margin: 0 0;
}

.task .actions button {
  cursor: pointer;
  margin: 0 0.5rem;
  font-size: 1.125rem;
  font-weight:700;
  text-transform: uppercase;
  transition: 0.4s;
  color: var(--pink);
}

.task .actions button:hover {
  opacity: 0.8;
}
.task .actions button:active{
  opacity: 0.6;
}
.task .actions .edit{
  background-image: linear-gradient(to right, var(--pink), var(--purple));

-webkit-background-clip: text;
-webkit-text-fill-color : transparent;
}

.task .actions .delete{
 color: crimson;
}
