/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
/**
 * 1. Change the default font family in all browsers (opinionated).
 * 2. Correct the line height in all browsers.
 * 3. Prevent adjustments of font size after orientation changes in
 *    IE on Windows Phone and in iOS.
 */
/* Document
   ========================================================================== */
html {
  font-family: sans-serif;
  /* 1 */
  line-height: 1.15;
  /* 2 */
  -ms-text-size-adjust: 100%;
  /* 3 */
  -webkit-text-size-adjust: 100%;
  /* 3 */ }

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers (opinionated).
 */
body {
  margin: 0; }

/**
 * Add the correct display in IE 9-.
 */
article,
aside,
footer,
header,
nav,
section {
  display: block; }

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0; }

/* Grouping content
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 * 1. Add the correct display in IE.
 */
figcaption,
figure,
main {
  /* 1 */
  display: block; }

/**
 * Add the correct margin in IE 8.
 */
figure {
  margin: 1em 40px; }

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */ }

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */ }

/* Text-level semantics
   ========================================================================== */
/**
 * 1. Remove the gray background on active links in IE 10.
 * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
 */
a {
  background-color: transparent;
  /* 1 */
  -webkit-text-decoration-skip: objects;
  /* 2 */ }

/**
 * Remove the outline on focused links when they are also active or hovered
 * in all browsers (opinionated).
 */
a:active,
a:hover {
  outline-width: 0; }

/**
 * 1. Remove the bottom border in Firefox 39-.
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */ }

/**
 * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
 */
b,
strong {
  font-weight: inherit; }

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder; }

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */ }

/**
 * Add the correct font style in Android 4.3-.
 */
dfn {
  font-style: italic; }

/**
 * Add the correct background and color in IE 9-.
 */
mark {
  background-color: #ff0;
  color: #000; }

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%; }

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline; }

sub {
  bottom: -0.25em; }

sup {
  top: -0.5em; }

/* Embedded content
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 */
audio,
video {
  display: inline-block; }

/**
 * Add the correct display in iOS 4-7.
 */
audio:not([controls]) {
  display: none;
  height: 0; }

/**
 * Remove the border on images inside links in IE 10-.
 */
img {
  border-style: none; }

/**
 * Hide the overflow in IE.
 */
svg:not(:root) {
  overflow: hidden; }

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers (opinionated).
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: sans-serif;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */ }

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  /* 1 */
  overflow: visible; }

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none; }

/**
 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
 *    controls in Android 4.
 * 2. Correct the inability to style clickable types in iOS and Safari.
 */
button,
html [type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  /* 2 */ }

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0; }

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText; }

/**
 * Change the border, margin, and padding in all browsers (opinionated).
 */
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em; }

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */ }

/**
 * 1. Add the correct display in IE 9-.
 * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  display: inline-block;
  /* 1 */
  vertical-align: baseline;
  /* 2 */ }

/**
 * Remove the default vertical scrollbar in IE.
 */
textarea {
  overflow: auto; }

/**
 * 1. Add the correct box sizing in IE 10-.
 * 2. Remove the padding in IE 10-.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */ }

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto; }

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */ }

/**
 * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none; }

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */ }

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in IE 9-.
 * 1. Add the correct display in Edge, IE, and Firefox.
 */
details,
menu {
  display: block; }

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item; }

/* Scripting
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 */
canvas {
  display: inline-block; }

/**
 * Add the correct display in IE.
 */
template {
  display: none; }

/* Hidden
   ========================================================================== */
/**
 * Add the correct display in IE 10-.
 */
[hidden] {
  display: none; }

table {
  border-spacing: 0;
  border: 1px solid #4a4a55; }
  table tr:hover {
    background-color: #34349d; }
  table thead {
    position: sticky;
    top: 0; }
    table thead tr {
      background-color: #4040bf; }
    table thead th.sorted.asc:after {
      content: " \25B4"; }
    table thead th.sorted.desc:after {
      content: " \25BE"; }
    table thead th.spread {
      text-align: center;
      border-bottom: 1px dashed #4a4a55; }
  table th {
    color: #a6a6bf;
    text-align: left;
    font-weight: normal; }
  table td:first-of-type a {
    font-weight: bold;
    color: #ddf; }
  table th, table td {
    padding: 0.25em 0.5em;
    border-left: 1px solid #383840; }
    table th:first-of-type, table td:first-of-type {
      border-left: none; }
  table td.cover {
    width: 100px; }
    table td.cover img {
      display: block;
      width: 100px;
      height: 100px;
      object-fit: contain; }
    table td.cover + td a {
      font-weight: bold;
      color: #ddf; }
  table tr.overdue td {
    color: tomato; }

nav#viewswitch, nav#sortswitch, nav#age-jump {
  display: flex;
  align-items: baseline;
  gap: 0.75em;
  margin-bottom: 0.5em; }

.switch-label {
  color: #a6a6bf;
  text-transform: uppercase;
  font-size: 0.9em; }

nav#viewswitch ul, nav#sortswitch ul, nav#age-jump ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1em; }

nav#viewswitch strong, nav#sortswitch strong {
  color: #ddf;
  font-weight: bold; }

ul.covers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 2rem;
  align-items: start; }
  ul.covers li {
    min-width: 0; }
  ul.covers article {
    display: grid;
    grid-template-rows: 250px auto;
    row-gap: 0.3em; }
  ul.covers article > a {
    display: contents; }
  ul.covers img {
    grid-row: 1;
    justify-self: center;
    width: 165px;
    max-width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: bottom; }
  ul.covers h2 {
    grid-row: 2;
    margin: 0;
    font-size: 1em;
    font-weight: normal;
    text-align: center;
    min-width: 0;
    overflow-wrap: break-word; }

.age-section {
  margin-top: 1rem; }

.age-banner {
  position: sticky;
  top: 3.5rem;
  z-index: 5;
  background-color: #3d3db8;
  border-radius: 4px;
  margin: 0 0 0.5rem;
  padding: 0.4em 0.6em;
  text-align: left;
  text-transform: uppercase;
  font-size: 0.85em;
  font-weight: normal;
  color: #ddf;
  scroll-margin-top: 4.25rem; }

@media (max-width: 600px) {
  body {
    padding: 0.5rem; }

  ul.covers {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem; }

  nav#viewswitch, nav#sortswitch, nav#age-jump {
    font-size: 0.9em;
    gap: 0.5em; }

  nav#viewswitch ul, nav#sortswitch ul, nav#age-jump ul {
    gap: 0.6em; } }
article.book {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2em; }
  article.book img.cover {
    flex: 0 0 auto;
    max-width: 300px;
    width: 100%;
    height: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); }
  article.book .details {
    flex: 1 1 320px;
    min-width: 0; }
  article.book h1 {
    margin-top: 0; }
  article.book dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 1em;
    row-gap: 0.6em;
    margin: 0; }
  article.book dt {
    color: #a6a6bf;
    text-transform: uppercase;
    font-size: 0.8em;
    white-space: nowrap;
    padding-top: 0.2em; }
  article.book dd {
    margin: 0; }

@media (max-width: 600px) {
  article.book {
    display: block; }
    article.book img.cover {
      display: block;
      margin: 0 auto 1.5em; }
    article.book dl {
      grid-template-columns: 1fr;
      row-gap: 0.2em; }
    article.book dt {
      margin-top: 0.6em; } }
button.cart-toggle {
  display: block;
  margin: 0.3em auto 0;
  font-size: 0.75em;
  color: #c7c7ff;
  background-color: black;
  border: 1px solid #c7c7ff;
  padding: 0.2em 0.6em;
  cursor: pointer;
  font-family: "Monaco"; }
  button.cart-toggle:hover {
    background-color: #339; }
  button.cart-toggle.in-cart {
    color: #339;
    background-color: #ddf;
    border-color: #ddf; }
  button.cart-toggle.checked-out {
    color: #777799;
    background-color: transparent;
    border-color: #505066;
    cursor: default; }

ul#cart-list {
  list-style: none;
  margin: 0;
  padding: 0; }
  ul#cart-list li {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 0.4em 0;
    border-bottom: 1px solid #3939ac; }
  ul#cart-list button.cart-toggle {
    margin: 0 0 0 auto; }

p.empty {
  opacity: 0.7; }

.cart-actions {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-top: 1em; }
  .cart-actions button {
    color: #c7c7ff;
    background-color: black;
    border: 1px solid #c7c7ff;
    padding: 0.4em 1em;
    cursor: pointer;
    font-family: "Monaco"; }
    .cart-actions button:hover {
      background-color: #339; }
  .cart-actions button#clear-cart.confirming {
    color: #339;
    background-color: #ddf;
    border-color: #ddf; }

p.server-overall {
  font-size: 125%;
  text-transform: uppercase; }
  p.server-overall.ok {
    color: #9f9; }
  p.server-overall.warn {
    color: #fd7; }
  p.server-overall.fail {
    color: #f99; }
  p.server-overall span.at {
    text-transform: none;
    font-size: 70%;
    opacity: 70%;
    margin-left: 1em; }

table.server td.verdict {
  text-transform: uppercase; }
table.server tr.ok td.verdict {
  color: #9f9; }
table.server tr.warn td.verdict {
  color: #fd7; }
table.server tr.fail td.verdict {
  color: #f99; }
table.server tr.skip td.verdict {
  opacity: 50%; }
table.server span.unit {
  opacity: 60%;
  margin-left: 0.4em; }

pre.server-raw {
  background-color: black;
  padding: 1em;
  overflow-x: auto;
  font-size: 85%; }

html {
  scroll-behavior: smooth; }

body {
  font-family: "Monaco";
  padding: 2rem;
  background-color: #339;
  color: #c7c7ff; }

a {
  color: #ddf; }
  a:hover {
    color: white;
    background-color: #4040bf; }

tr {
  background-size: 100% 100%; }

td {
  border-bottom: 1px solid #3939ac; }

td span.name {
  display: block;
  position: relative;
  height: 10px; }

td span.name a {
  display: inline-block;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; }
  td span.name a:hover {
    position: absolute;
    max-width: none; }

td:nth-child(2), td:nth-child(3) {
  text-align: left; }

span[title] {
  border-bottom: 1px dotted #c7c7ff;
  cursor: help; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5em;
  margin: -2rem -2rem 1em -2rem;
  padding: 1em 2rem;
  background-color: #339;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
  header a.brand {
    font-size: 1.3em; }
  header .header-controls {
    display: contents; }
  header .icon-link {
    display: none; }
  header #nav-toggle {
    display: none; }
  header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.5em; }
    header nav ul a {
      text-decoration: none; }

@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
    margin: -0.5rem -0.5rem 1em -0.5rem;
    padding: 0.75em 0.5rem; }
    header .header-controls {
      display: flex;
      align-items: center;
      gap: 1em;
      margin-left: auto; }
    header .icon-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5em;
      padding: 0.5em;
      margin: -0.5em;
      text-decoration: none; }
    header #nav-toggle {
      display: block;
      color: #c7c7ff;
      background-color: black;
      border: 1px solid #c7c7ff;
      padding: 0.3em 0.6em;
      font-family: "Monaco";
      cursor: pointer; }
    header nav {
      display: none;
      width: 100%;
      order: 3; }
    header.nav-open nav {
      display: block; }
    header nav ul {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.8em;
      margin-top: 1em; } }
form {
  font-family: "Monaco"; }

form input[type="text"], form button {
  color: #c7c7ff;
  background-color: black;
  border: 1px solid #c7c7ff;
  caret-color: #c7c7ff;
  caret-shape: block;
  font-family: "Monaco"; }
  form input[type="text"]:focus, form button:focus {
    background-color: #339;
    outline: none !important; }

form#gigasearch {
  width: 100%;
  padding: 1em; }
  form#gigasearch input {
    font-size: 175%;
    padding: 0.5em;
    margin: 0 auto;
    display: block; }

@keyframes pulse {
  0%, 100% {
    background-color: #c7c7ff; }
  50% {
    background-color: #4848ff; } }
tr.highlight {
  color: black;
  animation: pulse 2s infinite; }
  tr.highlight:hover {
    background-color: #3939ac;
    color: #c7c7ff; }

p#container_id {
  display: block;
  position: absolute;
  right: 200px;
  top: 0;
  font-size: 600%;
  opacity: 50%;
  background-color: #000;
  padding: 30px; }

h1 {
  font-size: 150%; }

body#index h1 {
  font-size: 125%; }
  body#index h1 #book-count {
    font-size: 70%;
    opacity: 70%; }

body#help code.button {
  color: #c7c7ff;
  background-color: black;
  border: 1px solid #c7c7ff;
  padding: 0 0.4em;
  white-space: nowrap;
  font-family: "Monaco"; }
body#help ol li {
  margin-top: 1.5em; }
