html, body {
	position: relative;
	width: 100%;
	height: 100%;
}

body {
	margin: 0;
	padding: 8px;
  font-size: 18px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body,
input,
button,
button:hover {
	color: #777;
}

a {
	color: rgb(0,100,200);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a:visited {
	color: rgb(0,80,160);
}

label {
	display: block;
}

input, button, select, textarea {
	font-family: inherit;
	font-size: inherit;
	padding: 0.4em;
	margin: 0 0 0.5em 0;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 2px;
}

input:disabled {
	color: #ccc;
}

input:focus {
	outline: none;
	background-color: #eee;
}

input[type="range"] {
	height: 0;
}

button {
	/*color: #333;*/
	background-color: #f4f4f4;
	outline: none;
  border-width: 0;
}

button:disabled {
	color: #999;
}

button:not(:disabled):active {
	background-color: #ddd;
}

button:focus {
	border-color: #666;
}

main {
  text-align: center;
  padding: 1em;
  max-width: 282px;
  margin: 0 auto;
}

h1 {
  color: #ff3e00;
  text-transform: uppercase;
  font-size: 4em;
  font-weight: 100;
}

hr {
  border: solid 2px #bbb;
  border-top-width: 0;
}

.list {
  text-align: left;
}

ul {
  padding-left: 0;
  list-style: none;
}

li {
  width: 100%;
  margin: 10px 0;
  padding: 4px 8px;
  background-color: #eee;
  border: 2px solid #e6e6e6;
  border-radius: 3px;
  box-sizing: border-box;
}

li input[type="checkbox"] {
  display: inline-block;
  border-width: 0;
  width: 18px;
  margin: 0;
  outline: 0;
}

li span,
li input[type="text"] {
  display: inline-block;
  width: calc(100% - 37px);
  margin: 0;
  padding: 4px 4px;
  cursor: pointer;
  min-height: 12px;
  border-width: 0;
}
li.done span {
  text-decoration: line-through;
}
li input[type="text"].todo {
  cursor: auto;
  width: 100%;
  background-color: #fff;
}

@media (min-width: 640px) {
  main {
    /*max-width: none;*/
  }
}
