*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0; /* kill the 8 px browser margin */
  min-height: 100vh;
  padding: 0.5rem;
}

body {
  width: 100%; /* avoid 100 vw + scrollbar creep */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* keep the centred column with responsive side-padding */
header,
main,
footer {
  max-width: 800px;
  width: 100%;
  padding-inline: 1rem; /* logical shorthand = L/R padding */
}

footer {
  display: flex;
  justify-content: space-between;
}

nav {
  margin-bottom: 1rem;
}

hr {
  max-width: 800px;
  width: 100%;
  border: 0.5px solid #ddd;
}

.notes-container {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.note-card {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1em;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
  background-color: #fff;
}

.note-title {
  font-size: 1.25em;
  font-weight: bold;
  margin-bottom: 0.3em;
}

.note-author,
.note-rating,
.note-date {
  font-size: 0.9em;
  color: #555;
  margin: 0.2em 0;
}

.note-content p,
.note-content ul {
  margin: 0.5em 0;
}

.note-content ul {
  padding-left: 1.2em;
}
