@media print {
  @page {
    margin: 0.3in;
  }

  /* generic classes */
  .screen {
    display: none;
  }
  .newpage {
    page-break-before: always;
  }
  .breakless {
    page-break-inside: avoid;
  }

  html,
  body,
  div#bodydiv,
  div#isi,
  div#tnc {
    margin-left: 0;
    margin-right: 0;
  }

  /* card section */
  /* use the PX measurements to scale giant images to the same size as screen */
  img.cardfront {
    height: 233px;
    width: 361px;
  }
  img.cardback {
    height: 233px;
    width: 361px;
  }

  /* make card right subtitle match card header font size on print */
  .title-right {
      font-size: 30px!important;
  }

  /* cleanup footer spacing for single-page printing */
  h2 {
    font-size: 16px;
  }
  div#isi,
  #tnc {
    padding-top: 0;
  }
  /* override bootstrap overrides */
  div#copyright * {
    color: #fff !important;
  }
  div#footer {
    margin-top: 20px;
    background: #fed513 !important;
  }
  div#footer p {
    font-size: 9px;
  }
  div#copyright {
    padding: 10px;
    background: #004697 !important;
  }

  /* undo bootstrap */
  a[href]:after {
    content: "";
  }
}
