@import url('https://fonts.googleapis.com/css2?family=Gentium+Book+Plus:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Basic reset */
* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  max-width: 850px;
  margin: 2rem auto;
  padding: 3.5rem 4.5rem;

  background: #ffffff;
  color: #202124;

  font-family: "Gentium Book Plus", Times, serif;
  font-size: 1rem;
  line-height: 1.6;

  box-shadow: 0 1px 6px rgba(60, 64, 67, 0.25);
}


/* Headings */
h1,
h2,
h3 {
  font-family: "Gentium Book Plus", Times, serif;
  color: #202124;
  line-height: 1.25;
}

h1 {
  margin: 0 0 0.25rem;
  font-size: 2rem;
  font-weight: 500;
}

h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;

  font-size: 1.35rem;
  font-weight: 500;

  border-bottom: 1px solid #dadce0;
}

h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}


/* Paragraphs and lists */
p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 2rem;
}

li {
  margin: 0 0 0.35rem;
  padding: 0;

  background-color: transparent;
  border: 0;
  border-radius: 0;

  transition: none;
}

li:hover {
  background-color: transparent;
}
/* Course heading information */
#course_title {
  margin-bottom: 0.25rem;
}

#course_code {
  margin-top: 0;
  margin-bottom: 1.5rem;

  color: #5f6368;
  font-size: 1.05rem;
}

.head_para {
  margin-bottom: 1.25rem;
}


/* Links */

a {
  color: #1a73e8;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}


/* Tables */
table {
  width: 100%;
  margin: 1.5rem 0 2rem;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.75rem;
  vertical-align: top;
  text-align: left;
  border: 1px solid #dadce0;
}

.marking_scheme td:first-child,
.marking_scheme th:first-child {
  width: 10%;
  font-weight: 600;
}

.marking_scheme td:nth-child(2) {
  width: 8%;
}

.marking_scheme td:nth-child(3) {
  width: 55%;
}

.rubric {
  table-layout: fixed;
}

.rubric td:first-child {
  width: 12%;
  font-weight: 600;
}

.rubric td:nth-child(2) {
  width: 12%;
  white-space: nowrap;
}

.rubric td:nth-child(3) {
  width: 76%;
}

.schedule td:first-child,
.schedule th:first-child {
  white-space: nowrap;
  width: 1%;
  font-weight: 600;
}

.schedule td:nth-child(2) {
  width: 20%;
}

.schedule td:nth-child(3) {
  width: 55%;
}

td p:last-child {
  margin-bottom: 0;
}

/* Fine print */

.fineprint {
  margin-top: 3rem;
  padding-top: 1.25rem;

  color: #5f6368;
  font-size: 0.85rem;
  line-height: 1.5;

  border-top: 1px solid #dadce0;
}


/* Print layout */

@media print {
  body {
    max-width: none;
    margin: 0;
    padding: 0;

    color: #000000;
    box-shadow: none;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  h2,
  tr {
    break-inside: avoid;
  }

  h2 {
    break-after: avoid;
  }
}


/* Tablets and mobile screens */
@media screen and (max-width: 700px) {
  html {
    font-size: 15px;
  }

  body {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.5rem 1.25rem;

    box-shadow: none;
  }

  h1 {
    font-size: 1.65rem;
  }

  h2 {
    margin-top: 2rem;
    font-size: 1.25rem;
  }

  /* All tables can scroll horizontally if needed */
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    font-size: 0.9rem;
  }

  th,
  td {
    padding: 0.6rem;
  }

  /* Rubric table */
  .rubric td:first-child,
  .rubric th:first-child {
    white-space: nowrap;
  }

  .rubric td:nth-child(2),
  .rubric th:nth-child(2) {
    white-space: nowrap;
  }

  /* Schedule table */
  .schedule td:first-child,
  .schedule th:first-child {
    width: 1%;
    white-space: nowrap;
    font-weight: 600;
  }

  .schedule td:nth-child(2),
  .schedule th:nth-child(2) {
    min-width: 9rem;
  }

  .schedule td:nth-child(3),
  .schedule th:nth-child(3) {
    min-width: 18rem;
  }
}

/* Print */
@page {
  size: Letter;
  margin: 1in;

  /* Supported by Prince, WeasyPrint, Paged.js, etc.
     Ignored by most browsers. */
  @bottom-center {
    content: counter(page);
    font-family: "Gentium Book Plus", serif;
    font-size: 10pt;
  }
}

@media print {

  html {
    font-size: 12pt;
  }

  body {
    max-width: none;
    margin: 0;
    padding: 0;

    background: white;
    color: black;
    box-shadow: none;

    font-size: 12pt;
    line-height: 1.35;
  }

  h1 {
    font-size: 22pt;
    page-break-after: avoid;
  }

  h2 {
    font-size: 16pt;
    margin-top: 1.4em;

    page-break-after: avoid;
    break-after: avoid;
  }

  h3 {
    font-size: 13pt;
    page-break-after: avoid;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }

  table {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tfoot {
    display: table-footer-group;
  }

  img,
  svg {
    max-width: 100%;
    page-break-inside: avoid;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .fineprint {
    color: black;
    border-top: 0.5pt solid #888;
  }
}
