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

:root {
    --primary-color: #575371;
    --secondary-color: #9491a4;
    --text-color: #595858;
    --font-family: 'Poppins', sans-serif;
    --font-size: 2rem;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-family);
}

h1 {
    font-size: var(--font-size);
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}


a {
    color: var(--primary-color);
    text-decoration: none;
}


main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    width: 100%;

}

.container {
    width: 100%;
    max-width: 500px;
    margin: 4rem auto;
    padding: 1rem;
    border-radius: 2rem;
    height: 80%;


}

.container h1 {
    margin-bottom: 1rem;

}

.todo-list {
    width: 100%;
}

.todo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 0.5rem;
    background-color: #f5f4f4;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    width: 100%;
    padding: 0.75rem;
    cursor: pointer;
}



.delete-button {
    border: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    font-family: inherit;
    
}

.delete-button:hover {
    color: var(--secondary-color);

}

.input-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    box-shadow: 0px 0px 2px var(--secondary-color);
    border-radius: 0.5rem;
    margin: 10px 0 0;
}


.input-section>input {
    border: none;
    outline: none;
    font: inherit;
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
}

.input-section>button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease-in-out;
    font-family: inherit;


}

.input-section>button:hover {
    background-color: var(--secondary-color);

}


.todo-item input[type="checkbox"]:checked+.task-text {
    text-decoration: line-through;
    color: var(--secondary-color);
    font-weight: 600;

}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--text-color);
    font-size: 0.8rem;
    text-align: center;
}

@media (max-width: 600px) {
    .container {
        margin: 2rem auto;
        padding: 0.5rem;
    }

    .input-section {
        flex-direction: column;
        gap: 0.5rem;
    }

    .input-section>button {
        width: 100%;
    }
}