html {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    font-size: 10px;
    font-family: sans-serif;
}

body {
    width: 100%;
    height: 100%;
    background: linear-gradient(#41e5d9, #4d8fe2);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    font-size: 3.2rem;
    margin: 0 0 1.6rem;
}

main {
    width: 100%;
    max-width: 40rem;
    background: #fff;
    border-radius: 0.8rem;
    padding: 3.2rem 2.4rem;
}

.todo-list-section {
    margin: 0.8rem 0 1.6rem;
    min-height: 5rem;

    & > ul {
        padding-inline-start: 0rem;
        height: 23rem;
        overflow: auto;
    }

    & > ul > li {
        list-style-type: none;
        padding: 0.8rem;
        font-size: 1.6rem;
        background-color: #efefef;
        display: flex;
        justify-content: space-between;
        position: relative;
        margin-bottom: 0.8rem;
    }

    & > ul > li:last-child {
        margin-bottom: 0;
    }

    & > ul > li > button {
        width: 2.4rem;
        height: 2.4rem;
        background-color: #e64c3c;
        color: #fff;
        border: none;
        border-radius: 0.4rem;
        cursor: pointer;

        &:hover {
            background: #da5c3e;
        }
    }
}

.checkbox-label-container {
    display: flex;
    align-items: center;
    justify-content: center;

    & > label {
        cursor: pointer;
    }

    & > input {
        margin-right: 0.8rem;
        cursor: pointer;
    }
}

#create-todo-section {
    width: 100%;
}

#create-todo-form {
    font-size: 1.6rem;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.input-description {
    height: 3.2rem;
    width: 100%;
    font-size: 1.6rem;
    border-radius: 0.4rem;
    margin-right: 0.4rem;
    outline: 0;
    border: 1px solid #646464;
    padding-left: 0.8rem;

    &:focus {
        border: 1px solid #5eb7f6;
    }
}

.add-task-btn {
    box-sizing: border-box;
    height: 3.6rem;
    width: 3.6rem;
    color: #fff;
    background: #8f49e7;
    border: none;
    border-radius: 0.4rem;
    font-size: 2.4rem;
    cursor: pointer;

    &:hover {
        opacity: 0.8;
    }
}

.add-task-btn:disabled {
    background-color: #d9d9d9;
    cursor: not-allowed;
}

.remove-done-tasks-btn {
    box-sizing: border-box;
    height: 3.6rem;
    color: #fff;
    background: #8f49e7;
    border: none;
    border-radius: .4rem;
    cursor: pointer;
    padding: 0 1.6rem;

    &:hover {
        opacity: 0.8;
    }
}


footer {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}