body {
  background-color: #3c445f; /* default bg color */
  background-image: url('/images/bg_deepBlue.jpg'); /* default bg image */
	background-position: top;
	background-repeat: repeat-x;
	background-attachment: fixed;
  font-size: 18px;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

/* start light mode styling */
@media (prefers-color-scheme: light) {
	:root {
    --link-hover: #c9f1fe;
    --container-bg: white;
    --text-color: #555;
    --header-bg: #3c445f;
    --header-text-color: #3c445f;

	}
	body {
		background-image: url('/images/bg_day.jpg');
		background-position: top;
	}
}
/* end light mode styling */


/* start dark mode styling */
@media (prefers-color-scheme: dark) {
  :root {
    --link-hover: #1818ad;
    --container-bg: #121214;
    --text-color: #ccc;
    --header-bg: #4784b6;
    --header-text-color: #9dcff9;
    a:link { color: lightskyblue; }
    a:visited { color: #c9a0dc }
  }
  body {
    background-image: url('/images/bg_night.jpg');
    background-position: top;
  }
}
/* end dark mode styling */

p {
  line-height: 1.6em; /*I find the default HTML line-height tends to be a bit claustrophobic for main text*/
}

blockquote {
  line-height: 1.6em;
}

li {
  line-height: 1.6em;
}

img {
  max-width: 100%;
  height: auto;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.right {
  float: right;
  margin-left: 1em;
}
.left {
  float: left;
  margin-right: 1em;
}
.center {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}
@media only screen and (min-width: 600px) {
  .small {
    max-width: 60%;
    height: auto;
  }
}
.caption {
  margin-top: 0;
  font-size: 0.9em;
  font-style: italic;
}

a:hover { 
  background-color: var(--link-hover);
}
/* ghostchibi note - removes the hover effect on images in the gallery,
 does not affect links in the descriptions */
.gallery-img a:hover {
  background-color: transparent;
}
/*for other elements without hover bg color effect*/
.no-hover-bg:hover {
  background-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--header-text-color);
  font-family: "Palatino Linotype", Palatino, Baskerville, "Baskerville Old Face", sans-serif;
  margin: 0.5em 0;
}

/*#CONTAINER is the rectangle that contains everything but the background!*/
#container {
  margin: 3em auto;
  width: 90%;
	max-width: 800px; /*originally 700px*/
	background-color: var(--container-bg);
  color: var(--text-color); 
  outline-color: #CCC;
  outline-style: ridge;
  outline-width: 4px;
  outline-offset: 0;
}

#content {
  padding: 10px 5% 20px 5%;
}


/*HEADER STYLE*/
#header {
  position: relative;
  background-color: var(--header-bg);
  padding: 0 5%;
  border-color: #CCC;
  border-style: ridge;
  border-width: 0 0 4px 0;
}
#header ul {
  list-style-type: none;
  padding: 0.5em 0;
  margin: 0;
}
#header li {
  font-size: 1.2em;
  display: inline-block;
  margin-right: 1.5em;
  margin-bottom: 0.2em;
  margin-top: 0.2em;
}
#header li a {
  color: white;
  font-family: "Palatino Linotype", Palatino, Baskerville, "Baskerville Old Face", serif;
  text-decoration: none;
  background-color: inherit;
}
#header li a:hover {
  text-decoration: underline;
}
#header li a::before {
  content: '> ';
  color: transparent;
}
#header li a:hover::before {
  color: white;
}
#header::after {
  position: absolute;
  right: 10px;
  top: -10px;
  content: '';
  background-image: url('/images/favicon.ico');
  background-repeat: no-repeat;
  pointer-events: none;
  width: 48px;
  height: 48px;
  overflow: hidden;
  animation-name: header-img-bounce;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-out;
}
@keyframes header-img-bounce {
  0%   {top:-10px;}
  50%  {top:10px;}
  100% {top:-10px;}
}

/*POST LIST STYLE*/
#postlistdiv ul {
  font-size: 1.2em;
  padding: 0;
  list-style-type: none;
}
#recentpostlistdiv ul {
  font-size: 1.2em;
  padding: 0;
  list-style-type: none;
}
.moreposts {
  font-size: 0.8em;
  margin-top: 0.2em;
}

/*NEXT AND PREVIOUS LINKS STYLE*/
#nextprev {
  text-align: center;
  margin-top: 1.4em;
}

/*DISQUS STYLE*/
#disqus_thread {
  margin-top: 1.6em;
}

/*FOOTER STYLE*/
#footer {
  font-size: 0.8em;
  padding: 0 5% 10px 5%;
}