body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  line-height: 1.6;
  background-color: #282828; /* WhiteSmoke, antiquewhite, linen, seashell, snow */
  color: #ebdbb2;
  font-size: 1.1em;
  overflow-x: hidden; 
}

main {
  max-width: 768px;
  width: 100%; 
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 15px;
  padding: 0 20px;
}

nav ul {
  display: flex;
  list-style-type: none;
  justify-content: center;
  padding: 0;
  margin: 0 0 30px 0;
  flex-wrap: wrap; /* Allow items to wrap to the next line */
}

nav ul li {
  margin: 0 15px;
}

/* line below nav bar, optional: to add include <hr> */
/*
hr {
  border: none;
  border-top: 1px solid #666; 
  margin: 20px auto;
  width: 100%; 
  height: 0; 
}
*/

ul {
  padding: 0;
  margin-left: 40px;
}

section {
  margin-bottom: 30px;
}


h3 {
  margin-bottom: 15px;
}

a:link {
  /* color: blue; */
  color: #fabd2f;
}

a:visited {
  /* color: blue; */
  color: #d3869b;
}

/* Responsive styles */
@media (max-width: 359px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin-right: 0;
    margin-bottom: 5px;
  }
}

/* images styling for articles */

img {
  max-width: 100%; /* images won't overflow the text area */
  height: auto;
  display: block;
  margin: 20px auto; /* center images nicely */
  border-radius: 8px; /* optional: slightly rounded corners */
}

figcaption {
  display: none; /* Hide figcaption by default */
}

/* Blockquotes styling */
blockquote {
  margin: 20px 0;
  padding-left: 20px;
  border-left: 4px solid #fabd2f;
  color: #d5c4a1;
  font-style: italic;
}

/* Code blocks styling */
pre, code {
  background-color: #3c3836;
  padding: 5px 10px;
  border-radius: 4px;
  overflow-x: auto;
}
