.glossy-block {
	/* From https://css.glass */
	background: rgba(255, 255, 255, 0.2);
	border-radius: 16px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.glossy-table-wrapper {
	/* From https://css.glass */
	background: rgba(255, 255, 255, 0.69);
	border-radius: 16px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.correct-answer {
	pointer-events: none;
	color: #34ce57 !important;
	font-weight: bold;
	border-color: rgba(52, 206, 87, 1) !important;
	box-shadow: 0 0 0 0.4rem rgba(52, 206, 87, 0.5);
}

.incorrect-answer {
	pointer-events: none;
	color: #dc3545 !important;
	font-weight: bold;
	border-color: rgba(220, 53, 69, 1) !important;
	box-shadow: 0 0 0 0.4rem rgba(220, 53, 69, 0.5);
}

.runningQuestionNumberAnswerInputGroup {
	width: 25% !important;
}

.runningQuestionNumberAnswerInputGroup input::-webkit-outer-spin-button,
.runningQuestionNumberAnswerInputGroup input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.runningQuestionNumberAnswerInputGroup input {
	-moz-appearance: textfield;
}

.runningQuizCustomAnswersSection {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: 1rem;
}

.pollAnswers {
	display: grid;
	gap: 0.7rem;
	grid-template-columns: max-content 1fr;
	grid-auto-rows: minmax(2rem, auto);
	/* Sets a minimum height of 50px for each row */

	align-items: center;
}

.pollAnswerStat {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	display: flex;
	z-index: 35;
	justify-content: center;
	align-items: center;
	font-weight: bold;
	text-shadow: 1px 1px 0 #fff;
}

.pollAnswerStatVisual {
	height: 100%;
	/* From https://css.glass */
	background: rgba(255, 255, 255, 0.61);
	backdrop-filter: blur(5.4px);
	-webkit-backdrop-filter: blur(5.4px);
	border-radius: 1rem;
}

.pollAnswerStatWrapper {
	width: 100%;
	height: 100%;
	position: relative;
	border: 1px solid rgba(255, 255, 255, 1);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	border-radius: 1rem;
}

/* Custom answer buttons — colour variants */

.runningQuizCustomAnswerButton {
	border-radius: var(--tb-radius-lg);
	box-shadow: var(--tb-shadow-btn);
	overflow: hidden;
	transition: all 200ms;
	cursor: pointer;
}

.runningQuizCustomAnswerButton .custom-answer-text {
	background-color: white;
	font-weight: bold;
	transition: all 200ms;
}

.runningQuizCustomAnswerButton.clicked:is(.square-yellow, .circle-green, .star-sky, .heart-red) .custom-answer-text {
	color: white;
}

.runningQuizCustomAnswerButton.square-yellow .span-icon-wrapper {
	background-color: rgb(255, 201, 71);
	border: 1px solid rgb(255, 201, 71);
}

.runningQuizCustomAnswerButton.square-yellow .custom-answer-text {
	border: 1px solid rgb(255, 201, 71);
	color: rgb(255, 201, 71);
}

.runningQuizCustomAnswerButton.square-yellow.clicked .custom-answer-text {
	background-color: rgb(255, 201, 71);
}

.runningQuizCustomAnswerButton.circle-green .span-icon-wrapper {
	background-color: rgb(56, 202, 124);
	border: 1px solid rgb(56, 202, 124);
}

.runningQuizCustomAnswerButton.circle-green .custom-answer-text {
	border: 1px solid rgb(56, 202, 124);
	color: rgb(56, 202, 124);
}

.runningQuizCustomAnswerButton.circle-green.clicked .custom-answer-text {
	background-color: rgb(56, 202, 124);
}

.runningQuizCustomAnswerButton.star-sky .span-icon-wrapper {
	background-color: rgb(102, 195, 225);
	border: 1px solid rgb(102, 195, 225);
}

.runningQuizCustomAnswerButton.star-sky .custom-answer-text {
	border: 1px solid rgb(102, 195, 225);
	color: rgb(102, 195, 225);
}

.runningQuizCustomAnswerButton.star-sky.clicked .custom-answer-text {
	background-color: rgb(102, 195, 225);
}

.runningQuizCustomAnswerButton.heart-red .span-icon-wrapper {
	background-color: rgb(235, 87, 87);
	border: 1px solid rgb(235, 87, 87);
}

.runningQuizCustomAnswerButton.heart-red .custom-answer-text {
	border: 1px solid rgb(235, 87, 87);
	color: rgb(235, 87, 87);
}

.runningQuizCustomAnswerButton.heart-red.clicked .custom-answer-text {
	background-color: rgb(235, 87, 87);
}

/* Attendee name bubble */

.bubble-name {
	border-radius: 50px;
	/* Gives the bubble shape */
	padding: 10px 20px;
	font-size: 16px;
	text-align: center;
	font-weight: bold;
	background: var(--tb-surface);
	border: 1px solid var(--tb-border-cool);
	box-shadow: var(--tb-shadow-btn);
	animation:
		float 3s infinite ease-in-out alternate,
		wiggle 4s infinite linear;
}

.bubble-name:nth-child(odd) {
	animation-delay: 0.2s, 0.5s;
}

.bubble-name:nth-child(even) {
	animation-delay: 0.6s, 1s;
}

/* Floating animation */
@keyframes float {
	0% {
		transform: translateY(0);
	}

	100% {
		transform: translateY(-5px);
	}
}

/* Subtle random movement in different directions */
@keyframes wiggle {
	0% {
		transform: translate(1px, 1px) rotate(0deg);
	}

	25% {
		transform: translate(-1px, 2px) rotate(1deg);
	}

	50% {
		transform: translate(2px, -1px) rotate(-1deg);
	}

	75% {
		transform: translate(-1px, -2px) rotate(1deg);
	}

	100% {
		transform: translate(1px, 1px) rotate(0deg);
	}
}

@media (max-width: 768px) {
	.runningQuestionNumberAnswerInputGroup {
		width: 100% !important;
	}

	.runningQuizCustomAnswersSection {
		grid-template-columns: repeat(1, 1fr);
		grid-template-rows: repeat(4, 1fr);
	}
}

/* Yes / no answer buttons */

.quiz-yes-no {
	display: block;
	width: 100%;
	padding: 14px 16px;
	border: 2px solid var(--tb-border-cool);
	border-radius: var(--tb-radius-lg);
	background: var(--tb-surface);
	color: var(--tb-text-soft);
	font-size: 1.2rem;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	box-shadow: var(--tb-shadow-btn);
	transition:
		background-color var(--tb-transition),
		border-color var(--tb-transition),
		color var(--tb-transition);
}

.btn-check:not(:disabled) + .quiz-yes-no:hover {
	border-color: var(--tb-brand);
	color: var(--tb-brand-text);
}

.btn-check:checked + .quiz-yes-no {
	border-color: var(--tb-brand);
	background: var(--tb-brand);
	color: #fff;
}

.btn-check:focus-visible + .quiz-yes-no {
	box-shadow: var(--tb-focus-ring);
}

.btn-check:disabled + .quiz-yes-no {
	opacity: 0.65;
	cursor: default;
}

.btn-check:checked + .quiz-yes-no.correct-answer,
.btn-check:checked + .quiz-yes-no.incorrect-answer {
	background: var(--tb-surface);
}
