/* COMMON */

.pwd-mode #title-toolbar {
  display: none;
}

.quizwidget input[type="text"],
.quizwidget textarea {
  -webkit-user-select: text;
}

.quizwidget select {
  -webkit-appearance: none;
}

.quizwidget a {
  text-decoration: none;
  outline-width: 0;
}

.quizwidget .question-content .content.readonly-mode {
  pointer-events: none;
}

.quizwidget .question-content .content.readonly-mode .rtlink,
.quizwidget .question-content .content.readonly-mode .bw-richtext a,
.quizwidget .question-content .content.readonly-mode .audiowrapper,
.quizwidget .question-content .content.readonly-mode .videowrapper,
.quizwidget .question-content .content.readonly-mode .youtubeplaceholder,
.quizwidget .question-content .content.readonly-mode .mejs-container,
.quizwidget .question-content .content.readonly-mode .audiobutton,
.quizwidget .question-content .content.readonly-mode .qt-cover,
.quizwidget .question-content .content.readonly-mode .mqt-cover,
.quizwidget .question-content .content.readonly-mode iframe,
.quizwidget .question-content .content.readonly-mode video,
.quizwidget .question-content .content.readonly-mode .picture {
  pointer-events: auto;
}

html.processing-in-progress #sendbutton,
html.processing-in-progress #editbutton,
html.processing-in-progress #checkbutton,
html.processing-in-progress #clearbutton,
html.processing-in-progress #sharebutton,
html.processing-in-progress #downloadbutton,
html.processing-in-progress #big-submit-button,
html.processing-in-progress .navbutton.nextarrow,
html.processing-in-progress .navbutton.prevarrow,
html.processing-in-progress .progress-container {
  opacity: 30%;
  pointer-events: none;
  cursor: default;
}

.picture {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.picture .big {
  width: 90%;
}

.picture .medium {
  width: 90%;
}

.picture .small {
  width: 90%;
}

.progress-container {
  height: 80px;
  text-align: center;
}

.bw-progress-circle {
  position: relative;
  font-size: 24px;
  width: 80px;
  height: 80px;
}

.bw-progress-circle.long-text {
  font-size: 16px;
}

.bw-progress-circle .bw-progress-circle-drawing {
  position: absolute;
  top: 0px;
  left: 0px;
}

.bw-progress-circle-drawing path {
  fill: transparent;
  stroke-width: 1px;
}

.bw-progress-circle-drawing path.done {
  stroke-width: 5px;
}

.bw-progress-circle-drawing path.half {
  stroke-width: 5px;
  opacity: 0.5;
}

.bw-progress-circle-drawing path.the.marker {
  stroke-width: 5px;
}

.submitpage .pre-submit {
  text-align: center;
}

body.right-to-left .question-points {
  float: left;
}

.submitpage .question-points {
  float: right;
  -webkit-align-self: flex-end;
  -ms-flex-item-align: flex-end;
  align-self: flex-end;
}

.ui-dialog input {
  -webkit-user-select: text;
  box-sizing: border-box;
  width: 100%;
}

.linkbutton {
  -webkit-tap-highlight-color: rgba(200, 0, 0, 0);
}

#bwcountdown {
  display: inline-block;
  position: relative;
  top: -6px;
  margin: 4px;
}

.score {
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
}

@media screen {
  html.bw-print-mode .bw #container {
    height: 100%;
    overflow: auto;
  }
}

@media print {
  html.bw-print-mode body.bw-use-border-when-wide,
  html.bw-print-mode body,
  html.bw-print-mode .bw #container {
    height: auto !important;
    overflow: visible !important;
  }
}

html.bw-print-mode,
html.bw-print-mode body,
html.bw-print-mode #container {
  background: white !important;
}

/* comes from quiz, but should be common ? */
.ui-disabled,
.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.quizwidget .question-content h2.the-question,
.quizwidget .question-content h2.textdescriptiontitle {
  text-shadow: none;
}

.quizwidget .question-content h3 {
  text-shadow: none;
}

.quizwidget .question-content a {
  text-shadow: none;
}

/* QUIZ */

.q_hq .question-content {
  overflow-x: hidden;
  overflow-y: auto;
}

.q_hq .quizwidget .question-content .the-question,
.q_hq .quizwidget .question-content .textdescriptiontitle {
  margin-top: 40px;
}

.q_hq .quizwidget .question-content-wrapper {
  position: relative;
  overflow: hidden;
}

.q_hq .quizwidget #question-content {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.q_hq .quizwidget .question-content .page-type {
  position: relative;
  overflow: hidden;
}

.q_hq .quizwidget .question-content .content,
.q_hq .quizwidget .question-content .submitpage {
  overflow: hidden;
  display: none;
}

.hq .quizwidget .question-content .content,
.hq .quizwidget .question-content .submitpage {
  position: relative;
}

.q_hq .quizwidget .question-content .active .content,
.q_hq .quizwidget .question-content .content.active,
.q_hq .quizwidget .question-content .submitpage.active {
  display: block;
  overflow: visible;
  margin-top: 20px;
}

.q_hq .quizwidget .question-content h2.the-question,
.q_hq .quizwidget .question-content h2.textdescriptiontitle {
  margin: 20px;
}

.q_hq .quizwidget .check-mode .the-answer {
  display: block;
  margin: 20px;
}

.q_hq .small .picture-left {
  -webkit-flex: 1 1 500px;
  -ms-flex: 1 1 500px;
  flex: 1 1 500px;
}
.q_hq .small .picture-right {
  -webkit-flex: 1 1 300px;
  -ms-flex: 1 1 300px;
  flex: 1 1 300px;
}

.q_hq .medium .picture-left {
  -webkit-flex: 1 1 400px;
  -ms-flex: 1 1 400px;
  flex: 1 1 400px;
}

.q_hq .medium .picture-right {
  -webkit-flex: 1 1 400px;
  -ms-flex: 1 1 400px;
  flex: 1 1 400px;
}

.q_hq .picture-right {
  margin-top: 30px;
}

.q_hq .picture .img,
.q_hq .picture-right-s .img,
.q_hq .picture-right-m .img {
  margin: 10px;
}

/* Text Description */
.q_hq .textdescriptiontitle {
  margin: 20px;
}

/* Drag Drop */

.q_hq .dd-box {
  width: 264px;
}

.q_hq .quizwidget .dd-box_border_none {
  margin: 0px;
}

/* WORKSHEET */

.w #scrolling-container {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 100%;
  position: absolute;
  width: 100%;
}

.w .quizwidget {
  margin: 0px;
  width: 100%;
}

.w .picture .img {
  margin: 10px;
}

.w .picture-right .img {
  margin: 20px;
}

.w .picture-right {
  margin-top: 20px;
}

/* Picture Multiple Choice */

.w .quizwidget .pmc-cover {
  width: 100%;
}

.w .quizwidget .pmc-cover .pmc-quiz {
  height: 150px;
  width: 150px;
  margin: 0px 16px 16px 0px;
}

.w .quizwidget .pmc-cover .pmc-figure {
  width: 150px;
}

.w .picture .small {
  width: 85%;
}

/* Single line */

.w .quizwidget .sl-cover .the-answer h3 {
  color: green;
}

/* Picture ordering */
.w .quizwidget .po-cover .display {
  margin: 0px auto 16px auto;
}

.w .quizwidget .po-cover .po-quiz {
  margin: 0px 16px 16px 0px;
}

.w .quizwidget .po-cover .target {
  margin: 8px auto 8px auto;
}

.w .quizwidget .po-cover .target-box {
  margin: 0px 16px 16px 0px;
}

.w .quizwidget .po-cover .answer {
  margin: 24px auto 0px auto;
}

/* Drag Drop */

.w .quizwidget .dd-cover .words {
  margin: 20px;
  padding: 20px;
  min-height: 70px;
}

.w .quizwidget .dd-cover .dd-boxes {
  width: 1024px;
}

/* Whiteboard */

.w #clear {
  padding: 5px;
}

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

/* QUIZ and WORKSHEET */

.q_w .pwd-mode #bottom-container {
  display: none;
}

/* Picture multiple choice */

.q_w .quizwidget .pmc-cover {
  margin: 100px auto;
}

@media screen {
  html.q_w.bw-print-mode body.bw-use-border-when-wide {
    height: 100%;
  }
}

/* SPLIT WORKSHEET */

.sw .horizontalsplit.pwd-mode #bottom-container,
.sw .horizontalsplit.pwd-mode #bottom-container,
.sw .verticalsplit.pwd-mode #bottom-container {
  display: none;
}

.sw #container1 {
  -webkit-transform: scale(1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
}

.sw #textcontainer {
  position: relative;
  z-index: 2;
}

.sw #bottom-container {
  width: 100%;
  height: 100%;
}

.sw .horizontalsplit #container1,
.sw .horizontalsplit #textcontainer {
  height: 100%;
  overflow: hidden;
}

.sw #container1,
.sw #questioncontainer {
  position: relative;
}

.sw #scrolling-container {
  height: 100%;
  overflow-y: auto;
}

.sw .quizwidget .pmc-cover .pmc-quiz {
  height: 160px;
  width: 160px;
  margin: 0px 16px 16px 0px;
}

.sw .quizwidget .submitpage {
  padding-bottom: 10px;
}

.sw #textcontainer {
  -webkit-overflow-scrolling: touch;
  padding: 0px;
  padding-left: 2px;
}

.sw .right-to-left #bwcountdown {
  left: 50px;
}

.sw #textdiv {
  /*  background-color: white; TODO: check which was last*/
  background: transparent;
  padding: 6px;
}

@media screen {
  html.sw.bw-print-mode body.bw {
    height: 100%;
    margin: auto;
  }
}

html.sw.bw-print-mode body {
  display: block !important;
  overflow: visible;
  height: initial;
  position: relative;
  top: 0px;
  left: 0px;
}

html.sw.bw-print-mode .bw #container,
html.sw.bw-print-mode #scrolling-container,
html.sw.bw-print-mode .bw:not(.pwd-mode) #bottom-container,
html.sw.bw-print-mode #container1,
html.sw.bw-print-mode #textcontainer {
  display: block !important;
  overflow: visible;
  height: initial;
  top: 0px;
  left: 0px;
  width: 100% !important;
}

html.sw.bw-print-mode #container1 {
  page-break-after: always;
}

html.sw.bw-print-mode #textcontainer {
  padding: 40px;
  box-sizing: border-box;
}

/* WORKSHEET AND SPLIT WORKSHEET */

.w_sw body {
  background-color: white;
}

.w_sw .quizwidget {
  position: relative;
  border-top: none;
}

.w_sw .quizwidget .content,
.w_sw .quizwidget .submitpage {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding-top: 10px;
  padding-bottom: 10px;
}

.w_sw #big-submit-button {
  margin-top: 40px;
  margin-bottom: 40px;
}

.w_sw h2.the-question,
.w_sw h2.textdescriptiontitle {
  -webkit-margin-before: 0px;
  -webkit-margin-after: 0px;
  margin: 20px;
}

.w_sw .ininepicture {
  display: inline-block;
  margin: 0 auto;
  float: right;
}

.w_sw .small .picture-left {
  -webkit-flex: 1 1 700px;
  -ms-flex: 1 1 700px;
  flex: 1 1 700px;
}

.w_sw .small .picture-right {
  -webkit-flex: 1 1 300px;
  -ms-flex: 1 1 300px;
  flex: 1 1 300px;
}

.w_sw .medium .picture-left {
  -webkit-flex: 1 1 600px;
  -ms-flex: 1 1 600px;
  flex: 1 1 600px;
}

.w_sw .medium .picture-right {
  -webkit-flex: 1 1 400px;
  -ms-flex: 1 1 400px;
  flex: 1 1 400px;
}

.w_sw #top-container .progress-container {
  display: inline-block;
  height: 32px;
  position: relative;
  vertical-align: middle;
  top: -3px;
}

.w_sw #top-container .bw-progress-circle {
  font-size: 14px;
  height: 40px;
  width: 40px;
}

.w_sw #top-container .bw-progress-circle svg {
  height: 100%;
  width: 100%;
}

.w_sw .bw-progress-circle-text > .bw-info {
  font-size: 19px;
}

.w_sw .question-points {
  float: right;
  text-align: right;
  margin: 0px 10px 10px 10px;
}

.w_sw .textbutton {
  display: inline-block;
  min-width: 150px;
}

.w_sw .submitpage .post-submit {
  margin: 20px;
}

/* Single line */

.w_sw .quizwidget .the-answer {
  margin: 20px;
}

/* Word ordering */

.w_sw .quizwidget .ms-cover .the-answer h4 {
  color: green;
}

.w_sw .quizwidget .check-mode .the-answer {
  display: block;
}

/* HIERARCHICAL QUIZ */

.hq #textcontainer {
  margin-right: 10px;
}

@media only screen and (max-width: 750px) {
  .hq #textcontainer {
    margin-left: 10px;
  }
}

/* SPLIT WORKSHEET AND HIERARCHICAL QUIZ */

.sw_hq #infobutton {
  display: none;
}

.sw_hq #textcontainer.allow-copy * {
  -webkit-touch-callout: text;
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.sw_hq .horizontalsplit .picture .img {
  margin: 2px;
}
.sw_hq .verticalsplit .picture .img {
  margin: 10px;
}

.sw_hq .horizontalsplit .picture-right-s .img {
  margin: 10px;
}
.sw_hq .verticalsplit .picture-right-s .img {
  margin: 10px;
}

.sw_hq .verticalsplit .picture-right-m .img {
  margin: 20px;
}

/* Picture Multiple Choice */

.sw_hq .horizontalsplit .quizwidget .pmc-cover {
  max-width: 100%;
}
.sw_hq .verticalsplit .quizwidget .pmc-cover {
  width: 100%;
}

.sw_hq .verticalsplit #textcontainer {
  padding-top: 5px;
}

/* Connect questions */

.sw_hq .horizontalsplit .match_source .connectword,
.sw_hq .horizontalsplit .match_source .connectpicture {
  padding-right: 25px;
}

.sw_hq .horizontalsplit .match_target .connectword,
.sw_hq .horizontalsplit .match_target .connectpicture {
  padding-left: 25px;
}

.sw_hq .horizontalsplit .match_table .match_source {
  padding-right: 25px;
}

.sw_hq .horizontalsplit .match_table .match_target {
  padding-left: 25px;
}

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

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

/* Drag Drop */

.sw_hq .horizontalsplit .dd-box,
.sw_hq .horizontalsplit .pcd-box {
  width: 220px;
  float: left;
}

.sw_hq .horizontalsplit .dd-box_box_header,
.sw_hq .horizontalsplit .pcd-box_box_header {
  font-size: 125%;
  margin: 5px;
}

.sw_hq .verticalsplit .quizwidget .dd-cover .words,
.sw_hq .verticalsplit .quizwidget .pcd-cover .pcd-source {
  margin: 20px;
  padding: 20px;
  min-height: 70px;
}

.sw_hq .horizontalsplit .quizwidget .dd-cover .dd-boxes {
  display: inline-block;
  width: 500px;
}

.sw_hq .verticalsplit .quizwidget .dd-cover .dd-boxes,
.sw_hq .verticalsplit .quizwidget .pcd-cover .pcd-boxes {
  width: 1024px;
}

/* Whiteboard */

.sw_hq .horizontalsplit .w-cover {
  margin: 5px;
}

.sw_hq .horizontalsplit .w-cover .tool-button-bar {
  margin-right: 10px;
}

.sw_hq .verticalsplit #clear {
  padding: 5px;
}

.sw_hq .horizontalsplit .quizwidget .check-mode .wm-missing-answer path {
  stroke-dasharray: 3, 3;
}

/* Rich text */
.sw_hq .quizwidget .btn-group + .btn-group {
  margin-left: 0px;
}
.sw_hq .quizwidget .btn-group {
  margin-right: 5px;
}
/* Word ordering */

.sw_hq .quizwidget .ms-cover .words.sentence {
  padding-left: 0px;
}

/* Video */

.sw_hq .horizontalsplit .question-video {
  width: 426px;
  height: 240px;
}

.sw_hq .verticalsplit .question-video {
  width: 640px;
  height: 320px;
}

.sw_hq .horizontalsplit .videodiv iframe {
  width: 426px;
  height: 240px;
}

.sw_hq .verticalsplit .videodiv iframe {
  width: 640px;
  height: 320px;
}

/* Picture ordering */

.sw_hq .horizontalsplit .quizwidget .po-cover .display {
  margin: 5px;
}

.sw_hq .horizontalsplit .quizwidget .po-cover .target {
  margin: 5px;
}

.sw_hq .horizontalsplit .quizwidget .po-cover .po-quiz,
.sw_hq .horizontalsplit .quizwidget .po-cover .target-box {
  margin: 5px;
  width: 100px;
  height: 100px;
}

.sw_hq .horizontalsplit .quizwidget .po-cover .answer {
  margin: 24px auto 0px auto;
}

/* Calculator */
.sw_hq #calcbutton.Top-left {
  z-index: 1000;
}

.sw_hq #calcbutton.Bottom-left {
  z-index: 1000;
}

@media only screen and (max-width: 750px) {
  html.sw_hq .SplitPane.vertical #textdiv {
    word-wrap: break-word;
  }

  html.sw_hq .SplitPane.vertical {
    display: block !important;
  }

  html.sw_hq .SplitPane.vertical > .Resizer {
    display: none !important;
  }

  html.sw_hq .SplitPane.vertical #container1 {
    display: block !important;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100% !important;
    height: 100%;
    box-sizing: border-box;
  }

  html.sw_hq .Splitpane.vertical #textcontainer {
    display: none !important;
    position: absolute;
    left: -100%;
    top: 0px;
    width: 100% !important;
    height: 100%;
    box-sizing: border-box;
  }

  html.sw_hq .horizontalsplit #infobutton {
    display: block;
    float: left;
  }

  html.sw_hq .SplitPane.vertical > .Pane {
    width: 100% !important;
    height: 100% !important;
  }

  html.sw_hq
    #bottom-container.show-info
    .SplitPane.vertical.text-in-pane-1
    > .Pane1,
  html.sw_hq
    #bottom-container.show-info
    .SplitPane.vertical.text-in-pane-2
    > .Pane2 {
    display: block !important;
    position: absolute !important;
    left: 0px;
    top: 0px;
    animation-name: slidefromleft;
    animation-duration: 0.5s;
  }

  html.sw_hq
    #bottom-container.hide-info
    .SplitPane.vertical.text-in-pane-1
    > .Pane1,
  html.sw_hq
    #bottom-container.hide-info
    .SplitPane.vertical.text-in-pane-2
    > .Pane2 {
    display: block !important;
    position: absolute !important;
    left: -100%;
    animation-name: slidetoleft;
    animation-duration: 0.5s;
  }

  html.sw_hq
    #bottom-container.show-info
    .SplitPane.vertical.text-in-pane-1
    > .Pane2,
  html.sw_hq
    #bottom-container.show-info
    .SplitPane.vertical.text-in-pane-2
    > .Pane1 {
    opacity: 0;
    animation-name: maketransparent;
    animation-duration: 0.5s;
  }

  html.sw_hq
    #bottom-container.hide-info
    .SplitPane.vertical.text-in-pane-1
    > .Pane2,
  html.sw_hq
    #bottom-container.hide-info
    .SplitPane.vertical.text-in-pane-2
    > .Pane1 {
    opacity: 1;
    animation-name: makeopaque;
    animation-duration: 0.5s;
  }
}

@keyframes slidefromleft {
  from {
    left: -100%;
  }
  to {
    left: 0%;
  }
}
@keyframes slidetoleft {
  from {
    left: 0%;
  }
  to {
    left: -100%;
  }
}

@keyframes maketransparent {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes makeopaque {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* QUIZ AND HIERARCHICAL QUIZ */

.q_hq .left-container,
.q_hq .right-container {
  width: 80px;
}

.q_hq .left-container .navbutton,
.q_hq .right-container .navbutton {
  width: 100%;
  text-align: center;
}

.q_hq #mobile-navcontainer {
  display: none;
}

.q_hq #top-container .progress-container {
  display: none;
}

.q_hq .bw-progress-circle-text > .bw-info {
  position: relative;
  font-size: 38px;
}

.q_hq .question-points {
  position: absolute;
  right: 0px;
  top: 0px;
  text-align: right;
  margin: 10px;
}

.q_hq .submitpage .bw-button {
  margin-top: 40px;
}

.q_hq .submitpage p {
  margin: 20px;
}

.q_hq .submitpage .textbutton {
  display: inline-block;
  min-width: 150px;
}

@media only screen and (max-width: 750px) {
  html.q_hq #top-container .progress-container {
    display: inline-block;
    height: 32px;
    position: relative;
    vertical-align: middle;
    top: -3px;
  }

  html.q_hq #top-container .bw-progress-circle {
    font-size: 14px;
    height: 40px;
    width: 40px;
  }

  html.q_hq #top-container .bw-progress-circle svg {
    height: 100%;
    width: 100%;
  }

  html.q_hq .bw-progress-circle-text > .bw-info {
    font-size: 19px;
  }

  html.q_hq .left-container,
  html.q_hq .right-container {
    width: 0px;
    display: none;
  }

  html.q_hq #mobile-navcontainer {
    display: block;
    bottom: 0;
    position: absolute;
    width: 100%;
    pointer-events: none;
    z-index: 1;
  }

  html.q_hq .prevarrow {
    float: left;
    pointer-events: auto;
  }

  html.q_hq .nextarrow {
    float: right;
    pointer-events: auto;
  }

  html.q_hq .narrow-screen-padding {
    height: 40px;
  }

  .q_hq .quizwidget .question-content .content.active,
  .q_hq .quizwidget .question-content .submitpage.active {
    padding-bottom: 60px;
  }
}

html.q_hq.bw-print-mode body.bw-use-border-when-wide,
html.q_hq.bw-print-mode .bw #container,
html.q_hq.bw-print-mode #bottom-container,
html.q_hq.bw-print-mode .quizwidget .question-content,
html.q_hq.bw-print-mode .question-content-wrapper,
html.q_hq.bw-print-mode .quizwidget .question-content .content {
  overflow: visible;
  display: block;
  height: initial;
  position: relative;
  top: 0px;
  visibility: visible;
}

html.q_hq.bw-print-mode .quizwidget,
html.q_hq.bw-print-mode .question-content .content {
  border-bottom: 1px solid #bbbbbb;
  padding-top: 10px;
  padding-bottom: 10px;
}

html.q_hq.bw-print-mode .left-container,
html.q_hq.bw-print-mode .right-container {
  display: none;
}

html.bw-print-mode .odd,
html.bw-print-mode .even {
  background-color: white !important;
}

/* OBSOLETE */

.right-to-left div.wtSpreader {
  left: initial !important; /* Make HandsOnTable play nice with RTL languages */
}

/* OBSOLETE SPLITWORKSHEET */
#quizname {
  width: 100%;
  text-align: center;
}

#quizname h1 {
  -webkit-margin-before: 10px;
  -webkit-margin-after: 10px;
}

.quizwidget .sl-cover .the-answer h4 {
  color: green;
}
