/* pointer cursor on all radio buttons / checkboxes */
.quizwidget .entry-mode .tmc-cover input[type="radio"],
.quizwidget input[type="checkbox"] {
  cursor: pointer;
}

.print-only-inline {
  display: none;
}

.bw-progress-circle-text {
  font-family: verdana;
}

.bw-progress-circle-text > .bw-info {
  font-family: serif;
  font-style: italic;
  font-weight: bold;
}

/* Pictures in questions */
figure.with-caption img {
  margin-bottom: 3px;
}

figure.with-caption figcaption {
  font-size: 0.8em;
  font-style: italic;
  margin: 0px 20px 10px 20px;
}

/* Final page */

.entry-mode .pre-submit,
.readonly-mode .post-submit,
.check-mode .post-submit {
  display: block;
}

.entry-mode .post-submit,
.readonly-mode .pre-submit,
.check-mode .pre-submit {
  display: none;
}

/* Correct / Wrong marker - all questions */

span.cr-marker {
  margin-left: 5px;
  margin-right: 5px;
}
div.cr-marker {
  padding: 10px;
}

div.cr-marker.picture-marker {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 3px;
  width: 25px;
  height: 25px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: white;
  font-size: 25px;
  display: none;
  z-index: 3;
}

.cr-correct {
  display: none;
}

.cr-wrong {
  display: none;
}

div.cr-marker.picture-marker .cr-correct {
  color: #0b0;
  position: relative;
  top: -3px;
}

div.cr-marker.picture-marker .cr-wrong {
  color: red;
  position: relative;
  top: -3px;
}

/* Rationale - all questions */

.quizwidget .check-mode-rationale .rationale:empty,
.quizwidget .check-mode .rationale:empty {
  display: none;
}

.quizwidget .rationale {
  margin: 30px;
}

.quizwidget .the-rationale,
.quizwidget .the-rationale g {
  text-shadow: none;
  margin: 20px;
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

.quizwidget .rationale {
  display: none;
}

.quizwidget .check-mode-rationale:not(.check-mode) .rationale .the-rationale {
  display: block;
  position: relative;
  width: auto;
  height: auto;
  overflow: auto;
}

.quizwidget .check-mode-rationale .rationale,
.quizwidget .check-mode .rationale {
  display: block;
}

.quizwidget .check-mode .the-rationale {
  display: block;
  position: relative;
  width: auto;
  height: auto;
  overflow: auto;
}

.rationale .bw-image-audio-button {
  display: none;
}
/* Hint - all questions */

.quizwidget .hint,
.quizwidget .hint g,
.quizwidget .hintbutton {
  text-shadow: none;
  margin: 5px;
  padding: 15px;
}

.quizwidget .hintbutton {
  display: inline-block;
}

/* Text Description */

.textdescription {
  margin: 20px;
}

.videowrapper video {
  max-width: 100%;
}
/* text multiple choice / rated multiple choice*/

.quizwidget .tmc-cover,
.quizwidget .rmc-cover {
  padding-left: 20px;
  padding-right: 20px;
}

.quizwidget .tmc-cover .tmc-row,
.quizwidget .rmc-cover .tmc-row {
  padding-top: 5px;
  padding-bottom: 5px;
}

.quizwidget .tmc-row.tmc-multi-column,
.quizwidget .rmc-row.tmc-multi-column {
  display: inline-block;
  width: 45%;
}

.quizwidget
  .color-correct-answers
  .tmc-cover
  .tmc-answer[checked="checked"]
  .cr-correct,
.quizwidget
  .check-mode.show-correctness
  .tmc-cover
  .tmc-answer[checked="checked"]
  .cr-correct {
  display: inline-block;
}

.quizwidget
  .check-mode.show-correctness
  .tmc-cover
  :not(.tmc-answer)[checked="checked"]
  .cr-wrong {
  display: inline-block;
}

.quizwidget .check-mode.show-correctness .tmc-cover .tmc-answer {
  padding-top: 1px;
  margin-top: 7px;
  padding-bottom: 1px;
  margin-bottom: 7px;
}

.readonly-mode .tmc-cover .bw-radiobutton-radiobutton {
  opacity: 0.6;
  cursor: not-allowed;
}

/* text multi select */

.quizwidget
  .check-mode.show-correctness
  [question-type="TextMultiSelect"]
  .tmc-cover
  .bw-checkbox[checked="checked"]:not(.tmc-answer)
  .cr-wrong {
  display: inline-block;
}

.readonly-mode .tmc-cover .bw-checkbox-checkbox {
  opacity: 0.6;
}

/* Picture multiple choice */

.quizwidget .pmc-cover {
  text-align: center;
}

.quizwidget .pmc-cover .pmc-quiz {
  display: inline-block;
  height: 232px;
  width: 232px;
  cursor: pointer;
  margin: 16px 16px 0px 0px;
  border: 3px solid #666666;
  text-outline: none;
  box-sizing: border-box;
  outline-offset: 4px;
}

.quizwidget .pmc-cover.bw-check-limit-reached .pmc-quiz:not(.selected) {
  cursor: not-allowed;
}

.pmc-quiz [role="img"] {
  width: 100%;
  height: 100%;
}

.quizwidget .pmc-cover .selected-picture {
  display: block;
  position: absolute;
  pointer-events: none;
  width: 32px;
  height: 32px;
  bottom: 0px;
  right: 0px;
  border-radius: 50%;
  border: 2px solid white;
  font-size: 32px;
  margin: 5px;
  color: white;
}

.quizwidget .pmc-cover .selected-picture {
  display: none;
}

.quizwidget .pmc-cover .selected .selected-picture {
  display: block;
}

.quizwidget .pmc-cover .selected .selected-picture:before,
.quizwidget
  .check-mode.show-correctness
  .pmc-cover
  .pmc-answer.selected
  .selected-picture:before {
  content: "\e602"; /* .bw-icon-accept */
}

.quizwidget .question-content .readonly-mode .pmc-cover .pmc-quiz {
  pointer-events: auto;
  opacity: 0.6;
}

.quizwidget .pmc-cover .pmc-quiz[imgsize="Small"] {
  height: 160px;
  width: 160px;
}

.quizwidget .pmc-cover .pmc-quiz.selected {
  border-width: 8px;
}

.quizwidget .color-correct-answers .pmc-cover .pmc-answer.selected .cr-correct,
.quizwidget
  .check-mode.show-correctness
  .pmc-cover
  .pmc-answer.selected
  .cr-correct,
.quizwidget .color-correct-answers .pmc-cover .pmc-answer.selected .cr-marker,
.quizwidget
  .check-mode.show-correctness
  .pmc-cover
  .pmc-answer.selected
  .cr-marker {
  display: inline-block;
}

.quizwidget
  .check-mode.show-correctness
  .pmc-cover
  .pmc-quiz:not(.pmc-answer).selected
  .cr-wrong,
.quizwidget
  .check-mode.show-correctness
  .pmc-cover
  .pmc-quiz:not(.pmc-answer).selected
  .cr-marker {
  display: inline-block;
}

/* Multi line */

.quizwidget .ml-cover {
  padding: 10px;
  min-height: 100px;
  position: relative;
}

.quizwidget .ml-cover textarea,
.quizwidget .ml-cover .textareacover {
  margin: auto;
  resize: none;
  overflow-wrap: anywhere;
}

.quizwidget .ml-cover textarea,
.quizwidget .ml-cover .textareacover {
  width: 97%;
  min-height: 50px;
}

.quizwidget .ml-cover .textareacover {
  background-color: white;
  position: absolute;
  box-sizing: border-box;
  overflow: auto;
}

.quizwidget .ml-cover.showcover textarea {
  opacity: 0.01;
}

.quizwidget .ml-cover.hidecover .textareacover {
  display: none;
}

.quizwidget .ml-cover .weblink {
  font-style: italic;
  pointer-events: auto;
}

/* Single line */

.quizwidget .sl-cover {
  padding: 10px;
}

.quizwidget .sl-cover input {
  margin: auto;
  box-sizing: border-box;
}

.quizwidget.practicewidget .check-mode .the-answer,
.quizwidget.practicewidget .check-mode .the-answer g {
  color: black;
  stroke: black;
  fill: black;
  text-shadow: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

.quizwidget .check-mode.show-correct-answer .the-answer {
  display: block;
  position: relative;
  width: auto;
  height: auto;
}

.quizwidget.practicewidget .check-mode .the-answer {
  display: none !important;
}

.quizwidget .sl-cover input[type="text"] {
  width: 100%;
}

.quizwidget .color-correct-answers .sl-cover.sl-answer .cr-correct,
.quizwidget .check-mode.show-correctness .sl-cover.sl-answer .cr-correct {
  display: inline-block;
}

.quizwidget .check-mode.show-correctness .sl-cover.sl-wrong .cr-wrong {
  display: inline-block;
}

.readonly-mode .sl-cover input {
  opacity: 0.6;
}

/* multiline */

.quizwidget .ml-cover textarea {
  min-height: 110px;
  overflow-wrap: anywhere;
}

.quizwidget .color-correct-answers .ml-cover.ml-answer .cr-correct,
.quizwidget .check-mode.show-correctness .ml-cover.ml-answer .cr-correct {
  display: inline-block;
}

.quizwidget .check-mode.show-correctness .ml-cover.ml-none .cr-wrong {
  display: inline-block;
}

.readonly-mode .ml-cover .textareacover {
  opacity: 0.6;
}

/* Picture ordering */

.quizwidget .po-cover {
  -webkit-user-select: none;
  text-align: center;
}

.quizwidget .po-cover .display {
  margin: 60px auto 0px auto;
  z-index: 99;
}

.quizwidget .po-quiz {
  background-color: white;
  z-index: 99;
}

.quizwidget .po-quiz,
.quizwidget .po-cover .target-box {
  margin: 12px 12px 0px 0px;
  display: inline-block;
  width: 110px;
  height: 110px;
  border: 2px solid #666666;
}

.quizwidget .po-pic {
  width: 100%;
  height: 100%;
}

.quizwidget .po-pic [role="img"] {
  height: 100%;
  width: 100%;
}

.quizwidget .po-cover .target {
  margin: 60px auto 0px auto;
  z-index: 1;
  clear: both;
}

.quizwidget .answer-box {
  text-align: center;
}

.quizwidget .po-cover .target-box .po-pic {
  height: 100%;
  width: 100%;
  margin: 0px;
  border: none;
  z-index: inherit;
}

.quizwidget .po-cover .answer,
.quizwidget .po-cover .answer g {
  color: black;
  stroke: black;
  fill: black;
  text-shadow: none;
  margin: 60px auto 0px auto;
  display: none;
}

.quizwidget .po-cover .answer .po-quiz {
  border: 3px solid #008000;
}

.quizwidget .check-mode .display {
  display: none;
}

.quizwidget .check-mode.show-correctness .target .wrong {
  border: 3px solid #c00000;
}

.quizwidget .color-correct-answers .all-correct .target .correct,
.quizwidget .check-mode.show-correctness .target .correct {
  border: 3px solid #008000;
}

.quizwidget .check-mode.show-correctness .target .wrong .cr-wrong,
.quizwidget .check-mode.show-correctness .target .wrong .cr-marker {
  display: inline-block;
}

.quizwidget .color-correct-answers .all-correct .target .correct .cr-correct,
.quizwidget .check-mode.show-correctness .target .correct .cr-correct,
.quizwidget .color-correct-answers .all-correct .target .correct .cr-marker,
.quizwidget .check-mode.show-correctness .target .correct .cr-marker {
  display: inline-block;
}

.readonly-mode .po-cover .po-pic {
  opacity: 0.6;
}
/* Word ordering */

.quizwidget .ms-cover {
  display: block;
}

.quizwidget .ms-cover .words {
  text-align: center;
  display: block;
  margin: 20px;
  padding: 20px;
}

.quizwidget .wordwrapper {
  display: inline-block;
  padding: 10px;
  margin: 10px;
  background-color: #d0d0d0;
  border: 3px solid #444444;
  box-shadow: 8px 8px 5px #888888;
  font-size: 125%;
  cursor: move;
}

.quizwidget .sentence .wordwrapper {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

.quizwidget .wordwrapper.ui-draggable-disabled {
  opacity: 0.7;
}

.quizwidget .ms-cover .drag_placeholder {
  opacity: 0.25;
}

.quizwidget .check-mode.show-correctness .ms-cover .cr-wrong {
  display: inline-block;
}

.quizwidget .check-mode.show-correctness .ms-cover.ms-answer .cr-wrong {
  display: none;
}

.quizwidget .color-correct-answers .ms-cover.ms-answer .cr-correct,
.quizwidget .check-mode.show-correctness .ms-cover.ms-answer .cr-correct {
  display: inline-block;
}

/* Fill In Table */

.table-cover {
  display: block;
  text-align: left;
  margin: 20px;
}

.table-scroll-wrapper {
  overflow-x: auto;
}

.quizwidget .table-cover .bw-table td .cell_right_value,
.quizwidget .table-cover .bw-table td .cr-wrong {
  display: none;
}

.quizwidget
  .check-mode.show-correctness
  .table-cover
  .bw-table
  td.cell_wrong
  .cr-wrong {
  display: inline-block;
}

.quizwidget
  .check-mode.show-correct-answers
  .table-cover
  .bw-table
  td.cell_wrong
  .cell_right_value {
  display: inline-block;
}

.quizwidget .check-mode .table-cover .bw-table {
  pointer-events: auto;
}

.quizwidget
  .question-content
  .readonly-mode
  .content[question-type="FillInTable"] {
  pointer-events: initial;
}

.readonly-mode .table-cover {
  opacity: 0.6;
}
/* Fill In Text */

.fillintext label.ui-input-text {
  vertical-align: top;
}

.fit-sentence {
  margin-left: 20px;
  margin-right: 20px;
  overflow-y: auto;
}

.fillintext label.ui-input-text {
  display: inline-block;
  width: 70%;
  margin: 0 2% 0 0;
}

.fillintext input.ui-input-text,
.fillintext textarea.ui-input-text,
.fillintext .ui-input-search {
  width: 200px;
  display: inline-block;
}

.fillintext .ui-select {
  width: 250px;
  display: inline-block;
}

.table-cover:not(.readonly) select.bw-table-cell-input,
.table-cover:not(.readonly) .bw-table-select .bw-table-cell-contents,
.ap-cover select,
.select-arrows {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%204%205'%3E%3Cpath%20fill='%23343a40'%20d='M2%200L0%202h4zm0%205L0%203h4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 8px 10px;
}

.table-cover:not(.readonly) select.bw-table-cell-input,
.table-cover:not(.readonly) .bw-table-select .bw-table-cell-contents {
  background-position: right 0.75rem center;
}

.table-cover:not(.readonly) .bw-table-select .bw-table-cell-contents {
  background-position: right 0.5rem center;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
}

.select-arrows {
  display: inline-block;
  position: relative;
  left: -20px;
  top: -1px;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.readonly-mode .select-arrows {
  display: none;
}

.fillintext input,
.fillintext select {
  margin-top: 2px;
  margin-bottom: 2px;
}

.fillintext .ui-btn-inner {
  padding-top: 5px;
  padding-bottom: 5px;
}

.fillintext .ui-btn-text {
  font-family: "Helvetica";
  font-size: 19px;
  font-weight: normal;
}

.fillintext h1.the-question {
  line-height: 1.6em;
}

.fillintext h1.the-question .questionnumber {
  line-height: 1em;
}

.fillintext input,
.fillintext select {
  padding: 6px;
  text-align: center;
  max-width: 100%;
}

.fillintext select {
  padding-right: 30px;
}

.check-mode.show-correctness .fillintext .ui-btn-inner {
  color: #c00000;
}

.quizwidget .color-correct-answers .fillintext .fit-answer .ui-btn-inner,
.quizwidget .check-mode.show-correctness .fillintext .fit-answer .ui-btn-inner {
  color: #008000;
}

.fillintext .cr-marker {
  display: none;
}

.quizwidget .color-correct-answers .fillintext .fit-answer .cr-marker,
.quizwidget .check-mode.show-correctness .fillintext .fit-answer .cr-marker,
.quizwidget .check-mode.show-correctness .fillintext .fit-wrong .cr-marker {
  display: inline;
}

.quizwidget .color-correct-answers .fillintext .fit-answer .cr-correct,
.quizwidget .check-mode.show-correctness .fillintext .fit-answer .cr-correct {
  display: inline-block;
}

.quizwidget .check-mode.show-correctness .fillintext .fit-wrong .cr-wrong {
  display: inline-block;
}

.readonly-mode .fit-sentence input {
  opacity: 0.6;
}

/* Connect questions */
.connectwindow {
  text-align: center;
  z-index: 40;
  margin: 10px;
}

.connectword {
  padding-top: 10px;
  padding-bottom: 10px;
  vertical-align: middle;
  overflow: hidden;
}

.match_source .connectword,
.match_source .connectpicture {
  text-align: right;
  padding-right: 40px;
}

.match_target .connectword,
.match_target .connectpicture {
  text-align: left;
  padding-left: 40px;
}

.match_source .audiobutton {
  height: 32px;
}

.match_source .audiobutton .bw-icon-large {
  top: -16px;
  position: relative;
}
.connectpicture .imgwrapper {
  display: inline-block;
  font-size: 0px;
  vertical-align: middle;
}

.connectwindow .cr-marker {
  width: 20px;
}

.match_table {
  width: 100%;
}

.match_table .match_source {
  padding-right: 50px;
}

.match_table .match_target {
  padding-left: 50px;
}

.match_table[resize-mode="None"] img {
  max-width: 300px;
}

.drag-locked {
  border: 1px solid #c00000;
}

._jsPlumb_endpoint {
  z-index: 50;
}

.quizwidget .readonly-mode ._jsPlumb_endpoint,
.quizwidget .readonly-mode ._jsPlumb_endpoint svg,
.quizwidget .readonly-mode ._jsPlumb_connector,
.quizwidget .readonly-mode ._jsPlumb_connector path {
  pointer-events: none;
}

.quizwidget .readonly-mode .match > svg {
  opacity: 0.6;
}

/* helper is shown, hide original because position is different */
._jsPlumb_endpoint.ui-draggable-dragging {
  opacity: 0;
}

._jsPlumb_connector {
  z-index: 1;
}

.dropHover {
  border: 1px dotted #c00000;
}

.cmdLink {
  font-size: 0.8em;
}

.quizwidget .match circle {
  stroke-width: 2;
}

.quizwidget .entry-mode .match circle {
  cursor: pointer;
}

.quizwidget
  .readonly-mode.check-mode.show-correct-answers
  .wm-missing-answer
  path {
  stroke-dasharray: 10, 10;
}

.quizwidget .question-content .readonly-mode .connectpicture img {
  pointer-events: auto;
}

.quizwidget
  .check-mode.show-correctness
  .connectwindow.wm-wrong-answer
  .cr-wrong {
  display: inline-block;
}

.quizwidget .color-correct-answers .connectwindow.wm-correct-answer .cr-correct,
.quizwidget
  .check-mode.show-correctness
  .connectwindow.wm-correct-answer
  .cr-correct {
  display: inline-block;
}

.connectaudio {
  text-align: right;
}

.connectaudio .audiobutton {
  position: relative;
  margin-right: 30px;
  display: inline-block;
  vertical-align: middle;
}

/* rich text */

.rtwrapper {
  min-height: 100px;
}

.quizwidget .readonly-mode .ml-cover .rtwrapper {
  opacity: 0.5;
}

/* Annotate Picture */

.quizwidget .ap-cover .ap-picwrapper {
  margin: 20px;
}

.quizwidget .ap-cover .ap-picture {
  display: inline-block;
  position: relative;
  text-align: center;
  width: 920px;
  background-size: cover;
}

.quizwidget .ap-picture line {
  stroke: white;
  stroke-width: 2;
}

.quizwidget .line-dashed {
  stroke-dasharray: 3, 3;
}

.quizwidget .ap-picture circle {
  stroke: white;
  stroke-width: 2;
  fill: transparent;
}

.ap-cover .ap-field {
  position: absolute;
  display: block;
  overflow: hidden;
  z-index: 1;
}

.ap-cover .ap-field-bg {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ap-cover:not(.narrow-mode) input,
.ap-cover:not(.narrow-mode) textarea,
.ap-cover:not(.narrow-mode) select,
.ap-cover:not(.narrow-mode) .ap-field-correction {
  position: absolute;
  background-color: transparent;
}

.ap-cover:not(.narrow-mode) select {
  position: absolute;
}

.ap-cover select {
  background-position: right 0.75rem center;
}

.ap-cover input,
.ap-cover textarea,
.ap-cover select,
.ap-cover .ap-field-correction {
  left: 0px;
  top: 0px;
  margin-top: 0px;
  margin-left: 0px;
  box-sizing: border-box;
  border: none;
  width: 100%;
  height: 100%;
  resize: none;
  z-index: 2;
}

.quizwidget .ap-cover .ap_border_dotted > textarea,
.quizwidget .ap-cover .ap_border_dotted > select,
.quizwidget .ap-cover .ap_border_dotted > input[type="text"],
.quizwidget .ap-cover .ap_border_dotted > .ap-field-correction {
  border-style: dotted;
}

.quizwidget .ap-cover .ap_border_none > textarea,
.quizwidget .ap-cover .ap_border_none > select,
.quizwidget .ap-cover .ap_border_none > input[type="text"],
.quizwidget .ap-cover .ap_border_none > .ap-field-correction {
  border: 0;
}

.quizwidget .ap-cover .ap_background_transparent > .ap-field-bg {
  background: transparent;
}

.quizwidget .ap-cover .ap_background_semitransparent > .ap-field-bg {
  opacity: 0.5;
}

.ap-cover textarea,
.ap-cover select,
.ap-cover input {
  text-align: center;
  padding: 6px;
}

.ap-cover .ap-field-correction {
  text-align: center;
  padding: 6px 22px 6px 6px;
}

.ap-cover .ap-table {
  display: none;
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
}

.ap-cover .ap-table tr,
.ap-cover .ap-table .fieldwrapper {
  width: 100%;
}

.ap-cover.narrow-mode .ap-table {
  display: block;
}

.ap-cover.narrow-mode:not(.cover-fields) .ap-field {
  display: none;
}

.ap-marker-text {
  font-size: 15px;
  font-family: verdana;
  text-anchor: middle;
  dominant-baseline: middle;
  stroke: none;
}

.ap-svg-wrapper {
  position: absolute;
  left: 0px;
  top: 0px;
  pointer-events: none;
}

.ap-cover.narrow-mode.cover-fields .ap-svg-wrapper {
  z-index: 2;
}

.quizwidget .color-correct-answers .ap-cover .cr-marker.picture-marker {
  top: 0px;
}

.quizwidget .check-mode.show-correctness .ap-cover .ap-wrong .cr-wrong,
.quizwidget .check-mode.show-correctness .ap-cover .ap-wrong .cr-marker {
  display: inline-block;
}

.quizwidget .color-correct-answers .ap-cover .ap-answer .cr-correct,
.quizwidget .check-mode.show-correctness .ap-cover .ap-answer .cr-correct,
.quizwidget .color-correct-answers .ap-cover .ap-answer .cr-marker,
.quizwidget .check-mode.show-correctness .ap-cover .ap-answer .cr-marker {
  display: inline-block;
}

.quizwidget .check-mode.show-correctness .ap-cover .ap-wrong td.cr-marker,
.quizwidget .color-correct-answers .ap-cover .ap-answer td.cr-marker,
.quizwidget .check-mode.show-correctness .ap-cover .ap-answer td.cr-marker {
  display: table-cell;
}

.quizwidget .check-mode.show-correctness .ap-cover:not(.narrow-mode) textarea,
.quizwidget .check-mode.show-correctness .ap-cover:not(.narrow-mode) select,
.quizwidget .check-mode.show-correctness .ap-cover:not(.narrow-mode) input {
  display: none;
}

.quizwidget .ap-cover .ap-field-correction,
.quizwidget .ap-cover .ap-field-number {
  display: none;
}

.quizwidget .check-mode.show-correctness .ap-cover .ap-field-correction,
.quizwidget .check-mode.show-correctness .ap-cover .ap-field-number {
  display: block;
}

.ap-field-number {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  font-size: 14px;
  z-index: 3;
  border: 1px solid #888;
  color: #888;
  line-height: 22px;
  font-family: verdana;
}

.readonly-mode .ap-cover .ap-field,
.readonly-mode .ap-cover .fieldwrapper {
  opacity: 0.6;
}
/* Question Table */

.quizwidget
  .question-content
  .readonly-mode
  .content[question-type="QuestionTable"] {
  pointer-events: initial;
}

.quizwidget
  .question-content
  .readonly-mode
  .content[question-type="QuestionTable"]
  input[type="radio"] {
  pointer-events: none;
}

.qt-cover {
  margin: 20px;
  overflow-x: auto;
}

.qt-cover td,
.qt-cover th {
  text-align: center;
  padding: 7px;
  outline-offset: -3px;
}

.qt-cover th.nocenter {
  text-align: left;
}

body.right-to-left .qt-cover th.nocenter {
  text-align: right;
}

.qt-cover td {
  text-align: center;
}

.qt-cover td .bw-simple-radiobutton {
  display: inline-block;
  padding: 3px;
}

.check-mode .qt-cover td.qt-answer {
  border-radius: 5px;
}

.check-mode .qt-cover td.qt-checked {
  border-radius: 5px;
}

.check-mode .qt-cover td.qt-answer.qt-checked,
.quizwidget .color-correct-answers .qt-cover td.qt-answer.qt-checked {
  border-radius: 5px;
}

.check-mode.show-correctness .qt-cover .qt-correct .cr-correct,
.quizwidget .color-correct-answers .qt-cover .qt-correct .cr-correct {
  display: inline-block;
}

.check-mode.show-correctness .qt-cover .qt-wrong .cr-wrong {
  display: inline-block;
}

.readonly-mode .qt-cover .bw-simple-radiobutton {
  opacity: 0.6;
}

/* MultiSelect Question Table */

.quizwidget
  .question-content
  .readonly-mode
  .content[question-type="QuestionTable"] {
  pointer-events: initial;
}

.quizwidget
  .question-content
  .readonly-mode
  .content[question-type="QuestionTable"]
  input[type="radio"] {
  pointer-events: none;
}

.mqt-cover {
  margin: 20px;
  overflow-x: auto;
}

.mqt-cover td,
.mqt-cover th {
  text-align: center;
  padding: 7px;
  outline-offset: -3px;
}

.mqt-cover th.nocenter {
  text-align: left;
}

body.right-to-left .mqt-cover th.nocenter {
  text-align: right;
}

.mqt-cover td {
  text-align: center;
}

.mqt-cover td .bw-simple-radiobutton {
  display: inline-block;
  padding: 3px;
}

.check-mode .mqt-cover td.mqt-answer {
  border-radius: 5px;
}

.check-mode .mqt-cover td.mqt-checked {
  border-radius: 5px;
}

.check-mode .mqt-cover td.mqt-answer.mqt-checked,
.quizwidget .color-correct-answers .mqt-cover td.mqt-answer.mqt-checked {
  border-radius: 5px;
}

.mqt-cover .cr-marker {
  position: relative;
  top: -5px;
  display: none;
}

.mqt-cover .bw-simple-checkbox {
  margin-right: 0px;
}

.mqt-wrapper {
  padding: 3px;
}

.check-mode.show-correctness .mqt-cover .mqt-checked.mqt-correct .cr-marker,
.quizwidget
  .color-correct-answers
  .mqt-cover
  .mqt-checked.mqt-correct
  .cr-marker,
.check-mode.show-correctness .mqt-cover .mqt-checked.mqt-wrong .cr-marker {
  display: initial;
}

.check-mode.show-correctness
  .mqt-cover
  .mqt-checked.mqt-correct
  .bw-simple-checkbox,
.quizwidget
  .color-correct-answers
  .mqt-cover
  .mqt-checked.mqt-correct
  .bw-simple-checkbox,
.check-mode.show-correctness
  .mqt-cover
  .mqt-checked.mqt-wrong
  .bw-simple-checkbox {
  margin-right: 5px;
}

.check-mode.show-correctness .mqt-cover .mqt-checked.mqt-correct .cr-correct,
.quizwidget
  .color-correct-answers
  .mqt-cover
  .mqt-checked.mqt-correct
  .cr-correct {
  display: inline-block;
}

.check-mode.show-correctness .mqt-cover .mqt-checked.mqt-wrong .cr-wrong {
  display: inline-block;
}

.readonly-mode .mqt-cover .mqt-wrapper {
  opacity: 0.6;
}

/* Drag Drop Words In Sentence */

.dwis-cover {
  position: relative;
  margin: 20px;
}

.dwis-box,
.dwis-word {
  display: inline-block;
}

.quizwidget .dwis-word.ui-draggable-disabled {
  opacity: 0.6;
}

.dwis-word {
  position: relative;
  padding: 5px;
}

.quizwidget .entry-mode .dwis-word {
  cursor: grab;
}

.quizwidget .entry-mode .dwis-word.ui-draggable-dragging {
  cursor: grabbing;
}

.dwis-box {
  margin: 2px 0px;
}

.dwis-words .dwis-word {
  margin: 10px;
  line-height: 100%;
}

.dwis-box {
  min-width: 80px;
  min-height: 24px;
  padding: 2px;
}

.dwis-box .dwis-word {
  padding: 0px 5px;
}

.dwis-words {
  min-height: 50px;
  margin-bottom: 20px;
  padding: 5px;
}

.quizwidget .rationale .answer-in-text {
  display: inline-block;
  border-bottom: 2px solid;
}

.quizwidget .dwis-words .drag_placeholder {
  opacity: 0.25;
}

.quizwidget .check-mode.show-correctness .dwis-wrong .cr-wrong {
  display: inline-block;
}
.quizwidget .color-correct-answers .dwis-correct .cr-correct,
.quizwidget .check-mode.show-correctness .dwis-correct .cr-correct {
  display: inline-block;
}

.dwis-hover {
  outline-style: dotted;
  outline-color: black;
}

/* Group elements */

img.ge-element,
.ge-element-img {
  max-width: 100px;
  max-height: 100px;
  display: block;
  margin: 5px 0px;
}

.ge-element-img img {
  max-width: 100px;
  max-height: 100px;
  display: block;
}

.ge-box {
  display: inline-block;
  padding: 10px;
  margin: 10px;
  vertical-align: top;
  max-width: 300px;
}

.rationale .ge-box {
  border: 1px solid grey;
}

.ge-element .bw-icon-large {
  width: 48px;
  height: 48px;
  position: relative;
  left: -8px;
  top: -8px;
  overflow: hidden;
}

.ge-element.audiobutton.ui-state-disabled {
  cursor: pointer !important;
}
.quizwidget .ge-box .drag_placeholder {
  opacity: 0.25;
}

.ge-box .cr-marker {
  display: none;
}

.quizwidget .color-correct-answers .ge-correct .cr-marker,
.quizwidget .check-mode.show-correctness .ge-correct .cr-marker,
.quizwidget .check-mode.show-correctness .ge-wrong .cr-marker {
  display: block;
  text-align: right;
}

.quizwidget .check-mode.show-correctness .ge-wrong .cr-wrong {
  display: inline-block;
}

.quizwidget .color-correct-answers .ge-correct .cr-correct,
.quizwidget .check-mode.show-correctness .ge-correct .cr-correct {
  display: inline-block;
}

.ge-hover {
  outline-style: dotted;
  outline-color: black;
}

.quizwidget .entry-mode .ge-element {
  cursor: grab;
}
.quizwidget .entry-mode .ge-element.ui-draggable-dragging {
  cursor: grabbing;
}

/* Equations */

.eq-text {
  margin-left: 20px;
  margin-right: 20px;
}

.eq-field {
  display: inline-block;
  margin: 5px;
}

.quizwidget .check-mode.show-correctness .eq-wrong .cr-wrong {
  display: inline-block;
}
.quizwidget .color-correct-answers .eq-correct .cr-correct,
.quizwidget .check-mode.show-correctness .eq-correct .cr-correct {
  display: inline-block;
}

.readonly-mode .eq-field {
  opacity: 0.6;
}

/* Mark sentence */

.mas-category {
  border-radius: 5px;
  cursor: pointer;
}

.mas-categories {
  display: inline-block;
  margin-bottom: 30px;
  margin-left: 20px;
  margin-right: 20px;
  padding: 10px;
}

.quizwidget .question-content .readonly-mode .mas-categories {
  pointer-events: initial;
}

.mas-sentence {
  margin-left: 20px;
  margin-right: 20px;
}

.mas-word {
  display: inline-block;
}

.mas-word[marker]:not([marker="0"]) {
  padding: 2px;
  padding: 3px;
  border-radius: 5px;
}
.mas-category-wrapper {
  display: inline-block;
  padding: 5px 10px;
  opacity: 0.5;
}

.mas-category-wrapper.selected {
  opacity: 1;
}

.mas-category {
  padding: 5px 15px;
}

.mas-category-wrapper.selected .mas-category,
[data-mas-selected="1"] .mas-word[data-marker="1"],
[data-mas-selected="2"] .mas-word[data-marker="2"],
[data-mas-selected="3"] .mas-word[data-marker="3"],
[data-mas-selected="4"] .mas-word[data-marker="4"],
[data-mas-selected="5"] .mas-word[data-marker="5"],
[data-mas-selected="6"] .mas-word[data-marker="6"],
[data-mas-selected="7"] .mas-word[data-marker="7"],
[data-mas-selected="8"] .mas-word[data-marker="8"],
[data-mas-selected="9"] .mas-word[data-marker="8"],
[data-mas-selected="10"] .mas-word[data-marker="10"],
[data-mas-selected="11"] .mas-word[data-marker="11"],
[data-mas-selected="12"] .mas-word[data-marker="12"],
[data-mas-selected="13"] .mas-word[data-marker="13"],
[data-mas-selected="14"] .mas-word[data-marker="14"],
[data-mas-selected="15"] .mas-word[data-marker="15"],
[data-mas-selected="16"] .mas-word[data-marker="16"],
[data-mas-selected="17"] .mas-word[data-marker="17"],
[data-mas-selected="18"] .mas-word[data-marker="18"] {
  border-bottom: 2px solid;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.quizwidget .mas-word span.cr-marker {
  margin: 0px;
}

.quizwidget .check-mode.show-correctness .mas-wrong[data-marker] .cr-wrong {
  display: inline-block;
}

.quizwidget .check-mode.show-correct-answers .mas-wrong .cr-wrong {
  display: inline-block;
}

.quizwidget .check-mode.show-correctness .mas-word span.cr-marker,
.quizwidget .color-correct-answers .mas-word.cr-correct span.cr-marker {
  margin: 0px 2px;
}

.quizwidget .color-correct-answers .mas-correct .cr-correct,
.quizwidget .check-mode.show-correctness .mas-correct .cr-correct {
  display: inline-block;
}

.readonly-mode .mas-sentence {
  opacity: 0.6;
}

/* Drag Drop */

.dd-boxes.auto-position {
  text-align: center;
}

.dd-boxes.auto-position .ddbox {
  height: auto;
  min-height: 200px;
  display: inline-block;
  vertical-align: top;
}

.ddbox {
  width: 280px;
  max-width: 100%;
  height: 195px;
  position: relative;
  display: block;
  margin: 10px;
  overflow: hidden;
}

.positioned {
  margin: 0px;
  position: absolute;
}

.quizwidget .dd-cover .ddbox.ddbox_border_dotted {
  border-style: dotted;
}

.quizwidget .dd-cover .ddbox.current-drop-target .ddboxbg,
.quizwidget .dd-cover .words.current-drop-target,
.quizwidget .dd-cover .ddbox.current-drop-target {
  outline-style: dotted;
  outline-color: black;
}

.quizwidget .dd-cover .ddbox.ddbox_border_none,
html.bw-print-mode .quizwidget .dd-cover .ddbox.ddbox_border_none {
  border: 0;
}

.ddbox_box_header {
  position: relative;
}

.ddboxbg {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.quizwidget .ddbox_border_none {
  margin: 0px;
}

.quizwidget .dd-cover .ddbox.ddbox_background_transparent .ddboxbg {
  background: transparent;
}

.quizwidget .dd-cover .ddbox.ddbox_background_semitransparent .ddboxbg {
  opacity: 0.5;
}

.quizwidget
  .question-content
  .readonly-mode
  .content[question-type="TextDragDrop"],
.quizwidget
  .question-content
  .readonly-mode
  .content[question-type="PictureDragDrop"] {
  pointer-events: initial;
}

.quizwidget .dd-cover {
  display: block;
  height: auto;
  text-align: center;
}

.quizwidget .dd-cover .drag_placeholder {
  opacity: 0.25;
}

.quizwidget .dd-cover .words {
  text-align: center;
  display: block;
  margin: 10px;
  padding: 10px;
  min-height: 50px;
}

.quizwidget .dd-cover .dd-boxes {
  display: inline-block;
  position: relative;
  text-align: center;
  width: 920px;
}
.quizwidget .dd-cover .dd-boxes.auto-position {
  max-width: 100%;
}

.quizwidget .dditem {
  position: relative;
  display: inline-block;
  padding: 5px;
  margin: 5px;
  left: 0px;
  top: 0px;
}

.quizwidget .color-correct-answers .dd-boxes .dd-correct,
.quizwidget .check-mode.show-correctness .dd-correct,
.quizwidget .color-correct-answers .dd-boxes .dd-wrong,
.quizwidget .check-mode.show-correctness .dd-wrong {
  padding: 4px;
  margin: 3px;
}

.quizwidget .ui-draggable-disabled.dditem {
  opacity: 0.6;
}

.quizwidget .entry-mode .dditem {
  cursor: grab;
}

.quizwidget .entry-mode .dditem.ui-draggable-dragging {
  cursor: grabbing;
}

.quizwidget .dditem-img {
  padding: 5px;
}

.quizwidget .dditem-noframe {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.dditem .imgwrapper {
  vertical-align: middle;
  display: inline-block;
  overflow: hidden;
}

.dditem .imgwrapper.fixed-size img {
  max-width: 100%;
  max-height: 100%;
}
.ddration img {
  max-width: 100%;
  max-height: 100%;
}

.quizwidget .check-mode.show-correctness .dditem:not(.dd-correct) .cr-wrong {
  display: inline-block;
}

.quizwidget .color-correct-answers .dd-boxes .dditem.dd-correct .cr-correct,
.quizwidget .check-mode.show-correctness .dditem.dd-correct .cr-correct {
  display: inline-block;
}

/* drag drop numbers in correction */

.quizwidget .dd-field-number {
  display: none;
}

.quizwidget .check-mode.show-correctness .dd-field-number {
  display: block;
}

.dd-field-number {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  font-size: 14px;
  z-index: 3;
  border: 1px solid #888;
  color: #888;
  line-height: 22px;
  font-family: verdana;
}

/* Whiteboard */

.w-cover {
  margin: 20px;
}

.w-cover #drawingareawrapper {
  position: relative;
  text-align: center;
  padding-top: 2px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  overflow: hidden;
}

.w-cover #drawingarea,
.w-cover #drawingarea #canvasdiv {
  line-height: 0px;
}

.w-cover #drawingarea #canvasdiv canvas {
  width: 100%;
  height: 100%;
}

.w-cover .w-toolbar-wrapper {
  text-align: center;
}

.w-cover #textedit {
  font-size: 110%;
  z-index: 30;
  background-color: rgba(0, 0, 0, 0);
  border: none;
  position: absolute;
  display: none;
  border-radius: 3px;
}

.w-cover .photo-placer {
  position: absolute;
}

.w-cover .photo-placer img {
  -webkit-user-drag: none;
  user-drag: none;
}

.w-cover input {
  -webkit-user-select: text;
}

.bw-toolbutton > .bw-icon.bw-icon-fill-drop {
  display: block;
  position: absolute;
  z-index: 0;
  left: 4px;
  top: 4px;
}

.bw-icon.bw-icon-fill-drop-small {
  display: block;
  position: relative;
  z-index: 1;
  left: 0px;
  top: 0px;
}

.tool-container .bw-icon {
  font-size: 32px;
  width: 32px;
  height: 32px;
}

.tool-container.tool-bottom {
  box-shadow: none;
  border: none;
  background: #777777;
}

.tool-container.tool-bottom .tool-item {
  border: none;
  color: white;
}

.tool-container.tool-bottom .tool-item:hover {
  background: #aaaaaa;
}

.tool-container.tool-bottom .arrow {
  border-bottom-color: #777777;
}

.tool-container a {
  text-decoration: none;
}

#widthpopup,
#colorpopup,
#toolpopup {
  display: none;
}

[selected-tool="draw"] canvas {
  cursor: crosshair;
}

[selected-tool="eraser"] canvas {
  cursor: crosshair;
}

[selected-tool="pan"] canvas {
  cursor: move;
}

[selected-tool="text"] canvas {
  cursor: text;
}

/* Correct sentence */

.quizwidget .color-correct-answers .cs-correct,
.quizwidget .check-mode.show-correctness .cs-correct .cr-correct {
  display: inline-block;
}

.cs-sentence {
  margin: 20px;
}

.cs-hint {
  display: block;
  position: absolute;
  color: white;
  background: black;
  border: 1px solid white;
  padding: 3px;
}

.cs-word {
  position: relative;
  display: inline-block;
}

.cs-word.empty {
  text-decoration: line-through;
  opacity: 0.5;
}
.cs-input {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  opacity: 0.01;
}

.cs-word.editing {
  min-width: 80px;
}
.cs-input:focus,
.editing > .cs-input,
.cs-word.empty.editing {
  opacity: 1;
}

.cs-changed {
  font-style: italic;
}

.cs-changed.empty:after {
  content: "__";
}

.cs-word input {
  box-sizing: border-box;
}

.cs-word .cr-marker {
  display: none;
}

.quizwidget .check-mode.show-correctness .cs-word.cs-wrong .cr-wrong,
.quizwidget .check-mode.show-correctness .cs-word.cs-wrong .cr-marker {
  display: inline-block;
}

.quizwidget .color-correct-answers .cs-word.cs-correct .cr-correct,
.quizwidget .check-mode.show-correctness .cs-word.cs-correct .cr-correct,
.quizwidget .color-correct-answers .cs-word.cs-correct .cr-marker,
.quizwidget .check-mode.show-correctness .cs-word.cs-correct .cr-marker {
  display: inline-block;
}

.readonly-mode .cs-sentence {
  opacity: 0.6;
}

/* Audio recording */
.audiorecorder {
  height: 80px;
  padding-left: 40px;
}
/* Audio recording */
.audiorecorder.audio_bridge {
  height: 60px;
  padding-left: 40px;
}

/* Audio */

.videowrapper {
  text-align: center;
}

.audiowrapper {
  box-sizing: border-box;
  padding: 15px;
  height: 110px;
}

audio,
.mejs-audio {
  display: block;
  position: absolute;
  margin-left: 20px;
  margin-right: 20px;
}

.noAudio-icon {
  position: relative;
}
.noAudio-icon::before {
  content: "\e657";
  position: absolute;
}
.noAudio-icon::after {
  content: "\e907";
  position: absolute;
  left: 0;
}

/* Video */

.videodiv {
  display: inline-block;
  width: 640px;
  height: 360px;
}

.videodiv div {
  display: block;
  width: 100%;
  height: 100%;
}

.videodiv iframe {
  width: 640px;
  height: 360px;
}

/* Photo */
.photo-cover {
  margin: 20px;
  text-align: center;
}
.photo-place-holder {
  background: white;
  position: relative;
  text-align: center;
  display: inline-block;
  cursor: pointer;
  max-width: 95%;
  overflow: hidden;
}
.photo-container {
  display: flex;
  height: 100%;
}
.photo-upload-inner,
.photo-camera-inner {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
}

.photo-place-holder-inner {
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  /* max-height: 217px; */
  overflow: hidden;
}

.photo-place-holder-inner img {
  max-height: 100%;
}
.photo-place-holder div.icon {
  color: #929292;
  padding-bottom: 50px;
}

.photo-place-holder p,
.photo-place-holder p g {
  text-align: center;
  position: relative;
  top: -50px;
  font-size: 20px;
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue",
    Helvetica, Arial, "Lucida Grande", sans-serif;
  font-weight: 300;
  color: #929292;
  fill: #929292;
  stroke: #929292;
}
.photo-actual {
  position: relative;
  overflow: hidden;
  background: white;
  display: inline-block;
  max-width: 100%;
}

.photo-actual img {
  pointer-events: none;
  max-width: 100%;
  max-height: 100%;
}

.photo-cover.photo-set .photo-place-holder {
  display: none;
}

.photo-cover:not(.photo-set) .photo-actual {
  display: none;
}

.hidden {
  display: none;
}

.photo-delete-button {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  padding: 4px;
  width: 30px;
  position: absolute;
  top: 5px;
  right: 5px;
}

.photo-delete-button .bw-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  font-size: 32px;
  color: black;
}

.quizwidget .question-content .readonly-mode .photo-cover .photo-delete-button,
.quizwidget .question-content .readonly-mode .photo-cover .photo-place-holder {
  display: none;
}

/* Numeric */

.quizwidget .n-cover {
  padding: 10px;
}

.quizwidget .n-cover input {
  min-width: 20px;
}

.quizwidget .n-cover .exponential {
  display: inline-block;
  margin-left: 50px;
  padding: 10px;
}

.quizwidget .n-cover .exponential input[type="text"] {
  margin: 5px;
}

.quizwidget
  .check-mode.show-correctness
  .n-cover
  .exponential
  input[type="text"],
.quizwidget
  .color-correct-answers
  .n-cover.n-answer
  .exponential
  input[type="text"] {
  margin: 0px;
}

.quizwidget .n-cover input[part="base"][type="text"] {
  position: relative;
  top: 10px;
}

.quizwidget .n-cover input[part="exponent"][type="text"] {
  position: relative;
  top: -10px;
}

.quizwidget .n-cover input.single[type="text"] {
  margin-left: 50px;
  margin-right: 50px;
}

.quizwidget .n-cover table.fraction {
  border-collapse: collapse;
  margin-left: 50px;
  margin-right: 50px;
}

.quizwidget .n-cover td {
  padding: 10px;
}

.quizwidget .n-cover td.numeratorcell {
  border-bottom-width: 4px;
  border-bottom-style: solid;
}

.quizwidget .n-cover td.denominatorcell {
  border-top-width: 4px;
  border-top-style: solid;
}

.quizwidget .color-correct-answers .n-cover.n-answer .cr-correct,
.quizwidget .check-mode.show-correctness .n-cover.n-answer .cr-correct {
  display: inline-block;
}

.quizwidget .check-mode.show-correctness .n-cover:not(.n-answer) .cr-wrong {
  display: inline-block;
}

.matrix-left {
  border-width: 2px;
  border-left-style: solid;
  border-top-style: solid;
  border-bottom-style: solid;
  padding: 0px !important;
  width: 10px;
}

[matrix-style="parentheses"] .matrix-left {
  border-top-left-radius: 10px 30px;
  border-bottom-left-radius: 10px 30px;
}

.matrix-right {
  border-width: 2px;
  border-right-style: solid;
  border-top-style: solid;
  border-bottom-style: solid;
  padding: 0px !important;
  width: 10px;
}

[matrix-style="parentheses"] .matrix-right {
  border-top-right-radius: 10px 30px;
  border-bottom-right-radius: 10px 30px;
}

.readonly-mode .n-cover {
  opacity: 0.6;
}

/* Ionic compound builder */
.icb-cover .wordwrapper {
  z-index: 1000;
}
.icb-cover .drag-source {
  list-style-type: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.icb-cover .drop-target {
  width: 100%;
  height: 200px;
  margin: 0;
  margin-top: 15px;
  list-style-type: none;
  padding: 0;
  position: relative;
}
.icb-cover .ddboxbg {
  z-index: -1;
  box-sizing: border-box;
}

.icb-cover .ddboxbg::before {
  content: attr(data-backdrop);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  line-height: 200px;
  text-align: center;
  font-size: 80px;
  color: #f4f4f4;
  font-weight: lighter;
  pointer-events: none;
}

.icb-cover .sortable-placeholder {
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  display: inline-block;
}

.icb-cover .composed-formula {
  text-align: center;
  margin-top: 20px;
}

.quizwidget .check-mode.show-correctness .icb-cover .composed-formula.correct,
.quizwidget .check-mode .icb-cover .composed-formula.correct g,
.quizwidget .color-correct-answers .icb-cover .composed-formula.correct,
.quizwidget .color-correct-answers .icb-cover .composed-formula.correct g {
  color: green;
  stroke: green;
  fill: green;
}

.quizwidget .check-mode.show-correctness .icb-cover .composed-formula.wrong,
.quizwidget .check-mode .icb-cover .composed-formula.wrong g {
  color: red;
  stroke: red;
  fill: red;
}

.icb-cover .total-charge {
  text-align: center;
  margin-top: 10px;
}

.quizwidget:not(.practicewidget) .icb-cover .total-charge {
  display: none;
}

.icb-cover .trash-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-block;
}

.icb-cover .sign {
  position: absolute;
  top: 0;
  left: 0;
  color: rgb(230, 230, 230);
  width: 100%;
  text-align: center;
  font-size: 80px;
  line-height: 220px;
  z-index: -1;
}

.quizwidget .color-correct-answers .composed-formula.correct .cr-correct,
.quizwidget .check-mode.show-correctness .composed-formula.correct .cr-correct {
  display: inline-block;
}

.quizwidget .check-mode.show-correctness .composed-formula.wrong .cr-wrong {
  display: inline-block;
}

.readonly-mode .icb-cover .trash-button {
  display: none;
}

.readonly-mode .icb-cover .wordwrapper {
  opacity: 0.6;
}

/* Balance Chemical Equation */
.quizwidget .nowrap {
  white-space: nowrap;
}

.bce-cover .bw-table td {
  text-align: center;
  vertical-align: middle;
}

.bce-formula {
  margin-left: 20px;
  margin-right: 20px;
}
.bce-cover .tablewrapper {
  width: 200px;
  display: inline-block;
  margin-left: 40px;
  margin-top: 40px;
}

.bce-cover .tablewrapper .tabletitle {
  margin-bottom: 5px;
}

.bce-cover .balanced-or-not-control {
  margin-top: 40px;
  margin-left: 40px;
}

.bce-cover .balanced-or-not-control table:first-of-type {
  margin-top: 10px;
}

.bce-cover[data-subtype="type1"] .bw-table .wtBorder {
  /* Disable cell selection */
  display: none !important;
}

.quizwidget .check-mode.show-correctness .bce-field input[type="text"],
.quizwidget
  .color-correct-answers
  .bce-field:not(.wrong):not(.empty)
  input[type="text"] {
  background: rgb(71, 182, 71);
}

.quizwidget .check-mode.show-correctness .bce-cover .bw-table td.cell_open,
.quizwidget .check-mode.show-correctness .bce-cover .bw-table td.cell_wrong,
.quizwidget .check-mode.show-correctness .bce-field.wrong input[type="text"] {
  background: rgb(255, 102, 102);
}

.quizwidget .bce-field input[type="text"] {
  width: 40px;
  text-align: center;
}

.quizwidget
  .check-mode.show-correctness
  .bce-cover
  [checked="checked"]
  .bw-button-label,
.quizwidget
  .check-mode.show-correctness
  .bce-cover
  [checked="checked"]
  .bw-button-label
  g {
  color: red !important;
  stroke: red !important;
  fill: red !important;
}

.quizwidget
  .color-correct-answers
  .bce-cover
  .bce-answer[checked="checked"]
  .bw-button-label,
.quizwidget:not(.practicewidget)
  .check-mode.show-correctness
  .bce-cover
  .bce-answer[checked="checked"]
  .bw-button-label,
.quizwidget
  .color-correct-answers
  .bce-cover
  .bce-answer[checked="checked"]
  .bw-button-label
  g,
.quizwidget:not(.practicewidget)
  .check-mode.show-correctness
  .bce-cover
  .bce-answer[checked="checked"]
  .bw-button-label
  g {
  color: green !important;
  stroke: green !important;
  fill: green !important;
}

.quizwidget
  .color-correct-answers
  .bce-cover
  .bce-answer[checked="checked"]
  .cr-correct,
.quizwidget
  .check-mode.show-correctness
  .bce-cover
  .bce-answer[checked="checked"]
  .cr-correct,
.quizwidget
  .color-correct-answers
  .bce-field:not(.empty):not(.wrong)
  .cr-correct,
.quizwidget .check-mode.show-correctness .bce-field:not(.wrong) .cr-correct {
  display: inline-block;
}

.quizwidget
  .check-mode.show-correctness
  .bce-cover
  :not(.bce-answer)[checked="checked"]
  .cr-wrong,
.quizwidget .check-mode.show-correctness .bce-field.wrong .cr-wrong {
  display: inline-block;
}

.quizwidget .bce-cover td .cell_right_value {
  display: none;
}

.quizwidget
  .check-mode.show-correct-value
  .bce-cover
  td.cell_wrong
  .cell_right_value {
  display: inline-block;
}

html.bw-print-mode body.bw-use-border-when-wide {
  width: 1024px;
}
html.bw-print-mode body.bw-use-border-when-wide,
html.bw-print-mode .bw #container,
html.bw-print-mode #sabottom-container,
html.bw-print-mode #scrolling-container {
  overflow: visible;
  display: block;
  height: initial;
  position: relative;
}

/* hide sections which are not relevant */
html.bw-print-mode .bw-toolbar,
html.bw-print-mode .submitpage,
html.bw-print-mode .screen-only {
  display: none;
}

/* show sections specific for print */
html.bw-print-mode .print-only-inline {
  display: inline-block;
}

/* no page breaks in questions */
html.bw-print-mode .content {
  page-break-inside: avoid;
}

/* math in questions and multiple choice parts */

html.bw-print-mode .quizwidget .question-content .the-question g,
html.bw-print-mode .quizwidget .question-content textdescriptiontitle g,
html.bw-print-mode .textdescription g,
html.bw-print-mode .quizwidget .tmc-cover g {
  stroke: black;
  fill: black;
}

/* Fill-in-text */

html.bw-print-mode .fit-empty {
  display: none;
}

/* Word ordering */
html.bw-print-mode .quizwidget .ms-cover .wordwrapper {
  background-color: white !important;
}

/* Word ordering */
html.bw-print-mode .quizwidget .ms-cover .wordwrapper {
  background: white !important;
}

/* Picture ordering */

html.bw-print-mode .quizwidget .p-ocover .po-quiz,
html.bw-print-mode .quizwidget .po-cover .target-box {
  background: white !important;
}

/* Multiline */

html.bw-print-mode .quizwidget .ml-cover .textareacover,
html.bw-print-mode .quizwidget .ml-cover textarea + div {
  min-height: 200px !important;
}

/* Rich Text */

html.bw-print-mode .ml-cover .rteditor {
  min-height: 200px;
  overflow: visible;
}

/* Annotate Picture */

html.bw-print-mode .ap-cover textarea {
  overflow: hidden;
}

/* Match */

html.bw-print-mode .match_table tr td:nth-child(1) > div:nth-of-type(1):after {
  content: "\25cb";
  line-height: 50px;
  font-size: 50px;
  display: inline-block;
}

html.bw-print-mode
  .match_table
  tr
  td:nth-child(1)
  > div.connectpicture:nth-of-type(1):after {
  content: "\25cb";
  font-size: 50px;
  display: inline-block;
  margin-right: -50px; /* same as padding-left set on li */
  width: 50px;
  vertical-align: middle;
}
html.bw-print-mode
  .match_table
  tr
  td:nth-child(1)
  > div.connectword:nth-of-type(1):after {
  content: "\25cb";
  font-size: 50px;
  position: relative;
  padding-left: 15px;
}
html.bw-print-mode
  .match_table
  tr
  td:nth-child(1)
  > div.connectword:nth-of-type(1) {
  display: flex;
  justify-content: end;
  align-items: center;
}

html.bw-print-mode .match_table tr td:nth-child(2) > div:nth-of-type(1):before {
  content: "\25cb";
  font-size: 50px;
}

html.bw-print-mode
  .match_table
  tr
  td:nth-child(2)
  > div.connectpicture:nth-of-type(1):before {
  content: "\25cb";
  font-size: 50px;
  display: inline-block;
  margin-left: -50px; /* same as padding-left set on li */
  width: 50px;
  vertical-align: middle;
}
html.bw-print-mode
  .match_table
  tr
  td:nth-child(2)
  > div.connectpicture:nth-of-type(1)
  img {
  max-width: 100% !important;
  max-height: 150px !important;
}
html.bw-print-mode
  .match_table
  tr
  td:nth-child(1)
  > div.connectpicture:nth-of-type(1)
  img {
  max-width: 100% !important;
  max-height: 150px !important;
}
html.bw-print-mode
  .match_table
  tr
  td:nth-child(2)
  > div.connectword:nth-of-type(1)::before {
  content: "\25cb";
  font-size: 50px;
  position: relative;
  padding-right: 15px;
}
html.bw-print-mode
  .match_table
  tr
  td:nth-child(2)
  > div.connectword:nth-of-type(1) {
  display: flex;
  justify-content: start;
  align-items: center;
}

html.bw-print-mode .quizwidget .match ._jsPlumb_endpoint,
html.bw-print-mode .quizwidget .match ._jsPlumb_connector {
  display: none;
}

html.bw-print-mode .connectsource img,
html.bw-print-mode .connecttarget img {
  vertical-align: middle;
}

html.bw-print-mode .connectpicture > .imgwrapper {
  background: white !important;
}

html.bw-print-mode .match_table .match_source {
  padding-right: 50px;
}
html.bw-print-mode .match_table .match_target {
  padding-left: 50px;
}
html.bw-print-mode .match_source .connectword,
html.bw-print-mode .match_source .connectpicture {
}

html.bw-print-mode .match_target .connectword,
html.bw-print-mode .match_target .connectpicture {
}

/* numeric */
html.bw-print-mode .n-cover input {
  min-width: 50px !important;
}

.math-buttons-move-cover {
  cursor: move;
  position: absolute;
  left: 0px;
  top: 0px;
  height: 100%;
  width: calc(100% - 20px);
}

.math-field {
  background-color: white;
  color: black;
  font-size: 20px;
  padding: 3px;
  min-width: 100px;
}

.math-set {
  display: none;
  z-index: 1;
}

.math-set.active {
  display: inline-block;
}
.math-buttons .math-button {
  vertical-align: bottom;
  height: 32px;
  font-size: 18px;
  display: inline-block;
  width: 32px;
}

.math-set .math-button .mq-math-mode {
  user-select: none;
  pointer-events: none;
}

.math-set-scroll-wrapper {
  height: 100%;
  overflow: auto;
  position: relative;
  padding: 4px;
}

.math-buttons {
  border-radius: 7px;
  border: 1px solid rgb(255, 230, 156);
  background-color: rgb(255, 243, 205);
  position: absolute;
  text-align: center;
  box-shadow: 4px 4px 6px 0px rgba(128, 128, 128, 0.5);
  color: rgb(102, 77, 3);
  overflow: hidden;
}
.math-buttons-left {
  position: relative;
  background: white;
  width: 64px;
  padding: 4px 0px;
  border-right: 1px solid rgb(255, 230, 156);
}

.math-buttons-left div {
  font-size: 20px;
}

#questions-wrapper {
  width: 0px;
}

#questions {
  position: absolute;
  left: 100%;
  background: white;
  width: 100%;
  height: 100%;
  z-index: 1000;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.question-button {
  display: inline-block;
  padding: 10px;
  margin: 14px;
  min-width: 32px;
  color: black;
  text-align: center;
}

.question-button.bw-info {
  font: italic bold 29px serif;
  position: relative;
  top: -2px;
}

.question-button.correct {
  background-color: green;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0%, green),
    color-stop(100%, green)
  );
  background: -moz-linear-gradient(top, green, green);
  background-image: -ms-linear-gradient(top, green, green);
}

.question-button.wrong {
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0%, red),
    color-stop(100%, red)
  );
  background: -moz-linear-gradient(top, red, red);
  background-image: -ms-linear-gradient(top, red, red);
}

.question-button.manual {
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0%, blue),
    color-stop(100%, blue)
  );
  background: -moz-linear-gradient(top, blue, blue);
  background-image: -ms-linear-gradient(top, blue, blue);
}

.question-button.partial {
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0%, #dd9c25),
    color-stop(100%, #dd9c25)
  );
  background: -moz-linear-gradient(top, #dd9c25, #dd9c25);
  background-image: -ms-linear-gradient(top, #dd9c25, #dd9c25);
}

@media only screen and (max-width: 750px) {
  html:not(.ibw-platform-osx-ibooks) .textdescriptiontitle img,
  html:not(.ibw-platform-osx-ibooks) .textdescription img,
  html:not(.ibw-platform-osx-ibooks) .the-question img,
  html:not(.ibw-platform-osx-ibooks) .the-rationale img,
  html:not(.ibw-platform-osx-ibooks) .hint img {
    max-width: 100% !important;
    height: auto !important;
  }

  html:not(.ibw-platform-osx-ibooks) .quizwidget .tmc-row.tmc-multi-column {
    width: 90%;
  }

  html:not(.ibw-platform-osx-ibooks) .match_table .match_target {
    padding-left: 20px;
  }

  html:not(.ibw-platform-osx-ibooks) .match_table .match_source {
    padding-right: 20px;
  }

  html:not(.ibw-platform-osx-ibooks) .match_source .connectword,
  html:not(.ibw-platform-osx-ibooks) .match_source .connectpicture {
    text-align: right;
    padding-right: 20px;
    word-wrap: break-word;
  }

  html:not(.ibw-platform-osx-ibooks) .match_target .connectword,
  html:not(.ibw-platform-osx-ibooks) .match_target .connectpicture {
    text-align: left;
    padding-left: 20px;
    word-wrap: break-word;
  }

  html:not(.ibw-platform-osx-ibooks) .match_table {
    table-layout: fixed;
  }

  html:not(.ibw-platform-osx-ibooks) .match_table td {
    width: 45%;
  }

  /* in case color popup goes over 1 line */
  html:not(.ibw-platform-osx-ibooks) .tool-container.tool-top,
  html:not(.ibw-platform-osx-ibooks) .tool-container.tool-bottom {
    height: auto;
  }

  html:not(.ibw-platform-osx-ibooks) .videodiv {
    width: 90% !important;
    height: 360px !important;
  }

  html:not(.ibw-platform-osx-ibooks) .videodiv iframe {
    width: 90% !important;
    height: 360px !important;
  }

  html:not(.ibw-platform-osx-ibooks) .youtubeplaceholder {
    max-width: 100% !important;
    height: auto !important;
  }

  html:not(.ibw-platform-osx-ibooks) .quizwidget .wordwrapper {
    padding: 8px;
    margin: 8px;
  }
}

@media only screen and (max-width: 400px) {
  html:not(.ibw-platform-osx-ibooks) .videodiv {
    height: 180px !important;
  }

  html:not(.ibw-platform-osx-ibooks) .videodiv iframe {
    height: 180px !important;
  }

  html:not(.ibw-platform-osx-ibooks) .quizwidget .wordwrapper {
    padding: 5px;
    margin: 5px;
  }

  div.audiorecorder {
    height: 140px;
  }
  div.audiorecorder.audio_bridge {
    height: 100px;
  }

  div.bw-audio-recorder {
    max-width: 200px;
    height: 130px;
    text-align: center;
    line-height: 40px;
    white-space: initial;
  }
  .audio_bridge div.bw-audio-recorder {
    max-width: 200px;
    height: 90px;
    text-align: center;
    line-height: 40px;
    white-space: initial;
  }
}
