body {
    background-color: azure;
    justify-items: center;
}

header {
    width: 50%;
    justify-items: center;
}

h1 {
    font-family: Arial, Helvetica, sans-serif;
}

section,
#inputs {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#campoItem,
input[type=number] {
    min-width: 12em;
    height: 3em;
    border-radius: 5px;
    border: solid 1px gray;
    margin-right: 2em;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#botaoItem {
    width: 3em;
    height: 3em;
    background-color: greenyellow;
    border: solid 1px rgb(148, 221, 38);
    border-radius: 4px;
}

#botaoItem:hover {
    background-color: rgb(114, 184, 9);
}

.espacoListaItens {
    margin-top: 1.5em;
    min-height: 10em;
    min-width: 39em;
    background-color: rgb(223, 233, 241);
}

.lista {
    padding: 1em;
}

li {
    list-style-type: none;
    margin-top: 4px;
}

label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: larger;
}

input[type="checkbox"] {
    transform: scale(1.4);
    cursor: pointer;
    margin: 0 1em;
}

button {
    cursor: pointer;
}

button:hover {
    transform: scale(1.1);
}

.excluir {
    background-color: rgb(201, 87, 87);
    height: 1.3em;
    width: 2em;
    border: 1px solid rgb(133, 16, 16);
}

.excluir:hover {
    background-color: rgb(180, 11, 11);
}

@media (max-width: 500px) {
    header {
        width: 30%;
    }

    #inputs {
        flex-direction: column;
    }

    #campoItem,
    input[type=number] {
        min-width: 20em;
        margin-top: 1em;
    }

    .espacoListaItens {
        min-width: 23em;
    }
}

@media (min-width: 501px) and (max-width: 800px) {
    header {
        width: 40%;
    }

    #campoItem {
        min-width: 30em;
    }

    .espacoListaItens {
        min-width: 30em;
    }
}