/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */
* {
  box-sizing: border-box;
}

:root {
  --header-bg: #264027;
  --nav-bg:  	#b38a58;
  --article-bg: #f9f5f0;
  --border-color: #967e76;
  --sidebar-text-color: #25161b;
  --article-text-color: #25161b;
  --article-heading-color: #3c5233;
  --link-color: #0d1f23;
  --darker-border-color: #0d1f23;
}

body {
  background-color: var(--article-bg);
  background-image: url('../images/rainforest.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-size: 15px;
  font-family: Georgia, "Times New Roman", serif;
  margin: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html,
body,
a:link,
a:hover,
a:visited,
a:active {
  cursor: url("/img/default/lunar_cursor.png"), auto;
}

img,
picture,
video {
  max-width: 100%;
}

p {
  line-height: 1.6em; /*I find the default HTML line-height tends to be a bit claustrophobic for main text*/
  font-size: 1em;
}
#cont,
#cont p {
  line-height: 1.6em;
  font-size: 16px;
  text-indent: 20px;
  margin: 3px auto;
}

hr {
  border: 1px double var(--darker-border-color);
  border-width: 3.3px 0 0 0;
}

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;
}

/* LINKS */
a {
  color: var(--link-color);
}
a:hover {
  opacity: 0.6;
  color: #b3e662;
}
a:visited {
  opacity: 0.6;
  color: #672a4e;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--article-heading-color);
}

/* FONTS */
.spectral-extralight {
  font-family: "Spectral", serif;
  font-weight: 200;
  font-style: normal;
}

.spectral-light {
  font-family: "Spectral", serif;
  font-weight: 300;
  font-style: normal;
}

.spectral-regular {
  font-family: "Spectral", serif;
  font-weight: 400;
  font-style: normal;
}

.spectral-medium {
  font-family: "Spectral", serif;
  font-weight: 500;
  font-style: normal;
}

.spectral-semibold {
  font-family: "Spectral", serif;
  font-weight: 600;
  font-style: normal;
}

.spectral-bold {
  font-family: "Spectral", serif;
  font-weight: 700;
  font-style: normal;
}

.spectral-extrabold {
  font-family: "Spectral", serif;
  font-weight: 800;
  font-style: normal;
}

.spectral-extralight-italic {
  font-family: "Spectral", serif;
  font-weight: 200;
  font-style: italic;
}

.spectral-light-italic {
  font-family: "Spectral", serif;
  font-weight: 300;
  font-style: italic;
}

.spectral-regular-italic {
  font-family: "Spectral", serif;
  font-weight: 400;
  font-style: italic;
}

.spectral-medium-italic {
  font-family: "Spectral", serif;
  font-weight: 500;
  font-style: italic;
}

.spectral-semibold-italic {
  font-family: "Spectral", serif;
  font-weight: 600;
  font-style: italic;
}

.spectral-bold-italic {
  font-family: "Spectral", serif;
  font-weight: 700;
  font-style: italic;
}

.spectral-extrabold-italic {
  font-family: "Spectral", serif;
  font-weight: 800;
  font-style: italic;
}

.lora {
  font-family: "Lora", serif;
  font-style: normal;
}

.nanum-gothic-coding-regular {
  font-family: "Nanum Gothic Coding", monospace;
  font-style: normal;
}
/* END FONT */

#postTitleH1 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--article-heading-color);
}

.subtitle {
  margin-bottom: 5px;
  padding-left: 3px;
}

/*#CONTAINER is the rectangle that contains everything but the background!*/
#container {
  margin: 3em auto;
  width: 90%;
  max-width: 650px;
  background-color: var(--nav-bg);
  color: var(--article-text-color);
  outline-color: var(--darker-border-color);
  outline-style: solid;
  outline-width: 1px;
  outline-offset: 0;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

#content {
  padding: 10px 5% 20px 5%;
}

/*HEADER STYLE*/
#header {
  background-color: var(--header-bg);
  padding: 0 5%;
}
#header ul {
  list-style-type: none;
  padding: 0.3em 0;
  margin: 0;
}
#header li {
  font-size: 1em;
  display: inline-block;
  margin-right: 1em;
  margin-bottom: 0.2em;
  margin-top: 0.2em;
}
#header li a,
#header li a:active {
  text-transform: uppercase;
  color: var(--nav-bg);
  text-decoration: none;
  background-color: inherit;
  cursor: pointer;
}
#header li a:hover {
  color: #b3e662;
}
#header li::after {
  content: "\2724";
  color: var(--nav-bg);
  margin: 0 10px;
  text-decoration: none;
  opacity: 100%;
}

/*POST LIST STYLE*/
#postlistdiv ul {
  font-size: 1.1em;
  padding: 0;
  list-style-type: none;
}
#recentpostlistdiv ul {
  font-size: 1.1em;
  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;
}

/* STORY LIST */
.story-list ul,
.story-list li {
  list-style-type: none;
}
.story-list li a:link {
  color: #a22d2d;
  opacity: 100%;
  list-style: none;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  margin-top: 5px;
}
.story-list li a:visited {
  color: #672a4e;
}
.story-list li::before {
  content: "\02726";
  color: #a22d2d;
  margin-right: 2px;
}

/* SERIES OVERVIEW */
.series {
  font-size: 1rem;
  font-family: "Spectral", serif;
  color: var(--nav-bg);
  margin-top: 10px;
  margin-left: 5px;
  margin-right: 5px;
  padding: 5px;
  background-color: var(--header-bg);
  text-align: left;
}
.series::before {
  content: "\02726";
  color: var(--nav-bg);
  margin-right: 5px;
}
.logline {
  font-size: 0.8rem;
  margin: auto 5px;
  padding-left: 5px;
  padding-right: 9px;
  border: 1px solid var(--darker-border-color);
}

/* DETAILS */
details {
  font-size: 1em;
  font-family: "Times New Roman", serif;
  border: 1px solid #4f0e0e;
  padding: 0;
  margin-bottom: 1.5px;
  background-color: var(--nav-bg);
}
details > p {
  padding: 0 18px;
}
details:first-of-type summary::marker,
:is(::-webkit-details-marker) {
  content: "\02726"; /* Unicode character for "minus" sign (-) */
  color: var(--nav-bg);
  font-family: serif;
}
details:first-of-type summary::hover::marker {
  content: "\02726";
  color: var(--nav-bg);
}
details[open]:first-of-type summary::marker {
  content: "\02726";
}
details[open]:first-of-type summary:hover::marker,
details[open]:first-of-type summary:active::marker {
  content: "\02726";
  color: var(--nav-bg);
}
details:nth-child(1n + 1) summary::marker {
  content: "\02726";
}
*/ details:last-of-type summary {
  list-style: none;
  &::before {
    content: "\02726 ";
    color: var(--nav-bg);
    font-weight: bold;
    padding: 0;
    margin-right: 5px;
  }
  [open] &::before,
  [open] &::before:active {
    content: "\02726 ";
    margin-right: 5px;
  }
}
details:last-of-type summary::-webkit-details-marker {
  display: none;
}
summary {
  color: var(--nav-bg);
  background-color: var(--header-bg);
  border: 1px solid #4f0e0e;
  cursor: pointer;
  padding: 5px;
  margin: 0;
  width: 100%;
  text-align: left;
  font-family: "Spectral", serif;
  outline: none;
  font-size: 1.2rem;
  line-height: 1rem;
  transition: 0.4s;
  font-weight: bold;
}
summary:hover,
summary:active {
  background-color: #4f0e0e;
  color: var(--nav-bg);
  transition-timing-function: ease;
  transition-duration: 0.5s;
}

/*DISQUS STYLE*/
#disqus_thread {
  margin-top: 1.6em;
}

/*FOOTER STYLE*/
#footer {
  font-size: 1.5vh;
  padding: 0 5% 10px 5%;
}
