/* 
Theme Name: dbglog Theme
Theme URI: http://dbglog.org
Description: A basic, clean, easily customizable layout, simple website.
Author: dbglog
Author URI: http://dbglog.org
*/

body {
	background-color: #FFFFFF;
	font-family: Verdana, Tahoma, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #000000;
	margin: 10px;
	padding: 0;
}

#wrapper {
  	width: 1000px;
  	margin: 0 auto;
        margin-top: 30px;
        margin-bottom: 30px;
 	border: 1px dashed #666666;
 	padding: 0;
}


/* - - -   HEADER STYLES  - - - */


#header {
	background-color: #FFFFFF;
	border-bottom: 1px dashed #666666;
	padding: 0;
}

#header p {
	margin: 15px 30px;
	padding: 5px;
}

.blogname {
	font-family: Verdana, Tahoma, sans-serif;
	font-size: 30px;
	color: #666666;
}

.blogslogan {
	font-family: Verdana, Tahoma, sans-serif;
	font-size: 14px;
	color: #000000;
}


/* - -  Hyperlinks inside Header - - */


#header a:link, #header a:active, #header a:visited {
	color: #666666;
	text-decoration: none;
}

#header a:hover {
	color: #666666;
	text-decoration: none;
}

#header a img {
	border: none
}


/* - - - - - - - - - - - - - - -
	GENERAL TEXT STYLES 
   - - - - - - - - - - - - - - - */

/* - - Hyperlinks - - */

a:link	{ 
	text-decoration: none; 
	color: #0000FF;
}

a:active { 
	text-decoration: none; 
	color: #0000CC; 
}

a:visited { 
	text-decoration: none; 
	color: #660066;
}

a:hover { 
	text-decoration: none; 
	color: #0066FF; 
}

a img {
	border: none;
}


/* - -  Headings  - - */


h1 {
  	font-size: 24px;
  	font-family: Verdana, Tahoma, sans-serif;
  	color: #333333;
  	margin: 5px 0;
  	padding: 0;
}

h2 {
  	font-size: 24px;
  	font-family: Verdana, Tahoma, sans-serif;
  	color: #666666;	
  	margin: 5px 0;
  	padding: 0;
}

h3 {
  	font-size: 20px;
  	font-family: Verdana, Tahoma, sans-serif;
  	color: #666666;
  	margin: 5px 0;
  	padding: 0;
}

h4 {
	font-size: 18px;
	font-family: Verdana, Tahoma, sans-serif;
	color: #000000;
	margin: 3px 0;
  	padding: 0;
}


/* - -  Paragraphs and List Items - - */


p, li {
	font-size: 100%;
	font-family: Verdana, Tahoma, sans-serif;
	color: #000000;
}


/* - -  Misc. Elements - - */


acronym, abbr {
	border-bottom: 1px dashed #999999;
}

acronym, abbr, span.caps {
	cursor: help;
	font-size: 90%;
}

blockquote {
	border-left: 2px solid #99CCFF;
	background: #FFFFFF;
	margin-left: 10px;
	padding: 2px;
}

cite {
	font-size: 90%;
}


/* - - - - - - - - - - - - - - - - - -
	MAIN TABLE STYLES
   - - - - - - - - - - - - - - - - - - */

/* - -  The Table - - */

#main {
	border-collapse: collapse;
	width: 100%;
	border: none;
	padding: 0;
	margin: 0;
}

.error404 #main {
	height: 100vh;
}

.error404 #main .content {
	text-align: center;
	vertical-align: top;
	padding-top: 25vh;
}


/* - - - -  The CONTENT Table Data Cell - - - - */

.content {
	vertical-align: top;
	background-color: #FFFFFF;
	padding: 15px;
	margin: 0;
	width: 80%;
}


/* - -  Everything inside the Content Table Cell - - */

.content p {
}

.post, .comments-post {
	margin-top: 5px;
	margin-right: 5px;
	margin-left: 5px;
}

.storytitle {
	margin-top: 10px;
	margin-bottom: 16px;
}

h4.storytitle {
	font-size: 24px;
}

h2.storytitle {
	font-size: 24px;
}

.post h1 {
	font-size: 24px;
	margin-bottom: 16px;
}

.storytitle a:link, .storytitle a:active, .storytitle a:visited {
	color: #666666;
	text-decoration: none;
}

.storytitle a:hover {
	color: #999999;
	text-decoration: none;
}

.meta {
	font-size: 14px;
	line-height: 1.5;
}

.meta li, ul.post-meta li {
	display: inline;
}

.meta ul {
	display: inline;
	list-style: none;
	margin: 0;
	padding: 0;
}

.meta {
	color: #000000;
	font-weight: normal;
	letter-spacing: 0;
        padding-bottom: 7px;
        border-bottom: #000000 1px dashed;
}

.meta .post-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.meta .post-meta-info {
	flex: 1 1 auto;
	min-width: 0;
}

.meta .post-meta-edit {
	margin-left: auto;
	white-space: nowrap;
}

.meta .post-tags {
	display: block;
}

.meta .post-tags {
	margin-top: 8px;
}

.pagination {
	text-align: left;
	margin: 20px 0;
}

.pagination .pagination-info {
	display: inline-block;
	margin-right: 8px;
	color: #000000;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 4px 8px;
	margin: 0 4px;
	border: 1px dashed #666666;
	color: #666666;
	text-decoration: none;
}

.pagination .page-numbers.current {
	font-weight: bold;
	background-color: #F2F2F2;
}


.storycontent {
	margin-bottom: 16px;
}

.post-toc {
	position: fixed;
	top: 0;
	left: 0;
	display: inline-block;
	width: auto;
	max-width: 260px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	border: none;
	padding: 0;
	box-sizing: border-box;
	background-color: transparent;
	z-index: 10;
}

.post-toc-list,
.post-toc-sublist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.post-toc-item {
	margin: 0 0 6px;
}

.post-toc-item a {
	display: block;
	text-decoration: none;
	color: #666666;
	font-size: 24px;
}

.post-toc-item a:hover {
	color: #0066FF;
}

.post-toc-item--h1 > a {
	color: #333333;
	font-weight: bold;
}

.post-toc-item--h2 > a {
	color: #666666;
	font-weight: normal;
}

.post-toc-item--h3 > a,
.post-toc-item--h4 > a {
	color: #666666;
	font-weight: normal;
}

.post-toc-sublist {
	margin: 6px 0 0 12px;
}

.post-toc-sublist .post-toc-sublist {
	margin-left: 16px;
}

.post-toc-sublist .post-toc-item a::before {
	content: "\00B7 ";
	color: #666666;
}

.archive-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.archive-nav {
	opacity: 0;
	pointer-events: none;
}

.archive-nav.archive-nav-ready {
	opacity: 1;
	pointer-events: auto;
}

.archive-nav-year > a {
	display: block;
	text-decoration: none;
	color: #333333;
	font-size: 18px;
	font-weight: bold;
}

.archive-nav-year > a:hover {
	color: #0066FF;
}

.archive-list {
	margin-top: 12px;
}

.archive-year-title {
	margin-top: 24px;
	margin-bottom: 12px;
}

.archive-year-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.archive-item {
	margin: 0 0 5px;
}

.archive-date {
	color: #666666;
	margin-right: 6px;
}

.archive-title {
	color: #666666;
	text-decoration: none;
}

.archive-title:hover {
	color: #0066FF;
}

.archive-meta {
	color: #333333;
}

.archive-sep {
	color: #999999;
}

@media screen and (max-width: 1420px) {
	.post-toc {
		position: static;
		width: 100%;
		left: auto;
		top: auto;
		max-height: none;
		margin-bottom: 16px;
	}
}

@media screen and (max-width: 1000px) {
	.archive-nav {
		padding: 5px 15px;
	}

	.archive-nav-list {
		margin-top: 25px;
	}
}

.more-link {
	display: block;
	margin-top: 8px;
	margin-bottom: 16px;
}

.storycontent p {
}

.guestbook {
	margin-top: 12px;
}

.guestbook-messages {
	width: 100%;
	border: 1px dashed #666666;
	background-color: #FFFFFF;
	box-sizing: border-box;
	padding: 15px;
	overflow-y: auto;
}

.guestbook-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.guestbook-message {
	max-width: 100%;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px dashed #666666;
	width: 100%;
	box-sizing: border-box;
}

.guestbook-message:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.guestbook-message--owner {
	margin-left: auto;
	text-align: right;
}

.guestbook-meta {
	font-size: 16px;
	font-weight: bold;
	color: #666666;
	margin-bottom: 4px;
}

.guestbook-text {
	border: none;
	padding: 8px 10px;
	background-color: #FFFFFF;
}

.guestbook-text p {
	margin: 0 0 6px;
}

.guestbook-text p:last-child {
	margin-bottom: 0;
}

.guestbook-empty {
	color: #666666;
}

.guestbook-form {
	margin-top: 12px;
}

.guestbook-form form {
	display: flex;
	flex-direction: column;
}

.guestbook-form .guestbook-form-row {
	display: flex;
	gap: 20px;
	margin-bottom: 12px;
	order: 1;
}

.guestbook-form .comment-form-author,
.guestbook-form .comment-form-email {
	display: flex;
	align-items: center;
	flex: 1;
	gap: 4px;
	margin: 0;
	float: none;
}

.guestbook-form .comment-form-author label,
.guestbook-form .comment-form-email label {
	white-space: nowrap;
}

.guestbook-form .comment-form-author input,
.guestbook-form .comment-form-email input {
	flex: 1;
	box-sizing: border-box;
}

.guestbook-form .comment-form-comment textarea {
	width: 100%;
	height: 160px;
	box-sizing: border-box;
	max-width: 100%;
	resize: vertical;
}

.guestbook-form .comment-form-comment-label {
	margin: 0 0 6px;
	order: 3;
}

.guestbook-form .comment-form-required-note {
	margin: 0 0 6px;
	color: #666666;
	font-size: 12px;
	order: 3;
}

.guestbook-form .comment-form-comment {
	margin: 0 0 2px;
	order: 4;
}

.guestbook-form .comment-form-cookies-consent {
	margin: 4px 0 12px;
	order: 2;
}

.guestbook-form .comment-form-cookies-consent label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.guestbook-form .form-submit {
	text-align: right;
	order: 5;
}

.feedback {
	text-align: right;
	clear: both;
	margin-right: 30px;
	font-size: 12px;
}

ul.post-meta {
	list-style: none;
}

ul.post-meta span.post-meta-key {
	font-weight: bold;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .guestbook-message {
	margin-bottom: 16px;
	padding-bottom: 12px;
}

.comment-list .children {
	border-left: none;
	margin-left: 0;
	padding-left: 0;
}


/* - -  The Comments - - */

#comments h3,
#comments .comments-title {
	font-size: 14px;
	font-family: Verdana, Tahoma, sans-serif;
	color: #666666;
}

#comments p {
}



#commentlist li ul,
.comment-list .children {
	border-left: 1px solid #99CCFF;
	font-size: 100%;
	list-style-type: none;
}


/* - -  The Comment Form - - */

#commentform  #comment{
  width: 95%;
  height: 90px;
  background-color:#FFFFFF;
  margin:0;
}

#commentform #name, #commentform #author, #commentform #email, #commentform #url, #commentform textarea {
	background: #FFFFFF;
	border: 1px solid #666666;
	padding: 5px;
}

#commentform textarea {
	width: 100%;
}


/* - - - - - - - - - - - - - - - - 
	SIDEBAR STYLES
   - - - - - - - - - - - - - - - - */

.menu {
  	width: 20%;
  	vertical-align: top;
  	background-color: #FFFFFF;
  	border-left: 1px dashed #666666;
  	padding: 0;
}

.sidebar-layout {
	position: sticky;
	top: 30px;
	width: 100%;
	background-color: #FFFFFF;
	box-sizing: border-box;
}


.nav {
  	padding: 0;
}

#hmenu {
  	margin: 0;
  	padding: 0;
}

#hnav {
  	margin: 0;
  	padding: 0;
}


/* - - Search Form - - */

.nav form {
	margin: 0;
}

.nav input#s,
.nav .search-form .search-field,
.nav .search-form input[type="search"],
.nav .search-form input[type="text"] {
	width: 90%;
	background: #FFFFFF;
	border: 1px solid #666666;
	color: #000000;
}


/* - - Subheadings - - */

.nav h2, .nav h3, .nav h4 { 
	color:#000000;
	font-size: 14px;
        font-family: Verdana, Tahoma, sans-serif;
	line-height: 1.5;
	margin: 13px 5px 8px 0;
	padding-bottom: 2px;
        text-decoration: none;
}


/* - - List Styles - - */

.nav ul {
	color: #000000;
	list-style-type: none;
	margin: 0;
	padding: 5px 15px;
	text-transform: none;
}	
  
.nav ul ul {
	font-weight: normal;
	line-height: 100%;
	list-style-type: none;
	margin: 0;
	padding: 0;
	text-align: left;
}


/* - - List Items (Text) - - */

.nav ul ul li {
	border: 0;
	font-size: 14px;
	line-height: 1.5;
	font-family: Verdana, Tahoma, sans-serif;
	margin-bottom: 3px;
	padding: 0;
}

.nav .intro-text {
	margin: 0 0 6px;
}

.nav .intro-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav .intro-header h4 {
	margin: 13px 5px 8px 0;
}

.nav .tag-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav .tag-header h4 {
	margin: 13px 5px 8px 0;
}

.nav .archive-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav .archive-header h4 {
	margin: 13px 5px 8px 0;
}

.nav .intro-guestbook-link {
	font-size: 14px;
	color: #0000FF;
	text-decoration: none;
}

.nav .intro-guestbook-link:hover {
	color: #0066FF;
	text-decoration: none;
}

.sidebar-toggle,
.toc-toggle {
	display: none;
	position: fixed;
	bottom: 16px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px dashed #666666;
	background-color: #FFFFFF;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex-direction: column;
	cursor: pointer;
	z-index: 1100;
}

.sidebar-toggle {
	right: 16px;
}

.toc-toggle {
	left: 16px;
}

.sidebar-toggle-line {
	display: block;
	width: 20px;
	height: 2px;
	background-color: #666666;
}

.sidebar-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	z-index: 1000;
}

.nav .tag-all-link {
	font-size: 14px;
	color: #0000FF;
	text-decoration: none;
}

.nav .tag-all-link:hover {
	color: #0066FF;
	text-decoration: none;
}

.nav .archive-all-link {
	font-size: 14px;
	color: #0000FF;
	text-decoration: none;
}

.nav .archive-all-link:hover {
	color: #0066FF;
	text-decoration: none;
}

.nav .intro-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav .tag-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav #tags h4 {
	font-size: 15px;
}

.nav #tags .tag-list {
	margin-left: -5px;
}

.nav .tag-list li {
	display: inline-block;
	margin: 0 3px 3px 0;
	font-size: 14px;
}

.nav .archive-more {
	color: #666666;
	padding-left: 14px;
}


/* - - Sidebar Hyperlinks - - */

.nav ul ul li a:link, .nav ul ul li a:active {
	color: #0000FF;
	text-decoration: none;
}

.nav ul ul li a:visited {
	color: #660066;
	text-decoration: none;
}

.nav ul ul li a:hover {
        color: #0066FF;
	text-decoration: none;
}


/* - - - - - - - - - - - - - - - - 
	FOOTER STYLES
   - - - - - - - - - - - - - - - - */

#footer {
  	border-top: 1px dashed #666666;
  	margin-bottom: 0;
  	background: #FFFFFF;
  	text-align: center;
  	padding: 2px;
}

#footer p {
  	margin: 3px;
  	padding: 1px;
}

.credit {
  	font-size: 11px;
  	color: #666666;
  	text-align: right;
  	margin-bottom: 0;
}

.credit a {
	color: #666666;
	text-decoration: none;
}


/* - - - - - - - - - - - - - - - - 
	THE CALENDAR
   - - - - - - - - - - - - - - - - */


#wp-calendar {
	border: 1px solid #DDDDDD;
	empty-cells: show;
	font-size: 14px;
	margin: 0;
	width: 90%;
}

#wp-calendar #next a {
	padding-right: 10px;
	text-align: right;
}

#wp-calendar #prev a {
	padding-left: 10px;
	text-align: left;
}

#wp-calendar a {
	display: block;
	text-decoration: none;
}

#wp-calendar a:hover {
	background: #3399EE;
	color: #333333;
}

#wp-calendar caption {
	color: #000000;
	font-size: 14px;
	text-align: left;
}

#wp-calendar td {
	color: #333333;
	font-size: 12px;
	font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
	letter-spacing: normal;
	padding: 2px 0;
	text-align: center;
}

#wp-calendar td.pad:hover {
	background: #FFFFFF;
}

#wp-calendar td:hover, #wp-calendar #today {
	background: #999999;
	color: #FFFFFF;
}

#wp-calendar th {
	font-style: normal;
	text-transform: capitalize;
}

@media screen and (max-width: 1000px) {
	#wrapper {
		width: auto;
		margin: 10px;
		box-sizing: border-box;
	}

	#main,
	#main tbody,
	#main tr,
	#main td {
		display: block;
		width: 100%;
	}

	html,
	body {
		overflow-x: hidden;
	}

	#main td.content {
		width: 100%;
		box-sizing: border-box;
	}

	#main td.menu {
		display: block;
		position: fixed;
		right: 0;
		top: 0;
		bottom: 0;
		height: 100dvh;
		height: 100vh;
		width: 280px;
		max-width: 80vw;
		overflow-y: auto;
		background-color: #FFFFFF;
		border-left: 1px dashed #666666;
		box-sizing: border-box;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		will-change: transform;
		z-index: 1050;
	}

	.sidebar-layout {
		position: static;
		top: auto;
		width: 100%;
	}

	.sidebar-toggle,
	.toc-toggle {
		display: flex !important;
		position: fixed !important;
		bottom: calc(16px + env(safe-area-inset-bottom)) !important;
		z-index: 1200;
	}

	.sidebar-toggle {
		right: calc(16px + env(safe-area-inset-right)) !important;
	}

	.toc-toggle {
		left: calc(16px + env(safe-area-inset-left)) !important;
	}

	.sidebar-backdrop {
		display: block;
	}

	body.sidebar-open #main td.menu {
		transform: translateX(0);
	}

	.post-toc {
		position: fixed;
		left: 0;
		top: 0;
		bottom: 0;
		height: 100dvh;
		height: 100vh;
		width: 260px;
		max-width: 80vw;
		max-height: none;
		margin: 0;
		padding: 5px 15px;
		background-color: #FFFFFF;
		border-right: 1px dashed #666666;
		overflow-y: auto;
		transform: translateX(-100%);
		transition: transform 0.25s ease;
		will-change: transform;
		z-index: 1050;
	}

	.post-toc .post-toc-list {
		margin-top: 25px;
	}

	body.toc-open .post-toc {
		transform: translateX(0);
	}



	body.sidebar-open .sidebar-backdrop,
	body.toc-open .sidebar-backdrop {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	body.sidebar-open #main td.menu .nav #intro {
		margin-top: 20px;
	}

	.guestbook-form .guestbook-form-row {
		display: block;
	}

	.guestbook-form .comment-form-author {
		margin-bottom: 12px;
	}

	.guestbook-form .comment-form-author,
	.guestbook-form .comment-form-email {
		display: flex;
		align-items: center;
		width: 100%;
	}

	.guestbook-form .comment-form-author input,
	.guestbook-form .comment-form-email input {
		width: 100%;
	}
}
