html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  /* font-family: 'Roboto', sans-serif; */
  /* default is 16px, this just makes things a little less enormous */
  /*font-size: 14px;*/
}

/* disable hideous pink text from bootstrap css */
code {
  color: #777;
  background-color: transparent;
}

p {
  font-size: 16px;
}

a, a:visited, a:hover {
  color: orange;
  text-decoration: none;
}

a:hover {
  /* text-decoration: none; */
  /*border-bottom: 1px orange solid;*/
  /* text-decoration: underline; */  /* otherwise puts underline on arrows */
}

/*
a:visited .glyphicon {
  color: black;
}
*/

.page-header {
  margin: 0 auto;
  margin-top: 30px;  /* otherwise <h1> runs into the nav bar */
  margin-bottom: 0px;

  /* removing some of the extra crap from bootstrap */
  border-bottom: none;
  padding-bottom: 5px;
  padding-top: 5px;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* overriding to use gray-dark instead of the bright blue */
/* reference: https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.css */


.btn-primary {
  /*color: #fff;*/  /* the text color */
  background-color: #343a40;
  border-color: #343a40;
}

.btn-primary:hover {
  color: #fff;
  background-color: #23272b;
  border-color: #1d2124;
}

.btn-primary:focus, .btn-primary.focus {
  color: #fff;
  background-color: #23272b;
  border-color: #1d2124;
  box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5);
}

.btn-primary.disabled, .btn-primary:disabled {
  color: #fff;
  background-color: #343a40;
  border-color: #343a40;
}

.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: #1d2124;
  border-color: #171a1d;
}

.btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5);
}


/*
TODO yucky hack to prevent buttons from changing color after visited
     also doesn't work on the /assignment/list page
*/
.btn-override {
  color: #6c757d;
  border-color: #6c757d;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */


.button-main, .submission-list .btn-default {
/*form .btn-default {*/
  color: black;
  font-weight: 700;
  /*font-family: 'Roboto', sans-serif;*/
  font-size: 14px;
  background-color: #e6e6e6;
  padding: 8px 40px;
  display: inline-block;
  border: 0 none;
  border-radius: 3px;
  transition: background-color 0.5s ease;
}

.button-main:hover {
  background-color: #d4d4d4;
}

.error {
  color: #f20f0f;
  font-weight: bold;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* assignment */


.assignment {
  padding-bottom: 20px;
}

.date {
  font-style: italic;
}

.due-date {
  color: orange;
  /*margin-top: 10px;*/
  font-style: italic;
  /*margin-bottom: 20px;*/
}

.submitted form {
  display: none;
}

.submission-block {
  margin-bottom: 30px;
}

.submission-block h4 {
  display: inline-block;
  font-weight: bold;
}

.submission-student-selector {
  margin-top: 40px;
  /*margin-bottom: 10px;*/
}

.submission-list-title {
  padding: 8px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  margin-top: 50px;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 18px;
  /*font-family: 'Roboto', sans-serif;*/
}

.submission-list {
  font-size: 14px;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* roster */


.student-list {
  /* needed to position toggle button */
  position: relative;
  /*display: none;*/
  top: -1px;
}

.student-list:last-child {
  border-bottom: 1px solid #ddd;
}

.student-item {
  padding: 8px 0;
  font-size: 16px;
  /*cursor: pointer;*/
  border-top: 1px solid #ddd;
  /*border-bottom: none;*/
}

.student-item a:visited {
  color: orange;
}

.student-item a:hover {
  text-decoration: underline;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* review */


.submission {
  padding-top: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

.submission:last-child {
  border-bottom: none;
}

.submission.p5-submission {
  width: 1000px;
  margin-left: -125px;
}

.submission.p5-submission iframe {
  margin-top: 20px;
}


.submissions-title {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 18px;
}

#list {
  clear: both;
  width: 100%;
  margin: 0 auto;
  margin-top: 25px;
  margin-bottom: 20px;
}

.status-late {
  color: #f20f0f;
  font-weight: bold;
}

.status-incomplete {
  color: #f20f0f;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* home */

/*
.panel {
  width: 1024px;
  margin: 0 auto;
  margin-top: 25px;
  margin-bottom: 20px;
}
*/

.syllabus-wrapper {
  max-width: 1024px;
  padding: 0 10px;
  overflow: auto;
  margin: auto;
  margin-top: 80px;
  position: relative;
}

.section-left {
  margin-left: 0;
  max-width: 700px;
  display: inline-block;
  margin-right: 324px;
}

.section-right {
  width: 220px;
  position: absolute;
  vertical-align: top;
  top: 0;
  right: 0;
}

.section-left .info-section {
  margin-bottom: 32px;
}

.section-left .info-section-big-gap {
  margin-bottom: 44px;
}

.section-left .info-subsection {
  margin-bottom: 12px;
}

.section-left .info-subsection-mid-gap {
  margin-bottom: 18px;
}

.section-left .info-subsection-big-gap {
  margin-bottom: 24px;
}

.section-left h1 {
  font-weight: 700;
  /*font-family: roboto, sans-serif;*/
  line-height: 26px;
  font-size: 22px;
  margin: 0;
  margin-bottom: 12px;
}

.section-left p {
  font-size: 20px;
  font-weight: 300;
/*
  line-height: 32px;
  font-family: roboto, sans-serif;
  word-wrap: break-word;
  margin: 0;
*/
}

.section-left .subsection-heading {
  font-weight: 700;
  /*font-family: roboto, sans-serif;*/
  font-size: 24px;
  line-height: 34px;
  margin: 0;
  margin-bottom: 6px;
}

.section-left h2 {
  font-weight: 700;
  font-style: italic;
  /*font-family: roboto, sans-serif;*/
  line-height: 34px;
  font-size: 22px;
  margin: 0;
}

.section-left .grade-factor {
  font-style: italic;
  font-weight: 700;
}

.section-left .link {
  color: orange;
}

.section-left .link:visited {
  color: orange;
}

.section-left .download {
  font-style: italic;
}

.section-right .info-section {
  margin-bottom: 20px;
}

.section-right .info-subsection {
  margin-bottom: 6px;
}

.section-right h1 {
  /*font-family: roboto, sans-serif;*/
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  margin-bottom: 6px;
  line-height: 21px;
}

.section-right h2 {
  /*font-family: roboto, sans-serif;*/
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  line-height: 21px;
}

.section-right p {
  /*font-family: roboto, sans-serif;*/
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
}

.section-right p.book {
  margin-bottom: 10px;
}

.section-right p.book a {
  font-style: italic;
  /*
  color: black;
  cursor: pointer;
  */
}

/*
.section-right a {
  color: orange;
}
*/

.section-right a:visited {
  color: orange;
}

.section-right .link {
  color: orange;
  font-weight: 700;
  font-size: 16px;
}

.section-right .link:visited {
  color: orange;
}

.section-right .download {
  font-style: italic;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* base */


#page-content {
  max-width: 770px;
  /* the 102 covers the footer plus a gap above it */
  padding: 0 10px 102px 10px;
  margin: auto;
  /*overflow: hidden;*/
  /*font-family: 'Roboto', sans-serif;*/
  min-height: 200px;
}

#wider-content {
  max-width: 960px;
  /* the 102 covers the footer plus a gap above it */
  padding: 0 10px 102px 10px;
  margin: auto;
  min-height: 200px;
}

#content {
  min-height: 100%;
  position: relative;
}

#header {
  width: 100%;
  height: 156px;
  background: url("/static/images/header.jpg") no-repeat left top;
}

#course-nav {
  height: 156px;
  max-width: 1024px;
  margin: auto;
  padding: 40px 10px;
}

#course-info {
  float: left;
  color: black;
}

#course-info #course-id {
  margin: 0px;
  line-height: 17px;
  font-size: 14px;
  font-weight: 700;
  /*font-family: 'Roboto', sans-serif;*/
}

/* big title for course */
#course-info #course-title {
  margin: 0px;
  font-size: 36px;
  line-height: 43px;
  font-weight: 700;
  /*font-family: 'Roboto', sans-serif;*/
}

/* italicized text beneath */
#course-info #course-subtitle {
  font-weight: 300;
  /*font-family: 'Roboto', sans-serif;*/
  font-style: italic;
  font-size: 22px;
  line-height: 26px;
}

/* two line version */
#course-info #course-two-line {
  margin: 0px;
  font-size: 32px;
  line-height: 36px;
  font-weight: 700;
  /*font-family: 'Roboto', sans-serif;*/
}

#course-two-line a {
  color: black;
}

#course-two-line a:visited {
  color: black;
}

#course-two-line a:hover {
  color: #444;
}

#nav-options {
  display: block;
  float: right;
  position: relative;
  margin-top: 23px;
  font-size: 14px;
}

#mobile-nav{
  display: none;
}

#nav-options .nav-option {
  float: left;
  text-align: center;
  /*font-family: roboto, sans-serif;*/
  font-weight: 700;
  border-radius: 4px;
  transition: background-color 0.5s ease;
  -webkit-transition: background-color 0.5s ease;
  height: 40px;
  margin-top: 0px;
  margin-bottom: 10px;
  padding-top: 10px;
  /*margin-left: 20px;*/ /* fixed width */
  margin-left: 5px;
  cursor: pointer;
  font-size: 16px;

  /*width: 110px;*/  /* fixed width */
  padding-left: 10px;
  padding-right: 10px;
}

#nav-options .nav-option.current {
  background: rgba(0,0,0,.1);
  cursor: default;
}

#nav-options .nav-option:hover {
  transition-duration: 0.5s;
  -webkit-transition-duration: 0.5s;
  transition-timing-function: ease;
  background: rgba(0,0,0,.1);
}

#nav-options a, #nav-options a:focus, #nav-options a:active, #nav-options a:visited {
  text-decoration: none;
  color: black;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* footer */


#footer {
  background-color: black;
  width: 100%;
  height: 62px;
  bottom: 0;
  position: absolute;
}

#footer #copyright {
  /*padding-top: 15px;*/
  width: 226px;
  margin: auto;
}

#footer #copyright a {
  color: white;
  text-decoration: none;
  letter-spacing: 1px;
  font-family: roboto, sans-serif;
  font-size: 12px;
  line-height: 62px;
  font-weight: 300;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* markdown notes */

#note-content {
  max-width: 840px;
  padding: 0 10px;
  overflow: auto;
  margin: auto;
  margin-top: 80px;
  position: relative;
}

#note-content table {
  margin-bottom: 1rem;
}

#note-content table th, #note-content table td {
  padding: 6px 13px;
  border: 1px solid #d1d9e0;
}

#note-content h1 {
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #d1d9e0b3;
}

#note-content h2 {
  padding-top: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #d1d9e0b3;
}

/* can't put a background on code, since overrides inside <pre> */
#note-content code {
  /* color: #888; */
  background-color: #f0f0f080;
}

/*
  The formatter putes a <code> block inside the <pre>, so we can
  override that to make the background transparent unlike the inline bits.
*/
#note-content pre code {
  background-color: transparent;
}

#note-content pre {
  border: 1px solid #d1d9e0b3;
  padding: 15px;
  font-size: 13px;
  line-height: 1.4rem;
}

#note-content a {
  /* text-decoration: none; */
  /* color: #f7931e; */
  /* color: rgb(102, 102, 102); */
  color: #999;
  border-bottom: 1px solid #eee;
}

#note-content a:hover {
  /* text-decoration: underline; */
  color: rgb(239, 100, 35);
  border-bottom: 1px solid rgba(239, 100, 35, 1);
}

/*
  These are classes produced by pygments when doing syntax highlighting
  Reference: https://pygments.org/docs/tokens/
  Example: https://github.com/sglyon/pygments/blob/master/pygments/styles/tango.py
*/
#note-content code .c1 {
  /* double slash comment */
  color: #aaaaaa;
}

#note-content code .cm {
  /* block comment */
  color: #aaaaaa;
}

#note-content code .kd {
  /* function, let */
  color: #8154bf;
}

#note-content code .mf {
  /* numbers? */
  color: #ff6d00;
}

#note-content code .nx {
  /* Name.Other */
  color: #008cda;
  /* color: #555; */
}

#note-content code .o {
  /* operators */
  color: #aaa;
}

#note-content code .p {
  /* punctuation */
  color: #333;
}

#note-content code .s1 {
  /* single quoted strings */
  color: #6e8716;
}

#note-content code .s2 {
  /* double quoted strings */
  color: #6e8716;
}

#note-content code .w {
  /* whitespace */
  
}

#note-content .headerlink {
  background-color: rgb(80, 80, 80);
  display: inline-block;
  width: 1em;
  height: 1em;
  position: relative;
  margin-left: 10px;
  font-size: 18px;
  vertical-align: middle;
  text-decoration: none;
  background-size: 1em;
  -webkit-mask-size: 1em;
  mask-size: 1em;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7a5 5 0 0 0-5 5 5 5 0 0 0 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8v2m9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.71-1.39 3.1-3.1 3.1h-4V17h4a5 5 0 0 0 5-5 5 5 0 0 0-5-5Z"/></svg>');
  mask-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7a5 5 0 0 0-5 5 5 5 0 0 0 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8v2m9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.71-1.39 3.1-3.1 3.1h-4V17h4a5 5 0 0 0 5-5 5 5 0 0 0-5-5Z"/></svg>');
  transition: opacity 0.1s;
  opacity: 0;
}

#note-content h1:hover .headerlink,
#note-content h2:hover .headerlink,
#note-content h3:hover .headerlink,
#note-content h4:hover .headerlink,
#note-content h5:hover .headerlink,
#note-content h6:hover .headerlink {
  opacity: 1;
}
