body {
	font: 1em "DIN Pro", "Fira Sans", sans-serif;
	background-color: #fafafa;
	color: #161616;
	text-align: left;
	line-height: 1.5em;
	margin: 0 auto;
	padding: 0 1em;
}

#index {
	display: flex;
	flex-direction: column;
}

.key-text-content {
	font-size: 1.2rem;
	line-height: 1.6em;
}

#banner {
	grid-row: 1;
	grid-column: 1 / 3;
}

nav {
	grid-row: 2;
	grid-column: 1 / 3;
}

nav li {
	display: inline;
	padding: 0 0.5em;

}

#content-wide {
	grid-row: 3;
	grid-column: 1 / 3;
	flex: 1;
}

#content-wide > ul > li > img {
	display: inline;
	margin:0;
}

#content {
	grid-row: 3;
	grid-column: 1 / 1;
	flex: 1;
}

#post-list, #sidebar ul, #next-prev-links, nav ul {
	list-style: none;
	padding: 0;
}

#paginator {
	display: grid;
	grid-template-columns: repeat(3, auto);
	width: 100%;
}

#page-newer {
	grid-column: 1;
}

#page-number {
	grid-column: 2;
	text-align: center;

}

#page-older {
	grid-column: 3;
	text-align: right;
}


a:link,
a:visited {
	color: #326DCE;
	padding: 0 1px;
	text-decoration: none;
}

#banner > h1 > a {
	color: #000;
}

#banner > h1 {
	line-height: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
	line-height: normal;
}

h2 {
	font-size: 1.75em;
}

h3 {
	font-size: 1.5em;
}

h4 {
	font-size: 1.25em;
}

h5 {
	font-size: 1.1em;
}

figcaption {
	text-align: center;
}

figure {
	margin: 0 0 0.5em 0;
	padding: 0 0.5em 0.5em 0.5em;
	border: 1px solid lightgray;
}

pre[class*="language-"] {
	background-color: #fcfcfc;
	border: 1px solid lightgray;
	font-size: 1rem;
}

code {
	font-size: 1rem;
}

/* Copy button in code blocks */

.copy-to-clipboard-button {
    /* Remove text */
    font-size: 0 !important;

    /* Modern glass-morphism style */
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    position: relative !important;
}

/* SVG icon */
.copy-to-clipboard-button::before {
    content: '' !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'%3E%3C/path%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    display: block !important;
}

/* Dark theme adjustment */
pre[class*="language-"] .copy-to-clipboard-button::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* Hover state */
.copy-to-clipboard-button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Success state with checkmark */
.copy-to-clipboard-button[data-copy-state="copy-success"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234CAF50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* Fade in on hover */
div.code-toolbar > .toolbar {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

div.code-toolbar:hover > .toolbar {
    opacity: 1 !important;
}

/* Add subtle animation */
@keyframes copyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.copy-to-clipboard-button:active {
    animation: copyPulse 0.2s ease !important;
}

/* Tooltip on hover (optional) */
.copy-to-clipboard-button {
    position: relative !important;
}

.copy-to-clipboard-button::after {
    content: "Copy code" !important;
    position: absolute !important;
    bottom: -30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease !important;
}

.copy-to-clipboard-button:hover::after {
    opacity: 1 !important;
}

.copy-to-clipboard-button[data-copy-state="copy-success"]::after {
    content: "Copied!" !important;
}

div.code-toolbar > .toolbar > .toolbar-item > button,
div.code-toolbar > .toolbar > .toolbar-item > span {
	box-shadow: none;
}
/* End of copy button styles */

img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 1em auto;
}

main img {
	max-width: 75%;
}

.tags {
	/*line-height: 2.5em;*/
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0.6em;
}

.tags a {
	border: 1px solid lightgray;
	margin: 0;
	padding: 0.15em 0.5em;
	color: #000;
	white-space: nowrap;
}

dt {
	padding-top: 1.5em;
}

blockquote {
	font-style: italic;
	font-weight: normal;
	padding: 20px;
	border: 1px solid lightgray;
	border-left: 3px solid #1F3683;
	margin-bottom: 20px;
}

footer.post-info {
	margin-top: 1em;
	border-top: 1px solid lightgray;
	padding: 0.5em 0.15em;
}

#site-footer {
	grid-row: 4;
  	grid-column: 1 / 3;
	margin-top: 4em;
	padding: 1em 0;
	border-top: solid 1px grey;
	font-size: smaller;
	line-height: 1.5em;
	color: grey;
	text-align: center;
}

#site-footer p {
	margin: 0.1em;
}

#site-footer a, #site-footer a:visited {
	color: dimgray;
	text-decoration: underline;
	text-underline-offset: 0.2em; /* Adjust this value as needed */
}

#prev-link {
	float: right;
}

#next-link {
	float: left;
}

article.hentry {
	padding-bottom: 2em;
}

#sidebar li {
	border-bottom: 1px solid lightgray;
	padding: 0.25em 0;
	text-align: left;
}

.sidebar-block {
	padding: 0.5em;
}

.entry-content > table {
	width: 100%;

}
.entry-content > table >thead {
	background-color: #eee;
}

.entry-content li p {
	margin: 0;
}

h2.entry-title {
	text-align: left;
	line-height: 1.5em;
}

.caption {
	color: dimgray;
	font-weight: normal;
	text-align: center;
	margin-top: 0.5em;
}

.youtube_video {
	display: inline-block;
	position: relative;
}

.youtube_video:after {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%,-50%);
	width: 96px;
	height: 96px;
	background-size: cover;
	content: '';
}

#fridge-magnets-map {
	width: 100%;
	height: 0;
	padding-bottom: 50%;
	background: lightgray;
}

.pagefind-ui__drawer {
	height: 400px !important;
	overflow: auto !important;
}

mark {
	color: #326DCE !important;
	background-color: white !important;
	font-weight: bold !important;
}

.readmore {
	text-align: right;
}

.readmore a {
	font-weight: bold;
}

td {
	vertical-align: top;
	padding: 0.25em;
	text-align: initial;
}

tr:nth-child(even) {
	background-color: #f2f2f2;
}

.profile-photo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px; /* space between icons */
  margin: 1.2rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  object-fit: cover;
  display: block;
	margin: 0;
}

.margin-left-5 {
	margin-left: 5%;
}


@media (min-width: 70em) {
	#index {
		max-width: 1054px;

		display: grid;

		grid-template-columns: 70% auto;
		grid-template-rows: auto auto auto auto;
	}

	#content {
		padding-right: 3em;
	}

	nav {
		text-align: right;
	}
}

@media (max-width: 70em) {
	#index {
		max-width: 740px;
		display: block;
		margin: 0 auto;
	}

	#content {
		padding-right: 1em;
	}

	nav {
		text-align: right;
	}

	aside {
		margin-top: 1.5rem;
	}

	.sidebar-block > p {
		text-align: center;
	}
}

@media (max-width: 50em) {
	nav {
		text-align: center;
	}

	nav ul li {
		display: block;
		padding-bottom: 1em;
	}

	#related-posts li, #series_parts li {
		padding: 0.25em 0;
	}

	main img {
		max-width: 100%;
	}

	main blockquote {
		margin-left: 0;
		margin-right: 0;
	}
}
