@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Poppins:wght@200;400;500&display=swap');

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

body {
    font-family: "Poppins", sans-serif;
    background-color: #f6f9f8;
    color: #4a5568;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.hero-landing {
    text-align: center;
    font-weight: 200;
    padding: 4rem 0 2rem;
}

.hero-landing h1 {
    font-family: "Dancing Script", cursive;
    font-size: 3.5rem;
    color: #5E8B7E;
}

.hero-landing h2 {
    font-size: 1.1rem;
    color: #718096;
}

/* To-Do List */
.container {
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
}

#task-input {
    padding: 8px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    width: 70%;
}

#add-btn {
    padding: 8px 16px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #5E8B7E;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 8px;
}

#task-list {
    list-style: none;
    max-height: 295px;
    overflow-y: auto;
    padding-right: 5px;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f4f8;
    transition: 0.3s;
}

.task-item:last-child {
    border: none;
}

.completed {
    opacity: 0.6;
}

.completed .task-text {
    text-decoration: line-through;
    color: #a0aec0;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.task-text {
    flex: 1;
    word-break: break-word;
    transition: 0.3s;
}

.delete-btn {
    background: none;
    border: none;
    color: #cbd5e0;
    cursor: pointer;
    padding: 5px;
    transition: 0.2s;
}

.delete-btn:hover {
    color: #fc8181;
}