html, body {
    margin: 0;
    padding: 0;
}


body {
    font: 14px 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f5f5f5;
    color: #4d4d4d;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.title {
    font-size: 7.14rem;
    font-weight: 100;
    color: rgba(175, 47, 47, 0.15);
}

#todo-form {
    display: flex;
    width: 30rem;
    height: 4rem;
    border-width: 0;
    box-shadow: 0 3px 9px 3px #cdcaca;
}

.todo-form__sort-button-container {
    display: flex;
    flex-direction: column;
    width: 5rem;
    gap: 0.2rem;
}

.todo-form__sort-by-done {
    border-width: 0;
    height: 2rem;
    font-weight: bold;
    background: #c57c7c;
    color: #ffffff;
    cursor: pointer;
}

.todo-form__sort-by-done:hover {
    background-color: #f64848
}

.todo-form__sort-by-name {
    border-width: 0;
    height: 2rem;
    font-weight: bold;
    background: #c57c7c;
    color: #ffffff;
    cursor: pointer;
}

.todo-form__sort-by-name:hover {
    background-color: #f64848
}

.todo-form__input {
    flex: 1 1 auto;
    border-width: 0;
    font-size: 1.3rem;
}

.todo-form__input:focus {
    outline: none;
}

.todo-form__input::placeholder {
    color: #b6adad;
}

.ordered-todo-list {
    padding-left: 0;
    list-style: none;
    width: 30rem;
    font-size: 1.3rem;
}

.todo-counter {
    list-style: none;
    height: 2rem;
    width: 28rem;
    box-shadow: 0 3px 9px 3px #cdcaca;
    background: white;
    font-size: medium;
    padding: 1rem 0 0 2rem;
    color: #b6adad;
    font-weight: bold;
}

.hidden {
    display: none;
}

.done-counter {
    list-style: none;
    height: 2rem;
    width: 28rem;
    box-shadow: 0 3px 9px 3px #cdcaca;
    background: white;
    font-size: medium;
    padding: 1rem 0 0 2rem;
    color: #b6adad;
    font-weight: bold;

}

.list-item {
    display: flex;
    align-items: center;
    height: 4rem;
    box-shadow: 0 3px 9px 3px #cdcaca;
    background: white;
    font-size: 1.3rem;
}


.list-item__done-toggle {
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    border: 1px solid #dddddd;
    appearance: none;
    cursor: pointer;
    margin: 0 0.3rem;
    flex: 0 0 auto;
}

.list-item__done-toggle:checked {
    background-color: #b3cbb2;
}

.list-item__done-toggle:checked + .list-item__content {
    text-decoration: line-through;
    color: #b6adad;
}

.list-item__content {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item__delete {
    width: 3rem;
    background: white;
    color: #bdbcbc;
    border-width: 0;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

.info {
    margin-top: 6rem;
}

.invisible{
    display: none;
}

@media screen and (max-width: 37.5rem) {

    #todo-form {
        width: 12rem;
        height: 4rem;
        font-size: 2rem;
        margin-right: 8rem;
        box-shadow: none;
    }

    .todo-form__sort-button-container {
        width: 4rem;
        background-color: white;
        box-shadow: 0 3px 9px 3px #cdcaca;

    }

    .todo-form__sort-by-name {
        height: 2rem;
        font-size: 0.7rem;
        box-shadow: 0 3px 9px 3px #cdcaca;
    }

    .todo-form__sort-by-done {
        height: 2rem;
        font-size: 0.7rem;
        box-shadow: 0 3px 9px 3px #cdcaca;
    }

    .ordered-todo-list {
        width: 20rem;
        font-size: 1.5rem;

    }

    .list-item {
        width: 20rem;
        height: 4rem;
        font-size: 1.5rem;
    }

    .todo-counter {
        width:18rem;
        font-size: 1rem;
        height: 2rem;
    }

    .done-counter {
        width: 18rem;
        height: 2rem;
        font-size: 1rem;
    }

    .list-item__done-toggle {
        width: 1.3rem;
        height: 1.3rem;
    }
    .todo-form__input{
        box-shadow: 0 3px 9px 3px #cdcaca;
    }

    .title{
        font-size: 3rem;
    }

}
