/* General Page Background */
body {
  background-color: #1e1e1e;
  /* Dark background similar to the calendar */
  color: #f8f8f2;
  /* Light text color for readability */
}

/* Link Colors */
a {
  color: #ffb400;
  /* Orange link color */
}

a:hover {
  color: #ffc107;
  /* Slightly lighter orange on hover */
}

/* Homepage spacing: add more space between last note and bottom dotted line */
main.list {
  margin-bottom: 4rem;
  /* increase gap above footer's dotted border */
}

/* If any hr appears inside homepage items, give it extra breathing room */
main.list hr {
  margin: 2em 0;
}

/* Custom styles to make footer stick to bottom */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 1ch;
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
}

main {
  flex: 1;
}

footer {
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Add margin to the bottom of the calendar to create a gap */
.calendar {
  margin-bottom: 2rem;
  /* Adjust this value as needed */
}

/* Habits recent heatmap */
.habit-heatmap {
  display: grid;
  gap: 8px;
  margin: 1rem 0 2rem 0;
}

.habit-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.habit-label {
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #ffd700;
}

.habit-label .habit-streak {
  color: #aaaaaa;
  margin-left: 8px;
  font-weight: 400;
}

.habit-grid {
  display: grid;
  grid-template-columns: repeat(var(--days, 30), 12px);
  gap: 3px;
  justify-content: end;
  /* change to center if you prefer centering */
  margin-left: auto;
  /* push grid to the right so width is consistent */
}

.habit-square {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #3a3a3a;
}

.habit-square.ok {
  background: #2ecc71;
  /* green */
}

.habit-square.miss {
  background: #e74c3c;
  /* red */
}