body {
  padding: 0.25rem;
  min-width: 320px;
  max-width: 500px;
  margin: auto;
  font-family: 'Ubuntu', Arial, sans-serif;
  font-size: 1rem;
}

.container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}

.heading {
  grid-column: 1;
  grid-row: 1;
  text-align: center;
  background: #00f;
  color: white;
  height: 2rem;
  padding-top: 0.5rem;
}

.alternating_row {
  display: grid;
  grid-template-columns: 2fr repeat(3, 3rem);
  grid-template-rows: auto;
  grid-gap: 0.25rem;
  padding: 0.125rem;
}

.alternating_row:nth-of-type(odd) {
  background: #eee;
}

.item, .name, .count, .btn, .increment, .undo {
  padding: 0.25rem;
  text-align: center;
}

.name {
  text-align: left;
}

.btn, .increment, .undo {
  background: #00f;
  color: white;
  border-radius: 0.5rem;
  cursor: pointer;
}

.btn:hover, .increment:hover, .undo:hover {
    background: #44f;
}

.btn[disabled], .increment[disabled], .undo[disabled] {
  background: #ccc;
  cursor: not-allowed;
}
