@charset "utf-8";
/*--- base ---*/
#quiz_container h1, #quiz_container h2 {
	font-size: 2em;
}
#quiz_container button {
	padding: 10px 20px;
	cursor: pointer;
	font-size: 1.25rem;
	border: none;
	border-radius: 5px;
	font-weight: bold;
	transition: .3s;
	display: inline-block;
	scale: 0.95;
	letter-spacing: 0.05em;
}
#quiz_container button:hover {
	scale: 1.025;
}
#quiz_container h3 {
	margin-top: 0;
	margin-bottom: 20px;
}
#quiz_container img {
	width: 100%;
	object-fit: contain;
}
#quiz_container .flex {
	display: flex;
}

#quiz_container .fade {
	opacity: 0;
	animation: fade-in 1s;
	animation-fill-mode: forwards;
}
@keyframes fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/*--- base ---*/
/*--- common_elements ---*/
#quiz_container #next-question-button,
#quiz_container #restart-button,
#quiz_container #view-hints-button,
#quiz_container #view-answers-button {
	width: 40%;
	max-width: 400px;
}
#quiz_container div:has(> #view-hints-button),
#quiz_container div:has(> #view-answers-button),
#quiz_container #hint-list-screen #view-answers-button {
	position: relative;
	bottom: auto;
	right: auto;
	padding: 15px;
}
#quiz_container #view-hints-button,
#quiz_container #view-answers-button {
	position: absolute;
	bottom: 30px;
	right: 30px;
	padding: 30px;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}
#hint-list h3,
#answer-list h3 {
	font-weight: bold;
    text-align: center;
    padding: 0 0 21px;
    background: transparent;
    color: darkorange;
    border-radius: 0;
}
#hint-list h3 img,
#answer-list h3 img {
	display:inline-block;
	width: auto;
}

#quiz_container #answer-list, #hint-list {
	text-align: left;
}
/*--- common_elements ---*/

/*--- progress_block ---*/
#progress_block {
	width: 92%;
	margin: 10px auto;
}

#progress_block ul {
	display: flex;
	justify-content: center;
	margin: 0;
	padding-top: 5px;
}
#progress_block ul li {
	background: #bbb;
	color: #fff;
	text-align: center;
	display: inline-block;
	position: relative;
	padding: 4px;
	border-radius: 9999px;
	aspect-ratio: 1 / 1;
	font-weight: bold;
	margin: 0 20px;
	font-size: 1.125rem;
}
#progress_block ul li + li:before {
	content: "\0bb";
	font-size: 1.5rem;
	color: #666;
	position: absolute;
	display: inline-block;
	top: calc(50% + 1px);
	left: -30px;
	translate: 0 -50%;
}
#progress_block ul li span {
	display: inline-block;
	margin-top: 4px;
}
#main:has(#title-screen) #progress_block, #main:has(#final-result-screen) #progress_block, #main:has(#hint-list-screen) #progress_block, #main:has(#answer-list-screen) #progress_block {
	display: none;
}
#main:has(img[src*="q01"]) #progress_block ul li:first-of-type, #main:has(img[src*="q02"]) #progress_block ul li:nth-of-type(2), #main:has(img[src*="q03"]) #progress_block ul li:nth-of-type(3), #main:has(img[src*="q04"]) #progress_block ul li:nth-of-type(4), #main:has(img[src*="q05"]) #progress_block ul li:last-of-type {
	background: #00bdff;
}
/*--- progress_block ---*/
/*--- quiz_container ---*/
#quiz_container, #quiz_container * {
	box-sizing: border-box;
}
#quiz_container {
	border: 3px solid #00bdff;
	width: 92%;
	margin: 20px auto;
	position: relative;
	background: #ecfaff;
	transition: .3s;
	max-height: 100%;
	min-height: 550px;
}
#quiz_container > div {
	margin: 20px;
	background: #fff;
	padding: 30px;
	border-radius: 20px;
}
/*--- quiz_container ---*/
/*--- title ---*/
#quiz_container:has(#title-screen) {
	min-height: inherit;
} 
#quiz_container > #title-screen {
	display: block;
	text-align: center;
	position: relative;
	margin:0;
	padding: 0;
}
#quiz_container > #title-screen img {
	width: 100%;
	height: auto;
}
#title-screen button {
	background: #fe581a;
	color: #fff;
	margin: 20px auto;
	position: absolute;
	left: 50%;
	top: 46.5%;
	translate: -50% -50%;
	padding: 20px 50px 22px;
	min-width: 300px;
	font-size: 1.75em;
	outline: 6px solid rgba(255,222,189,.9);
}
#title-screen button:hover {
	background: #ff755d;
}
/*--- title ---*/
/*--- question ---*/
div:has(> #question-img) {
	text-align: center;
}
#quiz_container #question-img {
	width: 80%;
	margin: 20px auto;
	display: inline-block;
	border-radius: 10px;
}
#answer_btn {
	display: flex;
	flex-wrap: wrap;
	margin: 20px auto;
}
#answer_btn button {
	width: calc((100% - 40px)/3);
	border-radius: 9999px;
	color: darkorange;
	border: 3px darkorange solid;
	background: #fff;
	text-indent: calc(-1em + 8px);
	scale: 0.95;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	font-size: 1.75em;
}
#answer_btn button:hover {
	scale: 1.05;
	color: #fff;
	background: darkorange;
}
#answer_btn button:nth-of-type(2) {
	margin: 0 20px;
}
#answer_btn button:before {
	display: inline-block;
	font-size: 1em;
	margin-right: 16px;
	font-weight: bold;
	position: relative;
}
#answer_btn button:first-of-type:before {
	content: "\02460";
}
#answer_btn button:nth-of-type(2):before {
	content: "\02461";
}
#answer_btn button:last-of-type:before {
	content: "\02462";
}
div:has(> #next-question-button) {
	text-align: center;
	margin: 30px auto 0;
}
/*--- question ---*/

/*--- result ---*/
#quiz_container div:has(>#result-text) {
	margin-top: 20px;
}
#quiz_container #next-question-button {
	background: #15bf60;
	color: #fff;
	padding: 15px 20px;
}
#quiz_container #next-question-button:hover {
	background: #8bcb59;
}
#quiz_container #next-question-button.final-result-button {
	background: #f86b84;
}
#quiz_container #next-question-button.final-result-button:hover {
	background: #ff86bb;
}
#quiz_container #view-hints-button,
#quiz_container #view-answers-button {
	bottom: 70px;
	padding: 30px 20px;
}
#quiz_container #view-hints-button {
	background: gold;
	color: #0130a5;
}
#quiz_container #view-hints-button:hover {
	background: #ffca4f;
}
#quiz_container #view-answers-button {
	background: #fa7070;
	color: #fff;
}
#quiz_container #view-answers-button:hover {
	background: #ff87a0;
}
#quiz_container:has(> #view-hints-button) {
	background: #ebf8ff;
}
#quiz_container:has(> #view-answers-button) {
	background: #fff2eb;
}
#quiz_container #final-result-screen {
	padding: 0 !important;
}
/*--- result ---*/



/*--- hint ---*/
#hint-list .hint {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px 3%;
	padding: 30px 0;
	border: 2px solid #ffd49b;
	background-image: linear-gradient(#fff0ca 2px, transparent 2px), linear-gradient(to right, #fff0ca 2px, #fcfcd4 2px);
    background-size: 60px 60px;
    background-position: center;
	border-radius: 20px;
}
#hint-list .hint li {
	width: 30%;
	text-align: center;
	animation: hint-view 1s forwards;
	opacity: 0;
}
#hint-list .hint li img {
	transition: .3s;
}
#hint-list .hint li:nth-of-type(2) {
	animation-delay: .2s;
}
#hint-list .hint li:nth-of-type(3) {
	animation-delay: .4s;
}
#hint-list .hint li:nth-of-type(4) {
	animation-delay: .6s;
}
#hint-list .hint li:last-of-type {
	animation-delay: .8s;
}
#hint-list .hint li:hover img {
	scale: 1.05;
}


@keyframes hint-view {
	0% {
		opacity: 0;
		scale: 0;
	}
	70% {
		opacity: 1;
		scale: 1.1;
	}
	100% {
		opacity: 1;
		scale: 1;
	}
}
#hint-list .hint li img {
	display: inline-block;
	width: auto;
}
#hint-list + .flex {
	justify-content: center;
	margin: 40px auto 20px;
}
#quiz_container #hint-list + .flex button {
	margin: 0 20px;
}




/*--- hint ---*/

/*--- answer ---*/
#quiz_container #answer-list-screen {
	padding: 15px 30px;
}
.answer li {
	list-style: none;
	padding: 20px 10px 12px;
	margin-bottom: 5px;
	display: flex;
	align-items: flex-start;
	font-size: 1.225em;
	border-bottom: 2px dashed #ccc;
}
.answer li:first-of-type {
	padding-top: 0;
}

.answer li span {
	position: relative;
	padding: 5px 8px;
	display: inline-block;
	color: #fff;
	font-weight: bold;
	margin-right: 20px;
	font-size: 1.25em;
	animation: icon-view .5s forwards;
	opacity: 0;
}
.answer li span:before {
	content:"";
	background: #00bdff;
	display: inline-block;
	padding: 25px;
	position: absolute;
	top: 50%;
	left: 50%;
	translate: -50% -53%;
	border-radius: 9999px;
	aspect-ratio: 1 / 1;
	z-index: -1;
}
.answer li span:after {
	content: "";
    clip-path: polygon(0 0, 0 100%, 100% 50%);
    top: 48%;
    right: -11px;
    background: #00bdff;
    translate: 0 -50%;
    display: inline-block;
    position: absolute;
    width: 10px;
    height: 16px;
    z-index: -1;
}
.answer li p {
	margin: 0 0 0 10px;
	display: inline-block;
  animation: textfade 1s forwards;
	opacity:0;
	font-size: 1.25em;
}

.answer li:first-of-type p {
	animation-delay: .5s;
}
.answer li:nth-of-type(2) span {
	animation-delay: 1s;
}
.answer li:nth-of-type(2) p {
	animation-delay: 1.5s;
}
.answer li:nth-of-type(3) span {
	animation-delay: 2s;
}
.answer li:nth-of-type(3) p {
	animation-delay: 2.5s;
}
.answer li:nth-of-type(4) span {
	animation-delay: 3s;
}
.answer li:nth-of-type(4) p {
	animation-delay: 3.5s;
}
.answer li:last-of-type span {
	animation-delay: 4s;
}
.answer li:last-of-type p {
	animation-delay: 4.5s;
}
.answer li p a {
	display: block;
	margin-top: 5px;
	font-size: 0.875em;
}
#quiz_container #answer-list + .flex {
	margin: 30px auto 20px;
	justify-content: center
}

@keyframes icon-view {
	0% {
		opacity: 0;
		scale: 0;
	}
	70% {
		opacity: 1;
		scale: 1.1;
	}
	100% {
		opacity: 1;
		scale: 1;
	}
}

@keyframes textfade {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/*-- answer ---*/
/*-- restart ---*/
#quiz_container #restart-button {
	background: #1cb297;
	color: #fff;
    font-size: 1.25rem;
	padding: 15px;
}
#quiz_container #restart-button:hover {
	background: #60c894;
}
/*-- restart ---*/
/*--- cansel ---*/
#cancel_btn {
	width: 90%;
	margin: 20px auto;
	text-align: right;
}
#cancel_btn a {
	background: #e32636;
	color: #fff;
	display: inline-block;
	padding: 20px 30px 15px;
	cursor: pointer;
	font-size: 1.15rem;
	border: none;
	border-radius: 5px;
	font-weight: bold;
	transition: .3s;
	text-decoration: none;
	letter-spacing: 0.02em;
	min-width: 120px;
	text-align: center;
}
#cancel_btn a:hover {
	background: #ff6961
}
/*--- cansel ---*/

/*
button:hover {
	background-color: #ddd;
}
*/