* {
	margin: 0;
	padding: 0;
}

body {
	background-color: #f4f6fa;
	display: flex;
	justify-content: center;
}

body.dark-mode {
	background-color: #313e51;
	color: #ffffff;
}

body.dark-mode .container,
body.dark-mode .container-question,
body.dark-mode .container-end {
	background-image: url(./images/pattern-background-desktop-dark.svg);
}

body.dark-mode .subjects button,
body.dark-mode .answers button {
	background-color: #3b4d66;
	color: #ffffff;
}

body.dark-mode .question h2 {
	color: #ffffff;
}

.container,
.container-question {
	position: relative;
	background-image: url('./images/pattern-background-desktop-light.svg');
	background-size: cover;
	height: 100vh;
	width: 80%;
	z-index: 1;
}

.container-end {
	position: relative;
	background-image: url('./images/pattern-background-desktop-light.svg');
	/* background-size: cover; */
	height: 100vh;
	width: 80%;
}

.mode {
	position: absolute;
	left: 67%;
	top: 10%;
	transform: translate(-10%, -67%);
	display: flex;
	align-items: center;
	gap: 10px;
	z-index: 2;
}

/* The switch - the box around the slider */
.switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

/* The slider */
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #a729f5;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

.slider:before {
	position: absolute;
	content: '';
	height: 18px;
	width: 18px;
	left: 4px;
	bottom: 3px;
	background-color: white;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

input:checked + .slider {
	background-color: #a729f5;
}

input:focus + .slider {
	box-shadow: 0 0 1px #a729f5;
}

input:checked + .slider:before {
	-webkit-transform: translateX(26px);
	-ms-transform: translateX(26px);
	transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
	border-radius: 34px;
}

.slider.round:before {
	border-radius: 50%;
}

.section,
.section-question,
.section-end {
	position: absolute;
	left: 40%;
	top: 50%;
	transform: translate(-40%, -50%);
	display: flex;
	justify-content: center;
	align-items: start;
	gap: 80px;
	width: 100%;
}

.section-question {
	gap: 20px;
}

.category img,
.category-end img,
.score img {
	background-color: #f6e7ff;
	width: 15%;
	padding: 6px;
	border-radius: 10px;
}

.category {
	position: absolute;
	left: 12%;
	top: 10%;
	transform: translate(-12%, -10%);
	display: flex;
	align-items: center;
	gap: 10px;
}

.subjects,
.answers,
.score {
	display: flex;
	flex-direction: column;
}

.subjects button,
.answers button,
.play-again {
	display: flex;
	align-items: center;
	background-color: #ffffff;
	border: none;
	border-radius: 10px;
	gap: 22px;
	margin: 8px;
	font-family: 'Rubik', sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
	padding: 14px 180px 14px 14px;
	font-size: 18px;
	cursor: pointer;
	text-wrap: nowrap;
}

.subjects img {
	width: 15%;
	padding: 6px;
	border-radius: 10px;
}

.subjects button:nth-of-type(1) img {
	background-color: #fff1e9;
}

.subjects button:nth-of-type(2) img {
	background-color: #e0fdef;
}

.subjects button:nth-of-type(3) img {
	background-color: #ebf0ff;
}

.subjects button:nth-of-type(4) img {
	background-color: #f6e7ff;
}

.welcome,
.question,
.end {
	display: flex;
	flex-direction: column;
	justify-content: start;
}

.welcome h2:nth-of-type(1),
.end h2:nth-of-type(1) {
	font-family: 'Rubik', sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
	font-size: 40px;
}

.welcome h2:nth-of-type(2),
.end h2:nth-of-type(2) {
	font-family: 'Rubik', sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
	font-size: 36px;
}

.welcome p,
.question p {
	padding-top: 40px;
	font-family: 'Rubik', sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: italic;
}

.answers span {
	background-color: #f4f6fa;
	padding: 5px 9px;
	border-radius: 6px;
	color: #626c7f;
}

.question h2 {
	padding-top: 20px;
	font-family: 'Rubik', sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
	font-size: 22px;
	color: #313e51;
}

.question {
	width: 50%;
	margin-left: 10%;
}

.answers {
	width: 54%;
	margin-right: 10%;
}

#submit-answer,
#next-question,
#play-again {
	background-color: #a729f5;
	color: #ffffff;
	padding: 14px 0;
	justify-content: center;
	font-size: 16px;
}

.answers button:hover span {
	background-color: #f6e7ff;
	color: #a729f5;
}

.answers button:focus span {
	background-color: #a729f5;
	color: #ffffff;
}

.answers button:focus {
	border: 2px solid #a729f5;
}

#submit-answer:hover,
#next-question:hover,
#play-again:hover {
	opacity: 0.5;
}

.hide {
	display: none;
}

button.correct {
	border: 2px solid #26d782;
}

button.correct span {
	background-color: #26d782;
	color: #ffffff;
}

button.incorrect {
	border: 2px solid #ee5454;
}

button.incorrect span {
	background-color: #ee5454;
	color: #ffffff;
}

.disabled-hover {
	pointer-events: none;
	background-color: #ccc;
	color: #666;
}

.disabled-hover:hover {
	background-color: #ccc;
	cursor: not-allowed;
}

.warning-message {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 10px;
	color: #ee5454;
	gap: 8px;
	word-spacing: 2px;
}

.warning-message img {
	width: 30px;
}

.score-card {
	display: flex;
	flex-direction: column;
	width: 35%;
}

.play-again {
	width: 100%;
	margin-left: 0;
}

.score {
	display: flex;
	background-color: #ffffff;
	width: 100%;
	border-radius: 10px;
	margin-bottom: 16px;
}

body.dark-mode .score {
	background-color: #3b4d66;
	color: #ffffff;
}

body.dark-mode .score-category h2 {
	color: #ffffff;
}

body.dark-mode .score-result p {
	color: #abc1e1;
}

body.dark-mode .warning-message p {
	color: #ffffff;
}

.section-end {
	gap: 120px;
}

.category-end {
	position: absolute;
	left: 19%;
	top: 10%;
	transform: translate(-19%, -10%);
	display: flex;
	align-items: center;
	gap: 10px;
}

.score-category {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding-top: 28px;
}

.score-category img {
	width: 24px;
	border-radius: 6px;
}

.score-category h2 {
	font-family: 'Rubik', sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-size: 18px;
	color: #313e51;
}

.category-end h2,
.category h2 {
	font-family: 'Rubik', sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
}

.score-result {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 20px;
}

.score-result h2 {
	font-family: 'Rubik', sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
	font-size: 80px;
	padding-bottom: 10px;
}

.score-result p {
	color: #626c7f;
	padding-bottom: 30px;
	font-family: 'Rubik', sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
}

@media screen and (max-width: 768px) {
	.section,
	.section-question,
	.section-end {
		flex-direction: column;
	}

	.welcome {
		margin-top: 200px;
		margin-left: 100px;
	}

	.subjects {
		margin-left: 90px;
	}

	.question {
		margin-top: 100px;
		margin-bottom: 30px;
	}

	.mode {
		left: 70%;
		top: 15%;
		transform: translate(-15%, -70%);
	}

	.question,
	.answers {
		width: 100%;
	}

	.question {
		margin-left: 2%;
	}

	.category {
		left: 8%;
		top: 13%;
		transform: translate(-8%, -13%);
	}

	.end {
		margin-top: 100px;
		margin-left: 50px;
	}

	.score-card {
		width: 90%;
		margin-left: 5%;
	}

	.category-end {
		left: 17%;
		top: 12%;
		transform: translate(-17%, -12%);
	}

	.section-end {
		gap: 50px;
	}
}

@media screen and (max-width: 500px) {
	.welcome,
	.subjects {
		margin-left: 0px;
	}

	.section,
	.section-question,
	.section-end {
		left: 0%;
		top: 50%;
		transform: translate(-0%, -50%);
	}
}
