@media (prefers-color-scheme: dark) {
	body {
		color: white;
		background-image: url(cammydark.jpg);
	}

	header {
		background: url(headerdark.png);
	}

	article {
		background-color: rgba(0, 51, 51, 0.8);
	}
	
	nav {
		background-color: #39acac;
	}

	nav a {
		color: white;
	}

	#callout {
		background: #001f1e;
	}

	a {
		color: #51e6e6;
	}

	h1 a {
		color: white;
		transition: color ease 0.3s;
	}

	h1 a:hover {
		color: #51e6e6;
	}

	h3 {
		color: white;
	}

	ol li::before {
		color: #51e6e6;
	}
	
	hr {
		border: .5px solid #51e6e6;
	}

	.hugolist a {
		transition: color ease 0.3s;
	}

	.hugolist a:hover {
		color: #dcffff;
	}
	
	.latest {
		margin-bottom: 15px;
		padding: 15px;
		background-color: #001f1e;
		border-radius: 5px;
	}
	--color-primary: #003333;
	--color-secondary: #39acac;
	--color-callout:#001f1e;
	--color-accent: #51e6e6;
	--color-font: #FFFFFF;
	--background-image: url(cammy-bg.jpg);
	--header-image: url(cammy-header.png);
}

@media (prefers-color-scheme: light) {
        body {  
                color: #325259;
                background-image: url(cammylight.png)
        }

        header { 
                background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(cammyheader.gif)
        }

        article {
                background-color: rgba(209, 246, 255, 1);
        }
          
        nav {
                background-color: #72becf;
        }

        nav a {  
                color: #325259;
        }

        #callout {
                background: #b5ecf9;
        }

        a {
		color: #007082;
        }

        h1 { 
                color: white;
        }

	h1 a {
		color: white;
	}

        h1 a:hover {
                color: #9bdceb;
        }

        h3 { 
                color: #325259;
        }

        ol li::before {
                color: #72becf;
        }
          
        hr {
                border: .5px solid #72becf;
        }

        .latest {
		margin-bottom: 15px;
               	padding: 15px;
               	background-color: #b5ecf9;
               	border-radius: 5px;
        }

	.invert {
		filter: invert(.80);
}
	
}

.col1 {
	width: 100%;
	margin: auto;
	float: left;
}

.col2  {
	display: block;
	width: 0%;
	height: 100%;
	float: left;
	font-size: 10pt;
}

.sidebar {
	background: #001a1a;
	font-size: 10pt;	
}

body {
	font-family: "Liberation Sans", sans-serif;
	background-attachment: fixed;
	background-repeat: no-repeat;
	background-size: cover;
	background-color: #050505;
	margin: 0;
}

main {
	max-width: 600px;
	margin: auto;
	line-height:1.6;
	height: 100%;
}

header {
	max-width: 600px;
	margin: auto;
	padding-top: 30px;
	background-size: 600px;
}

img {
	max-width: 100%;
	display: block;
	margin-left: auto;
	margin-right: auto;
	height: auto;
}

h1 {
	text-align: left ;
	margin-bottom: 0px;
	padding-left: 5px;
	font-size: 46pt;
}

h1 a {
	text-decoration: none;
}

h2 {
	margin-bottom: 10px;
	margin-top: 0;
	padding-top: 5px;
	font-size: 2.5em;
	line-height: 95%;
	font-style: italic;
}

h3 {
	margin-bottom: 10px;
	font-size: 2em;
	line-height: 95%;
}

h4 {
	margin-top: 0;
	margin-bottom: 0;
	font-size: 1.5em;
}

h5 {
	margin-top: 0px;
	margin-bottom: 10px;
	font-size: 1em;
}

.subheading {
	margin-top: -10px;
}

h6 {
	font-size: 0.5em;
}

article {
	padding: 10px;
	font-size: 16px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
}

p {
	margin-top: 0;
}

ul.hugolist {
	list-style-type: none;
	padding: 0;
	margin-top: 0;
}

li {
	margin-left: 0;
	margin-right: 10px;
	padding-bottom: 10px;
}

li.hugolist {
	padding-bottom: 0px;
}

ol {
	list-style: none;
	counter-reset: list-counter;
	padding-left: 10px;
}

ol li {
	counter-increment: list-counter;
	padding-top: 10px;
}

ol li::before {
	content: counter(list-counter) ". ";
	font-weight: bold;
}

footer {
	position: absolute;
	top: 0;
	right: 0;
}

nav ul {
	margin: 0px;
	list-style-type: none;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 20px;
}

nav li {
	display: inline-block;
	padding-right: 5px;
	padding-bottom: 5px;
	padding-top: 5px;

	position: relative;
	top: 0;
	transition: top ease 0.3s;
}

nav li:hover {
	top: -3px;
}

nav a {
	text-decoration: none;
}

#TableOfContents {
	background-color: #050505;
	position: fixed;
	top: 5px;
	right: 5px;
	margin: 0;
}

#TableOfContents li {
	display: block;
}

@media only screen and (max-width: 1350px) {
	#TableOfContents {
	display:none;
	}
}

/* For TAGLIST.HTML */
.taglist {
	text-align: center ;
	clear: both ;
}

/* For NEXTPREV.HTML */
#nextprev {
	/* The container for both the previous and next articles. */
}
#prevart {
	float: left ;
	text-align: left ;
}
#nextart {
	float: right ;
	text-align: right ;
}
#nextart,#prevart {
	max-width: 33% ;
}

#HCB_comment_box {
	font-family: sans-serif;
}

.video-shortcode {
	max-width: 100%;
	height: auto;
}

.youtube-embed iframe{
	padding-bottom: 10px;
	width: 100%;
	height: 325px;
	border-width: 0px;
}

#callout {
	padding: 1.5em 1.25em;
	border-radius: 5px;
	display: flex;
	flex-direction: row;
	margin-bottom: 20px;
	}
#callout-inner {
	margin-left: 1em;
}
media (max-width: 767px) {
callout {
	padding: 1.5em 0.75em 1.5em 0.6em;
}
callout-inner {
margin-left: 0.5em;
}

/* cactus comments hell */
/*
 * ***** DEFAULT COLORS *****
 */
/* automatic / manual light mode */
:root, :root.light {
  --cactus-text-color--soft: hsl(0, 0%, 60%);
  --cactus-background-color--strong: hsl(0, 0%, 98%);
  --cactus-border-color: hsl(0, 0%, 85%);
  --cactus-box-shadow-color: hsl(0, 0%, 20%, 0.3);
  --cactus-button-text-color: inherit;
  --cactus-button-color: hsl(0, 0%, 80%);
  --cactus-button-color--strong: hsl(0, 0%, 75%);
  --cactus-button-color--stronger: hsl(0, 0%, 70%);
  --cactus-login-form-text-color: inherit;
  /* unchanged variables */
  --cactus-border-width: 1px;
  --cactus-border-radius: 0.4em;
  --cactus-text-color: inherit;
  --cactus-background-color: transparent;
  --cactus-error-color: red;
}

/* automatic dark mode */
/* ❗️ keep these rules in sync with the manual dark mode below! */
@media (prefers-color-scheme: dark) {
  :root {
    --cactus-text-color--soft: hsl(0, 0%, 50%);
    --cactus-background-color--strong: hsl(0, 0%, 10%);
    --cactus-border-color: hsl(0, 0%, 20%);
    --cactus-box-shadow-color: hsl(0, 0%, 10%, 1);
    --cactus-button-text-color: hsl(0, 0%, 80%);
    --cactus-button-color: hsl(0, 0%, 25%);
    --cactus-button-color--strong: hsl(0, 0%, 30%);
    --cactus-button-color--stronger: hsl(0, 0%, 35%);
    --cactus-login-form-text-color: hsl(0, 0%, 80%);
  }
}

/* manual dark mode
/* ❗️ keep these rules in sync with the automatic dark mode above! */
:root.dark {
  --cactus-text-color--soft: hsl(0, 0%, 50%);
  --cactus-background-color--strong: hsl(0, 0%, 10%);
  --cactus-border-color: hsl(0, 0%, 20%);
  --cactus-box-shadow-color: hsl(0, 0%, 10%, 1);
  --cactus-button-text-color: hsl(0, 0%, 80%);
  --cactus-button-color: hsl(0, 0%, 25%);
  --cactus-button-color--strong: hsl(0, 0%, 30%);
  --cactus-button-color--stronger: hsl(0, 0%, 35%);
  --cactus-login-form-text-color: hsl(0, 0%, 80%);
}


/*
 * ***** CONTAINER *****
 */
 /* container that contains everything */
.cactus-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
  color: var(--cactus-text-color);
  background-color: var(--cactus-background-color);
}


/*
 * ***** ERROR *****
 */
/* error message */
.cactus-error {
  padding: 0.5em;
  padding-inline-end: 1.5em;
  border: var(--cactus-border-width) solid var(--cactus-error-color);
  border-radius: var(--cactus-border-radius);
  /* for absolutely positioned close button */
  position: relative;
}

/* close button */
.cactus-error-close {
  position: absolute;
  right: 0.2em;
  top: 0em;
  color: var(--cactus-button-color);
  /* todo: remove after using all: unset */
  background-color: transparent;
  border: none;
}

.cactus-error-close:hover:not([disabled]) {
  color: var(--cactus-button-color--strong);
  cursor: pointer;
}

.cactus-error-close:active:not([disabled]) {
  color: var(--cactus-button-color--stronger);
  cursor: pointer;
}

.cactus-error-close-icon {
  inline-size: 20px;
  block-size: 20px;
}

/* error message */
.cactus-error-text {
  color: var(--cactus-error-color);
  font-weight: bold;
  /* todo: remove after using all: unset */
  margin: 0;
}


/*
 * ***** EDITOR SECTION *****
 */
 /* comment text field, plus send and login buttons */
.cactus-editor {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

/* todo: use a class */
.cactus-editor>span {
  display: flex;
}

.cactus-editor-textarea {
  display: flex;
  flex: 1;
  height: 9rem;
  border-radius: var(--cactus-border-radius);
  border: solid var(--cactus-border-width) var(--cactus-border-color);
  padding: 0.5em;
  box-sizing: content-box;
  /* todo: remove after using all: unset */
  background-color: transparent;
  color: inherit;
  font: inherit;
}

.cactus-editor-textarea::placeholder {
  text-align: center;
  line-height: 8rem;
  font-size: 1.5rem;
  color: var(--cactus-text-color--soft);
}

/* login and post button */
.cactus-editor-below {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: flex-end;
}

.cactus-editor-name {
  display: flex;
  flex: 1;
}

/* todo: use a class */
.cactus-editor-name>span {
  display: flex;
  flex: 1;
  min-inline-size: 20ch;
  max-inline-size: 40ch;
}

/* todo: use a class */
.cactus-editor-name > span > input {
  inline-size: 100%;
  border-radius: var(--cactus-border-radius);
  border: solid var(--cactus-border-width) var(--cactus-border-color);
  padding: 0.5em;
  /* todo: remove after using all: unset */
  background-color: transparent;
  color: inherit;
  font-size: inherit;
}

.cactus-editor-name > span > input::placeholder {
  color: var(--cactus-text-color--soft);
}

/* div with login and send buttons  */
.cactus-editor-buttons {
  display: flex;
  gap: 0.5em;
}

.cactus-login-button {
}

.cactus-logout-button {
}

.cactus-send-button {
}

/* "Use a Matrix client" button
when guestPostingEnabled=false and loginEnabled=false */
.cactus-matrixdotto-only {
  align-self: center;
  /* todo: remove after using all: unset */
  text-decoration: none;
}


/*
 * ***** LOGIN FORM *****
 */
.cactus-login-form-wrapper {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* login form */
.cactus-login-form {
  display: flex;
  flex-direction: column;
  gap: 2em;
  padding: 2rem;
  border-radius: var(--cactus-border-radius);
  background-color: var(--cactus-background-color--strong);
  color: var(--cactus-login-form-text-color);
  box-shadow: 0 0.5em 1em 0.5em var(--cactus-box-shadow-color);
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: 300px;
}

/* close button */
.cactus-login-close {
  align-self: flex-end;
  position: relative;
  margin: -2em;
  padding: 0;
  color: var(--cactus-button-color);
  scale: 2.0;
  background-color: transparent;
  border: none;
}

.cactus-login-close:hover:not([disabled]) {
  color: var(--cactus-button-color--strong);
  cursor: pointer;
}

.cactus-login-close:active:not([disabled]) {
  color: var(--cactus-button-color--stronger);
  cursor: pointer;
}

.cactus-login-close-icon {
  inline-size: 20px;
  block-size: 20px;
}

/* title */
.cactus-login-title {
  align-self: center;
  font-size: 1.17em;
  font-weight: bold;
  /* todo: remove after using all: unset */
  margin: 0;
}

/* client section */
.cactus-login-client {
  display: flex;
  flex-direction: column;
  gap: 1em
}

.cactus-login-client-title {
  font-size: 1em;
  font-weight: bold;
  /* todo: remove after using all: unset */
  margin: 0;
}

/* "log in" button */
.cactus-matrixdotto-button {
  justify-content: center;
  /* todo: remove after using all: unset */
  text-decoration: none;
}

/* credentials section */
.cactus-login-credentials {
  display: flex;
  flex-direction: column;
  gap: 1em
}

.cactus-login-credentials-title {
  font-size: 1em;
  font-weight: bold;
  /* todo: remove after using all: unset */
  margin: 0;
}

.cactus-login-field {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

.cactus-login-label {
  font-size: 1em;
  padding-bottom: 0.25em;
  color: var(--cactus-text-color--soft);
}

.cactus-login-error {
  margin: 0;
  font-size: 0.8em;
  color: var(--cactus-text-color--soft);
}

/* todo: use a class */
.cactus-login-field > input {
  border-radius: var(--cactus-border-radius);
  border: solid var(--cactus-border-width) var(--cactus-border-color);
  padding: 0.5em;
  /* todo: remove after using all: unset */
  background-color: transparent;
  color: inherit;
  font-size: inherit;
}

.cactus-login-field > input::placeholder {
  color: var(--cactus-text-color--soft);
}

/* "log in" button */
.cactus-login-credentials-button {
  justify-content: center;
}


/*
 * ***** COMMENTS LIST *****
 */
/* comments container */
.cactus-comments-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

/* comments list */
.cactus-comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

/* a comment */
.cactus-comment {
  display: flex;
  flex-direction: row;
  gap: 1em;
  padding-block-end: 0.5em;
  border-block-end: var(--cactus-border-width) solid var(--cactus-border-color);

}

/* avatar beside comment content */
.cactus-comment-avatar {
  display: flex;
}

/* the avatar image */
/* todo: use a class */
.cactus-comment-avatar > *:not(#dummy) {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  /* todo: remove after using all: unset */
  margin: 0;
}

/* in case of no avatar */
.cactus-comment-avatar-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--cactus-border-color);
  color: var(--cactus-text-color--soft);
}
.cactus-comment-avatar-placeholder::before {
  content: "?"
}
.cactus-comment-avatar-placeholder::before {
  content: "?"
}

/* header and body */
.cactus-comment-content {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

/* user name and posting time */
.cactus-comment-header {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}

/* user name */
.cactus-comment-displayname {
  font-weight: bold;
  cursor: pointer;
  /* todo: remove after using all: unset */
  text-decoration: none;
  color: inherit;
}

/* comment posting time  */
.cactus-comment-time {
  color: var(--cactus-text-color--soft)
}

/* text or media content of comment */
.cactus-comment-body > * {
}

/* body for different message types */
.cactus-message-text {
}

.cactus-message-text > *:first-child {
  margin-block-start: 0em;
}

.cactus-message-text > *:last-child {
  margin-block-end: 0em;
}

.cactus-message-emote {
  padding-top: 0.5em;
  color: var(--cactus-text-color--soft);
}

.cactus-message-image {
  max-width: 100%;
  height: auto;
}

.cactus-message-audio {
}

.cactus-message-file {
  line-height: 3em;
  margin-left: 1em;
}

.cactus-message-video {
  max-width: 100%;
}


/*
 * ***** BUTTONS *****
 */
 /* used on all buttons */
 .cactus-button {
  display: flex;
  align-items: center;
  padding-block: 0.6em;
  padding-inline: 1em;
  background-color: var(--cactus-button-color);
  font-weight: bold;
  border-radius: var(--cactus-border-radius);
  /* todo: remove after using all: unset */
  color: var(--cactus-button-text-color);
  font-size: inherit;
  border: none;
}

.cactus-button:hover:not([disabled]) {
  background-color: var(--cactus-button-color--strong);
  cursor: pointer;
}

.cactus-button:active:not([disabled]) {
  background-color: var(--cactus-button-color--stronger);
  cursor: pointer;
}

/* contains the view-more button */
.cactus-view-more {
  display: flex;
  justify-content: center;
}


/*
 * ***** LOADING SPINNER *****
 */
 .spinner {
  align-self: center;
  width: 2em;
  height: 2em;
  display: flex;
  gap: 0.3em;
}

.spinner > div {
  flex: 1;
  background-color: var(--cactus-border-color);
  animation: sk-stretchdelay 2.4s infinite ease-in-out;
}

.spinner .rect2 {
  animation-delay: -2.2s;
}

.spinner .rect3 {
  animation-delay: -2.0s;
}

.spinner .rect4 {
  animation-delay: -1.8s;
}

@keyframes sk-stretchdelay {
  0%, 40%, 100% { 
    transform: scaleY(0.4);
  }  20% { 
    transform: scaleY(1.0);
  }
}

