@charset "UTF-8";

/************************ Global **************************************/

:root {
	--font-family-mspgothic: "MS PGothic", "Mona", "Monapo", "IPAMonaPGothic", "IPAPGothic", "submona", sans-serif;
}

.hrThin {
	border-top: none;
	border-left: none;
	border-right: none;
}

/************************ Navigation/admin bar ************************/

.boardlist {
  color: var(--color-fg-boardlist);
	font-size: var(--font-size-small);
}

.toplinks {
	float: left;
}

.persistnav .boardlist {
  background-color: var(--color-bg-boardlist);
	border-color: inherit;
  border-color: var(--color-hi-contrast-border);
	border-bottom-style: solid;
	border-width: 1px;
	position: sticky;
	left: 0px;
	top: 0px;
	margin: -8px;
	z-index: 1;
}

.persistnav .toplinks,
.persistnav .adminbar {
	margin: 0.25em;
}

.persistnav .logo {
	margin-top: 1em;
	margin-top: calc(1em + 0.5px);
}

/******** Neomenu ********/

.neomenu {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
  color: var(--color-fg-main);
	margin: 0 0 -1px;
  padding: 0;
  list-style: none;
  z-index: 100;
}

.persistnav .neomenu {
	margin: 0.25em 0 0;
	margin: calc(0.25em - 0.5px) 0 0;
}

.neomenuTopLevel {
  background-color: var(--color-bg-boardlist);
	border: 1px solid var(--color-lo-contrast-border);
	border-top: none;
	border-left: none;
	user-select: none;
}

.neomenuTopLevel,
.neomenuList {
  border-color: var(--color-lo-contrast-border);
	min-width: 12em;
}

.neomenuList {
	display: none;
  position: absolute;
	background-color: inherit;
  border-width: 1px;
  border-style: solid;
  list-style: none;
	padding-left: 0;
	z-index: 1;
}

/******** Admin bar ********/

.adminbar {
	float: right;
	text-align: right;
}

/************************ Board header ********************************/

.logo {
	color: var(--color-fg-logo);
	clear: both;
	text-align: center;
}

.logo hr {
	width: 90%;
}

.mtitle {
	margin: 0.125em 0 0;
	font-size: 1.666667em;
	word-break: break-word;
}

/************************ Post form ***********************************/

#postformTable {
	border-spacing: 2px;
	margin: 0 auto;
}

#postformTable th,
#postformTable td {
	padding: 1px;
}

.postblock {
	background-color: var(--color-bg-postblock);
	font-weight: var(--font-weight-bold);
}

#postformTable #name,
#postformTable #email,
#postformTable #sub {
	width: 100%;
	max-width: 16em;
}

#postformTable #sub {
	margin-right: 0.35em;
}

#postformTable #com,
#inputComment {
	width: 30em;
	height: 5em;
}

#postformTable #com {
	max-width: 100vw;
	max-width: calc(100vw - 120px);
}

#postformTable #pwd {
	width: 100%;
	max-width: 5.5em;
}

#postformTable #upfile {
	width: 100%;
	max-width: 17.25em;
}

.file-input {
	background-color: transparent;
}

.file-input.drag-over {
	background-color: var(--color-bg-window-item-highlight);
}

#convert-to-png-button {
	transition: opacity 0.3s;
}

#file-size-container,
#filename-container {
	display: flex;
	flex-direction: row;
}

#file-size-container label,
#filename-container label {
	margin-right: 0.25em;
}

#file-size-container label::after,
#filename-container label::after {
	content: ":"
}

#filename-input {
	flex: 1;
}

#file-preview {
	display: block;
	margin-top: 0.25em;
	max-width: 250px;
	max-height: 250px;
	border: 1px solid var(--color-hi-contrast-border);
}

.rules {
	margin: 0;
	margin-top: 0.25em;
	padding: 0 1.2em;
	font-size: var(--font-size-x-small);
	font-size: max(var(--font-size-x-small), 8pt);
}

/************************ Board info **********************************/

/******** Online counter ********/

#counterIframe {
	border: none;
	width: 100%;
	height: 1.2em;
	vertical-align: bottom;
}

#usercounter {
	display: block;
	background-color: #000000;
	color: #00ff00;
	padding: 0 0.125em;
}

/******** Full banner ads ********/

.fullbannerIframe {
  display: table;
	width: 470px;
	max-height: 60px;
	max-width: 100%;
	margin: 0 auto;
	aspect-ratio: 39 / 5;
}

/******** Thread list ********/

#topiclist {
	display: table;
	font-size: var(--font-size-small);
	margin: 0.5em auto;
}

#tableThreadlist td.colNum {
	text-align: center;
}

#tableThreadlist td.colReply {
	text-align: right;
}

/************************ Posts/replies *******************************/

.centerthreads .thread {
	/* width: 75%; */
	max-width: 1200px;
	margin: 0 auto;
}

.post.op:target,
.post.op.replyhl {
	margin: -1px;
}

.doubledash {
	float: left;
	padding-right: 2px;
}

.reply-container {
	display: table;
	margin: 4px 0;
}

.reply {
  background: var(--color-bg-reply);
	padding: 2px;
	display: table;
}

.reply:target {
  background-color: var(--color-bg-reply-hl);
}

.filesize {
	margin-left: 20px;
	word-break: break-word;
}

.postimg {
	max-width: 100%;
	height: auto;
	margin: 3px 20px 1em;
	float: left;
}

.reply .postimg {
	margin: 3px 20px 3px;
}

.postinfo label {
	display: contents;
}

.title {
	color: var(--color-fg-title);
	font-size: 1.2em;
	font-weight: var(--font-weight-bold);
}

.postnum a,
.sod {
	color: inherit !important;
	text-decoration: none;
}

.comment {
	margin: 1em 2.5em;
	word-break: break-all;
	word-break: break-word;
}

.post .title:empty,
.post .postertrip:empty,
.post .postInfoExtra:empty,
.post .backlinks:empty,
.post .filesize:empty,
.postformItem:empty {
	display: none !important;
}

/* .postinfo,
.postInfoExtra,
.post .soudaneContainer {
	display: flex;
	gap: 0 0.25em;
	flex-wrap: wrap;
	align-items: last baseline;
}

.post .time {
	display: flex;
	flex-wrap: wrap;
	align-items: last baseline;
} */

.threadSeparator {
	margin: 1em 0 0.5em;
	clear: both;
}

.previewBox {
	display: none;
	box-sizing: border-box;
	position: absolute;
	z-index: 1000;
	background-color: var(--color-bg-main);
	border: 1px solid var(--color-lo-contrast-border) !important;
	max-width: 90%;
}

.previewBox .post {
	border: none !important;
}

/************************ Post formatting *****************************/

.inline-quote .reply {
	border: none;
}

/************************ Footer **************************************/

.persistpager #pager {
	background-color: var(--color-bg-reply);
	position: fixed;
	position: sticky;
	left: 8px;
	bottom: 8px;
	z-index: 1;
}

#pager {
	border: 1px outset;
	float: left;
	vertical-align: middle;
	z-index: 1;
	max-width: 75%;
}

/************************ Administrator mode **************************/

.postlists {
	max-width: 100%;
	margin: 0 auto;
	border-spacing: 1px;
}

.postlists th {
	background-color: var(--color-bg-postlists-header);
	color: var(--color-fg-postlists-header);
}

.postlists th a {
	color: var(--color-fg-postlists-header-link);
}

.postlists tbody tr:nth-child(odd) {
	background-color: var(--color-bg-postlists-odd);
}

.postlists tbody tr:nth-child(even) {
	background-color: var(--color-bg-postlists-even);
}

.postlists th,
.postlists td {
	padding: 0.125em;
}

/************************ Overboard ***********************************/

#overboardFilterForm {
	display: table;
	margin: 0 auto;
	text-align: center;
}

/************************ PM system ***********************************/

#PMContainer {
	text-align: center;
}

#postform_tbl {
	margin: 0 auto;
	text-align: left;
}

.inputInfo {
	display: inline-block;
}

#postform_tbl #inputComment {

	max-width: 100vw;
	max-width: calc(100vw - 85px);
}

#tableLatestPM {
	margin: 1em auto;
}

.newPM {
	color: #ff4444;
	font-size: var(--font-size-small);
	font-weight: var(--font-weight-bold);
}

/************************ EXIF ****************************************/

.exif {
  background-color: var(--color-bg-main);
	text-align: left;
}

/*********************** File board/flash board ***********************/

.flashboardList {
	text-align: center;
	margin: 0 auto;
}

.flashboardList tr:nth-child(even) {
	background-color: var(--color-bg-flashboard-even);
}

.flashboardList .title {
	font-size: var(--font-size-regular);
  font-weight: var(--font-weight-bold);
  text-align: left;
}

.flashboardList .filecol,
.flashboardList .title {
  word-break: break-word;
  max-width: 50ch;
}

.flashboardtd:nth-of-type(1) {
  white-space: nowrap;
}

#swfWindow {
	display: block;
	position: fixed;

	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);

	background-color: rgba(255,255,255,0.9);
	z-index: 1000;
}

#closeButton {
	float: right;
	cursor: pointer;
	padding: 1px;
	width: 18px;
	height: 18px;
}

#swfContent {
	display: flex;
	justify-content: center;
	align-items: center;
}

#swf-embed-header {
	border: 1px solid #d9bFb7;
	background-color: rgba(240,224,214,0.9);
	color: #0000ee;
	font-size: var(--font-size-xx-small);
}

.flashboardEmbedText {
	cursor: pointer;
}

#embed-swf-name {
	max-width: 200px;
	overflow: hidden;
}

#darken-embed-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 900;
}

#ruffleLoadingOverlay {
	position: absolute;
	inset: 0;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #000;
	font-family: monospace;
	font-size: 12px;
	z-index: 10;
	pointer-events: none;
}

/******************* File board/flash board (mobile) ******************/

@media screen and (max-width: 900px) {
  .flashboardList th:nth-of-type(6),
  .flashboardList td:nth-of-type(6),
	.flashboardList th:nth-of-type(7),
	.flashboardList td:nth-of-type(7) {
    display: none;
  }
}

/* @media screen and (max-width: 650px) {
  .flashboardList {
    font-size: var(--font-size-small);
  }
} */

@media screen and (max-width: 470px) {
	.flashboardList th:nth-of-type(2),
	.flashboardList td:nth-of-type(2),
  .flashboardList th:nth-of-type(5),
  .flashboardList td:nth-of-type(5),
  .flashboardList th:nth-of-type(8),
	.flashboardList td:nth-of-type(8) {
    display: none;
  }

	.flashboardList th,
	.flashboardList td {
		padding: 0.5em 0;
	}
}

/************************ Gallery mode ********************************/

#galframe {
	display: none;
	background-color: #000000aa;
	color: #ffffff;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 490;
	flex-direction: row;
}

#galmain {
	width: calc(100% - 150px - 1em);
}

#galimgcontainer {
	position: relative;
}

#galimgprev {
	position: absolute;
	left: 0;
	top: 0;
	width: 50%;
	height: 100%;
}

#galimgnext {
	position: absolute;
	left: 50%;
	top: 0;
	width: 50%;
	height: 100%;
}

#galimg {
	max-width: 100%;
	max-height: 100%;
}

#galctrl {
	background-color: #111111ee;
	height: 2em;
}

#galctrl .filesize {
	display: block;
	margin-top: 0.25em;
}

#galctrl * {
	color: #ffffff !important;
	text-decoration: none;
}

#galctrl a, #galctrl a:hover {
	font-weight: var(--font-weight-bold);
}

#galctrl a:hover {
	text-decoration: underline;
}

#galctrl2 {
	font-family: Tahoma, Verdana;
	font-size: larger;
	float: right;
}

#galside {
	border-style: inset;
	background-color: #111111;
	padding: 0 5px;
	max-width: 150px;
	overflow-x: hidden;
	overflow-y: scroll;
}

#galside img {
	border: 1px solid #000088;
	opacity: 0.8;
	width: 100%;
}

#galside img:hover {
	border-color: #eeeeee;
}

#galside img.activethumb {
	border-color: #ffffff;
	opacity: 1;
}

/************************ Windows *************************************/

/* Window-manager, settings, and quick-reply base styles live in
   globalBase.css. Only the image-board theme overrides remain here. */
.window {
	z-index: 10000;
}

.winbar {
	background-color: var(--color-bg-postblock);
}

/************************ Mobile **************************************/

@media screen and (max-width: 600px) {
	body {
		margin: 0;
		margin-bottom: 8px;
	}

	.boardlist {
		margin: 8px;
		margin-bottom: 0;
		padding: 0;
	}

	.persistnav .boardlist {
		margin: 0;
	}

	.neomenuTitle,
	.neomenuTopLevel,
	.neomenuList {
		min-width: 50%;
	}

	#postformTable #com {
		height: 7.5em;
		width: 100%;
		max-width: 100%;
	}

	#topiclist,
	#topiclists {
		max-height: 200px;
		padding: 0 0.5em;
		overflow: auto;
	}

	.thread,
	.op {
		margin: 0 4px;
	}

	.doubledash,
	.serve5,
	.galleryb {
		display: none;
	}

	.postimg {
		margin: 3px 0;
		float: none;
	}

	.postinfo {
		clear: both;
	}

	.comment {
		margin: 1em 1.5em;
	}

	#pager {
		max-width: initial;
	}

	.persistpager #pager {
		max-width: 75%;
	}
}

@media screen and (max-width: 450px) {

	.boardlist {
		font-size: var(--font-size-regular);
		line-height: 1.5;
	}

	/* .postblock label {
		font-size: var(--font-size-small);
	} */

	.comment {
		margin: 1em;
	}

	button,
	input,
	textarea,
	select {
		font-size: var(--font-size-regular);
		line-height: 1.5;
	}

}

/************************ Probably not needed *************************/

/* h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
} */

/* input,
button,
summary,
select,
textarea,
select,
option,
audio {
	border-width: 1px;
	border-radius: 0;
	padding: 1;
} */

/* button,
input[type=submit],
input[type=reset] {
	padding: 1px 0.5em;
	margin: 0;
	margin-right: 2px;
} */

/* .mnav {
	visibility: hidden;
	margin: 0;
	padding: 0;
} */

/* .boardNav,
.boardlist,
#boardmenu li a {
  color: inherit;
} */

/* .boardNav.reply {
  padding:0 !important;
} */

/* .inputtext {
	margin: 0;
	margin-right: 2px;
	padding: 1px 4px;
} */

/* .imageurl {
	vertical-align: middle;
}

.imageurl img {
	margin-bottom: 3px;
} */

/* .inlineborder {
	color: #cccccc;
} */

/* .nobr {
	margin: 0;
	padding: 0;
	white-space: nowrap;
	overflow: hidden;
	display: inline;
	text-overflow: ellipsis;
} */

/* .boardlisticon {
	width: 16px;
	height: 16px;
	fill: #ff6600;
} */

/* .u2l {
	list-style-type: none;
	display: inline-block;
	text-align: left;
	min-width: 600px;
} */

/* .bbls {
	text-align: center;
} */

/* .auditlog {
	margin: 0.5em;
	padding: 1em;
	max-width: 720px;
} */
