
@media print {
  body,
  html {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Hide everything on the page by default */
  body * {
    visibility: hidden;
  }

  /*
    Then, reveal the printable area and everything inside it.
    The .printable-area class is on the div that wraps the resume template.
    */
  .printable-area,
  .printable-area * {
    visibility: visible;
  }

  /*
    Position the printable-area to take up the whole page.
    This is important for react-to-print to work correctly.
    */
  .printable-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  /* Remove default margins from the page */
  @page {
    size: A4;
    margin: 0;
  }

  /* Remove body margins */
  body {
    margin: 0;
  }
}
