@font-face {
  font-family: "UnifrakturMaguntia";
  src: url("fonts/UnifrakturMaguntia.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/Garamond-Math.woff2") format("woff2");
  font-style: normal;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond12-Italic.woff2") format("woff2");
  font-style: italic;
}
@font-face {
  font-family: "GebetbuchFraktur";
  src: url("fonts/GebetbuchFraktur.woff2") format("woff2");
  font-style: normal;
}
@font-face {
  font-family: "IBM3270";
  src: url("fonts/3270-Regular.woff") format("woff");
  font-style: normal;
}
@font-face {
  font-family: "Durandus";
  src: url("fonts/Fust&Schoeffer-Durandus-GoticoAntiqua118G.otf") format("opentype");
  font-style: normal;
}
@font-face {
  font-family: "Zainer";
  src: url("fonts/Zainer-GoticoAntiqua96G.otf") format("opentype");
  font-style: normal;
}
:root {
  --font-serif-g: "EB Garamond";
  --font-goth: "UnifrakturMaguntia";
  --font-goth-sharp: "GebetbuchFraktur";
  --font-antique: "Durandus";
  --font-antiquee: "Zainer";
  --font-monospace: "IBM3270";
  --font-sans-serif: sans-serif;
  --bg: #000000;
  --fg: #bec8c9;
  --bg-input: transparent;
  --fg-form: #bec8c9;
  --bg-form: transparent;
  --bg-wtw: rgba(0, 0, 0, 0.77);
  --fg-red: #a80000;
  --fg-subject: rgb(255, 34, 34);
  --fg-italic: #d4f3ee;
  --fg-second-dim: grey;
  --fg-third-light: #FFFFDD;
  --fg-third-dim: antiquewhite;
  --fg-esoteric: #00abff;
  --subtitle-first-line: #007cff;
  --fg-green: #87b379;
  --fg-lightgreen: #99f77b;
  --fg-quote: #04c6d0;
  --fg-pink: #FF001E;
  --fg-title: #91deff;
  --fg-code: #93fff5;
  --fg-glow: #c30101;
  --fg-glow-green: #00FE20;
  --fg-cap: #00FE20;
  --fg-name-reply: #cbd200;
  --fg-subject: #bd0808;
  --link: #8dbdc6;
  --link-hover: #b4eedf;
  --border-red: #64011d;
  --border-red-dark: #2d2500;
  --border-glow-green: #00FE20;
  --bg-high: #1e0009;
  --bg-reply: #000000cf;
}
body {
  font-family: var(--font-sans-serif);
  font-size: 13px;
  margin: 0px auto 0px auto;
  background: var(--bg) !important;
  color: var(--fg) !important;
}

.hidden {
  display: none;
}

a {
  color: var(--link);
  text-decoration: underline;
  background-color: transparent !important;
}

a:hover,.intro a.post_no:hover {
  color: var(--link-hover);
}

a.post_no {
  text-decoration: none;
  margin: 0;
  padding: 0;
}

.intro a.post_no {
  color: inherit;
}

.intro a.post_no,p.intro a.email,p.intro a.post_anchor {
  margin: 0;
}

.intro a.email span.name {
  color: var(--fg-red);
}

.intro a.email:hover span.name {
  color: var(--fg-red);
}

.intro label {
  display: inline;
}

.intro time,p.intro a.ip-link,p.intro a.capcode {
  direction: ltr;
  unicode-bidi: embed;
  color: var(--fg-second-dim);
}

h1,h2 {
  color: var(--fg-title);
  font-family: var(--font-goth);
}

h1 {
  letter-spacing: 9px;
  /* font-size: 20pt; */
  margin: 0;
}

h2 {
  font-size: 16pt;
  margin: 0;
  padding: 0;
}

h3 {
  margin-left: inherit;
  font-size: 13pt;
}

header {
  margin: 1em 0;
  color: var(--fg-title);
}

header h1 {
  text-align: center;
  /* text-shadow: 5px 10px 8px var(--border-red), 10px 5px 3px var(--border-red) !important; */
}

header div.subtitle {
  color: var(--fg-esoteric);
  text-align: center;
  font-size: 12pt;
  font-family: var(--font-antique),var(--font-antiquee);
  max-width: 400px;
  margin: auto;
  /* text-shadow: 2px 20px 8px var(--border-red), 2px 2px 3px var(--border-red) !important; */
}

header div.subtitle b {
  font-family: var(--font-serif-g);
}

.subtitle::first-line {
  font-size: 12pt;
  color: var(--subtitle-first-line);
	font-variant: small-caps;
	letter-spacing: 2px;
}

strong {
  color: red;
}

s strong, .nav-box strong {
  color: unset;
}

@media screen and (max-width: 480px){
#markup-guide {flex: none;}
#writing-table-wrap{
	flex-direction: column;
	min-width: 100%;}
}

#markup-guide {
	overflow-y: auto;
	font-size: 12px;
	flex: 26%;
  height: 200px;
}
#markup-guide h1 {
  text-align: center;
}

#writing-table {
	flex: 74%;
}

#writing-table-wrap {
  background: var(--bg-wtw);
	display: flex;
	max-width: 74%;
	margin: auto;
}

table, th, td {
  border: 0.085rem solid var(--border-red-dark);
	border-collapse: collapse;
  padding: 2px;
}

form {
  margin-bottom: 4em;
}

form table {
  margin: auto;
  margin-top: 5px;
}

form table.mod tr td {
  padding: 2px;
}

form table tr th {
  /* text-align: left; */
  padding: 4px;
}

form table tr td div.center {
  text-align: center;
  float: left;
  padding-left: 3px;
}

form table tr td div input {
  display: block;
  margin: 2px auto 0 auto;
}

form table tr td div label {
  font-size: 10px;
}

#upload_file, #upload_file2, #upload_file3, #upload_file4, #upload_file5 {
  font-size: 12pt;
}

.file_separator {
	margin: 5px;
}

input[type="text"],input[type="password"],input[type="submit"],textarea,select {
  color: var(--fg);
  background-color: var(--bg-input);
  border: 1px solid var(--border-red);
  text-indent: 0;
  max-width: 100%;
  font-size: 13pt;
}

input[type="submit"]:hover,input[type="file"]:hover,select:hover {
	box-shadow: 0px 0px 20px 2px var(--border-glow);
	color: var(--fg-glow);
}

#quick-reply {
  position: fixed;
  float: right;
  right: 5px;
  top: 30px;
  width: 25% !important;
  z-index: 100;
}
#quick-reply input[type="text"], input[type="password"], #quick-reply textarea {
  max-width: 100%;
}

#quick-reply table {
  width: 100%;
}

#quick-reply tr td:nth-child(2) {
  white-space: nowrap;
  text-align: right;
  padding-right: 4px;
}
#quick-reply tr td:nth-child(2) input[type="submit"] {
  width: 100%;
}
#quick-reply th,
#quick-reply td {
  margin: 0;
  padding: 0;
}
#quick-reply th {
  padding: 2px 0;
}
#quick-reply th .handle {
  font-family: var(--font-antiquee);
  font-size: 13pt;
}
#quick-reply th .close-btn {
  float: right;
}
#quick-reply .nonsense {
  display: none;
}
#quick-reply td.submit {
  width: 1%;
}
#quick-reply #writing-table-wrap {
  display: table;
  border: 1px solid var(--border-red-dark);
}

@media screen and (max-width: 400px) {
  #quick-reply {
    display: none !important;
  }
}

#writing-table-wrap textarea {
  width: -moz-available;
  width: -webkit-fill-available;
  height: 150px;
  font-size: 12pt;
}

textarea {
  width: 1000px;
  height: 250px;
}

.unimportant,.unimportant * {
  font-family: var(--font-monospace);
  color: var(--fg-green);
  text-align: center;
}

.ukkohide {
  font-family: var(--font-monospace);
  font-size: 15px;
}

.file {
  float: left;
  margin-right: 2px;
}

.file:not(.multifile) .post-image {
  float: left;
}

.file:not(.multifile) {
  float: none;
}

p.fileinfo {
  display: block;
  margin: 0 0 0 20px;
}

div.post p.fileinfo {
  padding-left: 5px;
}

div.banner {
  color: var(--fg-third-dim) !important;
	background: var(--border-red);
	text-align: center;
	font-family: var(--font-monospace);
	position: sticky;
	top: 23px;
	z-index: 110;
	/* animation: blink 1s infinite; */
}
/* @keyframes blink { */
/*   0% { opacity: 1; } */
/*   50% { opacity: 0; } */
/*   100% { opacity: 1; } */
/* } */
div.banner a {
  font-family: var(--font-serif-g);
  color: var(--fg-link);
}

div.banner a:hover {
  color: var(--link-hover);
  text-decoration: none;
}

img.banner,img.board_image {
  display: block;
  border: none;
  margin: 12px auto 0 auto;
  max-height: 200px;
}

.post-image {
  margin: 5px 20px 10px 20px;
}

.full-image {
  max-width: 70%;
  margin: 5px 0 0 20px;
}

div.post .post-image {
  padding: 5px;
  margin: 0 20px 0 0;
}

div.post img.icon {
  display: inline;
  margin: 0 5px;
  padding: 0;
}

div.post i.fa {
  margin: 0 4px;
  font-size: 16px;
}

div.post.op {
  margin-right: 20px;
  margin-bottom: 5px;
}

div.post.op hr {
  border-color: #D9BFB7;
}

.intro {
  margin: 0.5em 0;
  padding: 0;
  padding-bottom: 0.2em;
}

input.delete {
  float: left;
  margin: 1px 6px 0 0;
}

.intro span.subject {
  color: var(--fg-subject);
  font-family: var(--font-serif-g);
  font-weight: bold;
  font-size: 15pt;
}

.intro span.name {
  font-family: var(--font-antique), var(--font-antiquee);
  font-size: 12pt;
  color: var(--fg-esoteric);
}

.intro span.capcode,p.intro a.capcode,p.intro a.nametag {
  color: var(--fg-cap);
}

.intro a {
  margin-left: 8px;
}

.intro a:hover{
  text-shadow: 0px 1px 3px var(--border-glow-green), 1px 0px 3px var(--border-glow-green) !important;
}

div.delete {
  float: right;
}

div.post {
  padding-left: 20px;
}

div.post div.body {
  word-wrap: break-word;
  white-space: pre-wrap;
}

div.post.reply p {
  margin: 0.3em 0 0 0;
}

div.post.reply div.body {
  margin-left: 1.8em;
  margin-top: 0.8em;
  padding-right: 3em;
  padding-bottom: 0.3em;
}

div.post.reply.highlighted {
  background: var(--bg-high);
	box-shadow: 0px 0px 20px 2px var(--border-glow);
}


div.post.reply div.body a {
  color: var(--link);
}

div.post.reply div.body a:hover {
  color: var(--link-hover);
}

div.post.reply {
  background: var(--bg-reply);
  margin: 0.2em 25px;
  padding: 0.2em 0.3em 0.5em 0.6em;
  border: 1px solid var(--border-red-dark);
  display: inline-block;
  max-width: 94% !important;
}

div.post.reply:hover {
	border: 1px solid var(--border-red);
}

.reply span.name {
	color: var(--fg-name-reply);
}

span.trip {
  color: #08b97f;
}

span.quote {
  color: var(--fg-quote);
}

span.pinktext {
  color: var(--fg-pink);
}

span.omitted {
  display: block;
  margin-top: 1em;
}

br.clear {
  clear: left;
  display: block;
}

span.controls {
  float: right;
  margin: 0;
  padding: 0;
  font-size: 80%;
}

span.controls.op {
  float: none;
  margin-left: 10px;
}

span.controls a {
  margin: 0;
}

div#wrap {
  width: 900px;
  margin: 0 auto;
}

div.ban {
  max-width: 700px;
  margin: 30px auto;
}

div.ban p,div.ban h2 {
  padding: 3px 7px;
}

div.ban h2 {
	color: var(--fg-third-light);
	font-size: 12pt;
}

div.ban p {
  font-size: 12px;
  margin-bottom: 12px;
}

div.ban p.reason {
  font-weight: bold;
}

span.headingsecond {
  color: var(--fg-third-light);
  font-size: 15px;
  font-weight: bold;
}

span.headingthird {
  color: var(--fg-second-light);
  font-size: 13pt;
  font-weight: bold;
  margin-left: auto;
}

span.spoiler {
  background: var(--fg-green);
  color: var(--fg-green);
  padding: 0 1px;
}

div.post.reply div.body span.spoiler a {
  color: black;
}

span.spoiler:hover,div.post.reply div.body span.spoiler:hover a {
  color: var(--fg);
  background: transparent;
}

span.spoiler strong {
  color: unset;
}

span.spoiler:hover strong {
  color: red;
}

kike {
  color: #33D;
  background-color: #FFF;
  font-family: var(--font-monospace);
}
kike::after {
  content: ")))";
}
kike::before {
  content: "(((";
}
.spoiler kike {
	color: var(--fg-green);
	background: var(--fg-green);
}
.spoiler kike:hover {
  color: #33D;
  background-color: #FFF;
}

div.styles {
  float: right;
}

fieldset label {
  display: block;
}

fieldset {
	border: 1px solid var(--border-red-dark);
}

fieldset legend {
	font-family: var(--font-serif-g);
	font-size: 14pt;
	color: var(--fg-third-light);
}

@media screen and (max-width: 800px) {
  div.pages.top {
    display: none!important;
  }
}

div.pages a.selected {
  color: var(--fg-name-reply);
  font-weight: bolder;
}

div.pages a {
  text-decoration: none;
}

div.pages form {
  margin: 0;
  padding: 0;
  display: inline;
}

div.pages form input {
  margin: 0 5px;
  display: inline;
}

form table tr td {
  text-align: left;
  margin: 0;
  padding: 0;
}

table tr th, form table th, .postblock{
  background: var(--bg-form);
  color: var(--fg-form);
}

form table.mod tr td {
  padding: 2px;
}

hr {
  border: none;
  height: 10px;
  width: 300px;
  background-image: url("blacklinewithsign.gif");
  background-size: 100%;
}

td.minimal,th.minimal {
  width: 1%;
  white-space: nowrap;
}

div.top_notice {
  text-align: center;
  margin: 5px auto;
}

span.public_ban {
  display: block;
  color: var(--fg-red);
  font-weight: bold;
  margin-top: 15px;
}

span.toolong {
  display: block;
  margin-top: 15px;
}

div.blotter {
  color: var(--fg-red);
  font-weight: bold;
  text-align: center;
}

#attention_bar {
  height: 1.5em;
  max-height: 1.5em;
  width: 100%;
  max-width: 100%;
  text-align: center;
  overflow: hidden;
}

#attention_bar_form {
  display: none;
  padding: 0;
  margin: 0;
}

#attention_bar_input {
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: center;
}

#attention_bar:hover {
  background-color: rgba(100%,100%,100%,0.2);
}

.thread {
    border: 1px solid var(--border-red-dark);
}

.intro.thread-hidden {
  margin: 0;
  padding: 0;
}

form.ban-appeal {
  margin: 9px 20px;
}

form.ban-appeal textarea {
  display: block;
}

.MathJax_Display {
  display: inline!important;
}

pre, code {
    color: var(--fg-code);
    font-family: var(--font-monospace);
    font-size: larger;
}

pre {
    overflow: auto;
    /* max-width: 800px; */
    margin: 0;
}

code {
    word-break: break-all;
}

/* Catalogue */
.theme-catalog div.thread img {
  border: 1px solid var(--border-red-dark);
}

.theme-catalog div.thread {
  display: inline-block;
  vertical-align: top;
  text-align: center;
  margin: 2px;
  padding: 2px;
  height: 300px;
  width: 205px;
  overflow: hidden;
  position: relative;
}

.theme-catalog div.thread strong {
  display: block;
}

.theme-catalog div.threads {
  text-align: center;
  margin-left: -20px;
}

.theme-catalog div.thread:hover {
  border-color: var(--border-glow);
	box-shadow: 0px 0px 20px 2px var(--border-glow);
}

.theme-catalog div.grid-size-vsmall img {
  max-height: 33%;
  max-width: 95%
}

.theme-catalog div.grid-size-vsmall {
  min-width:90px; max-width: 90px;
  max-height: 148px;
}

.theme-catalog div.grid-size-small img {
  max-height: 33%;
  max-width: 95%
}

.theme-catalog div.grid-size-small {
  min-width:140px; max-width: 140px;
  max-height: 192px;
}

.theme-catalog div.grid-size-large img {
  max-height: 40%;
  max-width: 95%
}

.theme-catalog div.grid-size-large {
  min-width: 256px; max-width: 256px;
  max-height: 384px;
}

.theme-catalog img.thread-image {
  height: auto;
  max-width: 100%;
}

@media (max-width: 420px) {
  .theme-catalog ul#Grid {
    padding-left: 18px;
  }

  .theme-catalog div.thread {
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .theme-catalog div.threads {
    overflow: hidden;
  }
}

/* .compact-boardlist { */
/*   padding: 3px; */
/*   padding-bottom: 0; */
/* } */

/* .compact-boardlist .cb-item { */
/*   display: inline-block; */
/*   vertical-align: middle; */
/* } */

/* .compact-boardlist .cb-icon { */
/*   padding-bottom: 1px; */
/* } */

/* .compact-boardlist .cb-fa { */
/*   font-size: 21px; */
/*   padding: 2px; */
/*   padding-top: 0; */
/* } */

/* .compact-boardlist .cb-cat { */
/*   padding: 5px 6px 8px 6px; */
/* } */

/* .cb-menuitem { */
/*   display: table-row; */
/* } */

/* .cb-menuitem span { */
/*   padding: 5px; */
/*   display: table-cell; */
/*   text-align: left; */
/*   border-top: 1px solid rgba(0,0,0,0.5); */
/* } */

/* .cb-menuitem span.cb-uri { */
/*   text-align: right; */
/* } */

/* .boardlist:not(.compact-boardlist) #watch-pinned::before { */
/*   content: " [ "; */
/* } */

/* .boardlist:not(.compact-boardlist) #watch-pinned::after { */
/*   content: " ] "; */
/* } */

/* .boardlist:not(.compact-boardlist) #watch-pinned { */
/*   display: inline; */
/* } */

/* .boardlist:not(.compact-boardlist) #watch-pinned a { */
/*   margin-left: 3pt; */
/* } */

/* .boardlist:not(.compact-boardlist) #watch-pinned a:first-child { */
/*   margin-left: 0pt; */
/* } */

/* .compact-boardlist #watch-pinned { */
/*   display: inline-block; */
/*   vertical-align: middle; */
/* } */

.new-posts {
  opacity: 0.6;
  margin-top: 1em;
}

.new-threads {
  text-align: center;
}

.mentioned {
  word-wrap: break-word;
}

.poster_id {
  cursor: pointer;
  display: inline-block;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}
.poster_id:hover {
  color: #800000!important;
}
.poster_id::before {
  content: " ID: ";
}

span.pln {
  color: grey;
}

@media screen and (min-width: 768px) {
  .intro {
    clear: none;
  }
  div.post div.body {
    clear: none;
  }
  div.boardlist {
    font-size: 8pt;
  }
}

div.boardlist {
  font-family: var(--font-monospace);
  background: var(--bg-reply);
  border-bottom: 1px solid var(--border-red);
	position: sticky;
	font-size: 15pt;
	top: 0px;
	right: 0px;
	z-index: 110;
	width: 100%;
  height: 22px;
  color: var(--fg-red);
}

div.boardlist a {
  text-decoration: none;
}

div.bar.bottom {
  background: var(--bg) url(ui-bg_waves.png) repeat;
  border-top: 1px solid var(--border-red-dark);
	font-size: 11pt;
	bottom: 0px;
	left: 0px;
	width: 100%;
	position: fixed;
	z-index: 3;
}



div.bar.bottomright {
  bottom: 0px;
	right: 0px;
  float: right;
	position: fixed;
	z-index: 3;
}

/* Threads */
#thread-interactions {
  margin: 8px 0;
  clear: both;
}

#thread-links {
  float: left;
}

#thread-links > a {
  padding-left: none;
  padding-right: 10px;
}

#thread-quick-reply {
  display: none;
  position: absolute;
  left: 50%;
  right: 50%;
  text-align: center;
  width: 100px;
  margin-left: -50px;
}

#thread_stats {
  float: right;
}

#post-moderation-fields {
  float: right;
  text-align: right;
}

#thread_stats {
  display: inline;
  margin-left: 10px;
  margin-right: 10px;
}

.footer {
	color: var(--fg-second-dim);
	font-size: 8pt;
  margin-top:20px;
  text-align:center;
}

footer {
  padding-bottom: 30px;
}

.badges {
  text-align: center;
  display: block;
  padding-bottom: 1rem;
}

goth {
	font-family: var(--font-goth);
}

gara {
	font-family: var(--font-serif-g);
}

glow {
  color: var(--fg-glow-green);
  text-shadow: 0px 1px 3px var(--border-glow-green), 1px 0px 3px var(--border-glow-green) !important
}

red{
  color: var(--fg-red);
}

.img-smol {
  max-height: 32px;
  margin: 0 auto;
  padding: 0 !important;
  display: inline;
}

.add_image {
	border: 1px solid var(--border-glow-green);
}

/* 主题切换器样式 */
#theme-toggle {
	position: fixed;
	bottom: 0px;
	right: 0px;
	z-index: 1000;
	background: var(--bg-form);
	border: 1px solid var(--border-red);
	padding: 4px 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	color: var(--fg);
	height: 22px;
}

#theme-toggle:hover {
	background: var(--bg-high);
	border-color: var(--border-glow-green);
}

.theme-text {
	font-weight: 500;
}

/* 浅色主题样式 */
[data-theme="light"] {
	--fg: #2c2c2c;
	--bg: #ffffff;
	--link: #0066cc;
	--link-hover: #004499;
	--fg-glow: unset;
	--fg-glow-green: unset;
	--border-glow-green: unset;
	--bg-form: #f8f8f8;
	--fg-form: #2c2c2c;
	--bg-wtw: #ffffff;
	--subtitle-first-line: #0066cc;
	--fg-title: #2c2c2c;
	--fg-code: #d63384;
	--fg-quote: #6c757d;
	--fg-esoteric: #0d6efd;
	--fg-name-reply: #198754;
	--fg-second-light: #6c757d;
	--fg-third-light: #495057;
	--border-red: #dee2e6;
	--border-red-dark: #adb5bd;
	--fg-cap: #2c2c2c;
	--bg-high: #e9ecef;
	--bg-reply: #f8f9fa;
	--fg-green: #198754;
}

[data-theme="light"] div.post.reply.highlighted {
	border: 2px dashed #6c757d !important;
	background: #e3f2fd !important;
}

[data-theme="light"] hr {
	background-image: none;
	border-bottom: 2px solid var(--border-red);
}

[data-theme="light"] div.boardlist, 
[data-theme="light"] div.bar.bottom, 
[data-theme="light"] aside {
	background-color: #ffffff;
	background-image: none;
	border: 1px solid var(--border-red);
}

[data-theme="light"] #theme-toggle {
	background: #ffffff;
	border-color: #dee2e6;
	color: #2c2c2c;
}

[data-theme="light"] #theme-toggle:hover {
	background: #f8f9fa;
	border-color: #198754;
}

