/* CTRL+F5 to clear the cache if the css is not applyed ... (1 hour lost for this)*/
/* Body styles */
/* ensure full-height */
html,
body {
  height: 100%;
  margin: 0;
}

/* page content */
body {
  position: relative;
  z-index: 0;
  color: black;
  font-family: "Share Tech Mono", monospace;
  color: #1afa00;
  padding: 2rem;
  margin: 0;
}

/*Chapters List CSS*/
.header {
  border-bottom: 2px solid #1afa00;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.header h1 {
  margin: 0;
  text-shadow: 0 0 10px #1afa00;
}

.header p {
  margin: 0.5rem 0 0 0;
  color: #1afa00aa;
}

.chapters-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chapter-item {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #333;
  border-radius: 4px;
  background: rgba(26, 250, 0, 0.05);
  transition: all 0.3s ease;
}

.chapter-item:hover {
  border-color: #1afa00;
  background: rgba(26, 250, 0, 0.1);
  box-shadow: 0 0 10px rgba(26, 250, 0, 0.3);
}

.chapter-link {
  color: #1afa00;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.chapter-link:hover {
  text-shadow: 0 0 5px #1afa00;
}

.chapter-link::before {
  content: "> ";
  color: #1afa00aa;
}

.chapter-description {
  color: #1afa00aa;
  font-size: 0.9em;
  margin: 0;
}

.chapter-meta {
  color: #666;
  font-size: 0.8em;
  margin-top: 0.5rem;
}

.back-link {
  color: #1afa00aa;
  text-decoration: none;
  margin-top: 2rem;
  display: inline-block;
}

.back-link:hover {
  color: #1afa00;
}

.back-link::before {
  content: "← ";
}

/* Background layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #000000;
  background-image: linear-gradient(
      30deg,
      #1afa00 12%,
      transparent 12.5%,
      transparent 87%,
      #1afa00 87.5%,
      #1afa00
    ),
    linear-gradient(
      150deg,
      #1afa00 12%,
      transparent 12.5%,
      transparent 87%,
      #1afa00 87.5%,
      #1afa00
    ),
    linear-gradient(
      30deg,
      #1afa00 12%,
      transparent 12.5%,
      transparent 87%,
      #1afa00 87.5%,
      #1afa00
    ),
    linear-gradient(
      150deg,
      #1afa00 12%,
      transparent 12.5%,
      transparent 87%,
      #1afa00 87.5%,
      #1afa00
    ),
    linear-gradient(
      60deg,
      #1afa0077 25%,
      transparent 25.5%,
      transparent 75%,
      #1afa0077 75%,
      #1afa0077
    ),
    linear-gradient(
      60deg,
      #1afa0077 25%,
      transparent 25.5%,
      transparent 75%,
      #1afa0077 75%,
      #1afa0077
    );
  background-size: 42px 74px;
  background-position: 0 0, 0 0, 21px 37px, 21px 37px, 0 0, 21px 37px;
  opacity: 0.8;
}

/*To read over the background. It modify the text color!*/
.reading-panel {
  background: rgba(0, 0, 0, 0.85); /* dark transparent layer */
  color: #1afa00;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px #1afa00aa;
  margin-bottom: 20px;
}

/* ToDo colors */
span.high-priority {
  color: red;
}
span.mid-priority {
  color: orange;
}
span.low-priority {
  color: green;
}

/*Tasks */
.task-done {
  position: relative;
  display: inline-block;
  color: grey;
  text-decoration: line-through;
}

/* List styles */
li {
  margin-right: 20px; /* adjust as needed */
}
