body {
  margin: 10px auto;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11pt;
}
h1 {
  font-size: 14pt;
  border-bottom: 1px solid #CCC;
}
h2 {
  font-size: 12pt;
}
div.header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
}
div.header img {
  max-width: 100%;
}
div.header_title {
  font-size: 14pt;
  color: #66F;
  text-align: center;
}
div.admin_subtitle {
  color: red;
}
div.above_question {
  max-width: 700px;
  text-align: left;
  margin-top: 1em;
  font-size: 10pt;
  font-style: italic;
}
div.question {
  max-width: 700px;
  padding: 2px 0px;
  margin: 1em auto;
  text-align: left;
}
div.responses {
  margin-left: 2em;
}
div.responses, div.responses td {
  font-size: 10pt;
}
div.responses input[type=text] {
  height: 18px;
  padding: 0px;
  margin: 0px;
}
div.responses th {
  font-size: 10pt;
  font-weight: bold;
}
div.responses ul {
  margin-left: 0;
  padding-left: 0;
  list-style-type: none;
  list-style-position: outside;
}
div.responses ul li {
  padding-left: 30px;
  margin: 0px;
}
div.progress {
  margin: 3em auto;
  max-width: 700px;
}
div.footer {
  margin: 3em auto;
  padding: 5px 20px;
  max-width: 660px;
  font-style: italic;
  font-size: 10pt;
  color: #FFF;
  background: #999;
  border: 1px solid #000;
}
div.footer a {
  color: #FFF;
}
.prior_text {
  padding-top: 10px;
  font-weight: bold;
}
.post_text {
  padding-bottom: 10px;
  font-weight: bold;
}
.response_prompt {
  color: #F00;
}
table.multi_column_table tr th {
  padding: 5px 0px;
  border-bottom: 1px solid black;
}
table.multi_column_table tr td {
  padding: 4px 0px;
}
.progress_bar_segment {
  width: 100px;
  font-size: 12px;
}
.progress_link a {
  font-size: 12px;
}
td.not_applicable, th.not_applicable {
  padding-left: 40px;
  background: #AAA;
}
td.completed_response {
  background: #00FF99;
}
textarea.free_response_textarea, textarea.write_in_textarea {
  font-family: 'Calibri', 'Carlito', Helvetica, sans-serif;
}
p.postscript {
  font-style: italic;
}
div.elaborate {
  margin: 1em 0 0.25em 2em;
}
div#control_area {
  position: fixed;
  top: 50%;
  left: 2px;
  margin-top: -250px;
  border: #666 solid 1px;
  background: #EEE;
  color: #333;
  width: 250px;
  min-height: 500px;
  padding: 5px;
  box-shadow: 1px 1px;
}
div#control_area_collapser {
  float: left;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  background-color: #999;
  box-shadow: 1px 1px;
  padding: 4px;
}
div#control_area_expander {
  display: none;
  float: left;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  background-color: #999;
  box-shadow: 1px 1px;
  padding: 4px;
}
div.control_area_collapsed {
  width: 24px !important;
}
div#control_area_title {
  font-size: 150%;
  text-align: center;
}
div#control_area h1 {
  font-size: 10pt;
  margin-top: 1.5em;
}
div#control_area h2 {
  font-size: 8pt;
  margin: 0 0 0.3em 2em;
}
div#control_area .link {
  text-decoration: underline;
  cursor: pointer;
  color: blue;
}
div#control_area h2.current_page {
  color: red;
}
div#control_area_content {
  overflow: auto;
  width: 100%;
  max-height: 500px;
}

/* Phones: the navigation bar is a small button in the corner that opens as a drawer */
@media screen and (max-width: 600px) {
  body {
    margin: 0 auto;
    padding: 0 8px;
  }
  /* Both logos share the top row, scaled down, with the title on its own row beneath */
  div.header img {
    height: 60px;
    width: auto;
  }
  div.header_title {
    order: 1;
    flex-basis: 100%;
    margin-top: 8px;
    font-size: 12pt;
  }
  div.responses {
    margin-left: 0.5em;
  }
  div.responses ul li {
    padding-left: 10px;
  }
  div.responses input[type=text] {
    height: auto;
    padding: 2px;
  }
  div.elaborate {
    margin-left: 0.5em;
  }
  div#control_area {
    top: auto;
    bottom: 10px;
    left: 10px;
    margin-top: 0;
    min-height: 0;
    width: 80%;
    z-index: 10;
  }
  div.control_area_collapsed {
    min-height: 0 !important;
  }
  div#control_area_label {
    display: none !important;
  }
  div#control_area_content {
    max-height: 60vh;
  }
}
