/* 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." */

:root {
  --width: 720px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-secondary: Verdana, sans-serif;
  --font-scale: 1.2em;
  --background-color: #fff9f2;
  --heading-color: #191919;
  --text-color: #102642;
  --link-color: #4B121B;
  --visited-color: #4B121B;
  --code-background-color: #40363a;
  --code-color: rgb(217, 216, 220);
  --blockquote-color: #fff1df;
}

body {
  background-color: #1E1C1C;
  background-image: url('../images/bg_diamond.png');
	background-position: top;
  font-size: 16px;
  font-family: Verdana, Tahoma, sans-serif;
  margin: 0;
}

p {
  line-height: 1.5em; /*I find the default HTML line-height tends to be a bit claustrophobic for main text*/
}

a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 700
}

a:hover { 
  text-decoration: underline;
}

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;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-main);
  color: var(--heading-color);
}

/*#CONTAINER is the rectangle that contains everything but the background!*/
#container {
  margin: 3em auto;
  width: 90%;
	max-width: 700px;
	background-color: #efefef;
  color: #353535; 
  outline-color: #c1c0b5;
  outline-style: ridge;
  outline-width: 4px;
  outline-offset: 0;
}

#content {
  padding: 10px 5% 10px 5%;
}


/*HEADER STYLE*/
#header {
  background-color: #563d41;
  padding: 0 5%;
  border-color: #c1c0b5 ;
  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 a{
  font-weight: 400;
}

#header li a {
  color: white;
  text-decoration: none;
  background-color: inherit;
}
#header li a:hover {
  text-decoration: underline;
}

/*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%;
}

/* Go To Top button */
#topBtn {
  display: none;
  position: fixed; 
  bottom: 20px;
  right: 30px;
  z-index: 900;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  border: 3px solid;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px;
  color: #000;
  cursor: pointer;
  padding: 0.25em 0.5em;
  font-size: 16px;
  font-family: "Open Sans", sans-serif;
}
#topBtn:active {
  box-shadow: 0px 0px 0px 0px;
  transform: translate(2px, 2px);
}

/* blog post list */
ul.blog-posts {
  list-style-type: none;
  padding: 0.2em 0.25em 0.2em 1.5em;
}

ul.blog-posts li {
  display: flex;
  padding: 0.25em 0.01em;
}

ul.blog-posts a{
  font-weight: 600;
}

ul.blog-posts li span {
  flex: 0 0 130px;
}

ul.blog-posts li a:visited {
  color: var(--visited-color);
}

pre {
  background: rgb(223, 207, 207);
  margin: 1em 1.5em;
  padding: 0.5em;
  border-radius: 4px;
}

code {
  background: rgb(223, 207, 207);
}