/* Geral */
*{
    padding: 0;
    margin: 0;
    font-family: Helvetica, Arial, sans-serif;
    color: #f5f5f5;
    box-sizing: border-box;
}

body{
    background: linear-gradient(to right, #101d26, #1c3544, #284c5e);
    margin-top: 5rem;
}

button{
    padding: .3rem .6rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
}

button i{
    color: #136994;
    font-weight: bold;
    pointer-events: none;
}

input, select{
    padding: 0.25rem 0.5rem;
}

.hide{
    display: none;
}

.form-control input:focus {
    outline: none;
}

/* TODO HEADER */
.todo-container{
    max-width: 500px;
    margin: 3rem auto;
    background-color: #1c1c1c;
    padding: 1.5rem;
    border-radius: 15px;
}
.todo-container header{
    padding: 0 1rem 1rem;
}

/* TODO FORM */
#todo-form, #edit-form{
    position: relative;
    padding: 1rem;
}

#todo-form p,
#edit-form p{
    margin-bottom: .5rem;
    font-weight: bold;
}

.form-control{
    display: flex;
    position: relative;
}

.form-control input{
    flex: 1;
    height: 45px;
    border-radius: 30px;
    background-color: #333;
    border: none;
    padding-left: 20px;
    padding-right: 120px;
}

#addButton{
    background-color: #2d6785;
    color: #ffffff;
    height: 45px;
    width: 110px;
    border: none;
    border-radius: 40px;
    position: absolute;
    right: 0;
}

#addButton:hover{
    background-color: #1b4a61;
}

#cancel-edit-btn{ 
    margin-top: 1rem;
}

/* TODO LIST */
.todo{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
    transition: .3s;
}

.todo h3{
    margin-left: 0.4rem;
    flex: 1;
    font-size: 0.9rem;
}

.todo button{
    margin-left: 0.4rem;
}

/* Quando concluído */
.done .finish-todo{
    background-color: #f12e0b;
    border: none;
    cursor: pointer;
}

.done .finish-todo:hover{
    background-color: #b92005; 
}

.done h3{
    text-decoration: line-through;
    font-style: italic;
}

/* Botões */

.finish-todo{
    background-color: #1c1c1c;
    width: 25px;
    height: 25px;
    border-radius: 50px;
    border: 2px solid #ccc;
    cursor: pointer;
    transition: .3s;
}

.finish-todo i{
    color: #1c1c1c;
}

.finish-todo:hover{
    background-color: #ccc;
}

.edit-todo, .remove-todo{
    background-color: #fdfdfd00;
    width: 30px;
    height: 30px;
    color: #102f5e;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: .3s;
}

.edit-todo:hover, .remove-todo:hover{
    background-color: #52525250;
}

/* CancelEdit Btn */
#cancel-edit-btn{
    background-color: #1c1c1c;
    border-radius: 20px;
    border: 1px solid #e4e4e4;
    margin-top: 20px;
    cursor: pointer;
    transition: .3s;
}

#cancel-edit-btn:hover{
    background-color: #e7e7e727;
}

/* Botão de editar */
#edit-btn{
    position: absolute;
    right: 0;
    height: 45px;
    width: 100px;
    border-radius: 40px;
    background-color: #f12e0b;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: .3s;
}

#edit-btn:hover{
    background-color: #b92005;
}
