button {
  border: solid 1px #999;
  background-color: #eee;
  padding: 0 3px;
  height: 20px;
  vertical-align: top;
  text-align: center;
}
button:not([disabled]):hover {
  background-color: #d8ecf3;
  border: solid 1px #6666ff;
  cursor: pointer;
}
div.menu-container {
  height: 31px;
  background-color: #351c4d;
  width: 100%;
  overflow: hidden;
}
div.menu {
  width: calc(90% + 8px);
  margin: auto;
  display: flex;
}
div.menu .badge {
  background-color: #fa3e3e;
  border-radius: 2px;
  color: inherit;
  padding: 1px 3px;
  font-size: 8px;
  font-family: initial;
  position: absolute;
  top: 2px;
  right: 2px;
}
div.menu-item.active {
  border-bottom: 1px solid #feb47b;
}
div.menu-item {
  height: 30px;
  color: #e8e1eb;
  vertical-align: top;
  float: left;
  position: relative;
}
div.menu-item button,
div.menu-item a {
  padding-left: 10px;
  padding-right: 9px;
}
div.menu-item.active:hover {
  background-color: #765285;
  border-bottom: 1px solid #feb47b;
}
div.menu-item:hover {
  background-color: #765285;
  border-bottom: 1px solid #765285;
}
div.menu-item a {
  color: inherit;
  text-decoration: inherit;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  height: 30px;
}
div.menu-item button {
  background-color: inherit;
  color: inherit;
  text-decoration: inherit;
  font-size: inherit;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  border: none;
  outline: none;
  text-transform: uppercase;
  height: 30px;
}
div.menu-item button:hover {
  background-color: inherit;
  border: none;
  /*cursor: inherit;*/
}
.tabstrip {
  width: 100%;
  flex-grow: 1;
}
.tabstrip ul {
  background-color: #C5C5C5;
}
.tabstrip ul,
.tabstrip li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tabstrip,
.tabstrip input[type="radio"]:checked + label {
  position: relative;
}
.tabstrip li,
.tabstrip input[type="radio"] + label {
  display: inline-block;
}
.tabstrip li > div,
.tabstrip input[type="radio"] {
  position: absolute;
}
.tabstrip li {
  vertical-align: top;
}
.tabstrip li > div {
  top: 20px;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  overflow: auto;
  background: #ebebeb;
  box-sizing: border-box;
}
.tabstrip input[type="radio"] + label {
  margin: 0;
  vertical-align: top;
  padding: 0 10px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}
.tabstrip input[type="radio"]:checked + label {
  z-index: 1;
  background: #ebebeb;
  cursor: default;
  border-bottom: 1px solid #ebebeb;
}
.tabstrip input[type="radio"],
.tabstrip input[type="radio"] ~ div {
  display: none;
}
.tabstrip input[type="radio"]:checked ~ div {
  display: block;
}
span.msgref {
  border-bottom: dashed 1px #6666cc;
  cursor: pointer;
  display: inline-block;
  height: 1em;
}
span.msgref a {
  text-decoration: none;
}
.post {
  margin-top: 8px;
  min-height: 20px;
}
.post.hidden_by_op {
  opacity: 0.5;
}
.post.hidden_by_op .postbody {
  display: none;
}
.post .hide_by_op_btn,
.post .unhide_by_op_btn {
  border: none;
  outline: none;
  background: none;
  float: right;
  max-height: 18px;
}
.post .hide_by_op_btn:hover,
.post .unhide_by_op_btn:hover {
  border: none;
  outline: none;
  background: none;
  text-decoration: underline;
}
.post .hide_by_op_btn::before {
  content: "hide";
}
.post .unhide_by_op_btn::before {
  content: "unhide";
}
.post:target {
  background-color: rgba(245, 222, 179, 0.5);
  border: 1px solid rgba(240, 128, 128, 0.2);
}
.quote-preview .post {
  margin-top: 0;
}
.post .name {
  color: #008000;
  font-weight: bold;
}
.postbody {
  margin-left: 30px;
  margin-top: 8px;
  /*margin-bottom: 8px;*/
  word-wrap: break-word;
  max-height: 700px;
  overflow-y: auto;
}
.quote-preview {
  position: absolute;
  /*top: 0;*/
}
blockquote {
  border-left: 2px solid #006600;
  /*display: block;*/
  margin: 0;
  padding: 0 0 0 10px;
  color: green;
}
blockquote:hover {
  background: #d7e1d7;
}
blockquote > blockquote {
  border-color: #008800;
}
blockquote > blockquote > blockquote {
  border-color: #00aa00;
}
.navbtn {
  width: 100px;
}
#navigation li {
  float: left;
}
.post .post-id,
span.id {
  font-weight: bold;
  padding: 0 0.5ex;
  cursor: pointer;
  font-family: monospace;
}
.youtube_link,
.ploudfr_link,
.librevideo_link,
.peertubesocial_link,
.webm_link {
  display: inline-flex;
  justify-content: center;
  height: 185px;
  width: 320px;
}
.youtube_link img,
.ploudfr_link img,
.librevideo_link img,
.peertubesocial_link img,
.webm_link img {
  outline: 1px dashed #818181;
}
a[class*="_link"] {
  position: relative;
}
a[class*="_link"] picture::before {
  position: absolute;
  background-color: #7023b7;
  color: #e6e6e6;
  padding: 0 2px;
  font-size: 9px;
  font-weight: bold;
}
.youtube_link picture::before {
  content: "YouTube";
}
.ploudfr_link picture::before {
  content: "ploud.fr";
}
.librevideo_link picture::before {
  content: "libre.video";
}
.peertubesocial_link picture::before {
  content: "peertube.social";
}
.imgur_link {
  display: inline-flex;
  justify-content: center;
  height: 180px;
  width: 320px;
}
.imgur_link picture::before {
  content: 'Imgur';
}
.twitter_link {
  display: inline-block;
  height: 150px;
  width: 150px;
}
.twitter_link picture::before {
  content: 'Twitter';
}
.youtube_thumb,
.ploudfr_thumb,
.librevideo_thumb,
.peertubesocial_thumb,
.bitchute_thumb,
.webm_thumb {
  height: 180px;
  width: 320px;
}
.bitchute_thumb {
  height: 180px;
  width: 320px;
  border: none;
  outline: 1px dashed #818181;
}
.imgur_thumb,
.twitter_thumb {
  display: block;
  overflow: hidden;
}
.imgur_thumb {
  max-height: 180px;
  max-width: 320px;
}
.twitter_thumb {
  height: 150px;
  width: 150px;
}
.spoiler:hover picture {
  z-index: initial !important;
}
.spoiler a[class*="_link"] {
  background-color: inherit;
}
.spoiler a[class*="_link"] picture {
  z-index: -1;
}
#notification_container {
  position: fixed;
  right: 20px;
  top: 31px;
}
.notification {
  display: flex;
  flex-direction: row;
  margin-bottom: 5px;
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.4);
}
.notification .close_btn {
  background-color: transparent;
  padding: 0.375rem 0.625rem;
  opacity: 0.5;
  border: none;
}
.notification .close_btn::before {
  font-size: 12px;
  color: inherit;
}
.notification .close_btn:hover {
  color: #000;
  opacity: 0.75;
  background-color: transparent;
  border: none;
}
.notification_content {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  padding-left: 0.625rem;
  padding-right: 0;
}
.notification_success {
  background-color: #d4edda;
  color: #155724;
}
.notification_error {
  background-color: #f8d7da;
  color: #721c24;
}
.notification_warning {
  background-color: #fff3cd;
  color: #856404;
}
.notification_info {
  background-color: #d1ecf1;
  color: #0c5460;
}
body {
  margin: 0;
  padding: 0;
  font-family: "DejaVu Sans", sans-serif;
  font-size: 12pt;
  background: #765285;
}
a {
  color: #9100e6;
}
a:hover {
  color: #5f0e8f;
}
h1 {
  text-align: center;
  font-size: 120%;
}
textarea {
  display: block;
  box-sizing: border-box;
}
input,
select,
textarea {
  outline: none;
}
.hidden {
  display: none !important;
}
.bold {
  font-weight: bold;
}
.full-width {
  width: 100%;
}
.half-width {
  width: 50%;
}
.table {
  display: table;
}
.row {
  display: table-row;
}
.cell {
  display: table-cell;
}
#shade {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /*z-index: 1;*/
}
#modals-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
#modals-container .button-row {
  padding: 4px;
}
#settings,
#help {
  border: 1px solid #999;
  background: #ebebeb;
  margin: auto;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}
#settings .table,
#help .table {
  width: 100%;
}
#settings textarea,
#help textarea {
  width: 100%;
  resize: vertical;
  margin: 0;
  min-height: 150px;
  padding: 2px;
}
#settings input,
#help input,
#settings textarea,
#help textarea {
  background-color: #ffffff;
  border: 1px solid #999999;
}
#settings #maxEntropyP,
#help #maxEntropyP {
  width: 4em;
}
#settings {
  width: 40%;
  max-height: 90%;
  min-height: 300px;
  min-width: 350px;
}
#settings #settings-form {
  padding: 4px;
  flex-grow: 1;
  overflow: auto;
}
#help {
  width: 60%;
  /*height: 60%;*/
  /*z-index: 2;*/
  /*min-height: 410px;*/
  min-width: 350px;
  height: 80%;
}
#help .cell {
  width: 50%;
}
#help #help_content {
  padding: 4px;
  overflow: auto;
}
#help h1 {
  text-align: left;
  font-size: 100%;
}
#help .group_title {
  padding: 8px 0;
  font-weight: bold;
  font-size: 18px;
}
#help .qa {
  padding-bottom: 8px;
}
#help .qa .q {
  font-weight: bold;
}
#cancel,
#close {
  float: right;
}
.me {
  font-style: italic;
}
strong.img-fail {
  color: red;
}
.imglink {
  display: inline-block;
}
.imglink img {
  display: block;
}
.katex .katex-mathml {
  display: none;
}
pre > code {
  background: none repeat scroll 0 0 white;
  color: black;
  display: block;
  overflow-x: auto;
  padding: 0.5em;
}
pre {
  margin: 0.5em 0 0.5em 0;
  /*display: inline;*/
  max-height: 500px;
  overflow-y: auto;
}
.spoiler {
  color: #CCC;
  background-color: #CCC;
}
.spoiler:hover {
  color: #000;
}
.spoiler:hover a {
  color: #7023b7;
}
.spoiler a {
  color: inherit;
}
.flex-space {
  flex-grow: 1;
}
.banned {
  text-decoration: line-through;
}
#chat,
#logsb {
  /*.chat-postbody {
        display: inline-block;
        width: 90%;
    }*/
}
#chat div.msg,
#logsb div.msg {
  margin-top: 3px;
  margin-right: 4px;
  word-wrap: break-word;
  /*    overflow: auto;*/
  display: flex;
  flex-direction: row;
}
#chat div.msg .post-left,
#logsb div.msg .post-left {
  display: flex;
  flex-direction: row;
}
#chat div.msg .post-left .info-id,
#logsb div.msg .post-left .info-id {
  padding-right: 4px;
}
#chat div.msg .post-left .info-name,
#logsb div.msg .post-left .info-name {
  font-family: monospace;
  font-weight: bold;
  text-align: right;
  min-width: 85px;
  padding-right: 4px;
}
#chat div.msg .post-body,
#logsb div.msg .post-body {
  width: 100%;
}
#chat .quote-preview,
#logsb .quote-preview {
  background-color: #ebebeb;
  /*#E0E0E0;*/
  border: 1px solid #999999;
  /*height: 90%;*/
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  margin-bottom: 8px;
  /*opacity: 0.95;*/
  padding: 4px;
  width: 90%;
  /*z-index: 1;*/
}
#chat div#container,
#logsb div#container {
  width: 90%;
  margin: auto;
  height: calc(95vh - 31px - 8px);
  padding: 4px;
  background-color: #ebebeb;
  /*opacity: .95;*/
  z-index: 1;
  /*-moz-border-radius: 5px;
        border-radius: 5px;*/
  display: flex;
  flex-direction: column;
}
#chat div#chatframe,
#logsb div#chatframe {
  overflow-y: scroll;
  overflow-x: hidden;
  margin-bottom: 4px;
  flex: 1;
}
#chat input[type=text]:focus,
#logsb input[type=text]:focus {
  outline: 0 none;
}
#chat div.datesep,
#logsb div.datesep {
  margin-top: 3px;
  margin-right: 4px;
  text-align: center;
  font-size: 80%;
  position: relative;
  z-index: 0;
}
#chat div.datesep::after,
#logsb div.datesep::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px #666 solid;
  z-index: -1;
}
#chat span.date,
#logsb span.date {
  background: #666;
  color: white;
  padding: 0 5px;
  display: inline-block;
  /*-webkit-border-bottom-right-radius: 2px;
        -webkit-border-bottom-left-radius: 2px;
        -moz-border-radius-bottomright: 2px;
        -moz-border-radius-bottomleft: 2px;
        border-bottom-right-radius: 2px;
        border-bottom-left-radius: 2px;*/
}
#chat div.placeholder4,
#logsb div.placeholder4 {
  height: 2vh;
}
#chat #msubmit,
#logsb #msubmit {
  display: none;
}
#chat .post-info,
#logsb .post-info {
  float: right;
  background-color: #ddc3e8;
  font-family: monospace;
}
#chat form {
  margin: 0;
}
#chat #msgtxt {
  border: solid 1px #999;
  width: 100%;
}
#chat textarea#msgtxt {
  margin: 0;
  resize: none;
  max-height: 50vh;
  padding: 1px;
  height: 20px;
}
.navbtn {
  width: 100px;
}
#navigation li {
  float: left;
}
#navigation a {
  text-decoration: none;
}
.page {
  padding-left: 4px;
  padding-right: 4px;
}
.currentpage {
  background-color: #ddc3e8;
}
#chan {
  overflow-y: scroll;
  /* Bounce To Bottom */
  /*.hvr-bounce-to-bottom:hover,
    .hvr-bounce-to-bottom:focus,
    .hvr-bounce-to-bottom:active {
        color: white;
    }*/
}
#chan div.menu-container {
  position: static;
}
#chan .shell-thread,
#chan .quote-preview,
#chan #thread,
#chan #navigation,
#chan #header,
#chan #createform-wrapper {
  background-color: #ebebeb;
  /*height: 90%;*/
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  margin-bottom: 8px;
  /*opacity: 0.95;*/
  padding: 4px;
  width: 90%;
  /*z-index: 1;*/
}
#chan .quote-preview {
  border: 1px solid #999999;
}
#chan #createform-wrapper,
#chan #header {
  background-color: #ddc3e8;
}
#chan #createform-wrapper {
  display: none;
}
#chan .post.joined,
#chan .postbody.joined {
  margin-top: 0;
}
#chan .thread-info {
  /*padding-bottom: 8px;*/
  word-wrap: break-word;
}
#chan .thread-info a span {
  font-size: 16pt;
}
#chan .thread-info span {
  font-weight: bold;
}
#chan #board-description a,
#chan .thread-info a {
  text-decoration: none;
  color: #5f0e8f;
}
#chan #board-description a:hover,
#chan .thread-info a:hover {
  text-decoration: underline;
}
#chan .num {
  font-weight: bold;
}
#chan .recent {
  margin-bottom: 8px;
  margin-top: 8px;
}
#chan textarea,
#chan input {
  border: solid 1px #999;
  background-color: white;
}
#chan form textarea {
  width: 80%;
  margin: 0;
  min-height: 100px;
  max-height: 500px;
  padding: 2px;
}
#chan .replyhead,
#chan .createhead {
  padding-bottom: 4px;
}
#chan .replybody {
  /*width: 80%;*/
  /*height: 100px;*/
  /*min-height: 100px;*/
}
#chan .replybtn {
  width: 100px;
}
#chan .createbtn {
  width: 140px;
}
#chan .font16 {
  font-size: 16pt;
}
#chan input[name="board"] {
  width: 30px;
}
#chan input[name="subject"] {
  width: 40%;
}
#chan #board-description {
  text-align: center;
  padding-top: 24px;
  /*padding-bottom: 24px;*/
}
#chan #board-description h1 {
  display: inline;
}
#chan #header_links {
  text-align: right;
  height: 20px;
}
#chan #header_links a {
  padding-right: 4px;
}
#chan .hvr-bounce-to-bottom {
  /*display: inline-block;*/
  /*vertical-align: middle;*/
  /*transform: translateZ(0);
        box-shadow: 0 0 1px rgba(0, 0, 0, 0);*/
  /*backface-visibility: hidden;*/
  /*position: relative;*/
  /*transition-property: color;
        transition-duration: 0.5s;*/
  /*background: black;*/
}
#chan .hvr-bounce-to-bottom:before {
  display: inline-block;
  content: "";
  position: fixed;
  /*z-index: -1;*/
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #351c4d;
  transform: scaleY(1);
  transform-origin: 50% 100%;
  transition-property: transform;
  transition-duration: 0.5s;
  transition-timing-function: ease-out;
}
#chan .hvr-bounce-to-bottom-start:before {
  transform: scaleY(0);
  transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
}
#chan hr.post-separator {
  border-bottom: 0 none;
  border-left: 0 none;
  border-right: 0 none;
  border-top-width: 1px;
  border-top-style: dashed;
  border-top-color: #c8c8c8;
  /*border-top-color: black;*/
  margin: 0;
}
#chan .reply-to-post {
  float: left;
  padding-top: 0px;
  text-align: center;
  width: 20px;
  color: grey;
}
#chan .reply-to-post:before {
  content: "@";
}
#chan .reply-to-post:hover {
  color: #c864c8;
  cursor: pointer;
}
#chan .replyform {
  margin-top: 8px;
}
#chan .hidden-quote-sign {
  color: transparent;
}
#logsb div#logs {
  border: 1px solid #999;
  width: 90%;
  margin: 1ex auto 2ex auto;
  padding: 5px;
  background-color: rgba(224, 224, 224, 0.95);
  /*#E0E0E0;*/
  z-index: 1;
}
#logsb .tm-wrapper {
  padding-right: 4px;
}
#logsb .tm-wrapper span.tm {
  color: #666;
}
#logsb #navigation {
  margin: 0;
  padding: 0;
}
#logsb #navaigation-wrapper {
  display: inline-block;
}
