html {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  margin-bottom: 1em;
  min-height: 100%;
  background: url("/bg.jpg") no-repeat bottom right;
  font-family: system-ui, sans-serif;
}

form {
  display: flex;
  margin: 0;
  padding: 1rem;
  background-color: #EABB60;
  border-bottom: 2px solid #C78746;
  position: fixed;
  top: 0px;
  width: 100%;
  height: 2.5em;
}

#results {
  margin-top: 7.5em;
}

input {
  line-height: 1.5em;
}

input[type="text"] {
  width: 80%;
  background-color: #FADFB1;
  font-size: 1.5em;
  border: none;
  margin-right: -2px;
  padding: 0 0.5em;
  margin-left: 1.7em;
  outline: 1px solid #553515;
}
input[type="submit"] {
  padding: 0 1em;
  font-size: 1.5em;
  background-color: #C78746;
  border: none;
  color: #553515;
  font-weight: bold;
  outline: 1px solid #553515;
}

a {
  text-decoration: none;
}

.comment p {
  line-height: 1.3em;
}

.comment pre {
  margin: 0 2em;
  font-size: 1.1rem;
  white-space: pre;
}

.found > li > pre {
  margin: 0.5em;
  padding-left: 6em;
  text-indent: -6em;
  font-size: 1.1rem;
  white-space: normal;
}

pre em {
  font-style: normal;
  font-weight: bold;
}

ul {
  margin: 0;
  padding: 0;
}

.found > li {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: 1.5em;
  margin-right: 5em;
  margin-left: 0.95em;
}

.found > li > pre em {
  margin: 0 -3px;
  padding: 3px;
  color: black;
}

.found > li:hover > pre em {
  background: #FADFB1;
}

.found > li > pre a:hover em {
  background: #EABB60;
  border-bottom: 2px solid #553515;
}


h1, ul.doc, .comment {
  margin: 0;
  padding: 0;
  margin-left: 3.4rem;
}

.comment a, .comment a:visited { color: black }
.comment .at-tag { font-style: italic }
.comment li { list-style: square }

h1 {
  margin-bottom: 1em;
  font-size: 3em;
  font-family: serif;
}

p.doc {
  margin-bottom: 1em;
  margin-left: 2.3em;
  font-size: 1.5em;
}

ul.doc > li {
  margin-bottom: 0.5em;
}

.doc code {
  font-size: 1rem;
  background: #eee;
  padding: 0.1em 0.5em;
}

.query {
  background-color: #FADFB1;
  border-top: 1px solid #C78746;
  border-bottom: 2px solid #C78746;
  position: fixed;
  top: 4.5em;
  width: 100%;
  padding: 0.3em 4.2em;
  font-style: italic;
  color: #553515;
}
.query code {
  margin-left: 1em;
}

code {
  font-size: 1rem;
}

.pkg {
  margin-left: 3em;
  margin-bottom: -0.4em;
}

.pkg a, .pkg a:visited {
  margin: 0;
  font-weight: bold;
  font-size: 0.8em;
  padding: 0 5px;
  color: #1A3B60;
}

.pkg .version {
  font-weight: normal;
  color: #8BA4C0;
}

.pkg a:hover, .pkg a:hover .version {
  background: #3D5570;
  color: white !important;
  text-decoration: none;
}

.ad {
  padding: 3rem 0;
  margin-left: 2.3em;
  font-style: italic;
  font-size: 1rem;
}

pre, code, .ad, .packages a, input#q {
  font-family: ui-monospace, 'Fira Code', 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
}

.ad svg { vertical-align: middle; margin-right: 0.5rem }

.categories {
  margin: 0;
  margin-top: 3em;
  margin-left: 2.5em;
  margin-right: 2.5em;
  padding: 0;
  column-count: 4;
  column-gap: 1em;
  column-width: 20em;
  line-height: 1.1em;
}

.categories .category {
  margin: 0;
  padding: 0;
  display: inline-block;
}

.category h3 {
  margin: 0;
  padding: 0;
  margin-top: 1.5em;
  margin-bottom: 0.7em;
}

.packages a {
  display: inline-block;
  white-space: nowrap;
  margin-right: 1.5em;
}
.packages a:hover {
  background: #eee;
}
