html, body {
  margin: 0;
  font-family: "Roboto", "Lato", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #494949;
  filter: contrast(1.06);
}

td {
  vertical-align: top;
}

/* From theme: Chat chat colors to be more white
https://goatmatrix.net/c/Themes/6Vb8Wbqwg3 */
* {
  -webkit-user-select: text !important;
  user-select: text !important;
  line-height: 1.4 !important;
}

.code-toolbar {
  max-width: 80vw;
}

div[id=commentbox] {
  color: black !important;
}

div[id^=preview] {
  color: white !important;
}

div[id=topicbar] {
  display: flex !important;
  flex-wrap: wrap !important;
}

div[class=content] {
  color: white !important;
}

form[id=chatForm] {
  color: white !important;
}

div[class^="ui-dialog ui-corner-all ui-widget"] {
  color: white !important;
  background-color: #555555 !important;
}

/*End Theme*/
/* From this theme: 9px border for nested comments
https://goatmatrix.net/c/Themes/DADi6czLEu
*/
#postcontent #comments .comment .line1 {
  border-left-width: 9px !important;
}

/*End*/
#chatForm {
  display: flex;
}
#chatForm #chatInput {
  flex-grow: 1;
}

.badge {
  display: flex;
  justify-content: center;
  align-items: center;
}

.badge img {
  height: 1em;
  transition: transform 0.3s ease;
}

.badge:hover {
  position: relative;
  width: 16px;
  min-width: 16px;
}

.badge:hover img {
  transform: scale(6);
  position: absolute;
}

code {
  white-space: pre-wrap;
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.4588235294);
  color: white;
  border: 1px solid grey;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3098039216);
  padding: 2px;
}

pre code {
  border: unset;
  text-shadow: unset;
}

.hidden {
  display: none;
}

#footer {
  padding: 0 24px;
  text-align: right;
}
#footer a {
  color: white;
  margin: 0 10px;
}

img.emote {
  max-width: 128px;
  max-height: 128px;
}

div.nonesuch {
  background: red;
}

pre code[class*=language-], pre[class*=language-] {
  text-wrap: wrap;
}

@media (max-width: 940px) {
  body {
    display: flex;
    flex-flow: column;
  }
  body #sidebar {
    order: 1;
    width: auto;
  }
  body #footer {
    order: 2;
  }
  body #feedback {
    order: 3;
  }
  body #postcontent #post {
    width: calc(100% - 12px);
  }
  body #postcontent #post .post, body #postcontent #post #commentbox, body #postcontent #post #comments {
    margin-left: 6px;
    margin-right: 6px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }
  #topicbar {
    display: none;
  }
  /*
  #sidebar {
   display: none;
  }
  */
  body #header .options {
    margin-left: 8px;
  }
  .post {
    width: auto;
    margin: 10px;
  }
}
@media (max-width: 530px) {
  #header .options > * {
    display: none;
    margin-top: 4px;
  }
  #header .options > a.active {
    display: inline;
  }
  td.label {
    display: none;
  }
  body #content .post {
    margin: 3px 0;
  }
}
@media (max-width: 475px) {
  body #header .options .space {
    width: 8px;
  }
}
@media (max-width: 450px) {
  body #header .options .home {
    display: none;
  }
  body #header .options .space {
    display: none;
  }
}
@media (max-width: 410px) {
  body #header .options {
    display: none;
  }
}