/* ECE 6765 course site, based on the ECE 2300 site layout. */
body {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #000;
  background: #fff;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.25;
  overflow-y: scroll;
}

#main-body {
  max-width: 725px;
  margin: 0 auto;
  padding: 25px;
}

#header {
  margin-bottom: 20px;
  text-align: center;
}

#header p, #header h2 {
  margin: 0 0 5px;
  padding: 0;
  font-size: 1.17em;
  font-weight: normal;
  text-align: center;
}

#header h2 a.current { font-weight: bold; }

img#top {
  display: block;
  width: 100%;
  max-width: 725px;
  aspect-ratio: 725 / 105;
  height: auto;
  margin: 0 auto 15px;
  padding: 0;
}

h1 {
  margin: 10px 0;
  padding: 0;
  font-size: 1.75em;
  text-align: center;
}

h2 {
  margin: 0 0 10px;
  padding-top: 5px;
  font-size: 1.3em;
}

p { margin: 0 0 10px; }
a:link, a:visited { color: #0000cc; text-decoration: none; }
a:hover, a:active { color: #0000cc; text-decoration: underline; }

ul {
  margin: 0 0 10px 1.6em;
  padding: 0;
}

ul li { margin-bottom: 8px; }
ul.tightlist li { margin-bottom: 0; }

table { width: 100%; }

table#staff { table-layout: fixed; width: 100%; }
table#staff th, table#staff td { padding-bottom: 10px; text-align: center; }
table#staff img {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto 5px;
  padding: 0;
  border: 1px solid #000;
  object-fit: cover;
}

table.grading {
  width: auto;
  min-width: 280px;
  margin: 0 0 15px;
  border-collapse: collapse;
}
table.grading th, table.grading td {
  padding: 4px 12px;
  border: 1px solid #888;
  text-align: left;
}

table#details {
  margin: 0 0 15px;
  border-collapse: collapse;
}

table#details th, table#details td {
  padding: 5px 8px;
  border-bottom: 1px solid #aaa;
  vertical-align: top;
}

table#details th {
  width: 130px;
  text-align: right;
}

table#schedule {
  margin: 15px 0;
  border-collapse: collapse;
  font-size: 0.95em;
}

table#schedule th, table#schedule td {
  padding: 5px;
  border: 1px solid #888;
  vertical-align: top;
}

table#schedule th { background: #eee; text-align: center; }
table#schedule td:nth-child(1), table#schedule td:nth-child(2) { white-space: nowrap; }
.no-class { color: #b31b1b; font-weight: bold; }
.exam { color: #0000cc; font-weight: bold; }

.topic-list > li { margin-bottom: 10px; }
.topic-list ul { margin-top: 3px; }

@media (max-width: 600px) {
  #main-body { padding: 18px; }
  table#schedule { display: block; overflow-x: auto; }
  table#details th { width: auto; }
}
