/* Global styles  */
* {
  margin: 0;
  padding: 0;
}
@font-face {
  font-family: "Lato";
  src: url("../../webfonts/Lato-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Lato";
  src: url("../../webfonts/Lato-Bold.ttf") format("truetype");
  font-weight: bold;
}
@font-face {
  font-family: "Lato";
  src: url("../../webfonts/Lato-Italic.ttf") format("truetype");
  font-style: italic;
}
body {
  font-family: Lato, Arial, sans-serif;
  color: #2c3e50;
  font-size: 1em;
  box-sizing: border-box;
  height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  letter-spacing: 0.3px;
}
.hidden {
  display: none;
}
section {
  padding: 1em;
  clear: both;
}
header section {
  padding-top: 1em;
  padding-bottom: 0;
}
div.content-wrapper {
  flex: 1;
}
.content-wrapper {
  background-size: 80px;
  background-repeat: no-repeat;
  background-position: top right;
  background-color: white;
}
#main-topmatter {
  border: 1px solid red;
  display: none;
}
nav.tab-menu {
  margin: 2em 0 1em;
  font-size: 0.8rem;
}
nav.tab-menu ul {
  list-style: none;
  margin: 0;
  display: flex;
  padding: 0;
  justify-content: space-between;
}

nav.tab-menu li {
  flex: 1;
  text-align: center;  
  border-bottom: 1px solid lightgray;
  background: rgb(240, 240, 240);
  transition: background-color 0.4s ease-in;
}

nav.tab-menu a {
  display: inline-block;
  width: 100%;
  padding: 1em 0;
}

nav.tab-menu li:hover {
  cursor: pointer;
}

.sections-container section {
  padding-bottom: 3em;
  display: none;
  min-height: 400px;
}

.sections-container .active-section {
  display: block;
}

.tab-container .active-menu-item {
  border-bottom: none;
  border-top: 1px solid lightgray;
  border-left: 1px solid lightgray;
  border-right: 1px solid lightgray;
  border-radius: 5px 5px 0 0;
  background: white;
  font-weight: bold;
}

nav.tab-menu li:first-of-type {
  border-left: none;
  border-radius: 0 5px 0 0;
}

nav.tab-menu li:last-of-type {
  border-right: none;
  border-radius: 5px 0 0 0;
}

/* Layout styles */
.vertically-centered {
  display: flex;
  align-items: center;
}
h1 {
  font-size: 1.5em;
}
h2 {
  font-size: 1.25em;
}
h1,
h2,
h3 {
  color: #000080;
}
h3,
h4 {
  padding: 0.5em 0;
}
p,
.p {
  margin: 1em 0;
  line-height: 1.5em;
  font-size: 1.2rem;
}
/*  Top matter */
.top-matter {
  display: flex;
  flex-flow: column wrap;
}
.top-matter-item h4 {
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
}
.top-matter-item p,
.top-matter-item .p {
  margin-left: 0.5em;
}
img.icon {
  width: 20px;
  height: 20px;
  padding: 0.25em;
  border: 1.5px solid lightgray;
  border-radius: 3px;
  background-color: rgb(208, 229, 236);
}
img.icon:hover {
  background-color: white;
}
/* Course schedule styles  */
.drop-down-icon {
  padding: 0 0.75em;
}
.drop-down-icon:hover {
  cursor: pointer;
}
.week-item {
  line-height: 1.5em;
  margin: 0 auto;
  margin-bottom: 3em;
  box-shadow: 0 1px 2px 0 rgb(60 64 67 / 30%), 0 2px 6px 2px rgb(60 64 67 / 15%);
  border-radius: 5px 5px 0 0;
  border: 1px solid rgb(180, 180, 180);
}
#course-schedule .current-week {
  border: 2px solid rgb(180, 180, 200);
}
.week-item-header {
  border-bottom: 1px solid rgb(180, 180, 180);
  border-radius: 5px 5px 0 0;
  background: rgb(240, 240, 240);
  padding: 0.25em;
}
.week-head {
  font-weight: bold;
  font-size: 1.4em;
  font-variant: small-caps;
  margin-right: 0.5em;
}
.week-item-content > div {
  padding: 0.5em 0.8em 0.25em;
}
.week-item-content > div > strong {
  color: rgb(40, 40, 40);
}
.week-item-content ol {
  margin-left: 1.5em;
}
div.special-week-item,
div.keydate-week-item {
  background: rgb(250, 250, 250);
  padding: 0.75em 0.8em 0.15em;
}
div.special-week-item strong {
  display: block;
  border-bottom: 2px solid #ff3028;
  width: 120px;
  margin-right: 1em;
  color: rgb(80, 70, 70);
}
div.keydate-week-item strong {
  display: block;
  border-bottom: 2px solid navy;
  width: 120px;
  margin-right: 1em;
  color: rgb(80, 70, 70);
}
div.week-item-content div:last-child {
  padding-bottom: 0.75em;
}
.section {
  font-variant: small-caps;
  font-size: 1em;
}

/* Assignments styles */
.assignment {
  max-width: 1000px;
  margin: 0 auto 0;
  font-size: 1.2em;
  border-top: 1px solid lightgray;
}
.assignment ol li {
  margin-bottom: 1em;
}
.assignment h2 {
  margin: 0;
}
.assignment ol {
  margin: 0.75em;
}
.assignment-body {
  padding-top: 1em;
  line-height: 1.5;
}
.homework-due-date {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.alert {
  background-color: rgb(255, 225, 225);
  color: red;
  padding: 0.5em;
  border-radius: 5px;
  border: 2px solid rgb(255, 100, 100);
}
.notice {
  background-color: rgb(245, 245, 245);
  color: rgb(40, 40, 40);
  padding: 0.5em;
  border-radius: 5px;
  font-weight: bold;
  border: 2px solid rgb(200, 200, 200);
}
.homework-edit-link {
  position: relative;
  text-align: right;
  height: 0;
}
.homework-navigation {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  list-style: none;
  justify-content: space-around;
  padding: 3em 0 0;
  flex-wrap: wrap;
}
.homework-navigation li {
  min-width: 60px;
  max-width: 100px;
  flex: 1;
  text-align: center;
  padding: 5px;
  border-bottom: 3px solid transparent;
}
li.active-homework {
  border-bottom: 3px solid #3366ff;
  border-radius: 2px;
}
.active-homework a {
  font-weight: bold;
}
/* Assignments List styles */
table.assignments-list {
  margin: 0 auto;
  border-collapse: collapse;
  box-shadow: rgb(0 0 0 / 13%) 0px 5px 8px 0px,
    rgb(0 0 0 / 11%) 0px 0.3px 0.9px 0px;
}
table.assignments-list thead {
  background: rgb(220, 220, 220);
  font-weight: bold;
}
table.assignments-list td,
table.assignments-list th {
  border: 1px solid lightgray;
  padding: 0.5em 1em;
}
table.assignments-list tbody tr:nth-of-type(2n + 1) {
  background: rgba(240, 240, 240, 0.4);
}
table.assignments-list tbody tr:hover {
  background: rgba(220, 220, 245, 0.4);
}
/* Syllabus styles */
.course-syllabus section {
  max-width: 850px;
  margin: 0 auto;
  text-align: justify;
}
#table-grading {
  max-width: 600px;
  margin: 1em auto;
  border-collapse: collapse;
}
#table-grading table {
  width: auto;
  margin: 0 auto;
  margin-bottom: 1em;
}
#table-grading th {
  border-bottom: 1px solid lightgray;
}
#table-grading th,
td {
  text-align: left;
  padding: 0.25em 0.5em;
}
#learning-outcomes {
  margin: 1em 2em 0.5em;
}

/* Footer styles */
footer {
  color: white;
}

footer ul {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  font-size: xx-small;
}
footer ul li {
  list-style: none;
}

footer a:visited {
  color: white;
  text-decoration: none;
}
footer a:link {
  color: white;
  text-decoration: none;
}

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

/* Links  */
a,
a:visited,
a:link {
  color: #3366ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
/* Basic table styles */
.basic-table {
  margin: 1em auto;
  border-collapse: collapse;
}
.basic-table td,
.basic-table th {
  border: 1px solid lightgray;
  padding: 2px 5px;
}
.basic-table th {
  background-color: rgb(40, 40, 40);
  color: white;
}
.basic-table tr:nth-child(2n) {
  background-color: rgb(240, 240, 240);
}
/* CRUD Header */
#crud-header {
  background: rgba(30, 30, 30, 0.8);
  padding: 0.75em;
  color: white;
  position: sticky;
  top: 0;
}

#crud-header > span {
  margin-left: 20px;
}

#crud-header a {
  color: white;
}

/*  Quick edit */
.quick-edit {
  float: right;
  padding-right: 5px;
}
#sub-menu {
  margin: 0.5em auto;
}
#sub-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

#sub-menu button {
  margin: 0 2em;
  padding: 0.5em;
  font-weight: bold;
  border-radius: 5px;
  background-color: ghostwhite;
  color: blue;
  font-size: 1.1em;
}
#sub-menu button:hover,
#sub-menu button:focus {
  cursor: pointer;
  box-shadow: 3px 3px gray;
  background-color: steelblue;
  color: ghostwhite;
}

blockquote {
  margin: 0.5em 1em;
  font-style: italic;
}
.code-block {
  background: #eeffc5;
  color: black;
  font-size: 1.1rem;
  margin: 1em 0;
  padding: 0.5em 1em;
  border-radius: 5px;
  border: 1px solid gray;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, liberation mono,
    courier new, monospace;
}
.indent-1 {
  margin-left: 2em;
}
.indent-2 {
  margin-left: 4em;
}
.fg-cyan {
  color: cyan;
}
.fg-magenta {
  color: magenta;
}
.fg-orange {
  color: orange;
}
.fg-blue {
  color: blue;
}
.fg-red {
  color: red;
}
.fg-green {
  color: green;
}
.fg-white {
  color: white;
}
.fg-prompt {
  color: #c65d09;
}

/* Media queries */
@media screen and (min-width: 500px) {
  div.special-week-item strong,
  div.keydate-week-item strong {
    display: inline-block;
    text-align: center;
  }
  nav.tab-menu {
    font-size: 1rem;
  }
}
@media screen and (min-width: 725px) {
  .content-wrapper {
    background-size: 130px;
  }
  .week-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  header section {
    padding-top: 2em;
    padding-bottom: 0;
  }
  #main-math section:last-of-type {
    padding-bottom: 1.5em;
  }
  h1 {
    font-size: 2em;
  }
  h2 {
    font-size: 1.5em;
  }
  h3,
  h4 {
    font-size: 1.25em;
  }
  footer ul {
    font-size: 14px;
    height: 40px;
  }
  .top-matter {
    flex-flow: row wrap;
    justify-content: space-around;
  }
  .top-matter-item {
    flex: 0 1 45%;
  }
  #table-grading {
    display: flex;
    justify-content: space-around;
  }
  #table-grading table {
    margin: 0 auto;
  }
  .assignment ol {
    margin: 1em 2em;
  }
}

@media screen and (min-width: 1000px) {
  h1,
  h2 {
    display: inline-block;
  }
  h2 {
    margin-left: 0.5em;
  }
  #course-schedule div {
    line-height: 1.5em;
  }
  .week-item {
    max-width: 900px;
    width: 80%;
  }
  .week-item-header {
    padding: 0.75em 0.5em 0.5em;
  }
}

@media screen and (min-width: 1200px) {
  .content-width,
  .content-wrapper {
    width: 1200px;
    margin: 0 auto;
  }
  div.content-wrapper,
  footer {
    border-left: 1px solid gray;
    border-right: 1px solid gray;
  }
  .syllabus-wrapper {
    padding: 0 4em;
  }
}
