/* Base styles */
/* Blog Post previews all listed vertically */
/* This fixes the footer issues and properly aligns all articles
	 Tested this with up to 10 articles. */
/* Will be using this as the default */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

header {
  background-color: #333;
  color: #fff;
  padding: 20px;
}

h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  display: inline-block;
  margin-right: 10px;
}

nav li a {
  color: #fff;
  text-decoration: none;
}

main {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

article {
  height: auto;
  overflow: hidden;
  width: 100%;
  margin-bottom: 20px;
}

article h2 {
  font-size: 24px;
  height: 60px;
  margin-bottom: 10px;
}

.button {
  display: inline-block;
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 20px;
}

/* styling for the date section of each blog post*/
/* .post-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
} */

.post-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80px; /* or any other desired value */
}

.post-meta h2 {
  margin-bottom: 10px; /* or any other desired value */
}

footer {
  background-color: #333;
  color: #fff;
  padding: 20px;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* Media queries */

@media (min-width: 768px) {
  body {
    font-size: 18px;
  }
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  nav {
    flex: 1;
    margin-left: 20px;
  }
  nav ul {
    display: flex;
    justify-content: flex-end;
  }
  nav li {
    margin-right: 20px;
  }
  main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  article {
    flex-basis: calc(33.33% - 20px); /* or any other desired value */
    margin-bottom: 20px;
  }
  article:last-of-type {
    margin-right: 0;
  }
  article h2 {
    height: 80px;
  }
  footer {
    position: static;
    margin-top: 20px;
  }
}
