body {
  font-family: monospace;
  background: #fff;
  color: #000;
  margin: 0.3rem;
  padding: 0.3rem;
  font-size: 1rem;
}

a {
  color: #0000EE;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  word-wrap: break-word;
}

th, td {
  text-align: left;
  padding: 4px 6px;
}

th {
  border-bottom: 1px solid #bbb;
  font-weight: normal;
}

tr:hover td {
  background: #f2f2f2;
}

.index-header {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.info {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}


.cover {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin-right: 0.5rem;
  margin-bottom: 0.3rem;
  border: 1px solid #ccc;
}



.novel-details {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
} 

  
/*
.novel-text {
  flex: 1;
  min-width: 0;
} */

.novel-text {
  flex: 1;
  min-width: 0;
  padding-left: 1rem;
}

.chapter {
  width: 100%;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.nav-links {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  border-top: 1px solid #bbb;
  padding-top: 0.4rem;
}

.nav-links a {
  margin-right: 1rem;
}

/* Apache-style footer */
.footer {
  margin-top: 1rem;
  padding-top: 0.5rem;
  font-size: 0.75rem;
  color: #555;
  border-top: 1px solid #aaa;
  font-family: monospace;
  display: flex;
  justify-content: space-between;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }
  /*
.novel-details {
    flex-direction: column;
    align-items: flex-start; 
  } */


  .cover {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  .footer {
    flex-direction: column;
    text-align: left;
  }
}