@import url('https://fonts.googleapis.com/css?family=Roboto');

:root {
  --qtijs-bluegreen-input-bg: inherit;
  --qtijs-bluegreen-details-color: #AAA;
  --qtijs-bluegreen-summary-color: #777;
  --qtijs-bluegreen-current-item-border-left: #FFFFFF77;
  --qtijs-bluegreen-item-border-left: #248F8Fcc;
  --qtijs-bluegreen-item-heading-bg: #248F8Fcc;
  --qtijs-bluegreen-item-submitted-bg: #248F8Fcc;
  --qtijs-bluegreen-item-submittable-bg: green;
  --qtijs-bluegreen-modal-feedback-bg: #FFE;
  --qtijs-bluegreen-overtime-color: #FFFAFA;
  counter-reset: question;
}
[data-qtijs-tag=assessmentTest] ::placeholder {
  font-family: sans-serif;
  font-weight: normal;
  font-size: smaller;
  opacity: .7;
}
[data-qtijs-tag=assessmentTest] textarea {
  margin-top: 1em;
  width: 97%;
  height: 14em;
  background: var(--qtijs-bluegreen-input-bg);
  border: none;
}
[data-qtijs-tag=assessmentTest] input[type=text] {
  background: var(--qtijs-bluegreen-input-bg);
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-bottom: solid 1px;
  padding-left: .5em;
  width: 4em;
}
[data-qtijs-tag=assessmentTest] details {
  color: inherit;
  background: inherit;
  font-size: inherit;
  margin: 3px;
  border-radius: 5px;
  padding: 0 .5em .5em 0;
}
[data-qtijs-tag=assessmentTest] details[open] {
  border: solid 1px var(--qtijs-bluegreen-details-color);
  font-style: italic;
}
[data-qtijs-tag=assessmentTest] form {
  margin: 0;
  padding: 0;
}
[data-qtijs-tag=assessmentTest] p {
  margin: .5em 0em .5em 0em;
}
[data-qtijs-tag=assessmentTest] summary {
  font-variant: small-caps;
  font-size: .85rem;
  color: var(--qtijs-bluegreen-summary-color);
  padding: 0;
  margin: 0;
}
[data-qtijs-tag=assessmentTest] summary:focus {
  border: none;
  outline: none;
}
[data-qtijs-tag=assessmentTest] textarea {
  border: solid 1px;
}
[data-qtijs-tag=assessmentTest] {
  background: white;
  font-family: Georgia, sans-serif;
  padding: 0 0 2em 0;
}
[data-qtijs-tag=assessmentTest]::before {
  display: block;
  content: attr(title);
  font-size: 1.4rem;
  font-weight: bold;
  text-align: left;
  margin: 0 0 3px 1em;
  padding: 1em;
}
[data-qtijs-tag=assessmentSection] {
  border-bottom: solid 1px #DDD;
}
@media screen and (min-width: 640px) {
  [data-qtijs-tag=assessmentSection] {
    columns: 2;
    column-rule: solid 1px #DDD;
    column-gap: 0;
  }
}
[data-qtijs-tag=assessmentItem] {
  page-break-inside: avoid;
  position: relative;
  margin-bottom: 2em;
  margin: 0 .5em 2em .5em;
  --qtijs-scroll-to: 1;
}
[data-qtijs-tag=assessmentItem]::before {
  display: block;
  counter-increment: question;
  content: counter(question) ". " attr(title);
  font-size: 1rem;
  font-weight: bold;
  font-variant: small-caps;
  margin: 0 0 1em 0;
  color: white;
  padding: .5em;
  height: 1em;
  background: var(--qtijs-bluegreen-item-heading-bg);
  position: relative;
  border-left: 2em solid var(--qtijs-bluegreen-item-border-left);
}
[data-qtijs-tag=assessmentItem].qtijs-current::before {
  border-left: 2em solid var(--qtijs-bluegreen-current-item-border-left);
}
[data-qtijs-tag=assessmentItem].qtijs-submittable .qtijs-navigation span.qtijs-next::before {
  display: block;
  position: absolute;
  background: var(--qtijs-bluegreen-item-submittable-bg);
  content: "submit";
  padding: .3em;
  color: white;
  font-weight: bold;
  right: 0;
  top: 0;
  height: 2em;
  box-sizing: border-box;
}
[data-qtijs-tag=assessmentItem].qtijs-submitted .qtijs-navigation span.qtijs-next::before {
  display: block;
  position: absolute;
  background: var(--qtijs-bluegreen-item-submitted-bg);
  content: "submitted";
  padding: .3em;
  color: white;
  right: 0;
  top: 0;
  height: 2em;
  box-sizing: border-box;
}
div.qtijs-input-wrap {
  position: relative;
  color: inherit;
  background: inherit;
  font-size: inherit;
  margin: 10px 10px 10px 2em;
  padding: 1px;
  background: var(--qtijs-bluegreen-input-bg);
  width: 85%;
}
div[data-qtijs-tag=prompt] + div.qtijs-input-wrap {
  margin-top: 1em;
}
[data-qtijs-tag=feedbackInline] {
  display: block;
  font-style: italic;
  font-size: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  background: ivory;
}
[data-qtijs-tag=modalFeedback] {
  border: 2px solid #d7e3f7;
  margin: 1em 0 0 0;
  padding: .5em;
}
[data-qtijs-tag=testFeedback] {
  margin: 1em .5em;
}
[data-qtijs-tag=rubricBlock] {
  font-weight: bold;
}
[data-qtijs-template-identifier][data-qtijs-show-hide=show],
[data-qtijs-outcome-identifier][data-qtijs-show-hide=show],
[data-qtijs-show-hide=hide].qtijs-triggered {
  display: none;
}
[data-qtijs-template-identifier][data-qtijs-show-hide=hide],
[data-qtijs-outcome-identifier][data-qtijs-show-hide=hide],
[data-qtijs-show-hide=show].qtijs-triggered {
  display: block;
}

/*
** TIME LIMITS
*/
[data-qtijs-tag=timeLimits] span:empty {
  display: none !important;
}
[data-qtijs-tag=assessmentTest] > [data-qtijs-tag=timeLimits] {
  position: relative;
  top: -4em;
  right: 0;
  text-align: right;
  padding-right: .5em;
  box-sizing: border-box;
  z-index: 3;
}
[data-qtijs-tag=assessmentTest] > [data-qtijs-tag=timeLimits] span {
  display: inline-block;
  font-family: "Roboto";
  font-weight: 300;
  color: green;
  border: solid 3px green;
  background-color: white;
  padding: .3em;
}
[data-qtijs-tag=assessmentTest].qtijs-overtime [data-qtijs-tag=timeLimits] span {
  border: solid 3px red;
  color: red;
  background-color: #fff8f8;
}
[data-qtijs-tag=assessmentTest].qtijs-overtime {
  background-color: #fff8f8;
}
.qtijs-overtime [data-qtijs-tag=assessmentItem],
[data-qtijs-tag=assessmentItem].qtijs-overtime {
  pointer-events: none;
  opacity: .8;
}

/*
** Checkmarks
*/

[data-qtijs-tag=feedbackInline] {
  position: relative;
}
[data-qtijs-tag=feedbackInline] span.correct,
[data-qtijs-tag=feedbackInline] span.incorrect {
  display: block;
  height: 1.5em;
  width: 1.5em;
  position: absolute;
  left: -3.5em;
  padding: 0;
  margin-left: 1.5em;
  margin-top: -1.4em;
  background: top left / 1.5em 1.5em no-repeat;
  color: transparent;
}
[data-qtijs-tag=feedbackInline] span.correct {
  background-image: url("images/correct.png");
}
[data-qtijs-tag=feedbackInline] span.incorrect {
  background-image: url("images/incorrect.png");
}

[data-qtijs-tag=extendedTextInteraction] textarea {
  margin-top: 1em;
  width: 97%;
  height: 10em;
  background: var(--qtijs-bluegreen-input-bg);
  border: solid 1px;
}

[data-qtijs-tag=textEntryInteraction] input[type=text] {
  background: var(--qtijs-bluegreen-input-bg);
  font-size: 1rem;
  font-weight: bold;
  border: 1px solid;
  padding-left: .5em;
}
li[draggable=true] {
    border: 1px solid #000;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 10px;
}
.rqti-container{
  width: 100%;
  min-height: 10vh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
#rqti-left{
    width: 300px;
    min-height: 200px;
    margin: 5px;
    border: 1px dashed #000;
    padding: 2px;
}
#rqti-right{
    width: 500px;
    min-height: 200px;
    margin: 5px;
    border: 1px dashed #000;
    padding: 2px;
}
.rqti-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0px;
    padding: 0px;
}
.rqti-list[draggable="true"]{
    background: #248F8F;
    min-height: 60px;
    margin: 6px;
    color: #000;
    display: flex;
    align-items: center;
    cursor: grab;
    justify-content: center;
}
.rqti-dropzone{
    flex: 1;
    min-height: 60px;
    margin: 3px;
    border: 1px dashed #000;
    color: gray;
    padding: 1px;
    //display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    resize: both;
    text-align: center;
}
.rqti-order-label{
    flex: 1;
    color: #000;
    padding: 1px;
}

.rqti-ai-result{
    border: 2px dashed #248F8F;
    height: 20px;
    width: fit-content;
    min-width: 185px;
    padding: 5px;
    margin: 10px 0px 5px 0px;
    border-radius: 3px;
}

span.rqti-correct {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("images/correct.png");
    background-size: cover;
    background-repeat: no-repeat;
}

span.rqti-incorrect {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("images/incorrect.png");
    background-size: cover;
    background-repeat: no-repeat;
}

span.visible {
    display: inline-block;
    width: 12px;
    height: 12px;
}

.rqti-table-checkbox input[type="checkbox"]{
    display: none;
}
.rqti-table-checkbox span {
            display: inline-block;
            width: 10px;
            height: 10px;
            background-color: transparent;
            border: 1px solid #248F8F; /* Border color */
            border-radius: 2px; /* Smooth border */
            transition: background-color 0.3s, border-color 0.3s; /* Smooth transition */
            margin-right: 8px; /* Space between checkbox and label text */
            vertical-align: middle;
}

.rqti-table-checkbox input[type="checkbox"]:checked + span {
            background-color: #248F8F; /* Checked background color */
            border-color: #248F8F; /* Checked border color */
}

.rqti-table-right input[type="checkbox"]:checked + span {
            background-color: green; /* Checked background color */
}

.rqti-table-wrong input[type="checkbox"]:checked + span {
            background-color: red; /* Checked background color */
}

.rqti-table-checkbox input[type="checkbox"]:checked + span::after {
            content: '';
            display: block;
            width: 3px;
            height: 5px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
            position: relative;
            left: 3px;
            top: 1px;
}

table {
    border-collapse: collapse;
}

.rqti-table-row:hover {
    background-color: #eee;
}

.rqti-table-row {
    border-bottom: 1px solid #ddd;
}

.rqti-table-head {
    border-bottom: 1px solid #ddd;
}

.mjx-chtml {
    font-size: 100% !important;
    font-weight: normal !important;
}
