@charset "UTF-8";
/*
//////////	//////////	//////////	//		//	//////////	//////////	//////////	////////
//			//		//	//			//		//	//		//	//		//	//		//	//		//
//			//		//	//			//		//	//		//	//		//	//		//	//		//
//			//		//	//			//		//	//		//	//		//	//		//	//		//
//		//	//		//	//////////	//////////	//		//	//		//	//		//	//		//
//		//	//		//	//					//	//		//	//		//	//		//	//		//
//		//	//		//	//					//	//		//	//		//	//		//	//		//
//		//	//		//	//					//	//		//	//		//	//		//	//		//
/////////	//////////	//					//	//		//	//		//	//////////	////////
*/
/******************************************************************************************************************
 * Copyright © Canolfan Peniarth 2017
 * All rights reserved
*******************************************************************************************************************/
/* VARIABLES */
/* IMPORTS */
/* CSS Document */
* {
  margin: 0;
  padding: 0;
}


button.switch_language {
  margin: 1em;
}

button:focus {
  outline: none;
  opacity: 0.7;
}

img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
  max-height: 75vh;
}

/*/////
	GENERAL HOUSING STYLES
/////*/
.question {
  padding: 1rem;
  background-color: #ffffff;
  box-shadow: 0.2em 0.2em 0 0 #888;
  box-shadow: 0.2em 0.2em 0 0 rgba(30, 30, 30, 0.3);
  font-size: 0.9em;
  margin: 1.5rem 0;
  /*/////
	GOFYNNOD QUESTION STYLES
/////*/
}

.question .help .type {
  padding: 0 0.5em 0.3em;
  font-size: 2em;
  border-bottom: 1px solid #eaecef;
}

.question .help .type .number:after {
  content: " - ";
  display: inline-block;
}

.question .help blockquote {
  font-size: 0.85em;
  font-style: italic;
  margin: 1.3rem;
  padding: 1.2rem 1.7rem;
  background-color: #e8e8e8;
  border-left: 0.3rem solid #efefef;
  color: #666;
}

.question .help p {
  padding: 0.5em 1em;
}

.question .help ol, .question .help ul {
  margin-left: 1.5em;
  padding-left: 1.5em;
  list-style: disc;
  text-align: left;
}

.question .help ol li, .question .help ul li {
  padding: 0.3em 0.5em 0.2em;
}

.question .help ol > li > ul, .question .help ul > li > ul {
  margin-left: -0.15em;
  list-style: circle;
}

.question .help ol > li > ul > li > ul, .question .help ul > li > ul > li > ul {
  list-style: square;
}

.question .help ol {
  list-style: decimal;
}

.question .help ol > li > ol {
  margin-left: -0.15em;
  list-style: lower-roman;
}

.question .help ol > li > ol > li > ol {
  list-style: lower-alpha;
}

.question .question_subtype {
  padding: 0 0em 0.3em;
  font-size: 1.2em;
  border-bottom: 1px solid #eaecef;
  margin-bottom: 0.8em;
}

.question .ipt {
  margin: 2rem 1.3rem;
  padding: 1rem 1rem 0.5rem;
  border: 0.3em solid transparent;
  border-top-color: #BE1622;
  /*/////
		TYPE: TEXT
	/////*/
  /*/////
		TYPE: RADIO
	/////*/
  /*/////
		TYPE: CHECKBOXES
	/////*/
  /*/////
		TYPE: DROPDOWN
	/////*/
  /*/////
		TYPE: HOTSPOTS
	/////*/
  /*/////
		TYPE: DRAG / DROP
	/////*/
  /*/////
		TYPE: HIGHLIGHTING
	/////*/
  /*/////
		TYPE: MATCHING PAIRS
	/////*/
}

.question .ipt.qm_correct {
  border-left-color: #23AB23;
}

.question .ipt.qm_incorrect {
  border-left-color: #CD5C5C;
}

.question .ipt > label:first-of-type {
  display: block;
  padding: 0.5em 0;
}

.question .ipt input,
.question .ipt textarea {
  border: 1px solid #cecece;
  padding: 0.4rem;
  font-size: 0.9em;
  vertical-align: top;
  max-width: calc(100% - 0.8rem);
}

.question .ipt .qm_text.qm_correct {
  border-color: #23AB23;
}

.question .ipt .qm_text.qm_incorrect {
  border-color: #CD5C5C;
}

.question .ipt .qm_text_multiple {
  line-height: 2.5;
}

.question .ipt .qm_text_multiple input {
  border: none;
  background-color: inherit;
  border-bottom: 1px solid #cecece;
  padding: 0.1rem 0.4rem;
  font: inherit;
  color: inherit;
  line-height: initial;
  vertical-align: baseline;
  text-align: center;
}

.question .ipt .qm_text_multiple input:focus {
  border: 1px dashed #cecece;
  outline: none;
  margin-right: -2px;
}

.question .ipt .qm_radio {
  height: 0;
  width: 0;
  opacity: 0;
  float: left;
  cursor: pointer;
}

.question .ipt .qm_radio ~ label {
  position: relative;
  margin: 0.5rem 1rem;
  padding: 0.25rem 1rem;
  display: inline-block;
  cursor: pointer;
  clear: both;
}

.question .ipt .qm_radio ~ label:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  position: absolute;
  left: -1rem;
  top: 0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  background-color: #fff;
  border: 0.25rem solid #bbb;
  transition: all 125ms ease-in-out;
  border-radius: 100%;
}

.question .ipt .qm_radio:checked.qm_correct ~ label:before {
  background-color: #23AB23;
  border-color: #fff;
}

.question .ipt .qm_radio:checked.qm_incorrect ~ label:before {
  background-color: #BE1622;
  border-color: #fff;
}

.question .ipt .qm_radio:checked ~ label:before {
  background-color: #bbb;
  border-color: #fff;
}

.question .ipt .qm_radio:hover ~ label:before,
.question .ipt .qm_radio:focus ~ label:before {
  left: -0.5rem;
}

.question .ipt .qm_check {
  height: 0;
  width: 0;
  opacity: 0;
  float: left;
  margin-left: 0.85rem;
  cursor: pointer;
}

.question .ipt .qm_check ~ label {
  position: relative;
  margin: 0.5rem 1rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  padding: 0.25rem 1rem;
  display: inline-block;
  cursor: pointer;
  clear: both;
}

.question .ipt .qm_check ~ label:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  background-color: #fff;
  border: 0.25rem solid #bbb;
  transition: all 125ms ease-in-out;
  border-radius: 0.1rem;
  border-width: 0.1rem;
  left: -0.85rem;
  top: 0.4rem;
  font-size: 1.5em;
  line-height: 0.25em;
}

.question .ipt .qm_check:checked.qm_correct ~ label:before {
  content: '✔';
  color: #23AB23;
  text-indent: 0.1em;
}

.question .ipt .qm_check:checked.qm_incorrect ~ label:before {
  content: '✖';
  color: #CD5C5C;
  text-indent: 0.1em;
}

.question .ipt .qm_check:checked ~ label:before {
  content: '■';
  color: #bbb;
}

.question .ipt .qm_check:hover ~ label:before,
.question .ipt .qm_check:focus ~ label:before {
  left: -0.5rem;
}

.question .ipt .qm_select_multiple {
  line-height: 2.25;
}

.question .ipt .has_select {
  position: relative;
  display: inline-block;
  display: inline-flex;
  height: 2em;
  background: white;
  box-shadow: 0 3px 0 #ddd;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.05);
}

.question .ipt .has_select:after {
  content: '';
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  right: 10px;
  bottom: 0;
  margin: auto;
  border-style: solid;
  border-width: 5px 5px 0 5px;
  border-color: #bbb transparent transparent transparent;
  pointer-events: none;
}

.question .ipt .has_select:before {
  width: 30px;
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  background: #qhi;
  content: '';
  pointer-events: none;
}

.question .ipt .has_select:hover:before {
  background: #ccc;
}

.question .ipt .has_select .qm_select {
  font-size: 1em;
  border: none;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  height: 100%;
  width: auto;
  cursor: pointer;
  outline: none;
  padding-right: 35px;
  padding-left: 15px;
  border: 1px solid #bbb;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.question .ipt .has_select .qm_select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #000;
}

.question .ipt .has_select .qm_select::-ms-expand {
  display: none;
}

.question .ipt .has_select .qm_select:focus {
  border-color: #999;
}

.question .ipt .has_select .qm_select.qm_correct {
  border-color: #23AB23;
}

.question .ipt .has_select .qm_select.qm_incorrect {
  border-color: #CD5C5C;
}

@media all and (min-width: 0\0) and (min-resolution: 0.001dpcm) {
  .question .ipt .select select {
    padding-right: 0;
  }
  .question .ipt .select:after, .question .ipt .ipt .select:before {
    display: none;
  }
}

.question .ipt .qm_hotspot_container {
  position: relative;
  width: auto;
  height: auto;
  display: inline-block;
}

.question .ipt .qm_hotspot_container > img {
  max-width: 100%;
  display: block;
}

.question .ipt .qm_hotspot_container .qm_hotspot {
  display: inline-block;
  position: absolute;
  z-index: 2;
}

.question .ipt .qm_hotspot_container .qm_hotspot.qm_clicked {
  margin-left: -0.1rem;
  margin-top: -0.1rem;
  border: 0.1rem dashed #cccccc;
  border-radius: 0.1rem;
}

.question .ipt .qm_hotspot_container .qm_hotspot.qm_correct {
  border: 0.1rem solid #23AB23;
}
.question .ipt .qm_hotspot_container .qm_hotspot.qm_tester_hotspot {
	top: 10%;
	left: 10%;
	height: 10%;
	width: 10%;
	outline: 3px solid #FFFFFF;
}
.question .ipt .qm_hscontrol input[type="range"] {
	width: calc(100% - 3em) !important;
}
.question .ipt .qm_dragcontainer {
  user-select: none;
}

.question .ipt .qm_dragcontainer .drag_from {
  display: block;
  margin: 0.2rem 0;
}

.question .ipt .qm_dragcontainer .drag_from .qm_draggable {
  display: inline-block;
  margin: 0.2rem;
}

.question .ipt .qm_dragcontainer .drag_to {
  display: inline-block;
  position: relative;
  width: auto;
  height: auto;
  display: inline-block;
}

.question .ipt .qm_dragcontainer .drag_to .qm_dropzone {
  display: inline-block;
  position: absolute;
  z-index: 2;
}

.question .ipt .qm_dragcontainer .drag_to .qm_dropzone.qm_active_dropzone {
  background: rgba(0, 0, 0, 0.1);
}

.question .ipt .qm_dragcontainer .drag_to .qm_dropzone.qm_correct, .question .ipt .qm_dragcontainer .drag_to .qm_dropzone.qm_incorrect {
  margin-left: -0.1rem;
  margin-top: -0.1rem;
  border: 0.1rem solid #fff;
  border-radius: 0.1rem;
}

.question .ipt .qm_dragcontainer .drag_to .qm_dropzone.qm_correct {
  border-color: #23AB23;
}

.question .ipt .qm_dragcontainer .drag_to .qm_dropzone.qm_incorrect {
  border-color: #CD5C5C;
}

.question .ipt .qm_dragcontainer img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.question .ipt .qm_highlight_colour {
  display: inline-block;
  background-color: #f5f5f5;
  border: 2px solid #ddd;
  padding: 0.4rem 0.6rem;
  margin: 0.2rem;
  margin-top: 0.75rem;
  cursor: pointer;
  min-width: 3em;
  position: relative;
  color: #fefefe;
  transition: all 125ms ease-in-out;
}

.question .ipt .qm_highlight_colour:before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  top: calc(100% + ( 6px / 2 ));
  left: calc(50% - ( 6px / 2 ));
  background-color: transparent;
  transition: all 125ms ease-in-out;
}

.question .ipt .qm_highlight_colour:hover, .question .ipt .qm_highlight_colour:focus {
  opacity: 0.7;
}

.question .ipt .qm_highlight_colour.qm_highlight_button_active:before {
  background-color: inherit;
  animation: qm_highlight_selected_colour 500ms ease-in-out alternate infinite;
}

.question .ipt .qm_highlight {
  user-select: none;
  text-align: left;
  line-height: 1.5em;
  padding: 0.75rem 1rem;
  padding-top: 0.5rem;
}

.question .ipt .qm_highlight > p {
  padding: 0.5em 0;
}

.question .ipt .qm_highlight .qm_highlight_word {
  display: inline-block;
  padding: 0.15em 0.4em;
  border-radius: 0.2em;
  margin-bottom: 0.1em;
  cursor: pointer;
}

.question .ipt .qm_highlight .qm_highlight_word:hover {
  background-color: #eee;
}

.question .ipt .qm_highlight .qm_highlight_word.qm_highlight_highlighted {
  color: #fafafa;
}

.question .ipt .qm_highlight_counter {
  display: block;
  margin: 0.25rem;
  margin-top: 0.5rem;
}

.question .ipt .qm_highlight_counter.qm_correct {
  border-color: #23AB23;
}

.question .ipt .qm_highlight_counter.qm_incorrect {
  border-color: #CD5C5C;
}

.question .ipt .qm_highlight_counter > span {
  display: inline-block;
  width: auto;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 3px;
  min-width: 2em;
}

.question .ipt .qm_matching_pairs {
  position: relative;
  font-size: 1.25vw;
}

.question .ipt .qm_matching_pairs .half {
  width: 50%;
  float: left;
}

.question .ipt .qm_matching_pairs .half.left {
  display: inline-block;
}

.question .ipt .qm_matching_pairs .half.right {
  display: inline-block;
  text-align: right;
}

.question .ipt .qm_matching_pairs .half .qm_pair {
  width: calc(70% - 2em);
  margin-bottom: 1em;
  padding: 1em;
  background: #ddd;
  display: inline-block;
}

.question .ipt .qm_matching_pairs .half .qm_pair.left.qm_correct {
  border-right: 1px solid #23AB23;
  width: calc(70% - (2em + 1px));
}

.question .ipt .qm_matching_pairs .half .qm_pair.left.qm_incorrect {
  border-right: 1px solid #CD5C5C;
  width: calc(70% - (2em + 1px));
}

.question .ipt .qm_matching_pairs .half .qm_pair.right.qm_correct {
  border-left: 1px solid #23AB23;
  width: calc(70% - (2em + 1px));
}

.question .ipt .qm_matching_pairs .half .qm_pair.right.qm_incorrect {
  border-left: 1px solid #CD5C5C;
  width: calc(70% - (2em + 1px));
}

@media screen and (max-width: 480px) {
  .question .ipt .qm_matching_pairs {
    font-size: 0.8em;
  }
}

.question .ipt .qm_matching_pairs:after {
  content: "";
  display: table;
  clear: both;
}

.question .ipt .qm_matching_pairs > svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/*/////
	TYPE: ANIMATIONS
/////*/
@keyframes qm_highlight_selected_colour {
  100% {
    top: calc(100% + 6px);
  }
}
