/* General */

*,
*::before,
*::after {
  box-sizing: border-box;

  font-family: "Open Sans", sans-serif;
}

:root {
  --purdue-gold: #ceb888;
  --purdue-black: #000;
  --light-black: #333;
  --dark-white: #eee;

  --semi-bold: 600;
  --bold: 700;
  font-size: 16px;
}

body {
  position: relative;

  width: 100vw;
  min-height: 100vh;
}

ul {
  padding: 0;

  list-style: none;
}

/* Header */

.main-header {
  padding: 1rem;

  background: var(--purdue-gold);
  box-shadow: 0 2px 10px;
}

.nav-list {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  float: right;
  margin: 0;
  padding: 0;

  list-style-type: none;
}

.nav-purdue-logo-link {
  margin-right: 1.5rem;

  color: transparent;
}

.nav-purdue-logo {
  width: auto;
  height: 1.5rem;
}

.nav-item {
  margin: 0 1rem;
}

.nav-link {
  color: var(--purdue-black);
  font-weight: var(--semi-bold);
  font-size: 1.1rem;
  text-decoration: none;
}

@media screen and (max-width: 300px) {
  .nav-item {
    margin: 0 .5rem;
  }
}

@media screen and (min-width: 600px) {
  .nav-purdue-logo-link {
    margin-right: 3rem;
    margin-left: 1rem;
  }

  .nav-purdue-logo {
    width: auto;
    height: 2.5rem;
  }

  .nav-link {
    font-size: 1.75rem;
  }

  .main-header {
    padding: 1.5rem 2rem;
  }
}

/* Main Content */

.main-content {
  margin: 0 1rem;
  padding-bottom: 120px;
}

.intro {
  width: 90vw;
  margin: 1rem auto;
  margin: auto;
}

.intro-text {
  line-height: 1.5rem;
}

.intro-image-div {
  margin-top: 2rem;
}

.intro-image {
  width: 100%;
}

@media screen and (min-width: 600px) {
  .main-content {
    margin: 0 2rem;
  }

  .intro {
    width: 100%;
    margin-bottom: 4rem;
  }

  .intro-top {
    display: flex;
    flex-direction: horizontal;
    margin: auto;
  }

  .intro-image-div,
  .intro-text-div {
    margin-top: 3rem;
  }

  .intro-text {
    width: 100%;
  }
  .intro-text * {
    font-size: 1.1rem;
  }

  .intro-image-div {
    min-width: 10rem;
    max-width: 20rem;
    margin-right: 2rem;
  }

  .intro-text-div {
    min-width: 10rem;
    max-width: 80%;
    margin-right: 2rem;
  }
}

/* Course Calendar */

/* .table-header {
  display: none;
} */

.course-intro {
  display: flex;
}

.course-links {
  margin: 0 0 3rem 10rem;
}

.course-link-list {
  display: grid;
  grid-template-areas:
    "link-a link-b"
    "link-c link-d";

  column-gap: 5rem;
  row-gap: 1rem;
}

.course-link-a {
  grid-area: link-a;
}

.course-link-b {
  grid-area: link-b;
}

.course-link-c {
  grid-area: link-c;
}

.course-link-d {
  grid-area: link-d;
}

.calendar {
  width: 100%;
}

.table-week-column {
  min-width: 1rem;
  max-width: 2rem;

  background-color: var(--purdue-gold);
}

.table-cell {
  width: 30%;
}

.table-cell > ul {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 15rem;
}

.table-cell > ul > li {
  margin: 0 1rem;
}

.important {
  color: red;
  font-weight: 700;
}

table,
th,
tr,
td,
thead,
tbody {
  border: 1px solid var(--light-black);
}

/* Footer */

.main-footer {
  position: absolute;
  bottom: 0;

  display: flex;
  justify-content: center;
  width: 100%;
  height: 60px;
  margin-top: 2rem;
  padding: 1rem;

  background-color: var(--light-black);
}

.web-dev-credits {
  color: var(--dark-white);
  text-align: center;
}

.web-dev-email {
  color: var(--purdue-gold);
  text-decoration: none;
}
