/* Global styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f3f3f3;
  color: #333;
}

header {
  background-color: #5c6bc0;
  color: #f3f3f3;
  border-bottom: 2px solid #444;
  padding: 1rem 0;
  text-align: center;
}

h1 {
  margin: 0;
}

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 2rem;
  background-color: #f3f3f3; /* Change this line to match the body background color */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}


img {
  max-width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 5px;
}

.content {
  margin-top: 2rem;
}

/* Index styles */
#index-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.index-post {
  background-color: #f4f4f4;
  border: 1px solid #ccc;
  padding: 1rem;
  text-align: center;
  transition: background-color 0.3s;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: bold;
}

.index-post:hover {
  background-color: #e8e8e8;
}

.blog-title-date {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

.date {
  color: #999;
  margin-right: 0.5rem;
}

.return-to-index {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #ef5350;
  color: #f3f3f3;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold; /* Add this line */
}

}

.return-to-index:hover {
  background-color: #e53935;
}

@media screen and (max-width: 768px) {
  header {
      text-align: left;
      padding-left: 1rem;
  }

  main {
      padding: 0 1rem;
  }
}
.post-title {
  font-size: 1.4rem;
}

.post-adjective {
  font-size: 1.1rem;
  color: #777;
  margin-left: 0.5rem;
}

.post-timestamp {
  display: block;
  font-size: 0.9rem;
  color: #999;
  margin-top: 0.25rem;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  padding: 1rem 0;
  border-top: 1px solid #ccc;
  margin-top: 2rem;
}
