html {
  scroll-behavior: smooth;
}

.examma-ray-icon {
  width: 1em;
  height: 1em;
}

.examma-ray-sl-diff pre {
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 1em;
  overflow: visible;
}

.examma-ray-sl-diff pre>code {
  display: inline-block;
  vertical-align: middle;
}

.examma-ray-sl-diff pre>svg {
  display: inline-block;
  vertical-align: middle;
}

.examma-ray-sl-diff .card-header p {
  display: inline;
  margin-bottom: 0;
}

.examma-ray-sl-diff {
  font-size: 0.8rem;
}

.examma-ray-fitb-diff tr>*:first-child,
.examma-ray-sl-diff tr>*:first-child {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  background-color: white;
}

.examma-ray-sl-diff-optional-solution-line {
  opacity: 0.5;
}

.examma-ray-sl-diff-optional-solution-line-info-icon {
  position: absolute;
  top: calc(50% - 9px);
  left: -8px;
}

.examma-ray-sl-rubric-item {
  width: 250px;
}

.examma-ray-sl-rubric-item .badge {
  vertical-align: middle;
}

.examma-ray-mc-option>p {
  display: inline-block;
  margin: 0;
}

.examma-ray-incorrect>* {
  /* color: red;
  text-decoration: line-through !important; */
}

.examma-ray-correct>* {
  /* color: green;
  font-weight: bold; */
}

.examma-ray-mc-option {
  /* vertical-align: middle; */
}

.examma-ray-mc-option pre {
  display: inline-block;
  vertical-align: text-top;
  margin-bottom: 0;
}

.examma-ray-mc-option pre code {
  font-size: 0.8rem;
}

.card-header {
  padding: 0.2rem 0.75rem;
}

.card-body {
  padding: 0 0.75rem;
  padding-top: 0.25rem;
}

.examma-ray-grading-annotation {
  font-size: 0.8rem;
  color: blue;
  font-style: italic;
}

code {
  color: unset;
}

.examma-ray-question-description code:not(pre code),
.examma-ray-question-postscript code:not(pre code),
.examma-ray-section-description code:not(pre code),
.examma-ray-section-reference code:not(pre code),
.examma-ray-question-response code:not(pre code) {
  background: #eee;
  border-radius: 0.24em;
  padding: 0.16em;
}

.examma-ray-question-response-fill_in_the_blank {
  font-size: 90%;
}

.examma-ray-question-response-fill_in_the_blank pre code input,
.examma-ray-question-response-fill_in_the_blank pre code textarea {
  margin-top: 2px;
  margin-bottom: 2px;
}

.examma-ray-fitb-diff {
  font-size: 0.8rem;
}

.examma-ray-fitb-blank-input {
  display: inline-block;
  vertical-align: middle;
  margin: 2px 3px;
}

.examma-ray-fitb-box-input {
  display: inline-block;
  vertical-align: middle;
  margin: 2px 3px;
}

.examma-ray-fitb-spacer {
  height: 0.5em;
  width: 1px;
}

.examma-ray-section {
  margin-bottom: 100px;
}

.examma-ray-section-heading {
  display: flex;
  margin-bottom: 10px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #dedede;
  padding: 5px;
  margin-bottom: 5px;
  border-bottom: solid 1px #aaa;
}

.examma-ray-section-heading > .badge {
  font-size: 1.2em;
  vertical-align: middle;
}

.examma-ray-section-heading > .examma-ray-section-verifier-statuses {
  font-size: 1em;
  vertical-align: middle;
  float: right;
}

.examma-ray-verifier-status-mini .examma-ray-verifier-status-message {
  display: none;
}

.examma-ray-section-contents {
  width: 100%;
  table-layout: fixed;
  
  /*needed for inline-block examma-ray-section-right-column-container height*/
  position: relative;
  height: 100%;
}

.examma-ray-section-contents td {
  vertical-align: top;
}

.examma-ray-section-main-column {
  padding-top: 0;
}

.examma-ray-section-main-column-footer {
  height: 30vh;
  font-size: 24pt;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.examma-ray-section-main-column-footer svg {
  width: 2.5em;
  height: 2.5em;
}

.examma-ray-section:has(+ .examma-ray-bottom-message) .examma-ray-section-main-column-footer > * {
  display: none !important;
}

.examma-ray-question .card-body {
  padding-bottom: 1em;
  overflow-x: auto;
}

.examma-ray-instructions {
  max-width: 850px;
}

.examma-ray-grading-summary {
  max-width: 850px;
}

.examma-ray-bottom-message {
  max-width: 850px;
  text-align: center;
}

.examma-ray-section-description {
  font-size: 90%;
}

.examma-ray-section-reference {
  font-size: 90%;
}

/* When scrolling to a question, use this anchor which
   is positioned far enough above the question to ensure
   the sticky section header doesn't cover the top of the
   question.
*/
.examma-ray-question-anchor {
  position: relative;
  top: -50px;
}

.examma-ray-question-description,
.examma-ray-question-postscript {
  font-size: 90%;
}

.examma-ray-question-response {
  font-size: 90%;
}

.examma-ray-question-response-code_editor pre,
.examma-ray-question-response-code_editor .CodeMirror {
  font-size: 87.5%;
}

.examma-ray-question-regrade {
  font-size: 90%;
}

.examma-ray-section-right-column {
  height: 100%;
}

.examma-ray-section-right-column-container {
  display: inline-block;
  width: 100%;
  height: 100%;
}

.examma-ray-section-right-column-contents {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  padding: 5px;
  padding-bottom: 2em;
}

.examma-ray-section-reference pre code {
  max-height: 80vh;
}

.examma-ray-section-right-column-width-slider-container {
  float: right;
  white-space: nowrap;
}

.examma-ray-section-right-column-width-value {
  display: inline-block;
  vertical-align: middle;
}

.examma-ray-section-right-column-width-slider {
  display: inline-block;
  vertical-align: middle;
  width: 75px;
}

.examma-ray-question-description p,
.examma-ray-question-postscript p {
  margin-bottom: 1em;
}





.examma-ray-mc-option .hljs {
  background: unset;
  padding: unset;
}

.examma-ray-summation-grader td {
  vertical-align: middle;
}

.examma-ray-summation-grader th.examma-ray-rotated-header {
  position: relative;
  width: 2em;
  height: 3em;
  font-size: 8pt;
}

.examma-ray-summation-grader th.examma-ray-rotated-header > span {
  position: absolute;
  left: 0;
  bottom: -0.5em;
  text-align: left;
  width: 5em;
  transform: rotate(-45deg) translate(1em, -1em);
}

.examma-ray-summation-grader th > span {
  position: absolute;
}

/* .examma-ray-summation-grader .examma-ray-point-adjustment-badge {
  min-width: 3em;
  margin-left: -5rem;
  margin-right: 1.5rem;
  vertical-align: text-top;
}

.examma-ray-summation-grader label {
  margin-bottom: 0;
}

.examma-ray-summation-grader .examma-ray-mc-option {
  vertical-align: text-top;
}

.examma-ray-summation-grader .examma-ray-mc-option pre {
  vertical-align: text-top;
} */

.examma-ray-question-overview {
  margin: 0.3em;
}

.examma-ray-question-overview .card-header {
  padding: 0.25rem;
}

.examma-ray-question-overview a.nav-link {
  display: inline-block;
  font-weight: 500;
  padding: 0;
}

.examma-ray-question-overview .progress {
  width: 7em;
  background-color: #c8c8c8;
}

.examma-ray-students-overview .progress {
  width: 7em;
  background-color: #c8c8c8;
}

.examma-ray-section-saver .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}


.examma-ray-section-saver-button {
  float: right;
}

.examma-ray-exam-saver-status {
  margin-top: auto;
  bottom: 5px;
  text-align: center;
}

.examma-ray-exam-saver-status-note {
  margin: 5px;
}

.btn:disabled {
  cursor: not-allowed;
}

.examma-ray-sl-choices {
  overflow-x: auto;
  padding: 0.5em;
}

.examma-ray-sl-choices.sl-view-preview {
  border: solid 1px rgba(0, 0, 255, 0.2);
  background-color: rgba(0, 0, 255, 0.05);
  border-radius: 2px;
}

.examma-ray-sl-line {
  white-space: nowrap;
}

.sl-select-input {
  vertical-align: middle;
  margin-bottom: 0.5em;
}

.sl-select-label {
  vertical-align: middle;
  padding-right: 1em;
  border: solid 1px transparent;
  padding-left: 3px;
}

.examma-ray-sl-choices.sl-view-choices .sl-select-input:checked+.sl-select-label {
  border: solid 1px rgba(0, 0, 255, 0.2);
  background-color: rgba(0, 0, 255, 0.05);
  border-radius: 2px;
}

.sl-select-label > pre {
  margin-bottom: 0;
}

.examma-ray-sl-header,
.examma-ray-sl-footer {
  margin-left: 1.75em;
}

.examma-ray-sl-header pre,
.examma-ray-sl-footer pre {
  margin-bottom: 0;
}

.examma-ray-code-editor-header,
.examma-ray-code-editor-footer {
  margin-left: 0ch;
}

.examma-ray-code-editor-submission {
  margin-left: 1ch;
  margin-right: 1ch;
  border: solid 1px #777;
  padding: 1ch;
}

.examma-ray-code-editor-header pre,
.examma-ray-code-editor-footer pre {
  margin-bottom: 0;
}

.examma-ray-codemirror {
  margin-left: 1ch;
  border: solid 1px #333;
  font-size: 11pt; /* Safari needs this or it makes it super tiny */
}

/* FITB-DROP */

.examma-ray-question-response-fitb_drop {
  font-size: 90%;
}

.examma-ray-fitb-drop-originals {
  display: none;
}

.examma-ray-fitb-drop-location {
  display: inline-block;
  vertical-align: middle;
  min-width: 5ch;
  min-height: 3ch;
  margin: 5px;
  border: solid 1px rgba(0, 0, 255, 0.2);
  border-radius: 4px;
  background-color: rgba(0, 0, 255, 0.05);
}

/* Styling that looks better for code drag/drop */
pre code .examma-ray-fitb-drop-location {
  margin: 0;
  padding: 0;
}

pre code .examma-ray-fitb-droppable .examma-ray-fitb-droppable {
  margin: 0;
}

.examma-ray-fitb-droppable .hljs {
  padding: 0.08em;
}



.examma-ray-fitb-drop-bank > * {
  border: solid 1px rgba(0, 0, 255, 0.2);
  border-radius: 4px;
  background-color: rgba(0, 0, 255, 0.05);
}

.examma-ray-fitb-droppable {
  display: table;
  border-collapse: separate;
  margin: 0.24em;
  white-space: initial;
}

.examma-ray-fitb-droppable:not(:only-child) {
  padding: 0.16em;
  border: solid 1px rgba(0, 0, 255, 0.2);
  border-radius: 0.32em;
  background-color: rgba(0, 0, 255, 0.05);
}

.examma-ray-fitb-droppable pre {
  margin: 0;
  overflow: visible;
}

.examma-ray-fitb-droppable pre code {
  overflow: visible;
}

pre .examma-ray-fitb-droppable pre {
  font-size: inherit;
}


/* STARS */



.examma-ray-question-star {
  cursor: pointer;
}

.examma-ray-question-star > svg {
  color: transparent;
  stroke: gray;
}

.examma-ray-question-star-marked > svg {
  color: gold;
  stroke: gray;
}



/* GRADING */

.examma-ray-grading-report {
  overflow-x: auto;
  max-height: 70vh;
}

.examma-ray-grading-report form {
  margin-bottom: 0;
}

.examma-ray-grading-report .btn-link {
  font-size: 0.8rem;
}

#er-exam-nav .badge.examma-ray-score-badge {
  width: 5em;
}

#er-exam-nav nav {
  display: block;
}

er-section-nav-link {
  font-weight: bold;
}

.er-section-nav-link.active {
  text-decoration: underline;
}

er-question-nav-link {
  font-weight: bold;
}

.rubric-item-card {
  width: 17em;
}

.rubric-item-card .card-header {
  padding: 0.25rem;
}

.rubric-item-card .card-body {
  overflow-x: auto;
}

.rubric-item-card a.nav-link {
  font-weight: 500;
  padding: 0;
}

.examm-ray-regrade-entry {
  width: 100%;
}

.examma-ray-manual-graded-rubric {
  position: sticky;
  top: 0;
  max-height: 65vh;
  min-width: 200px;
  max-width: 300px;
  padding-top: 1em;
  padding-right: 1em;
  overflow-y: auto;
}

.examma-ray-manual-graded-rubric-item.list-group-item {
  border: solid 1px #bbb;
  margin-bottom: 0.6em;
  font-size: 80%;
}

.examma-ray-manual-graded-rubric-item p {
  margin-bottom: 0.2em;
}

.examma-ray-manual-graded-rubric-item .badge {
  position: absolute;
  right: -0.5em;
  top: -0.5em;
}

.examma-ray-manual-graded-rubric-item svg {
  vertical-align: text-top;
}

.examma-ray-fitb-box-input-holder {
  display: inline-block;
  position: relative;
}

.examma-ray-fitb-box-annotation {
  position: absolute;
  display: none;
  overflow: visible;
  top: 5px;
  right: 5px;
}

.examma-ray-fitb-blank-annotation {
  position: relative;
  display: none;
  overflow: visible;
  height: 0px;
  width: 1.75rem;
  margin-left: -1.75rem;
  margin-right: 0px;
}

.examma-ray-fitb-regex-overview pre code .progress {
  width: unset;
  background-color: #c8c8c8;
}

.examma-ray-fitb-regex-overview .progress-bar {
  padding-left: 0.4em;
  padding-right: 0.4em;
  font-weight: 600;
  text-align: left;
}

/* 
SCROLL BAR 
The show-small-scrollbar class will force a scrollbar to show at all times if content is scrollable
*/

.show-small-scrollbar {
  /* This keeps the scrollbar off the edge of the element */
  margin-right: 2px;
}

.show-small-scrollbar::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 5px;
}

.show-small-scrollbar::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: rgba(0,0,0,.5);
  -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}


.er-preview-nav-group {
  display: block;
  flex-grow: 1;
  margin-top: 0.25rem;
  margin-left: 0.15rem;
}

.er-preview-nav {
  padding: 0.25rem;
  margin-left: 2px;
}

.er-preview-nav-section {
  margin-bottom: 0.25rem;
  border-bottom: solid 1px #9f9f9f;
  border-left: solid 2px #282828;
}

.er-preview-nav-section-chooser {
  margin-left: 0px;
  background-color: #d3c4ed;
  margin-bottom: 0.25rem;
  border-bottom: solid 1px #ab7efe;
  border-left: solid 2px #6b21f5;
}

.er-preview-nav-question-chooser {
  margin-left: 0px;
  background-color: #f2e4b9;
  margin-bottom: 0.25rem;
  border-bottom: solid 1px #edce73;
  border-left: solid 2px #ecbd30;
}

.er-preview-skin-icon {
  /* border-right: solid 1px #282828;
  margin-right: 4px; */
}

.er-skin-picker-link {
  font-family: monospace;
}

.examma-ray-left-panel {
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 200px;
  top: 0;
  left: 0;
  bottom: 0;
  padding-left: 5px;
  padding-right: 5px;
  z-index: 10;
  overflow-y: auto;
  border-right: solid 1px #dedede;
  font-size: 85%;
}

.examma-ray-main-panel {
  margin-left: 210px;
  width: calc(100% - 220px);
  padding-bottom: 50vh;
}

.examma-ray-avatar {
  pointer-events: none;
}

.examma-ray-avatar-container {
  /* position: relative; */
  width: 15px;
  overflow: visible;
}

.examma-ray-avatar-container:hover {
  z-index: 10;
  margin-top: -2px;
}