:root{
    --dark : #3C2A21;
    --darker:#1A120B;
    --darkest:#1b1a1a;
    --light:#D5CEA3;
    --pink:#A78295;
    --purple:#AED8CC;
    --gray:#EAB2A0;
}
*{
    box-sizing: border-box;
    margin:0;
    font-family: 'Fira sans' , sans-serif;
}
body{
    display:flex;
    flex-direction: column;
    min-height:100vh;
    background-color: var(--dark);
    color:#fff;
}
header{
    padding:2rem 1rem;
    max-width:800px;
    width:100%;
    margin:0 auto;
}
header h1{
    font-size:2.5rem;
    font-weight:300;
    color:var(--gray);
    margin-bottom:1rem;
}
#new-task-form{
    display:flex;
}
input,button{
    appearance:none;
    border:none;
    outline:none;
    background:none;
}
#new-task-input{
    flex:1 1 0%;
    background-color: var(--darker);
    padding:1rem;
    border-radius:1rem;
    margin-right:1rem;
    color:var(--light);
    font-size:1.25rem;
}
#new-task-input::placeholder{
    color:var(--gray);
}
.new-task-submit{
    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;
    cursor:pointer;
    transition:0.4s;
}
.new-task-submit:hover{
    opacity: 0.8;
}
.new-task-submit:active{
    opacity:0.6;
}
main{
    flex: 1 1 0%;
    padding: 2rem 1rem;
    max-width:800px;
    width:100%;
    margin: 0 auto;
}
.task-list{
    padding:1rem;
}
.task-list h2{
    font-size:1.5rem;
    font-weight:300;
    color:var(--gray);
    margin-bottom:1rem;
}
#tasks .task{
    display:flex;
    justify-content: space-between;
    background-color: var(--darkest);
    padding:1rem;
    border-radius: 1rem;
    margin-bottom:1rem;
}
#tasks .task .content{
    flex:1 1 0%;
}
#tasks .task .content .text{
    color:var(--gray);
    font-size:1.125rem;
    width:100%;
    display:block;
    transition: 0.4s;
}
#tasks .task .content .text:not(:read-only){
    color:var(--light);
}
#tasks .task .actions {
    display: flex;
    justify-content: space-between;
    margin:0 -0.5rem;
}
#tasks .actions button{
    cursor: pointer;
    margin:0 0.5rem;
    transition: 0.4s;
    font-size:1.125rem;
    text-transform: uppercase;
    font-weight:700;
}
#tasks .actions button:hover{
    opacity: 0.8;
}
#tasks .actions button:active{
    opacity:0.6;
}
#tasks .actions .edit{
    background-image: linear-gradient(to right , var(--pink) , var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
#tasks .actions .delete{
    color:#974EC3;
}


