@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sen:wght@400;700;800&display=swap');

:root {
	--primary-color: rgb(5, 12, 29);
	--secondary-color: rgb(0, 0, 0);
	--text-color: ;
	--field-color: ;
}


body {
	font-family: "Jost";
	width: 100%;
}

main {
	min-height: 100vh;
	width: 100%;
	background-image: url(../images/bg.jpg);
	background-size: cover;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-content: center;
	position: relative;
	padding: 100px;
}

.timer {
	background-image: url(../images/watch.png);
	background-repeat: no-repeat;
	background-position: center;
	position: absolute;
	top: 50px;
	left: 100px;
	height: 175px;
	width: 175px;
	display: grid;
	place-content: center;
}

.timer span {
	font-size: 60px;
	color: var(--primary-color);
	display: block;
	height: 70px;
	width: 100%;
}

.step-count {
	position: absolute;
	height: 100%;
	width: auto;
	right: 0;
	display: grid;
	align-content: center;
}

.count-single {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	min-width: 170px;
	margin-bottom: 30px;
}

.count-inner {
	border-radius: 50%;
	background-color: rgb(175, 173, 173);
	width: 54px;
	height: 54px;
	font-size: 22px;
	color: rgb(224, 224, 224);
	font-weight: bold;
	display: grid;
	place-content: center;
	margin: 0 7.5px;
	transition: 0.5s;
}

.count-single::after {
	content: "";
	background-color: var(--primary-color);
	width: 100px;
	height: 3px;
	display: inline-block;
	margin-right: auto;
	flex: 1;
	transform: translateX(100%);
	transition: 0.5s;
}

.count-single.active::after {
	transform: translateX(0);
}

.count-single.active .count-inner {
	background-color: var(--primary-color);
	width: 77px;
	height: 77px;
	color: rgb(255, 255, 255);
	font-size: 31px;
	margin: 0;
	margin-right: 15px;
}

form {
	flex: 1;
	display: grid;
}

.steps {

	border-radius: 20px;
	height: 100%;
	width: 75%;
	margin: 0 auto;
	background-color: rgb(255, 255, 255);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.quiz-question {
	background-color: var(--primary-color);
	width: 100%;
	min-height: 186px;
	font-size: 45px;
	color: rgb(255, 255, 255);
	font-weight: bold;
	padding: 30px 60px;
}

fieldset {
	flex: 1;
	padding: 24px 60px;
}

.radio-field {
	width: 100%;
	height: 100px;
	position: relative;
	padding: 0 40px;
	margin-top: 20px;
	display: grid;
	align-items: center;
}

.radio-field input {
	-webkit-appearance: none;
	border: solid 2px rgb(161, 161, 161);
	background-color: transparent;
	border-radius: 8px;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	cursor: pointer;
	transition: 0.5s;
}

.radio-field label {
	font-size: 32px;
	color: rgb(186, 186, 186);
	font-weight: 500;
	display: flex;
	align-items: center;
	pointer-events: none;
	transition: 0.5s;
}

.radio-field label::before {
	content: "X";
	border-radius: 50%;
	background-color: rgb(161, 161, 161);
	width: 55px;
	height: 55px;
	display: grid;
	place-content: center;
	margin-right: 30px;
	color: rgb(255, 255, 255);
	transition: 0.5s;
}

.radio-field .op1::before {
	content: "A";
}

.radio-field .op2::before {
	content: "B";
}

.radio-field .op3::before {
	content: "C";
}

.radio-field .op4::before {
	content: "D";
}

.radio-field input:checked {
	border: solid 4px var(--primary-color);
}

.radio-field input:checked~label {
	color: var(--primary-color);
}

.radio-field input:checked~label::before {
	background-color: var(--primary-color);
}

.next-prev {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	height: auto;
	margin-top: 50px;
}

.next-prev button {
	background-color: rgb(219, 219, 219);
	width: 50%;
	height: 80px;
	font-size: 18px;
	color: rgb(124, 120, 120);
	font-weight: bold;
	border: 0;
	text-transform: uppercase;

}

.next-prev button i {
	position: relative;
	top: 1px;
	margin: 0 10px;
}

.next-prev .next {
	background-color: var(--primary-color);
	color: rgb(255, 255, 255);
}

.question {
	width: auto;
	height: auto;
	position: absolute;
	left: 60px;
	bottom: 50px;
}



#error div {
	position: fixed;
	top: 20px;
	left: 20px;
}