* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

input, button {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    outline: none;
}

input {
    background-color: #f9f9f9;
}

button {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

ul {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

li.completed {
    background-color: #e2f9e2;
}

li.completed p {
    text-decoration: line-through;
    color: #555;
}

li:hover {
    background-color: #f1f1f1;
}

p {
    flex: 1;
    font-size: 16px;
    color: #333;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-word;
}

button.done, button.edit, button.delete {
    background-color: transparent;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
    transition: color 0.3s ease;
    width: auto;
    min-width: 50px;
    text-align: center;
}

button.done:hover, button.edit:hover, button.delete:hover {
    color: #333;
}

footer {
    font-size: 0.9em;
    color: #333;
}

footer a {
    color: #4CAF50;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

