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

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  padding-top: 24px;
}

header > h1 {
  font-size: 22px;
  margin: 0;
  padding: 0;
}

header > button {
  font-size: 14px;
  padding: 8px 24px;
  border: 1px solid var(--c-border, #dee2e6);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

header > button:hover {
  background: #f5f5f5;
}

.search {
  display: flex;
  align-items: center;
  margin: 24px;
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid var(--c-border, #dee2e6);
  border-radius: 2px;
}

.input {
  flex: 1;
  font-size: 16px;
  border: none;
  padding: 10px 24px;
  border-radius: 2px;
  background: transparent;
  color: inherit;
}

.input:focus {
  outline: none;
}

.search svg {
  margin: 0 10px;
  cursor: pointer;
}

.tag-filter {
  display: flex;
  align-items: center;
  padding: 24px;
  padding-bottom: 0;
}

.tag-filter .tags {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  gap: 8px;
}

.tag-filter .clear-btn {
  font-size: 14px;
  color: blue;
  cursor: pointer;
}

.tag {
  display: inline-block;
  background: ghostwhite;
  padding: 4px 8px;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 2px;
  cursor: pointer;
}

body.dark .tag {
  color: white;
  background: black;
  border: 1px solid white;
}

.main {
  padding: 24px;
  margin-bottom: -24px;
}

.things {
}

.thing {
  display: block;
  border: 1px solid var(--c-border, #dee2e6);
  border-radius: 2px;
  padding: 12px 24px;
  margin-bottom: 24px;
  transition: box-shadow 300ms ease-in-out;
  color: inherit;
  text-decoration: none;
}

.thing:hover {
  box-shadow: 10px 5px 5px ghostwhite;
}

.thing header {
  display: flex;
  align-items: center;
  padding: 0;
  margin-bottom: 4px;
}

.thing .name {
  font-size: 18px;
}

.thing .description:before {
  content: " - ";
}

.thing .top {
  font-size: 12px;
  opacity: 0.5;
  margin: 0px 8px;
}

.thing .url {
  font-size: 12px;
  color: dimgrey;
  word-break: break-all;
  margin-top: 4px;
  font-family: monospace;
}

.thing .thing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body.dark .thing:hover {
  box-shadow: none;
}

footer {
  font-size: 12px;
  color: gray;
  padding: 0 24px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: gray;
}
