body {
  padding: 0;
  margin: 0;
  overflow-y: scroll;
  font-family: monospace;
}
body,
input,
textarea {
  font-family: 'DejaVu Sans Mono', monospace;
  font-size: 12px;
  tab-size: 4;
  -moz-tab-size: 4;
  -o-tab-size: 4;
}
input[type="checkbox"] {
  margin: 0;
  margin-right: 1em;
}
label {
  vertical-align: 3px;
}
input,
textarea {
  background: none;
  border: none;
  outline: none;
  resize: none;
}
h4 {
  font-size: 12px;
  margin: 1em 0;
  font-weight: bold;
}
pre {
  tab-size: 2;
  white-space: pre-wrap;
  word-wrap: break-word;
  tab-size: 4;
  -moz-tab-size: 4;
  -o-tab-size: 4;
}
a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a:hover {
  text-decoration: underline;
}
#sidebar-content ul {
  padding-inline-start: 20px;
}
#sidebar-content ul li {
  list-style: disc outside none;
}
ul, ol {
    margin-top: 0;
    margin-bottom: 10px;
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 40px;
}
ul li {
  list-style: inside;
}
.hidden {
  display: none;
}
.expand {
    height: 100%;
}
.container {
  max-width: 600px;
  margin: 0 auto;
}
#messages {
  padding-top: 2em;
}
.message, .refmessage {
  padding-bottom: 1em;
}
.nick {
  float: left;
  width: 16em;
  margin-left: -17em;
  margin-right: 1em;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
}
.trip {
  font-size: 10px;
}
.text {
  margin: 0;
  margin-left: 1em;
}
.text p {
  margin: 0;
}
#footer {
  position: fixed;
  bottom: 0;
  width: 100%;
}
#chatform {
  border-top: 1px solid;
}
#chatinput {
  width: 100%;
  padding: 1em;
  box-sizing: border-box;
}
#sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  padding: 1em;
  border-left: solid 1px;
  overflow-y: auto;
}
#sidebar-content {
  width: 180px;
  padding-bottom: 10%;
}
h1,h2,h3,h4,h5,h6 {
  margin: 3px;
  margin-top: 0px;
}
blockquote {
  padding: 3px 10px;
  margin: 3px;
  border-left: 5px solid #4e4e4e;
}
code {
  padding: 2px 4px;
  font-size: 90%;
  color: #000000;
  background-color: #4e4e4e;
  border-radius: 4px;
}
hr {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #4e4e4e;
}
mark {
  background-color: #60ac39;
  color: black;
}
pre {
  display: block;
  padding: 9.5px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.42857143;
  color: #797979;
  word-break: break-all;
  word-wrap: break-word;
  background-color: #4e4e4e;
  border: 1px solid #000;
  border-radius: 4px;
}
table {
  background-color: transparent;
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  border-spacing: 0;
  border-collapse: collapse;
}
table > caption + thead > tr:first-child > th, table > colgroup + thead > tr:first-child > th, table > thead:first-child > tr:first-child > th, table > caption + thead > tr:first-child > td, table > colgroup + thead > tr:first-child > td, table > thead:first-child > tr:first-child > td {
    border-top: 0;
}
table > thead > tr > th {
    vertical-align: bottom;
    border-bottom: 2px solid #4e4e4e;
}
table > thead > tr > th, table > tbody > tr > th, table > tfoot > tr > th, table > thead > tr > td, table > tbody > tr > td, table > tfoot > tr > td {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #4e4e4e;
}
th {
    text-align: left;
}
td, th {
    padding: 0;
}
table > tbody > tr:nth-child(odd) > td, table > tbody > tr:nth-child(odd) > th {
    background-color: #4e4e4e;
}
table > thead > tr > th, table > tbody > tr > th, table > tfoot > tr > th, table > thead > tr > td, table > tbody > tr > td, table > tfoot > tr > td {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #4e4e4e;
}
td, th {
    padding: 0;
}
img {
  max-width: 50%;
  max-height: 800px;
}

@media only screen and (max-width: 600px) {
  #messages {
    border: none;
    padding: 0.5em;
  }
  .message {
    padding-bottom: 0.5em;
  }
  .nick {
    margin: 0;
    float: none;
    text-align: left;
    display: inline;
  }
  .text {
    display: inline;
  }
  #sidebar {
    top: 0.5em;
    bottom: auto;
    right: 0.5em;
    border: none;
  }
}
