body {
  margin: 0 auto;
  padding: 5px 15px;
  font-family: Lato;
  max-width: 800px;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  margin-bottom: 2em;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid black;
  padding: 0.75em 1.5em;
}

footer a img {
  max-height: 25px;
}

img {
  max-width: 100%;
}

#site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#banner {
}

nav {
  display: flex;
  justify-content: space-between;
  border: 1px solid black;
  margin-bottom: 15px;
}

nav a {
  text-decoration: none;
  color: black;
  width: 20%;
  text-align: center;
  padding: 10px 0px;
  border: 1px solid black;
}

nav a:hover {
  background-color: black;
  color: white;
}

nav a.active {
  background-color: black;
  color: white;
  font-weight: bold;
}

a.link-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff; /* Bootstrap primary color */
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid transparent;
  transition:
    background-color 0.2s,
    color 0.2s;
}

a.link-btn:hover,
a.link-btn:active {
  background-color: #0056b3; /* Darker shade for hover/active */
  color: #fff;
  text-decoration: none;
}

main section {
  margin-top: 1.5em;
}

main section h2 {
  border-bottom: 2px solid black;
}

main section li {
  margin: 20px 30px;
}

.bloglist {
  list-style-type: none;
  padding: 0;
}

.bloglist li {
  display: flex; /* Aligns title and date on the same line */
  justify-content: space-between; /* Distributes space between elements */
  align-items: center; /* Centers items vertically */
  margin: 20px 0px;
}
.bloglist a {
  max-width: 80%;
}

.date {
  white-space: nowrap; /* Prevents date from wrapping */
}
