.tx-quiz {
	display: inline-grid;
	min-height: min(580px, calc(100vh - 150px));
	width: 100%;
}

#quiz {
	background-color: var(--t-grey-50);
	/*border-radius: 6px;*/
	box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.06), 0px 8px 16px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	position: relative;
}

#quiz #soundcontrol {
	color: #fff;
	cursor: pointer;
	position: absolute;
	right: 6px;
	top: 6px;
	z-index: 20;
}

#quiz #soundcontrol svg {
	height: 30px;
	width: 30px;
}

#quiz .panel {
	color: #fff;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 30px 12px 12px;
	position: relative;
	transition: all 0.3s ease;
	width: 100%;
}

@media(min-width: 768px) {
	#quiz .panel {
		padding: 30px;
	}
}

#quiz .panel > * {
	z-index: 10;
}

#quiz #panelInit {
	display: inline-grid;
	align-content: end;
}

#panelInit .btn {
	border: 2px solid #fff;
	font-size: 1.8rem;
	line-height: 2.4rem;
}

#quiz .background-image {
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 1;
}

#quiz .background-image img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

#quiz .panel .header,
#quiz .panel .text,
#quiz .panel .title {
	flex-grow: 1;
}

#quiz .panel .title {
	font-weight: 700;
}

#quiz .header {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
}

#quiz .header .counter {
	font-size: 14px;
	font-weight: 700;
}

@media (min-width: 576px) {
	#quiz .header .counter {
	}
}

@media (min-width: 768px) {
	#quiz .header .counter {
	}
}

#quiz .header .difficulty {
  font-size: 14px;
	font-weight: 700;
  text-align: left;
}

#quiz .header .difficulty .level {
	display: inline-block;
	opacity: .5;
	transition: all 250ms linear;
	vertical-align: top;
}

#quiz .header .difficulty .level.active {
	opacity: 1;
}

#quiz .header .failures {
  height: 100%;
  font-weight: 600;
  padding: 0px 11px;
  transition: background-color 500ms ease-in-out;
}

@media(min-width: 588px) {
	#quiz .header .failures {
	}
}

#quiz .header .failures {
  background-color: transparent;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

#quiz .header .failures .failboxes {
  display: inline-block;
  left: 175px;
  position: absolute;
  right: auto;
  top: 0px;
}

@media(min-width: 588px) {
	#quiz .header .failures .failboxes {
		left: auto;
		right: 10px;
	}
}

#quiz .header .failures .fail {

}

#quiz .header .failures .fail svg {
  height: 13px;
  transition: fill 500ms ease-in-out;
  width: 13px;
}

@media(min-width: 768px) {
	#quiz .header .failures .fail svg {
		height: 16px;
		width: 16px;
	}
}

#quiz .header .failures .fail svg polygon {
  fill: rgb(202 42 51 / 30%);
  transition: fill 500ms ease-in-out;
}

#quiz .failures .fail.failed svg circle,
#quiz .failures .fail.failed svg polygon {
  fill: var(--t-error);
}

#quiz .answers {
	display: inline-grid;
	gap: 12px;
	grid-template-columns: 1fr 1fr;
  position: relative;
	width: 100%;
}

#quiz .btn.answer {
	background-color: #0006;
	border: 1px solid var(--t-grey-400);
	color: inherit;
	/*font-size: 18px;*/
	hyphens: auto;
	line-height: 21px;
	position: relative;
	text-align: left;
  transition: background-color 500ms;
}

#quiz .answers:not(.answered) .btn.answer:hover {
	background-color: var(--t-grey-400);
}

#quiz .btn.answer.logged {
  animation: pulse-grey 1000ms cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  background-color: #3c5a84;
}

#quiz .btn.answer.success {
  background-color: var(--t-success);
	color: var(--t-white);
}

#quiz .btn.answer.success:after,
#quiz .btn.answer.failure:after {
	background: transparent url(../Images/AnswerCorrect.svg) center no-repeat;
	background-size: 40px;
	content: "";
	height: 40px;
	position: absolute;
	right: 8px;
	top: 8px;
	width: 40px;
}

#quiz .btn.answer.failure {
  background-color: var(--t-error);
	color: var(--t-white);
}

#quiz .btn.answer.failure:after {
	background-image: url(../Images/AnswerWrong.svg);
}

#quiz .answers.answered * {
	pointer-events: none;
}

#quiz .title,
#quiz .partQuestion {
	text-shadow: 0 0 3px #000;
}

#quiz .partQuestion .finish,
#quiz .partQuestion .stop {
	display: none;
	font-weight: 700;
}

#quiz .partQuestion.success .finish {
	display: block;
}

#quiz .partQuestion.failed .stop {
	display: block;
}

#quiz .partQuestion.failed .heading-sm,
#quiz .partQuestion.success .heading-sm {
	font-size: 20px;
	font-weight: 400;
}

#quiz .btn.disabled {
	--bs-btn-disabled-opacity: 0.25;
}

#quiz .jokers {
	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	width: 100%;
}

.progress-ring {
	background-color: #fffd;
	border-radius: 50%;
	display: block;
	height: 180px;
	margin: 10px auto;
	width: 180px;
}

.progress-ring__circle {
	stroke: rgba(67, 176, 41, 0.15);
}

.progress-ring__progress {
	stroke: var(--t-success);
	stroke-dasharray: 376.99112 376.99112;
	transform: rotate(-90deg);
  transform-origin: 50% 50%;
	transition: stroke-dashoffset 0.35s;
}

#resultchart {
	/* height: 230px !important; */
}

.google-visualization-tooltip {
	line-height: 1.5em;
	padding: 5px 10px !important;
	text-align: left;
}

.loadingAnim {
  display: none;

  width: 40px;
  height: 40px;

  position: relative;
  margin: 100px auto;
}

.loadingAnim.active {
  display: block;
}

.double-bounce1, .double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #2e4565;
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;

  -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
  animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
  -webkit-animation-delay: -1.0s;
  animation-delay: -1.0s;
}

@-webkit-keyframes sk-bounce {
  0%, 100% {
		-webkit-transform: scale(0.0)
	}
  50% {
		-webkit-transform: scale(1.0)
	}
}

@keyframes sk-bounce {
  0%, 100% {
    transform: scale(0.0);
    -webkit-transform: scale(0.0);
  }
	50% {
    transform: scale(1.0);
    -webkit-transform: scale(1.0);
  }
}

@keyframes pulse-red {
  0% {
    background-color: rgba(227,6,19,1);
  }
  50% {
    background-color: rgb(255, 35, 0);
  }
  100% {
    background-color: rgba(227,6,19,1);
  }
}

@keyframes pulse-grey {
  0% {
    background-color: #2e4565;
  }
  50% {
    background-color: #3c5a84;
  }
  100% {
    background-color: #2e4565;
  }
}