body {
  font-family: Georgia, serif;
  line-height: 1.6;
  color: #333;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fdfdfd;
}

h3,
h4 {
  text-align: center;
  color: #2c3e50;
}

h3 {
  margin-top: 1em;
  margin-bottom: 0.5em;
}

h4 {
  font-weight: normal;
  margin-top: 0;
}

p {
  margin-bottom: 1em;
}

.quote {
  text-align: center;
  margin: 20px 0;
}

center {
  /* Overriding the deprecated center tag behavior if possible,
       but better to let it be or replace it.
       For now, we style the content within. */
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 0.95em;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #8b0000; /* Dark red */
  color: #ffffff;
  font-weight: bold;
  white-space: nowrap;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #f1f1f1;
}

/* Center the edition columns */
td:nth-child(2),
td:nth-child(3),
td:nth-child(4),
td:nth-child(5) {
  text-align: center;
}

th:nth-child(2),
th:nth-child(3),
th:nth-child(4),
th:nth-child(5) {
  text-align: center;
}

a {
  color: #8b0000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

blockquote {
  background: #f5f5f5;
  border-left: 5px solid #8b0000;
  margin: 1.5em 20px;
  padding: 10px 20px;
  font-style: italic;
}

/* Mobile Responsive Styles - Card Layout */
@media screen and (max-width: 768px) {
  body {
    padding: 10px;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  /* Hide table headers */
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
  }

  td {
    /* Behave like a "row" */
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding: 10px 10px 10px 50%;
    text-align: left;
    min-height: 1.5em;
  }

  td:last-child {
    border-bottom: none;
  }

  td:before {
    /* Now like a table header */
    position: absolute;
    top: 10px;
    left: 10px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
    color: #666;
  }

  /* Add labels for each column */
  td:nth-of-type(2):before {
    content: "2025 Edition";
  }
  td:nth-of-type(3):before {
    content: "1991 Edition";
  }
  td:nth-of-type(4):before {
    content: "Cooper";
  }
  td:nth-of-type(5):before {
    content: "Shenandoah";
  }
  td:nth-of-type(6):before {
    content: "Text hints";
  }

  /* Special styling for the Tune Name (1st column) to act as card header */
  td:nth-of-type(1) {
    background-color: #8b0000;
    color: white;
    padding: 12px 10px;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
  }

  td:nth-of-type(1):before {
    content: none;
  }
}
