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

body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    height: 100vh;
}

.container {
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

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

.input-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

#input_text {
    width: 80%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border 0.3s;
}

#input_text:focus {
    border-color: #6c5ce7;
}

.addtask {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #6c5ce7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.addtask:hover {
    background-color: #4e39c5;
}

.tasks {
    margin-top: 30px;
}

.lists {
    list-style: none;
    padding: 0;
}

.main-li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s;
}

.main-li:hover {
    transform: translateX(5px);
}

.task-list {
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-grow: 1;
}

.task-list span {
    font-size: 26px;
    color: #333;
    margin-left: 10px; 
}

.task-list span.date {
    font-size: 10px;
    color: #888;
    margin-left: 10px;  
}

.left{
    display: flex;
}

.done {
    text-decoration: line-through;
    color: #28a745; 
    background-color: rgb(144, 244, 144);
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

input[type="checkbox"]:checked {
    background-color: #28a745;  
}

input[type="checkbox"]:hover {
    transform: scale(1.2);
}

button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s;
}

button:hover {
    transform: scale(1.2);
}

button i {
    color: #e74c3c;
    font-size: 18px;
}
