:root {
    --primary-background-color: #F8F9FA;
    --text-color: #343A40;
    --accent-color: #20C997;
    --secondary--accent-color: #f1f1f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
    font-family: 'DM Sans', sans-serif;
    color: var(--text-color);
}

body {
    background-color: var(--primary-background-color);
}

.wrapper {
    display: grid;
    place-items: center;
    height: 100vh;
    width: 100%;
}

h1 {
    font-size: 2.5rem;
}

input {
    padding: 15px 10px;
    border: 1px solid var(--secondary--accent-color);
    border-radius: 12px;
}

input[type="checkbox"] {
    width: 25px;
    height: 25px;
    accent-color: var(--accent-color);
}

button {
    color: white;
    padding: 15px;
    border: 1px solid var(--secondary--accent-color);
    border-radius: 12px;
    background-color: var(--accent-color);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}


#task-list {
    width: 100%;
}

.task {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary--accent-color);
    padding: 10px 10px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.task-due-date {
    margin-left: 10px;
}

/* CSS to visually mark the task as complete */
.task.completed .task-name, 
.task.completed .task-due-date {
    /* Apply strikethrough text decoration */
    text-decoration: line-through;
    
    /* Optional: Make the text faded */
    opacity: 0.6;
}