a:link {text-decoration:none}
a:visited {text-decoration:none}
a:active {text-decoration:none}
a:hover {text-decoration:none; color:#990000}
body {max-width:960px}
.active {font-weight:bold}
.inactive {color:gray}

html {font-family:"Arial"; font-size:16px}
@media print {html {font-size:12px}}
td {font-size:16px}
@media print {td {font-size:12px}}
td {vertical-align: top}

.header {font-weight:bold; color:#990000; font-size:24px}
@media print {.header {font-size:20px}}
.subheader {font-weight:bold; color:#990000; font-size:20px}
@media print {.subheader {font-size:18px}}

.section {margin:14px}
.top {margin-left:80px; margin-top:3px}
.nav {font-weight:bold; font-size:20px}
@media print {.nav {font-size:16px}}

pre {color:#008000; margin-left:20px; font-size:12px}
code {color:#008000; font-size:14px}
@media print {pre {font-size:10px}}
.placeholder {border: 1px solid #c0daae; background-color: #ebf9d7;}

table {padding:20px}
td {padding:7px}

.highlightOnHover:hover {background-color: #f5f5f5;}

/* For assignments */
.assignmentTitle {font-size:28px; font-weight:bold; color:darkblue}
.assignmentCreds {padding-top:10px; padding-bottom:10px}
@media print {.assignmentTitle {font-size:24px}}
.problemTitle {font-size:24px; color:#990000}
@media print {.problemTitle {font-size:20px}}
.solution {margin:10px; border:solid 3px gray; padding:10px}
ol.problem {margin:20px; list-style-type:lower-alpha}
ol.problem li {margin-top:10px; margin-bottom:10px}

.codeImg {
  background: url(code.png) no-repeat;
  background-size: 20px;
  margin-left: 10px;
  padding-left: 30px;
}
.writeupImg {
  background: url(writeup.png) no-repeat;
  background-size: 20px;
  margin-left: 10px;
  padding-left: 30px;
}

/* New method for showing pencils and monitors */
ol.problem li.code, ol.problem li.writeup, ol.problem li.both {
  padding-left: 30px;
  min-height: 30px;
  position: relative;
}

ol.problem li.code:before, ol.problem li.writeup:before, ol.problem li.both:before {
  position: absolute;
  display: block;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
}

ol.problem li.code:before {
  content: "";
  background-image: url('code-small.png');
  background-position: center;
}

ol.problem li.writeup:before {
  content: "";
  background-image: url('writeup-small.png');
  background-position: center;
}

ol.problem li.both:before {
  content: "";
  background-image: url('both-small.png');
  background-position: center;
}

/* Add screen reader only text for accessibility */
ol.problem li.code::after,
ol.problem li.writeup::after,
ol.problem li.both::after {
  content: attr(data-icon);
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* For expected blocks. */
div.expected::before {
  content: "\aWhat we expect: ";
  font-weight: bold;
  white-space: pre;
}

/* For main home page */
.homepageTitle {font-size:28px; font-weight:bold; color:#990000}
@media print {.homepageTitle {font-size:20px}}
.scheduledTopic {font-weight:bold; color:#990000}
.pdfLink {font-size:13px}

/* For polling page */
#question { font-size: 24px; }
#answers div { border: 3px solid #808080; margin-top: -3px; padding: 40px 20px 40px 20px;}
.pollInput { width: 100%; margin-bottom: 2em; padding: .5em 0 .5em 0; }
#answers .pollSubmit {
  color:#08233e;
  background: #A0D4D8;
  font-weight: bold;
  border:2px solid #808080;
  padding: 10px 5px 10px 5px;
  max-width: 150px;
  text-align: center;
  -moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px;
  cursor:pointer;
}

#comment_table {
  font-size:12px;
  font-weight: normal;
  text-align: left;
}

#comment_table td {
  border: 1px solid #ddd;
}

.answer_table {
  font-size:12px;
  font-weight: normal;
  text-align: right;
  width: 50%;
    margin-left : auto;
    border-collapse: collapse;
    margin-right : auto;

}
.answer_table td {
  border: 1px solid #ddd;
  text-align: center;
}
.answer_table tbody tr:first-child td {
    background-color: #efeded;
  border: 1px solid #ddd;
}

.answer_table tbody td:nth-child(1) {
    background-color: #efeded;
  border: 1px solid #ddd;
}
.sentiment_table {
  font-size:12px;
  font-weight: normal;
  text-align: center;
  width: 70%;
    margin-left : auto;
    border-collapse: collapse;
    margin-right : auto;
}

.sentiment_table th {
  font-size:16px;
  border: 1px solid #ddd;
  text-align: center;
  background : #efeded;
}

.sentiment_table td {
  border: 1px solid #ddd;
  text-align: center;
}
#footer {
text-align: right;
  border: 0;
}
table.results {
}
table.results td {
  border: 1px solid #000;
  border-collapse: collapse;
}
table.results thead {
    font-weight: bold;
}
table.results tr td:first-child {
    font-weight: bold;
    margin: 0px
}

.float-right {float: right}
.float-left {float: left}

#disclaimer {color: #cc6600 }

.cas {
  font-size: 6px;
  margin: 0 auto;
  text-align: center;
  margin-left: 0px;
  margin-right: auto;
}

.cas table {
  width: 120%;
}

.cas td > div {
  float: left;
  min-width: 180px;
  margin-bottom: 24px;
}

/* Temporary: for screenshotting to make teaching staff names all the same color regardless of links */
/*a { color: black; }*/

.cas img {
  object-fit: cover;
  border-radius: 100%;
  height: 100px;
  width: 100px;
  margin: auto;
}

.staff img {
  object-fit: cover;
  border-radius: 100%;
  height: 120px;
  width: 120px;
  margin: auto;
}

.photos {
  margin: auto;
  text-align: center;
}

.photos_staff {
  margin: auto;
  text-align: center;
}

.office-hours {
  font-size: 10px;
}

/* Schedule table */

.course_schedule table {
  padding: 0px;
}

.course_schedule th, a {
  color: #8C1515;
}

.pseudolink {
  color: #8C1515;
}

.course_schedule a {
  font-weight: normal;
}

.course_schedule th, td {
  text-align: left;
  padding: 10px;
  width: 14%;
  border-bottom: 1px solid #ddd;
}

.course_schedule tr:nth-child(odd) td:hover {
  background-color: #e6cdcd;
}

.course_schedule tr:nth-child(even) {
  color: #7f1313;
  background-color: #efeded;
}
