:root, *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    --background-color: #dddddd;
    --primary-color: #ff5845;
}

body {
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--background-color);
    font-size: 16px;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;

}

button {
    padding: 5px;
    background-color: var(--primary-color);
    border: 0px none;
    border-radius: 10px;
    height: 40px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #e04b3f;

}

input {
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 10px;
    height: 40px;
    margin-bottom: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;

}

input:focus {
    border-color: var(--primary-color);
}

input[type="checkbox"] {
  accent-color: var(--primary-color);
}


/* To Do App Styling */

#app {
    border-radius: 10px;
    min-width: 400px;
    max-width: 90vw;
    background-color: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 80vh;
    overflow-y: auto;
}

/* List Styles */

#task-list {
    margin-top: 20px;
    list-style-type: disc;
    list-style-position: inside;
    padding-left: 10px;
    max-height: 300px;
    overflow-y: auto;
}

#task-list li {
    display: flex;
    align-items: center;

    margin-bottom: 10px;
    font-size: 18px;
    word-break: break-word;
    padding: 10px;
    border-bottom: 1px solid #eeeeee;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    user-select: none;
}

#task-list li .task-text {
    flex: 1;
    cursor: pointer;
}

/* Delete Button */

.delete-task {
    margin-left: 10px;
    background-color: #cc0000;
    min-width: 30px;
    height: 30px;
    font-size: 14px;
    padding: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-task:hover {
    background-color: #990000;
}

/* Item isChecked? */

.task-checkbox {
    margin: 4px 10px 0 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

#task-list li.checked {
    color: grey;
    text-decoration: line-through;
}