/* General styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  margin: 0 auto;
  max-width: 800px;
  padding: 2rem 1rem 6rem; /* Add padding-bottom to avoid content being hidden by the nav */
  background-color: #fdfdfd;
  color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #333;
}

a:hover {
  color: #ea4c89;
  border-bottom: 1.5px solid #ea4c89;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1rem;
  margin-left: 0;
  color: #666;
}

code {
  background-color: #f4f4f4;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier,
    monospace;
}

pre {
  background-color: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}

pre code {
  padding: 0;
  background-color: transparent;
}

/* Navigation styles */
nav {
  display: flex;
  gap: 3rem;
}

nav a {
  position: relative;
  color: #333;
  font-size: 1.8rem;
  text-decoration: none;
}

nav a:not(:first-child):hover::after {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 0.5rem;
  border-radius: 5px;
  font-size: 0.9rem;
  white-space: nowrap;
  margin-top: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
