/* start typing speed */
:root {
	--main-color: #2196f3;
}
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
body {
	font-family: "Open Sans", sans-serif;
}
.typing-test {
	display: none;
	background-color: #eee;
	min-height: 100vh;
}
.container {
	margin: auto;
	width: 90%;
	max-width: 900px;
	min-width: 270px;
}
.name {
	background-color: var(--main-color);
	color: white;
	padding: 20px;
	font-size: 25px;
	font-weight: bold;
	display: flex;
	justify-content: center;
	align-items: center;
}
.name p{
	color: rgb(255 255 255 / 80%);
	font-size: 30px;
	width: 418px;
	margin: 30px auto;
	border-right: 2px solid rgb(255 255 255 / 80%);
	overflow: hidden;
	white-space: nowrap;
	animation: control-width 2s steps(28) 2s both , blink 0.4s infinite;
	-webkit-animation: control-width 2s steps(28) 2s both , blink 0.4s infinite;
}
.message {
	background-color: white;
	padding: 15px;
	margin: 15px 0;
	border-radius: 6px;
	text-align: center;
}
.message span {
	font-weight: bold;
	color: #009688;
}
.message span::before {
	content: "[ ";
}
.message span::after {
	content: " ]";
}
.message select{
	display: inline-block;
	margin: 5px 2px 5px 10px;
	padding: 5px;
	border: none;
	outline: none;
	background-color: #2196f3;
	color: #fff;
	width: 100px;
	border-radius: 3px;
}
.start {
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	background-color: #009688;
	color: white;
	padding: 20px;
	cursor: pointer;
}
.the-word {
	text-align: center;
	font-weight: bold;
	font-size: 60px;
	color: var(--main-color);
	user-select: none;
}
.input {
	margin: 15px 0;
	width: 100%;
	display: block;
	padding: 15px;
	border: 3px solid var(--main-color);
	font-size: 20px;
	text-align: center;
	text-transform: capitalize;
	border-radius: 6px;
	caret-color: var(--main-color);
}
.input:focus {
	outline: none;
}
.upcoming-words {
	background-color: white;
	margin: 15px 0;
	padding: 15px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.upcoming-words div {
	background-color: var(--main-color);
	color: white;
	font-weight: bold;
	margin: 4px;
	padding: 10px;
	border-radius: 6px;
}
.control {
	display: flex;
	justify-content: space-between;
	background-color: white;
	padding: 15px;
}
.control span {
	font-weight: bold;
	color: #009688;
} 
.finish {
	font-weight: bold;
	font-size: 30px;
	padding: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}
.finish a{
	font-size: 20px;
	display: inline-block;
	width: fit-content;
	height: fit-content;
	padding: 5px;
	background: #2196f3;
	color: #fff;
	text-decoration: none;
	margin: 0px 10px;
	border-radius: 3px;
}
.finish .good {
	color: var(--main-color);
}
.finish .bad {
	color: red;
}


@keyframes control-width {
	from {
		width: 0;
	}
	to {
		width: 418px;
	}
}
@keyframes blink {
	from {
		border-right-color: rgb(255 255 255 / 80%);
	}
	to {
		border-right-color: transparent;
	}
}

/* end typing speed */
 

/* start programming test */
.quiz-app {
	margin: 20px auto;
	width: 90%;
	max-width: 800px;
	min-width: 270px;
	display: none;
	background-color: #f8f8f8;
	padding: 15px;
}
.quiz-app .quiz-info {
	display: flex;
	background-color: #fff;
	padding: 20px;
}
.quiz-app .quiz-info .category {
	flex: 1;
}
.quiz-app .quiz-info .count {
	flex: 1;
	text-align: right;
}
.quiz-app .quiz-area {
	background-color: #fff;
	padding: 20px;
	margin-top: 15px;
}
.quiz-app .quiz-area h2 {
	margin: 0;
}
.quiz-app .answers-area {
	background-color: #fff;
	padding: 0 20px 20px;
}
.quiz-app .answers-area .answer {
	background-color: #f9f9f9;
	padding: 15px;
}
.quiz-app .answers-area .answer:not(:last-child) {
	border-bottom: 1px solid #dfdfdf;
}
.quiz-app .answers-area .answer input[type="Radio"]:checked + label {
	color: #0075ff;
}
.quiz-app .answers-area .answer label {
	cursor: pointer;
	font-weight: bold;
	color: #777;
	font-size: 14px;
	margin-left: 5px;
	position: relative;
	top: -1px;
}
.quiz-app .submit-button {
	background-color: #0075ff;
	display: block;
	width: 100%;
	padding: 15px;
	border: none;
	color: #fff;
	font-weight: bold;
	font-size: 18px;
	cursor: pointer;
	border-radius: 6px;
	margin: 20px auto;
}
.quiz-app .submit-button:focus {
	outline: none;
}
.quiz-app .bullets {
	border-top: 1px solid #dfdfdf;
	background-color: #fff;
	display: flex;
	padding: 20px;
}
.quiz-app .bullets .spans {
	flex: 1;
	display: flex;
}
.quiz-app .bullets .spans span {
	width: 20px;
	height: 20px;
	background-color: #ddd;
	margin-right: 5px;
	border-radius: 50%;
}
.quiz-app .bullets .spans span.on {
	background-color: #0075ff;
}
.quiz-app .results span {
	font-weight: bold;
}
.quiz-app .results span.bad {
	color: #dc0a0a;
}
.quiz-app .results span.good {
	color: #009688;
}
.quiz-app .results span.perfect {
	color: #0075ff;
}
/* end programming test */

/* responsive design */
@media(max-width:450px){
	.name p{
		font-size: 16px;
		width: 200px;
	}
	.the-word{
		font-size: 18px;
	}
	.quiz-app .quiz-area h2,
	.quiz-app .submit-button{
		font-size: 16px;
	}
	.message,
	.input,
	.control,
	.upcoming-words div,
	.quiz-app .quiz-info,
	.quiz-app .answers-area .answer label,
	.quiz-app .bullets{
		font-size: 10px;
	}
	.input{
		height: 20px;
	}
	.quiz-app .bullets .spans span{
		width: 10px;
		height: 10px;
	}

	@keyframes control-width {
		from {
			width: 0;
		}
		to {
			width: 200px;
		}
	}
}
