/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

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

/**
 * Render the `main` element consistently in IE.
 */
main {
  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
   ========================================================================== */
/**
 * 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
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 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 */
}

/**
 * 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 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
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 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;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
 * 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;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 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 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
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 in Chrome and Safari on macOS.
 */
[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 Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

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

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

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

/* System font stack - https://css-tricks.com/snippets/css/system-font-stack/ */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Nice readable size */
html,
body {
  font-size: 14px;
}
@media screen and (min-width: 600px) {
  html,
  body {
    font-size: 16px;
  }
}

@-ms-viewport {
  width: device-width;
}
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  word-break: break-word;
}

/* "Responsive Holy Grail" */
/* https://css-tricks.com/snippets/css/css-grid-starter-layouts/ */
.site_container {
  margin: 30px 60px;
  max-width: 1000px;
}
@media (max-width: 600px) {
  .site_container {
    margin: 30px;
  }
}

header,
footer {
  grid-column: 1/4;
}

@media all and (max-width: 700px) {
  aside,
  main {
    grid-column: 1/4;
  }
}
/* Header / Top Bar */
header {
  display: flex;
}
header .site-name {
  flex: 1;
  margin-left: -10px;
}
header .site-name a {
  display: inline-block;
  color: #0f4c81;
  text-decoration: none;
  font-size: 22px;
  font-weight: 500;
}
header .site-name a:hover h1 {
  text-decoration: underline;
}
header .site-name a img {
  width: 50px;
  height: 50px;
  vertical-align: middle;
  margin-bottom: 5px;
}
header .site-name a h1 {
  display: inline-block;
  font-size: inherit;
  margin: 0;
}
header .top-right-link {
  width: 70px;
  position: relative;
}
header .top-right-link > a {
  position: absolute;
  top: 42%;
  transform: translateY(-42%);
  right: 0;
}
@media all and (max-width: 300px) {
  header .top-right-link {
    display: none;
  }
}

footer {
  margin-top: 60px;
  font-size: 0.7rem;
}

.show-for-mobile-only {
  display: none;
}
@media (max-width: 600px) {
  .show-for-mobile-only {
    display: block;
  }
}

a {
  color: #0f4c81;
}

.button {
  padding: 7px;
  border: 1px solid #ccc;
  border-radius: 7px;
  color: black;
  text-decoration: none;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 0 #eee;
}
.button:hover {
  color: #0f4c81;
  border: 1px solid #0f4c81;
}
.button:active {
  box-shadow: none;
  transform: translateY(1px);
}
.button:disabled {
  color: #ccc;
  border-color: #ccc;
  box-shadow: none;
}
.button:disabled:hover {
  color: inherit;
  border-color: inherit;
}

.notice,
.alert,
#error_explanation {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 7px;
}

.notice {
  color: #3a87ad;
  background-color: #d9edf7;
  border-color: #bce8f1;
}

.alert,
#error_explanation {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

#error_explanation {
  padding: 20px;
  margin: 20px 0;
}
#error_explanation ul {
  margin-bottom: 0;
}

.button_to {
  display: inline;
}

.user-form {
  margin-top: 30px;
  padding: 20px 30px 30px;
  border: 1px solid #ccc;
  max-width: 600px;
}
.user-form .field {
  margin-bottom: 20px;
}
.user-form .field label {
  font-weight: bold;
}
.user-form .field input,
.user-form .field textarea {
  width: 100%;
}
.user-form .field input[type=checkbox] {
  width: auto;
}
.user-form .field input[type=number] {
  width: 100px;
}
.user-form .field .example {
  font-size: 90%;
  opacity: 0.6;
}
.user-form .field .help,
.user-form .actions .help {
  font-size: 90%;
  margin: 5px 0;
}

h2.list-name {
  font-size: 2.4rem;
  margin-top: 19px;
  margin-bottom: 10px;
  font-weight: 900;
}
h2.list-name a {
  color: inherit;
  text-decoration: none;
}
h2.list-name a:hover {
  color: #0f4c81;
  text-decoration: underline;
}

.list-user-name {
  margin-bottom: 32px;
  line-height: 1.4;
}

.list-share-call-to-action {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}
.list-share-call-to-action input {
  flex-grow: 1;
  margin-left: 7px;
}
@media (max-width: 700px) {
  .list-share-call-to-action {
    display: block;
  }
  .list-share-call-to-action > * {
    display: block;
  }
  .list-share-call-to-action input {
    margin: 5px 0 0;
    width: 100%;
  }
}

ol.list-items {
  list-style: none;
  padding: 0;
}
ol.list-items li.list-item {
  margin: 20px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #ccc;
  display: grid;
  grid-template-columns: 150px auto;
  grid-gap: 30px;
}
@media (max-width: 700px) {
  ol.list-items li.list-item {
    grid-template-columns: 80px auto;
    grid-gap: 20px;
  }
}
ol.list-items li.list-item.claimed {
  opacity: 0.6;
}
ol.list-items li.list-item span[title] {
  cursor: help;
}
ol.list-items li.list-item .item-image {
  height: 150px;
  text-align: center;
}
ol.list-items li.list-item .item-image img {
  height: 150px;
  max-width: 100%;
  object-fit: contain;
  object-position: 0 0;
}
ol.list-items li.list-item .item-image img.fallback {
  opacity: 0.05;
  margin-top: -10px;
}
ol.list-items li.list-item .item-info-and-actions {
  display: grid;
  grid-template-columns: auto 200px;
  grid-gap: 20px;
}
@media (max-width: 800px) {
  ol.list-items li.list-item .item-info-and-actions {
    grid-template-columns: auto 150px;
  }
}
@media (max-width: 500px) {
  ol.list-items li.list-item .item-info-and-actions {
    display: block;
  }
}
ol.list-items li.list-item .item-info .item-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: black;
  margin-bottom: 12px;
}
ol.list-items li.list-item .item-info .item-name a {
  color: inherit;
  text-decoration: inherit;
}
ol.list-items li.list-item .item-info .item-name a:hover {
  text-decoration: underline;
}
ol.list-items li.list-item .item-info .item-claimed-message,
ol.list-items li.list-item .item-info .item-details,
ol.list-items li.list-item .item-info .item-comments,
ol.list-items li.list-item .item-info .item-price {
  display: flex;
  column-gap: 0.5rem;
  font-size: 1.12rem;
  margin-bottom: 12px;
}
ol.list-items li.list-item .item-info .item-claimed-message .text {
  font-style: italic;
}
ol.list-items li.list-item .item-info .item-details .text {
  font-weight: 500;
}
ol.list-items li.list-item .item-info .item-comments .text {
  font-style: italic;
}
ol.list-items li.list-item .item-actions .button {
  display: inline-block;
  margin: 0 10px 10px 0;
}
ol.list-items li.list-item .item-actions .button.current-user-action {
  border-color: #0f4c81;
}
ol.list-items li.list-item .item-actions .button.current-user-action:disabled {
  border-color: #ccc;
  cursor: initial;
  color: #ccc;
}
ol.list-items li.list-item .item-actions .button.current-user-action:disabled:hover {
  color: #ccc;
}

/* Lists index */
.lists-lists {
  margin-top: 40px;
  padding-left: 20px;
  list-style: none;
  padding-left: 0;
}
.lists-lists li {
  margin: 10px 0;
  padding-bottom: 10px;
  display: flex;
  column-gap: 20px;
}
.lists-lists li .list-image {
  width: 60px;
  max-height: 100px;
  text-align: center;
}
.lists-lists li .list-image img {
  max-width: 100%;
  max-height: 100%;
}
.lists-lists li span[title] {
  cursor: help;
}
.lists-lists li .list-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: black;
  margin-bottom: 12px;
}
.lists-lists li .list-name a {
  color: #0f4c81;
}
.lists-lists li .list-info {
  font-size: 1.12rem;
  margin-bottom: 12px;
}
.lists-lists li .list-actions a {
  display: inline-block;
  margin: 0 10px 10px 0;
}

.list-form {
  margin-top: 30px;
  padding: 20px 30px 30px;
  border: 1px solid #ccc;
  max-width: 600px;
}
.list-form .list-form-field {
  margin-bottom: 20px;
}
.list-form .list-form-field label {
  font-weight: bold;
}
.list-form .list-form-field input,
.list-form .list-form-field textarea {
  width: 100%;
}
.list-form .list-form-field input[type=checkbox] {
  width: auto;
}
.list-form .list-form-field input[type=number] {
  width: 100px;
}
.list-form .list-form-field .help {
  font-size: 90%;
  margin: 5px 0;
}
.list-form .list-form-field .example {
  font-size: 90%;
  opacity: 0.6;
}

.recently-viewed-lists {
  margin-top: 50px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.recently-viewed-lists h2 {
  font-size: 1.2rem;
  margin-top: 0;
}
.recently-viewed-lists ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  grid-gap: 20px;
  margin-bottom: 0;
}
.recently-viewed-lists ul li {
  column-gap: 10px;
  margin: 0;
  padding: 0;
}
.recently-viewed-lists ul li .list-image {
  width: 40px;
  max-height: 70px;
  flex-shrink: 0;
}
.recently-viewed-lists ul li .list-name {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.recently-viewed-lists ul li .list-name .remove_recently_viewed_list_button {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.3;
  font-size: 80%;
}
.recently-viewed-lists ul li .list-name .remove_recently_viewed_list_button:hover {
  opacity: 0.7;
}
.recently-viewed-lists ul li .list-info {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.item-form {
  margin-top: 30px;
  padding: 20px 30px 30px;
  border: 1px solid #ccc;
  max-width: 600px;
}
.item-form .item-form-field {
  margin-bottom: 20px;
}
.item-form .item-form-field label {
  font-weight: bold;
}
.item-form .item-form-field input,
.item-form .item-form-field textarea {
  width: 100%;
}
.item-form .item-form-field input[type=number] {
  width: 100px;
}
.item-form .item-form-field .help {
  font-size: 90%;
  margin: 5px 0;
}
.item-form .item-form-field .example {
  font-size: 90%;
  opacity: 0.6;
}
.item-form .item-form-image-url-and-preview {
  display: grid;
  grid-template-columns: auto 100px;
  grid-gap: 20px;
}
.item-form .item-form-image-url-and-preview .item-image-preview {
  height: 100px;
  text-align: center;
}
.item-form .item-form-image-url-and-preview .item-image-preview img {
  height: 100px;
  max-width: 100%;
  object-fit: contain;
  object-position: 0 0;
}
.item-form #scrape-button {
  display: inline-block;
}
.item-form #scrape_result_message {
  font-size: 90%;
  color: #3a87ad;
  margin-left: 5px;
}
.item-form #scrape_result_message.error {
  color: darkgoldenrod;
  font-style: italic;
  opacity: 1;
  display: block;
  margin-top: 3px;
}
