#test-page-div {
  max-height: 300px;
  overflow-y: scroll;
}

#test-page-div {
  table {
    text-align: center;
  }

  td {
    all: revert;
    padding-top: 0.3em;
  }

  td > img {
    max-height: 15em;
  }

  tr > td:nth-child(1) {
    font-weight: bold;
    min-width: 7em;
  }

  tr > td:nth-child(2) {
    div,
    p {
      text-align: left;
    }
  }

  hr {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
  }

  h2 {
    text-align: center;
    margin-bottom: 1.3em;
  }

  h4 {
    text-align: center;
  }

  .chapter {
    p {
      line-height: 1.4;
    }

    img {
      max-width: 95%;
    }
  }

  .preview-chapter-setting {
    text-align: center;
    margin-bottom: 1em;

    button {
      cursor: pointer;
      margin-left: 0.5em;
      padding: 0px 10px;
    }

    button:disabled {
      cursor: not-allowed;
    }
  }

  .loading-spinner {
    text-align: center;
    margin: 1em 0;

    .spinner {
      display: inline-block;
      width: 30px;
      height: 30px;
      border: 3px solid rgba(0, 0, 0, 0.3);
      border-radius: 50%;
      border-top-color: #000;
      animation: spin 1s ease-in-out infinite;
      margin-bottom: 0.5em;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }
  }
}
