/* SPDX-FileCopyrightText: 2023-2025 FosseryWeb <fosseryweb.do1b9@aleeas.com>

SPDX-License-Identifier: AGPL-3.0-or-later */

.question {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.answers {
  margin-bottom: 4rem;
}

.answer-container {
  display: block;
  position: relative;
  margin: 1rem 0;
  padding-left: 2.2rem;
  cursor: pointer;
}

.answer {
  word-break: break-word;
}




/* CUSTOM RADIO BUTTON */

/* Hide the browser's default radio button */
.answer-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Create a custom radio button */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
  border: 0.1rem solid var(--main-link-color);
  border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.answer-container:hover input:not(input:checked) ~ .checkmark {
  background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
 input:checked ~ .checkmark {
  background-color: #2196F3;
  border: 0;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
input:checked ~ .checkmark:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.checkmark:after {
 	top: 9px;
	left: 9px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
}






.quiz-button {
  display: block;
  position: absolute;
  bottom: 1rem;
  color: var(--dark-background-text);
  background-color: var(--main-link-color);
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  padding: 0.7rem;
  border-radius: 1000rem;
  width: 40%;
  cursor: pointer;
}

.finish-button, .previous-button, .try-again-button {
  display: none;
}

.finish-button, .next-button {
  right: 1rem;
}

.finish-button {
  background-color: rgb(230, 149, 0);
}

.try-again-button {
  width: calc(100% - 2rem); /* card width minus paddings */
}


/* Display results */
.result-question {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 2rem;
}
