body, td, select, th { margin: 0; font-family: "Arial"; font-size: 16px; line-height: 22px; }
button.primary { background: #373; color: #fff; border: 0; }
table { border-collapse: collapse; width: 100%; }
table td, table th { border-top: 1px solid #aaa; padding: 8px; text-align: left; }
li, ul { margin:0; padding: 0; list-style: none; }
form select, form input, form button { margin-right: 6px; }
form button { margin: 0 6px; padding: 4px 12px; cursor: pointer; }
button { transition: 0.2s; }
a { color: #337ab7; text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: #667ab7; }

.login input, .login h4, .login button { 
  display: block;
  width: 100%;
  box-sizing: border-box;
}
.login input, .login button {
  padding: 6px;
}
.login button {
  margin: 24px 0;
}
.login {
  padding: 12px;
  max-width: 600px;
  background: #fff;
}
#app {
  min-height: 100vh;
  width: 100%;
  background: #aaa;
}

.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
}

#toast {
  position: fixed;
  bottom: 0px;
  padding: 24px;
  text-align: center;
  width: 100%;
  font-size: 24px;
  color: #fff;
  transition: 0.2s;
  margin: 0 auto;
  opacity: 0;
  box-sizing: border-box;
}
#toast.error { background: #700; }
#toast.active {
  transform: translate(0,0);
  opacity: 1;
}

.page {
  background: #fff;
  min-height: 100vh;
  margin: 0 auto;
  width: 100%;
}

.menu select, .listing-table select { border: 0; background: none; }
input, select, button { padding: 4px; font-size: 18px; font-family: "Arial"; border-radius: 2px; border: 1px solid #aaa; } 

.menu { 
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu > li {
  padding: 12px;
  border: 1px solid #aaa;
  display: flex;
  align-items: center;
  margin-left: -1px;
  flex-grow: 1;
}
.menu > li:has(.active) {
  background: #eee;
}
.contents { 
  padding: 12px;
  margin: 0 auto;
}

.image {
  text-align: center;
  position: relative;
  min-width: 128px;
}
.image img {
  max-width: 128px;
  width: 100%;
  min-height: 128px;
}

.restrict-height {
  max-height: 300px;
  overflow-y: auto;
}
.reviewer {
  margin-bottom: 4px;
  font-weight: bold;
}
    
.required-reading-star {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  font-size: 24px;
  color: #DA0;
  cursor: pointer;
  border: 0;
  background: none;
}
.required-reading-star.is-required-reading {
}
.required-reading-star:after {
  content: '☆';
}
.required-reading-star.is-required-reading:after {
  content: '★';
}

.editable-number, .number, .editable-integer {
  text-align: center;
}

.editable-textarea.editable, .editable-tags {
  cursor: pointer;
  min-width: 100px;
  min-height: 24px;
}

.editable-textarea.multi {
  word-break: break-word;
}
.editable-textarea button { width: 100%; }
.editable-textarea textarea {
  min-height: 128px;
  width: 100%;
  border: 1px solid #555;
}
.editable-textarea input { width: 100px; }

.reviewed { background-color: #EEF; }	
@media screen and (max-width: 767px) {
  .listing-table thead {
    display: none !important;
  }
  .listing-table tbody {
    tr {
      display: flex;
      flex-direction: column;
      td {
        display: block;
        border: 0;
      }
      .title, .author, .tags {
        text-align: center;
      }
      .highest-review, .lowest-review {
        display: none !important;
      }
    }
  }
}

.editable-tags ul, .editable-tags ul li, .tags ul, .tags ul li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.editable-tags ul li, .tags ul li {
  list-style: none;
  padding: 4px;
  margin: 2px;
  border-radius: 8px;
  border: 1px solid #CCC;
  display: inline-block;									
}

.listing-table td { vertical-align: top; border-left: 1px solid #DDD; }
.listing-table td.image { vertical-align: middle; }

.tag { cursor: pointer; }
.tag-dark-fantasy, .tag-grimdark { background-color: #333; color: #CCC; }
.tag-urban-fantasy { background-color: #AAA; }
.tag-ya { background-color: #7EF; }
.tag-epic-fantasy { background-color: #392; color: #FFF; }
.tag-comedy { background-color: #FFA; }
.tag-sci-fi { background-color: #00F; color: #FFF; }

button.primary:active { background: #555; }
button.loading { position: relative; background: #aaa; color: rgba(255, 255, 255, 0.0); }
button.loading > svg { position: absolute; top: calc(50% - 12px); left: calc(50% - 12px); right: 0; bottom: 0; }


