/* Responsive layout and cleanup */

body {
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 650px) {

  table {
    width: 100% !important;
  }

  td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
    border: none !important;
  }

  /* Center all images (covers) */
  img {
    display: block !important;
    max-width: 90% !important;
    height: auto !important;
    margin: 6px auto !important;
  }

  /* Divider after each book */
  tr {
    display: block !important;
    border-bottom: 1px solid #ccc !important;
    margin-bottom: 14px !important;
    padding-bottom: 14px !important;
  }

  tr:last-child {
    border-bottom: none !important;
  }

  /* Tighten spacing */
  p, .MsoNormal {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
  }

  h1, h2, h3 {
    margin-top: 10px !important;
    margin-bottom: 6px !important;
  }

  br {
    display: none;
  }
}