@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --color001: #da6a2a;
    --color002: #fff;
    --color003: #1a1a1a;
    --color004: #8d8d8d;

    --font001: "Poppins", sans-serif;
}

* {
    font-family: var(--font001);
}

body {
    padding: 0;
    margin: 0;
    background-color: var(--color001);
    color: var(--color003);
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.list-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color002);
    width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0px 0px 15px #1a1a1a65;
}

.list-container h1 {
    font-size: 2rem;
    font-weight: 500;
}

/*Input Group*/

.input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    width: 60%;
}

.input-group input {
    padding: 10px;
    border: 1px solid var(--color004);
    border-radius: 5px;
    width: 70%;
}

.input-group input:focus {
    outline: none;
    border: 1px solid var(--color001);
}

.input-group button {
    cursor: pointer;
    background-color: var(--color001);
    border: none;
    border-radius: 5px;
    color: var(--color002);
    padding: 10px;
    width: 30%;
    transition: all .3s ease-in-out;
}

.input-group button:hover {
    background-color: var(--color002);
    color: var(--color001);
    box-shadow: inset 0px 0px 0px 1px var(--color001);
}

/*List Group*/

.filters {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color004);
    font-size: 1rem;
    font-weight: 300;
    margin: 1rem;
    width: 60%;
    gap: 1rem;
}

.filter-btn {
    cursor: pointer;
    transition: all .3s ease-in-out;
}

.filter-btn.active {
    color: var(--color001);
}

.task-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 1rem;
}

.task {
    display: flex;
    align-items: center;
}

.task-checkbox {
    position: relative;
    cursor: pointer;
    appearance: none;
    min-width: 25px;
    height: 25px;
    border: 1px solid var(--color004);
    border-radius: 50%;
    outline: none;
    margin: 0;
    margin-right: 10px;
    transition: all .3s ease-in-out;
}

.task-checkbox:checked {
    border: 1px solid var(--color001);
    background-color: var(--color001);
}

.task-checkbox:checked::after {
    content: "";
    background-image: url(images/check.png);
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;

    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7456%) hue-rotate(51deg) brightness(107%) contrast(93%);

}

.delete-task {
    cursor: pointer;
}

hr {
    border: none;
    background-color: var(--color004);
    width: 60%;
    height: 1px;
    margin-top: 0;
}

/*Footer*/

.footer {
    width: 60%;
    display: flex;
    justify-content: space-between;
    color: var(--color004);
    font-weight: 300;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer button {
    cursor: pointer;
    border: none;
    background-color: var(--color002);
    color: var(--color004);
    font-size: 1rem;
    font-weight: 300;
    margin: 0;
    padding: 0;
    transition: all .3s ease-in-out;
}

.footer button:hover {
    color: var(--color003);
}

@media (max-width: 800px) {
    .list-container {
        width: 80%;
    }
}