/* Kindle e-ink style: black on white, serif, no gradients/animations/shadows */

* {
  box-sizing: border-box;
}

body {
  color: #000;
  background: #fff;
  font-family: Georgia, "Times New Roman", "Noto Serif CJK SC", serif;
  font-size: 20px;
  line-height: 1.5;
  margin: 0 auto;
  padding: 16px;
}

.container {
  max-width: 760px;
  margin: 0 auto;
}

h1 {
  font-size: 28px;
  margin: 16px 0 12px;
}

h2 {
  font-size: 24px;
  margin: 16px 0 8px;
}

a {
  color: #000;
}

hr {
  border: 0;
  border-top: 1px solid #000;
  margin: 16px 0;
}

.meta {
  font-size: 16px;
  color: #333;
}

.footer-links,
.filter-row,
.pagination {
  font-size: 18px;
}

a.active {
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid #000;
}

/* Buttons: big tap targets for e-ink touch */
.btn {
  display: inline-block;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 22px;
  font-family: inherit;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary {
  background: #000;
  color: #fff;
}

.btn-small {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 16px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Forms */
input[type="text"],
input[type="password"] {
  font-size: 20px;
  font-family: inherit;
  padding: 10px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  max-width: 100%;
}

.search-form input[type="text"] {
  width: 60%;
}

.login-form input[type="password"] {
  width: 100%;
  margin-bottom: 12px;
}

select {
  font-size: 18px;
  font-family: inherit;
  padding: 6px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
}

.inline-form {
  display: inline-block;
  margin: 0 8px 8px 0;
}

.edit-form input[type="text"] {
  font-size: 16px;
  padding: 6px;
  margin-right: 4px;
}

/* The logout button inside the footer should look like a plain link */
.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Lists */
ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.recent-list li {
  margin: 10px 0;
}

.book-item {
  margin-bottom: 8px;
}

.book-title {
  font-size: 22px;
  margin: 0 0 4px;
}

/* Badges */
.badge {
  display: inline-block;
  border: 1px solid #000;
  font-size: 14px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.notice,
.error {
  border: 1px solid #000;
  padding: 8px 12px;
}
