/* Background and general layout */
body {
  background-color: black;
  background-image: url('/images/Street.gif');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: #f0f1f5;
  font-family: 'Courier New', monospace; /* classic 90s text font */
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'CascadiaMono';
  src: url('/fonts/CascadiaMono.woff2') format('woff2'),
       url('/fonts/CascadiaMono.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

code, pre {
  font-family: 'CascadiaMono', Consolas, "Courier New", monospace;
}

/* Navigation Menu */
ul.menu {
  position: fixed;
  top: 0;
  right: 0;
  list-style-type: none;
  margin: 0;
  padding: 40px 40px 0 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  justify-content: flex-end;
  z-index: 1000;
  /*font-family: "Fixedsys", monospace;*/
  font-family: 'CascadiaMono', Consolas, "Courier New", monospace;
  font-size: 15px;
}

ul.menu li {
  text-align: center;
}

ul.menu li a {
  display: block;
  color: #f0f1f5E6;
  padding: 8px 16px;
  text-decoration: none;
}

ul.menu li a:hover {
  background-color: #2B32414D;
  color: white;
}

ul.menu li a.active {
  background-color: #31514B66;  /* green highlight */
  color: white;
  transition: background-color 0.3s ease;
}

/* Journal container */
.journal {

  /*font-family: 'Courier New', monospace;*/ /* classic 90s text font */
  font-family: 'CascadiaMono', Consolas, "Courier New", monospace;
  font-size: 14px;
  max-width: 700px;
  margin: 150px auto 80px auto;
  padding: 40px 20px;
  background-color: #f0f1f5E6;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(3px);
  color: black;
  line-height: 1.4;
}

.menu-spacer {
  height: 10px; /* matches menu height + desired extra space */
}

ul.journal-year {
  position: fixed;
  top: 0;
  left: 0;
  list-style-type: none;
  margin: 0;
  padding: 10px 0 0 8px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  justify-content: flex-start;
  z-index: 1000;
  font-family: 'CascadiaMono', Consolas, "Courier New", monospace;
}

ul.journal-year li {
  text-align: center;
  position: relative; /* enables absolute positioning of the divider */
  font-family: 'CascadiaMono', Consolas, "Courier New", monospace;
}

/* Divider line */
ul.journal-year li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;           /* start a quarter of the way down */
  height: 50%;        /* make the divider half as tall as the item */
  width: 1px;
  background-color: #555;
}

/* Links */
ul.journal-year li a {
  display: block;
  color: blue;
  padding: 8px 16px;
  text-decoration: none;
}

.entry p {
  padding: 5px 5px 0 5px;
  width:100%
  }
  
.entry:nth-child(even) {
  background-color: #f8f8f8;          /* faint alternation for depth */
}

.entry:nth-child(odd) {
  background-color: #ffffff;
}

.entry p.maintext {
  border-bottom: 1px solid #ccc;      /* subtle divider between entries */
  padding: 5px 5px 0 5px;
  width: 100%;
  box-sizing: border-box; /* include padding in width */
  margin: 0 auto;                     /* centers on the page */
  font-family: "Courier New", monospace; /* classic 90s plain text font */
  color: #000000;
  line-height: 1.4;
  font-size: 1em;
  margin-bottom: 20px;
}

.book-entry {
  border-bottom: 1px solid #ccc;      /* subtle divider between books */
  padding: 5px 5px 0 5px;
  width: 100%;
  box-sizing: border-box; /* include padding in width */
  margin: 0 auto;                     /* centers on the page */
  font-family: "Courier New", monospace; /* classic 90s plain text font */
  color: #000000;
  line-height: 1.4;
}

.book-entry:last-child {
  border-bottom: none;                /* no border after the final entry */
}

.book-entry p {
  margin: 0;
}

.book-entry:nth-child(even) {
  background-color: #f8f8f8;          /* faint alternation for depth */
}

.book-entry:nth-child(odd) {
  background-color: #ffffff;
}

.book-entry span.date {
  color: #666666;
  font-style: italic;
}



/* Responsive tweak */
@media (max-width: 700px) {
  ul.menu {
    position: static;
    display: grid;
    grid-auto-flow: row;
    justify-content: stretch;
    width: 100%;
    padding: 0;
  }

  .journal {
    margin: 60px 10px;
    padding: 20px;
  }
}
