* {
	box-sizing: border-box;
	margin: 0;
}
body {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	 background: url("http://source.unsplash.com/z7prq6BtPE4");
}
h1 {
	position: absolute;
	color: antiquewhite;
top: 18px;
}
.result-details {
	color: white;
}

::selection {
	color: #ffffff;
	background: #00cc11;
}
.wrapper {
	width: 700px;
	padding: 36px;
	background: #dab8b8;
	border-radius: 10px;
	box-shadow: 0 15px 19px 20px rgb(255, 255, 255);
}
.wrapper .input-field {
	opacity: 0;
	z-index: -999;
	position: absolute;
}
.wrapper .content-box {
	padding: 13px 12px 0;
	border-radius: 10px;
	border: 4px solid #000000;
}
.content-box .typing-text {
	overflow: hidden;
	max-height: 256px;
}

.typing-text::-webkit-scrollbar {
	width: 0;
}

.typing-text p {
	font-size: 24px;
	text-align: justify;
	letter-spacing: 1px;
}
.typing-text p span {
	position: relative;
}
.typing-text p span.correct {
	color: #05d205;
}
.typing-text p span.incorrect {
	color: #cc0a1d;
	border-radius: 4px;
}
.typing-text p span.active::before {
	position: absolute;
	content: "";
	height: 2px;
	width: 100%;
	bottom: 0;
	left: 0;
	opacity: 0;
	border-radius: 5px;
	background: #000000;
	animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
	50% {
		opacity: 1;
	}
}
.content-box .content {
	margin-top: 17px;
	display: flex;
	padding: 12px 0;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	border-top: 3px solid #000000;
}
.content button {
	outline: none;
	border: none;
	width: 105px;
	color: #000000;
	padding: 8px 0;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 15px;
	border: 3px solid #000000;
	background: none;
	transition: transform 0.2s ease;
}
.content button:active {
	transform: scale(0.89);
}
.content button:hover {
	background: #f6f7f6;
}
.content .result-details {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: calc(100% -140px);
	justify-content: space-between;
}
.result-details li {
	display: flex;
	height: 29px;
	list-style: none;
	position: relative;
	align-items: center;
}

.result-details li:not(:first-child) {
	padding-left: 22px;
	border-left: #bfbfbf;
}
.cpm  {
	color: #000000;
}
.wpm {
	color: #000000;
}
.time {
	color: #000000;
}
.mistake {
	color: #000000;
}
.result-details li p {
	font-size: 23px;
}
.result-details li span {
	display: block;
	font-size: 23px;
	margin-left: 10px;
}
li span b {
	font-weight: 500;
}
li:not(:first-child) span {
	font-weight: 500;
}

@media (max-width: 745px) {
	.wrapper {
		padding: 20px;
	}
	.content-box .content {
		padding: 20px 0;
	}
	.content-box .typing-text {
		max-height: 100%;
	}
	.typing-text p {
		font-size: 19px;
		text-align: left;
	}
	.content button {
		width: 100%;
		font-size: 15px;
		padding: 10px 0;
		margin-top: 20px;
	}
	.content .result-details {
		width: 100%;
	}
	.result-details li:not(:first-child) {
		border-left: 0;
		padding: 0;
	}
	.result-details li p,
	.result-details li span {
		font-size: 15px;
	}
}

@media (max-width: 518px) {
	.wrapper .content-box {
		padding: 10px 15px 0;
	}
	.typing-text p {
		font-size: 13px;
	}
	.result-details li {
		margin-bottom: 10px;
	}
	.content button {
		margin-top: 10px;
	}
}
