/* global width and marging setting */
body {
  max-width: 800px;
  min-width: 250px auto;
  margin: 40px auto;
  padding: 1.2rem;
} /* overall body styling */

body.home main {
  max-width: 620px;
  margin: auto;
} /* home page main content */

/* link styles */
a {
  color: #5077b0;
  text-decoration: none;
}

a:hover {
  color: #c67474;
  text-decoration: none;
}

/* navigation menu */
.menu {
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0 0 1rem 0;
  list-style: none;
}

.menu a {
  color: #444 !important;
  text-decoration: none !important;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.menu a:hover {
  color: #111 !important;
  border-bottom-color: #aaa;
}

.menu a.active {
  color: #000 !important;
  font-weight: 1200 !important;
  background: #e6e6e6;
  padding: 4px 12px;
  border-radius: 2px;
  .menu a.active {
  color: #000 !important;
  font-weight: 700 !important;
  background: #e6e6e6;
  padding: 4px 12px;
  border-radius: 2px;
  border-bottom: 3px solid #444;
}
}

/* blog post list */
.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}

@media (max-width: 480px) {
  .content-item {
    flex-direction: column;
  }
}

.content-link {
  flex: 1;
  color: #222;
  text-decoration: none;
  transition: color 0.2s ease;
}

.content-link:hover {
  color: #0056b3;
}

/* headings */
blockquote {
  background: #f9f9f9;
  border-left: 5px solid #ccc;
  padding: 0.4rem 1rem;
  margin: 1rem 0;
}

/* tables */
table {
  margin: 1.2rem auto;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
  border-collapse: collapse;
}

thead th {
  border-bottom: 1px solid #ddd;
}

th, td {
  padding: 6px;
}

thead, tfoot, tr:nth-child(even) {
  background: #eee;
}

/* code blocks */
pre {
  border: 1px solid #ddd;
  background: #fafafa;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 6px;
}

code {
  background: #f3f3f3;
  padding: 2px 4px;
  border-radius: 3px;
}

pre code {
  background: none;
}

/* media */
img, iframe, video {
  max-width: 100%;
}

main {
  hyphens: auto;
}

hr {
  border-style: dashed;
  color: #ddd;
  margin: 1.6rem 0;
}

/* footer */
footer {
  text-align: right; /*aligh to right*/
  margin-top: 0.5rem;
}