
* {  
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}   

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: rgb(106, 106, 106);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 60px 20px;
}

.container { /*Container-------------------------------------------------*/
    background-color: rgb(182, 181, 181);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(4, 4, 4, 0.251);   
}


h1 {
    font-size: 1.8em;
    color: rgb(0, 0, 0);
    margin-bottom: 30px;
    text-align: center;
}


.imput {   /*imput-------------------------------------------------*/
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid rgb(0, 0, 0);
    border-radius: 8px;
    font-size: 1em;
    outline: none;
    transition: bakground-color 0.3s;
}

input[type="text"]:focus {
    border-color: rgb(230, 43, 43);
}

button#addBtn {
    padding: 10px 15px;
    background-color: rgb(5, 27, 89);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

button#addBtn:hover {
    background-color: rgb(36, 47, 152);
}


ul#taskList {  /*liste de tâches-------------------------------------------------*/
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 1rem;
    color: rgb(16, 9, 9);
    border-left: 4px solid rgb(38, 46, 147);
    transition: opacity 0.6s;
}

li.done {
    text-decoration: line-through;
    color: rgb(130, 120, 120);
    border-left-color: rgb(168, 169, 172);
    opacity: 0.6;
}

.task-text {
    flex: 1;
    cursor: pointer;
}

.delete-btn {
    background: none;
    border: none;
    color: rgb(162, 161, 161);
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 10px;
    transition: color 0.3s;
}

.delete-btn:hover {
    color: rgb(255, 0, 0);
}


#emptyMsg {   /*message vide-------------------------------------------------*/
    font-size: 1.2em;
    color: rgb(125, 120, 120);
    text-align: center;
    margin-top: 20px;
}

.done {
    text-decoration: line-through;
}