body {
	margin: 0;
	padding: 0;
	background-color: rgb(70, 70, 70);
	background-image: linear-gradient(in oklch, black 18.5%, rgb(255,170,0));
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	overflow-x: hidden;
	min-height: 100vh;
}

.container {
	padding: 10px;
	margin: auto;
	max-width: 990px;
	background-color: rgb(23, 23, 23);
}

.title {
	font-size: 23pt;
	font-family: "SiteFont";
	color: rgb(255, 255, 255);
	text-decoration: none;
	text-align: center;
	max-width: 990px;
	padding-left: 10px;
	padding-right: 10px;
	padding-bottom: 0;
	margin: auto;
	background-color: rgb(23, 23, 23);
}

h1 { margin: 0; }

.title:hover { color: rgb(255, 170, 0); }

.links:hover {
	color: rgb(255, 255, 255);
	background-color: rgb(255, 170, 0);
	border-radius: 5px;
}

.links {
	font-size: 13pt;
	margin-right: 5px;
	margin-bottom: 10px;
	margin-top: 10px;
	border-radius: 5px;
	font-family: "SiteFont", Tahoma, sans-serif !important;
	-webkit-appearance: none;
	appearance: none;
	padding: 3px 8px;
	border: 1px solid rgb(140, 140, 140);
	background-color: rgb(220, 220, 220);
	color: rgb(0, 0, 0);
	cursor: pointer;
}

.stuff {
	background-color: rgb(255, 255, 255);
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 3px;
	padding-bottom: 1px;
	margin: auto;
	max-width: 990px;
	font-family: "SiteFont", Tahoma, sans-serif;
}

.buttons {
	text-align: center;
	max-width: 990px;
	padding-left: 10px;
	padding-right: 10px;
	padding-bottom: 0;
	padding-top: 0;
	margin: auto;
	background-color: rgb(23, 23, 23);
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2px;
}

.input { font-size: 13.5pt; font-family: "SiteFont", Tahoma; }

.webtitle { text-decoration: none; color: rgb(255, 255, 255); }
.webtitle:hover { color: rgb(255, 170, 0); }

.big { font-size: 15pt; }
.small { font-size: 11pt; }

.latest {
	background-color: rgb(215, 215, 215);
	padding: 5px;
	font-family: "SiteFont", Tahoma, sans-serif;
}

.latest-text { margin-left: 5px; margin-top: 5px; }

.main { font-family: "SiteFont", Tahoma, sans-serif; }

.titlecolour { color: rgb(255, 170, 0); }

.header {}

.pedit1 { margin: 0; padding: 10px; }

.bloglist {
	font-size: 14pt;
	max-width: 450px;
	border: solid 2px rgb(33, 33, 33);
	border-radius: 5px;
	margin: auto;
	margin-top: 10px;
	margin-bottom: 10px;
	overflow: hidden;
	background: linear-gradient(rgb(40, 40, 40), rgb(23, 23, 23));
}

.bloglist img {
		width: 100% !important;
		height: auto !important;
		display: block;
	}


.bloglist p {
	margin: 0;
	border-bottom: 2px solid rgb(90, 90, 90);
}

.bloglist p:last-child {
	border-bottom: none;
}

.bloglist a {
	display: block;
	padding: 8px 14px;
	text-decoration: none;
	color: rgb(220, 220, 220);
	transition: background-color 0.2s, color 0.2s;
}

.bloglist a:hover {
	background-color: rgb(255, 170, 0);
	color: rgb(255, 255, 255);
}

.i:hover { color: rgb(255, 255, 255); }

.no-transition * {
  transition: none !important;
}

.img-text-block {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.indeximg {
	max-width: 95%;
}

.kofi-shrink {
	transform: scale(0.95);
	transform-origin: left center;
	display: inline-block;
	margin-bottom: 10px;
}

.wall-reply-link {
	text-decoration: none;
	cursor: pointer;
	font-weight: bold;
}

.wall-post.wall-highlight {
	outline: 2px solid rgb(255, 170, 0);
	outline-offset: 2px;
}

.wall-reply-row {
	margin-top: 8px;
}

.wall-reply-row .wall-btn {
	font-size: 9pt;
	padding: 3px 10px;
}

#wall-form {
	width: 100%;
	max-width: 990px;
	box-sizing: border-box;
	margin: 6px 0 15px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

#wall-name, #wall-subject {
	font-family: "SiteFont", Tahoma, sans-serif;
	font-size: 11pt;
	padding: 6px 10px;
	border: 1px solid rgb(140, 140, 140);
	border-radius: 5px;
	max-width: 320px;
}

#wall-message {
	font-family: "SiteFont", Tahoma, sans-serif;
	font-size: 11pt;
	padding: 8px 10px;
	border: 1px solid rgb(140, 140, 140);
	border-radius: 5px;
	resize: vertical;
	min-height: 70px;
}

#wall-submit, .wall-btn {
	font-size: 12pt;
	font-family: "SiteFont", Tahoma, sans-serif !important;
	padding: 6px 16px;
	border-radius: 5px;
	border: 1px solid rgb(140, 140, 140);
	background-color: rgb(220, 220, 220);
	color: rgb(0, 0, 0);
	cursor: pointer;
	align-self: flex-start;
}

#wall-submit:hover, .wall-btn:hover {
	color: rgb(255, 255, 255);
	background-color: rgb(255, 170, 0);
}

.wall-btn.danger:hover { background-color: rgb(200, 60, 60); }

#wall-status {
	font-size: 9.5pt;
	color: rgb(120, 120, 120);
	min-height: 0;
}

#wall-posts {
	max-width: 990px;
	margin: 8px 0 0;
}

.wall-post {
	background-color: rgb(240, 240, 240);
	padding: 14px 16px;
	margin-bottom: 10px;
	border-radius: 6px;
}

.wall-post-subject {
	font-weight: bold;
	font-size: 13pt;
	margin: 0;
}

.wall-post-meta {
	font-size: 9pt;
	color: rgb(140, 140, 140);
	margin: 2px 0 6px;
}

.wall-post-name {
	font-weight: bold;
	color: rgb(255, 170, 0);
}

.wall-post-text {
	margin: 0;
	font-size: 11pt;
	white-space: pre-wrap;
	word-break: break-word;
}

.wall-post-actions {
	margin-top: 8px;
	display: flex;
	gap: 8px;
}

.wall-post-actions button {
	font-size: 9pt;
	padding: 3px 10px;
}

.wall-edit-area {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 6px;
}

.stuff hr {
	border: none;
	border-top: 2px solid rgb(90, 90, 90);
	margin: 15px 0;
}

#wall-toolbar {
	display: flex;
	gap: 4px;
}

.fmt-btn {
	font-family: "SiteFont", Tahoma, sans-serif;
	font-size: 11pt;
	width: 30px;
	height: 28px;
	border-radius: 5px;
	border: 1px solid rgb(140, 140, 140);
	background-color: rgb(220, 220, 220);
	color: rgb(0, 0, 0);
	cursor: pointer;
}

.fmt-btn:hover {
	background-color: rgb(255, 170, 0);
	color: rgb(255, 255, 255);
}

.wall-post-text b { font-weight: bold; }
.wall-post-text i { font-style: italic; }
.wall-post-text u { text-decoration: underline; }
.wall-post-text s { text-decoration: line-through; }

.fmt-btn {
	font-family: "SiteFont", Tahoma, sans-serif;
	font-size: 11pt;
	width: 30px;
	height: 28px;
	border-radius: 5px;
	border: 1px solid rgb(140, 140, 140);
	background-color: rgb(200, 200, 200);
	color: rgb(0, 0, 0);
	cursor: pointer;
}

.fmt-btn:hover {
	background-color: rgb(255, 170, 0);
	color: rgb(255, 255, 255);
}

/* ===== ACCOUNT / LOGIN WIDGET ===== */

#acct-widget {
	position: relative;
	display: inline-block;
	margin-top: 12px;
	margin-bottom: 0;
	font-family: "SiteFont", Tahoma, sans-serif;
}

#acct-toggle {
	font-size: 13pt;
	border-radius: 5px;
	font-family: "SiteFont", Tahoma, sans-serif !important;
	-webkit-appearance: none;
	appearance: none;
	padding: 3px 8px;
	border: 1px solid rgb(140, 140, 140);
	background-color: rgb(220, 220, 220);
	color: rgb(0, 0, 0);
	cursor: pointer;
}

#acct-toggle:hover {
	color: rgb(255, 255, 255);
	background-color: rgb(255, 170, 0);
}

#acct-panel {
	display: none;
	position: absolute;
	top: 50px;
	right: 0;
	background: rgb(23, 23, 23);
	border: 1px solid rgb(90, 90, 90);
	border-radius: 8px;
	padding: 16px;
	width: 250px;
}

#acct-panel.open { display: block; }

.acct-status {
	color: rgb(220, 220, 220);
	font-size: 9.5pt;
	margin: 0 0 10px;
}

.acct-status b { color: rgb(255, 170, 0); }

.acct-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 10px;
}

.acct-tab {
	flex: 1;
	font-size: 9pt;
	padding: 5px 6px;
	border-radius: 5px;
	border: 1px solid rgb(90, 90, 90);
	background: rgb(40, 40, 40);
	color: rgb(200, 200, 200);
	cursor: pointer;
	font-family: "SiteFont", Tahoma, sans-serif;
}

.acct-tab.active {
	background: rgb(255, 170, 0);
	color: rgb(23, 23, 23);
	border-color: rgb(255, 170, 0);
}

.acct-form {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.acct-form input {
	font-family: "SiteFont", Tahoma, sans-serif;
	font-size: 10pt;
	padding: 6px 8px;
	border: 1px solid rgb(90, 90, 90);
	border-radius: 5px;
	background: rgb(40, 40, 40);
	color: rgb(220, 220, 220);
}

.acct-btn {
	font-size: 10pt;
	font-family: "SiteFont", Tahoma, sans-serif;
	padding: 6px 10px;
	border-radius: 5px;
	border: 1px solid rgb(140, 140, 140);
	background-color: rgb(220, 220, 220);
	color: rgb(0, 0, 0);
	cursor: pointer;
}

.acct-btn:hover {
	background-color: rgb(255, 170, 0);
	color: rgb(255, 255, 255);
}

.acct-note {
	font-size: 8pt;
	color: rgb(150, 150, 150);
	margin: 4px 0 0;
	line-height: 1.4;
}

.acct-error {
	font-size: 8.5pt;
	color: rgb(255, 120, 120);
	margin: 6px 0 0;
	min-height: 12px;
}

#wall-name-row #wall-name {
	width: 100%;
	box-sizing: border-box;
	font-family: "SiteFont", Tahoma, sans-serif;
	font-size: 11pt;
	padding: 8px 10px;
	border: 1px solid rgb(140, 140, 140);
	border-radius: 5px;
}

#wall-name.locked {
	background-color: rgb(230, 230, 230);
	color: rgb(90, 90, 90);
	cursor: default;
}

#acct-settings-link {
	text-align: right;
	font-size: 8.5pt;
	color: rgb(150, 150, 150);
	margin: 10px 0 0;
	cursor: pointer;
	text-decoration: underline;
}

#acct-settings-link:hover {
	color: rgb(255, 170, 0);
}

#acct-settings-panel {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgb(60, 60, 60);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

#acct-settings-panel input {
	font-family: "SiteFont", Tahoma, sans-serif;
	font-size: 10pt;
	padding: 6px 8px;
	border: 1px solid rgb(90, 90, 90);
	border-radius: 5px;
	background: rgb(40, 40, 40);
	color: rgb(220, 220, 220);
}

[data-theme="dark"] .stuff {
	background-color: rgb(35, 35, 35) !important;
	color: rgb(225, 225, 225) !important;
	transition: background-color 0.3s, color 0.3s;
}

[data-theme="dark"] .latest {
	background-color: rgb(50, 50, 50) !important;
	color: rgb(255, 255, 255) !important;
	transition: background-color 0.3s, color 0.3s;
}

[data-theme="dark"] .stuff a,
[data-theme="dark"] .latest a {
	color: rgb(255, 170, 0);
}

[data-theme="light"] .stuff,
[data-theme="light"] .latest {
	transition: background-color 0.3s, color 0.3s;
}

[data-theme="dark"] #themeToggle {
	background-color: rgb(210, 210, 210);
	color: rgb(23, 23, 23);
}

[data-theme="light"] #themeToggle {
	background-color: rgb(23, 23, 23);
	color: rgb(210, 210, 210);
}

[data-theme="dark"] .bloglist {
	border-color: rgb(15, 15, 15);
}

[data-theme="dark"] .bloglist p {
	border-bottom-color: rgb(40, 40, 40);
}

[data-theme="dark"] .bloglist a {
	color: rgb(210, 210, 210);
}

[data-theme="dark"] .bloglist {
	background: linear-gradient(rgb(80, 80, 80), rgb(50, 50, 50));
	transition: background 0.3s;
}

[data-theme="light"] .bloglist {
	transition: background 0.3s;
}

[data-theme="dark"] .stuff img {
	border-color: rgb(225, 225, 225) !important;
}

[data-theme="light"] .stuff img {
	border-color: black !important;
}

[data-theme="dark"] #wall-name,
[data-theme="dark"] #wall-subject,
[data-theme="dark"] #wall-message,
[data-theme="dark"] .wall-edit-area input,
[data-theme="dark"] .wall-edit-area textarea {
	background-color: rgb(50, 50, 50);
	color: rgb(225, 225, 225);
	border-color: rgb(80, 80, 80);
}

[data-theme="dark"] .wall-post {
	background-color: rgb(45, 45, 45);
}

[data-theme="dark"] .stuff hr {
	border-top: 2px solid rgb(70, 70, 70);
}

[data-theme="dark"] #wall-name.locked {
	background-color: rgb(18, 18, 18);
	color: rgb(150, 150, 150);
}

[data-theme="dark"] .fmt-btn {
	background-color: rgb(60, 60, 60);
	color: rgb(220, 220, 220);
	border-color: rgb(90, 90, 90);
}

/* ===== MOBILE ===== */

@media (max-width: 600px) {
	.title {
		font-size: 16pt;
		padding-top: 8px;
	}

	.links {
		margin-right: 3px;
		margin-top: 6px;
		margin-bottom: 6px;
		padding: 4px 8px;
		font-size: 12pt;
	}

	.buttons {
		gap: 3px;
		padding-left: 5px;
		padding-right: 5px;
	}

	.stuff, .latest {
		padding-left: 8px;
		padding-right: 8px;
	}

	.stuff img {
		max-width: 100% !important;
		height: auto !important;
	}

	.bloglist {
		max-width: 100%;
		font-size: 16pt;
	}

	.bloglist img.arc {
		width: 100% !important;
		height: auto !important;
		display: block;
	}

	.container {
		padding: 5px;
	}

	h1 {
		font-size: 18pt;
	}

	.title h1 {
		font-size: 33pt;
	}	

 	.img-text-block {
    		flex-direction: column;
  	}
  
	.img-text-block img {
    		width: 100%;
  	}

	.os {
		font-size: 30pt;
	}

	#acct-toggle { height: 38px; padding: 0 14px; font-size: 10.5pt; }
	#acct-panel {
		left: 0;
		right: auto;
		width: min(280px, calc(100vw - 40px));
	}

}

@font-face {
	font-family: "SiteFont";
	src: local("Verdana"), url("fonts/DejaVuSans.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: "SiteFont";
	src: local("Verdana Bold"), local("Verdana-Bold"), url("fonts/DejaVuSans-Bold.ttf") format("truetype");
	font-weight: bold;
	font-style: normal;
}

@font-face {
	font-family: "SiteFont";
	src: local("Verdana Italic"), local("Verdana-Italic"), url("fonts/DejaVuSans-Oblique.ttf") format("truetype");
	font-weight: normal;
	font-style: italic;
}

@font-face {
	font-family: "SiteFont";
	src: local("Verdana Bold Italic"), local("Verdana-BoldItalic"), url("fonts/DejaVuSans-BoldOblique.ttf") format("truetype");
	font-weight: bold;
	font-style: italic;
}