/* Global styles */

@import url("https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");

:root {
  --color-gray: #656565;
  --color-lightbrown-lightbg: #b15e23;
  --color-lightbrown-darkbg: #d5a17c;
  --color-darkbrown: #3c1f0a;
  --lg-w-stops: lightgray, white;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;

  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-gray);
  background: white;
  font-size: 1rem;
  font-family: "Ubuntu", sans-serif;
}

p {
  text-align: justify;
}

/* Responsiveness */

@media (width < 768px) {
  main {
    width: 100vw !important;
    padding-inline: 1rem;
  }

  .split-content {
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(2, auto);
  }

  .presentation--items {
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(4, auto) !important;
  }

  .split-content > .lectures {
    padding-inline-start: 0 !important;
  }

  .split-content > .lectures::before {
    inset-inline-start: -1rem !important;
  }

  footer > div {
    flex-direction: column;
    padding-inline-start: 1rem;
  }
}

@media (768px <= width < 992px) {
  main {
    width: 100vw !important;
    padding-inline: 1rem;
  }

  .split-content {
    grid-template-columns: 7fr 5fr !important;
    grid-template-rows: auto;
  }
}

@media (992px <= width < 1200px) {
  main {
    width: 100vw !important;
    padding-inline: 1rem;
  }

  .split-content {
    grid-template-columns: 8fr 4fr !important;
    grid-template-rows: auto;
  }
}

@media (width >= 1200px) {
  .split-content {
    grid-template-columns: 8fr 4fr !important;
    grid-template-rows: auto;
  }
}

/* Header */

header {
  width: 100vw;
  background: url("img/footer_bg.gif") repeat;
}

header > div {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-block-start: 2.5rem;
  padding-inline: 1rem;
}

header h1 {
  font-style: italic;
  margin: 0 0 1.25rem 0;
}

header h1 > a {
  color: white;
  font-size: 4rem;
  text-decoration: none;
  font-weight: bold;
}

header h1 > span {
  color: var(--color-lightbrown-darkbg);
  display: block;
  font-size: 1.6rem;
  margin-top: -0.75rem;
  font-weight: bold;
}

.subject-details {
  padding-block: 1.5rem;
  z-index: 1;
  position: relative;
}

.subject-details::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100vw;
  right: -100vw;
  z-index: -1;
  height: 100%;
  background: linear-gradient(to top, var(--lg-w-stops));
}

.subject-details > h2 {
  margin-top: 0;
}

/* Replace your existing nav styles with these */

nav {
  margin-top: 2rem;
  background-color: #b06124;

  box-shadow: 0 0 0 100vmax #b06124;
  clip-path: inset(0 -100vmax);

  padding: 1rem 0;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
}

nav li {
  display: block;
}

nav a {
  color: white;
  font-weight: normal;
  text-decoration: none;

  font-size: 1rem;
  position: relative;
}

nav a:hover {
  text-decoration: underline;
}

/* Presentations */

.presentation--content > a {
  display: block;
  border-bottom: 2px dotted var(--color-lightbrown-lightbg);
  text-decoration: none;
  color: var(--color-darkbrown);
  font-size: 1.2rem;
  font-weight: bold;
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;
}

.presentation--content > span {
  color: var(--color-gray);
}

.presentation--items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

.presentation--items > div {
  display: flex;
}

.presentation--items > div img {
  width: 5rem;
  height: 5rem;
}

/* Lectures */

.lectures > div {
  margin-inline: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px dotted var(--color-lightbrown-lightbg);
}

.lectures > div > div {
  display: flex;
}

.lectures > div > a {
  display: block;
  text-decoration: none;
  color: var(--color-darkbrown);
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

/* Content */

main {
  width: 1200px;
  margin: 0 auto;
}

.split-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  margin: 0 auto;
}

.split-content > div:first-child {
  padding-inline-end: 2rem;
}

.split-content > .lectures {
  padding-inline-start: 2rem;
  position: relative;
  z-index: 1;
}

.split-content > .lectures::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  inset-inline-end: -50vw;
  background: linear-gradient(to right, var(--lg-w-stops));
  z-index: -1;
}

h2 {
  color: var(--color-lightbrown-lightbg);
  font-size: 1.5rem;
  border-bottom: 1px dotted var(--color-lightbrown-lightbg);
  padding-bottom: 0.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

main div img {
  vertical-align: middle;
  margin-right: 1rem;
}

table {
  width: 100%;
  border: 5px solid black;
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
}

th,
td {
  text-align: center;
}

th {
  background-color: var(--color-lightbrown-darkbg);
  border-width: 3px;
  border-color: var(--color-darkbrown);
  border-style: dotted solid solid dotted;
}

td {
  border-top: 2px solid black;
  border-bottom: 2px solid var(--color-gray);
  color: black;
}

tr td:first-of-type {
  text-align: left;
}

/* Footer */

footer {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  margin: 0;
  background: repeat url("img/footer_bg.gif");
  color: #ccc;
}

footer > div {
  width: 60rem;
  display: flex;
  gap: 1rem;
}

footer h2 {
  border-bottom: none;
  color: #ccc;
}

footer dl,
footer ul {
  list-style-image: url("img/footer_list_bullet.gif");
}

footer dt {
  float: left;
  font-weight: bold;
  color: #ccc;
}

footer dd {
  margin-left: 7rem;
  margin-bottom: 0.25rem;
}

footer a {
  color: var(--color-lightbrown-darkbg);
  text-decoration: none;
  line-height: 1.5;
}
