/* 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 {
  --background: #d2d1cf;
  --background-lines: #dbd9d6;
  --border: #84ceff;
}

/*      FONTS       */
@font-face {
  font-family: "Lora";
  src: url("../styles/fonts/Lora-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Space-Grotesk";
  src: url("../styles/fonts/SpaceGrotesk-Regular.ttf") format("truetype");
}

body {
  background-color: var(--background);
  background-image: linear-gradient(
    to bottom,
    var(--background-lines) 1px,
    transparent 1px
  );
  background-size: 5px 5px;
  background-position: center center;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 20px;
  cursor: url("../images/blog/pointer1.png"), auto;
}

p,
li {
  line-height: 1.6em; /*I find the default HTML line-height tends to be a bit claustrophobic for main text*/
}

hr {
  border: solid #c7b591;
  border-width: 2px 0 0 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

blockquote {
  border-left: 3px solid gray;
  padding-left: 10px;
}

.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: 18px;
  font-style: italic;
}

a:hover {
  cursor: url("../images/blog/pointer2.png"), auto;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Space-Grotesk", Tahoma, Geneva, sans-serif;
}

/*#CONTAINER is the rectangle that contains everything but the background!*/
#container {
  margin: 30px auto;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1em;
}

#content {
  background-color: white;
  border: 5px solid var(--border);
  border-radius: 30px;
  outline: 5px solid white;
  box-shadow: 20px 20px 5px gray;
  padding: 10px 5% 20px 5%;
}

/*HEADER STYLE*/
#header {
  background-color: #384879;
  padding: 0 5%;
  border-color: #a9a9a9;
  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;
  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 {
  margin-top: 0.2em;
}

/*NEXT AND PREVIOUS LINKS STYLE*/
#nextprev {
  text-align: center;
  margin-top: 2em;
  margin-bottom: 1.5em;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
}

#nextprev > a {
  border: 2px solid var(--border);
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  outline: 2px solid lightgray;
  outline-offset: 5px;
  padding: 20px;
  max-width: 150px;
  text-decoration: none;
  text-align: center;
  color: black;
  background: linear-gradient(white 50%, gray);
  font-family: "Space-Grotesk";
  font-size: 18px;
  margin: 10px;
}

/*DISQUS STYLE*/
#disqus_thread {
  margin-top: 1.6em;
}

/*FOOTER STYLE*/
#footer {
  font-size: 1em;
  padding: 0 5% 10px 5%;
}

/*MEDIA QUERY STYLE*/
@media screen and (max-width: 1000px) {
  body {
    font-size: 1.2rem;
  }

  #nextprev {
    flex-direction: column;
  }
}

/*      BUDDY       */
.corner-buddy {
  position: fixed;
  left: 0;
  bottom: 0;
}

@media screen and (max-width: 1460px) {
  .corner-buddy {
    display: none;
  }
}
