
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f0f4f7;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}
.input-section {
    display:flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#taskInput {
    width: 70%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#addBtn {
    padding: 10px 15px;
    border: none;
    background: #28a745;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

#addBtn:hover {
    background: #218838;
}
ul {
    list-style: none;
}

li {
    background:#f9f9f9;
    padding: 10px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
}

li.completed {
    text-decoration: line-through;
    background: #d4edda;
}

button.deleteBtn {
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

button.deletBtn:hover {
    background: darkred;
}