@font-face {
	font-family: Source Code Pro;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/SourceCodePro-Regular.ttf) format("truetype")
}

@font-face {
	font-family: JetBrains Mono;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/JetBrainsMono-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Montserrat;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/Montserrat-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Roboto;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/Roboto-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Titillium Web;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/TitilliumWeb-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Oxygen;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/Oxygen-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Itim;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/Itim-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Comfortaa;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/Comfortaa-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Coming Soon;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/ComingSoon-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Atkinson Hyperlegible;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/AtkinsonHyperlegible-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Lato;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/Lato-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Lalezar;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/Lalezar-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Noto Naskh Arabic;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/NotoNaskhArabic-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Vazirmatn;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/Vazirmatn-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Ubuntu;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/Ubuntu-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Ubuntu Mono;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/UbuntuMono-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Inconsolata;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/Inconsolata-Regular.ttf) format("truetype")
}

@font-face {
	font-family: IBM Plex Sans;
	font-style: normal;
	font-weight: 600;
	font-display: block;
	src: url(../fonts/IBMPlexSans-SemiBold.ttf) format("truetype")
}

@font-face {
	font-family: Lexend Deca;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/LexendDeca-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Fira Code;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/FiraCode-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Nunito;
	font-style: normal;
	font-weight: 700;
	font-display: block;
	src: url(../fonts/Nunito-Bold.ttf) format("truetype")
}

@font-face {
	font-family: Roboto Mono;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/RobotoMono-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Boon;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/Boon-400.ttf) format("truetype"), url(../fonts/Boon-400.otf) format("opentype")
}

@font-face {
	font-family: Open Dyslexic;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/OpenDyslexic.otf) format("opentype")
}

@font-face {
	font-family: Cascadia Mono;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/CascadiaMono-Regular.ttf) format("truetype")
}

@font-face {
	font-family: IBM Plex Mono;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/IBMPlexMono-Regular.ttf) format("truetype")
}

@font-face {
	font-family: Overpass Mono;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/OverpassMono-VariableFont_wght.ttf) format("truetype")
}

@font-face {
	font-family: Hack;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/HackNerdFont-Regular.ttf) format("truetype")
}

@font-face {
	font-family: CommitMono;
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(../fonts/CommitMono-400-Regular.otf) format("opentype")
}

html {
	overflow-y: scroll;
	scroll-behavior: smooth;
	line-height: 1.25;
}

body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	font-family: var(--font);
	color: var(--text-color);
	overflow-x: hidden;
	background: var(--bg-color);
}

:root {
	--bg-color: #F8F8FF;
	--main-color: #000865;
	--caret-color: #000865;
	--sub-color: #000865;
	--sub-alt-color: #000865;
	--text-color: #000865;
	--error-color: #ca4754;
	--error-extra-color: #7e2a33;
	--colorful-error-color: #ca4754;
	--colorful-error-extra-color: #7e2a33;
	--roundness: .5rem;
	--font: "Roboto Mono", "Vazirmatn", monospace;
	scroll-padding-top: 2rem;
	font-weight: 400;
	--crt-bg-color-shine: color-mix(in oklab, var(--main-color) 5%, var(--bg-color));
	--crt-bg-color-stripe: color-mix(in oklab, black 50%, var(--bg-color));
	--crt-sub-color-glow: color-mix(in srgb, var(--sub-color) 20%, transparent);
	--crt-sub-alt-color-glow: color-mix(in srgb, var(--sub-alt-color) 20%, transparent);
	--crt-text-color-glow: color-mix(in srgb, var(--text-color) 20%, transparent);
	--crt-main-color-glow: color-mix(in srgb, var(--main-color) 20%, transparent);
	--crt-error-color-glow: color-mix(in srgb, var(--error-color) 20%, transparent);
	--crt-caret-color-glow: color-mix(in srgb, var(--caret-color) 20%, transparent);
	--balloon-border-radius: 2px;
	--balloon-color: #000865;
	--balloon-text-color: #fff;
	--balloon-font-size: 1rem;
	--balloon-move: 4px;
	--ss-primary-color: #5897fb;
	--ss-bg-color: #ffffff;
	--ss-font-color: #4d4d4d;
	--ss-font-placeholder-color: #8d8d8d;
	--ss-disabled-color: #dcdee2;
	--ss-border-color: #dcdee2;
	--ss-highlight-color: #fffb8c;
	--ss-success-color: #00b755;
	--ss-error-color: #dc3545;
	--ss-focus-color: #5897fb;
	--ss-main-height: 30px;
	--ss-content-height: 300px;
	--ss-spacing-l: 7px;
	--ss-spacing-m: 5px;
	--ss-spacing-s: 3px;
	--ss-animation-timing: 0.2s;
	--ss-border-radius: 4px;
}

a,
a:hover,
a:focus {
	text-decoration: none;
}

ul {
	list-style-type: none;
	padding: 0px;
	margin: 0px;
}

.wrapper {
	max-width: 1250px;
	display: grid;
	grid-auto-flow: row;
	min-height: 100vh;
	padding: 2rem;
	align-items: center;
	grid-template-rows: auto 1fr auto;
	width: 100%;
	transition: padding-top .125s;
	margin: 0px auto;
}

.app_wrap {
	grid-template-columns: auto minmax(0, 1250px) auto;
	display: grid;
	justify-items: center;
}

header.header {
	grid-template-areas: "logo menu";
	line-height: 2.3rem;
	font-size: 2.3rem;
	display: grid;
	grid-auto-flow: column;
	grid-template-columns: auto 1fr;
	z-index: 2;
	align-items: center;
	gap: 0.5rem;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

header.header .logo {
	cursor: pointer;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.5rem;
	transition: none;
	text-decoration: none;
	padding: 0.35rem 0.25rem;
	margin-left: -0.25rem;
	margin-right: -0.25rem;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

header.header .logo .logotxt {
	position: relative;
	font-family: Lexend Deca, sans-serif;
	transition: color .25s;
	font-weight: unset;
	margin-block-start: unset;
	margin-block-end: unset;
	margin-top: -0.23em;
	color: #212529;
}

header.header .logo .logotxt span {
	color: #0000ff;
}

header.header .logo .logotxt small {
	position: absolute;
	left: 0.35em;
	font-size: .325em;
	line-height: .325em;
	color: var(--sub-color);
	transition: color .125s, opacity .125s;
}

header.header .logo .icon svg path {
	transition: .25s;
	fill: var(--main-color);
}

header.header .navmenu {
	font-size: 1rem;
	line-height: 1rem;
	color: var(--sub-color);
	display: flex;
	width: -moz-fit-content;
	width: fit-content;
	width: 100%;
	justify-content: space-between;
	align-items: center;
}

header.header .menu_link ul {
	display: grid;
	grid-auto-flow: column;
	gap: 0.5rem;
}

header.header .menu_link ul li {
	color: var(--sub-color);
}

header.header .menu_link ul li a,
.main_content .button_txt,
.main_content button.text {
	color: var(--sub-color);
	cursor: pointer;
	transition: background .125s, color .125s, opacity .125s;
	padding: 0.5em;
	border-radius: var(--roundness);
	background: 0 0;
	text-align: center;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	align-content: center;
	height: -moz-min-content;
	height: min-content;
	line-height: 1.25;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border: none;
	font-family: inherit;
	font-size: 1em;
	display: inline-flex;
	gap: 0.5em;
	align-items: baseline;
	justify-content: center;
}

header.header .menu_link ul li a:hover,
.main_content .button_txt:hover,
.main_content button.text:hover {
	color: var(--text-color);
	background: 0 0;
	outline: none;
}

header.header .navmenu #testconfig {
	display: flex;
	font-size: 13px;
	width: 100%;
	transition: opacity .125s;
}

header.header .navmenu #testconfig .testrow {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.main_content {
	display: grid;
}

.main_content .pagetest {
	display: grid;
	grid-template-rows: 1fr auto 1fr;
}

.main_content .pagetest,
.main_content .pagetest .typingTest,
.pagetest #wordsWrapper {
	position: relative;
}

.main_content #testconfig .testrow {
	display: flex;
	background: var(--sub-alt-color);
	border-radius: var(--roundness);
}

#testconfig .punc_num {
	overflow: hidden;
	max-width: 15rem;
	opacity: 1;
}

#testconfig .mode,
#testconfig .time,
#testconfig .wordCount,
#testconfig .punc_num,
#testconfig .quoteLength,
#testconfig .customText,
#testconfig .zen {
	display: grid;
	grid-auto-flow: column;
}

#testconfig .time,
#testconfig .customText,
#testconfig .zen,
#testconfig .quoteLength,
#testconfig .punc_num {
	justify-content: center;
	overflow: hidden;
}

.main_content .button_txt.active {
	color: var(--main-color);
	background: 0 0;
}

/* #testconfig .mode .button_txt:first-child, #testconfig .time .button_txt:first-child, #testconfig .wordCount .button_txt:first-child, #testconfig .punc_num .button_txt:first-child, #testconfig .quoteLength .button_txt:first-child, #testconfig .customText .button_txt:first-child, #testconfig .zen .button_txt:first-child {padding: 0.75rem 0.5rem 0.7rem 1rem;} */
#testconfig .wordCount .button_txt:hover {
	background: var(--bg-color);
	cursor: pointer;
}

#testconfig .wordCount .dropdown a.dropdown-toggle {
	color: var(--sub-color);
}

#testconfig .wordCount .dropdown .button_txt {
	font-size: 12px;
	line-height: 16px;
	padding: 8px 15px;
}

#testconfig .button_txt {
	padding: 0.75rem 0.5rem 0.7rem 1rem;
}

#testconfig .button_txt i {
	line-height: 1.25;
}

.hidden {
	display: none !important;
}

.invisible {
	opacity: 0 !important;
	pointer-events: none !important;
}

.pagetest #testModesNotice {
	display: flex;
	flex-wrap: wrap;
	color: var(--sub-color);
	text-align: center;
	margin-bottom: 0.5rem;
	transition: opacity .125s;
	justify-content: center;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

.pagetest #testModesNotice .button_txt {
	margin: 0 0.5rem;
}

.pagetest #testModesNotice .fas {
	margin-right: 0.5rem;
}

.pagetest #timerNumber {
	pointer-events: none;
	transition: .25s;
	color: #000;
	line-height: 0;
	z-index: -1;
	text-align: center;
	left: 0;
	width: 100%;
	position: relative;
	font-size: clamp(1rem, 12vw, 10rem);
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0 auto;
	display: grid;
	justify-content: center;
	bottom: clamp(2rem, 12vw, 6rem);
	transition: none;
}

.pagetest #largeLiveWpmAndAcc.timerMain,
.pagetest #timerNumber.timerMain {
	color: var(--main-color);
}

.pagetest #miniTimerAndLiveWpm {
	height: 0;
	margin-left: 0.25em;
	display: flex;
	position: absolute;
	color: #000;
}

.pagetest #miniTimerAndLiveWpm.timerMain {
	color: var(--main-color);
}

.pagetest #miniTimerAndLiveWpm div {
	margin-top: -1.25em;
	font-size: 1em;
	line-height: 1em;
}

.pagetest #miniTimerAndLiveWpm .time,
.pagetest #miniTimerAndLiveWpm .wpm,
.pagetest #miniTimerAndLiveWpm .acc {
	margin-right: 2rem;
}

.pagetest #miniTimerAndLiveWpm .time,
.pagetest #miniTimerAndLiveWpm .wpm,
.pagetest #miniTimerAndLiveWpm .acc,
.pagetest #miniTimerAndLiveWpm .burst {
	opacity: 0;
}

.pagetest .outOfFocusWarning {
	text-align: center;
	height: 0;
	line-height: 150px;
	z-index: 999;
	position: relative;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	pointer-events: none;
}

#wordsInput {
	opacity: 0;
	padding: 0;
	margin: 0 auto;
	border: none;
	outline: none;
	display: block;
	resize: none;
	position: absolute;
	z-index: -1;
	cursor: default;
	pointer-events: none;
}

#paceCaret {
	height: 1.2em;
	background: var(--sub-color);
	opacity: .5;
	position: absolute;
	border-radius: var(--roundness);
	transform-origin: top left;
}

#caret.default,
#paceCaret.default {
	width: 0.1em;
}

#caret,
#caret.outline,
#paceCaret.outline {
	height: 1.2em;
	background: var(--caret-color);
	animation: caretFlashSmooth 1s infinite;
	position: absolute;
	border-radius: var(--roundness);
	transform-origin: top left;
}

#words {
	height: fit-content;
	height: -moz-fit-content;
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	align-content: flex-start;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	padding-bottom: 1em;
}

#words.blurred {
	opacity: .25;
	filter: blur(4px);
	-webkit-filter: blur(4px);
}

.word {
	color: var(--sub-color);
	font-variant: no-common-ligatures;
	border-bottom: 2px solid transparent;
}

.word letter {
	display: inline-block;
}

#words letter {
	border-bottom-style: solid;
	border-bottom-width: 0.05em;
	border-bottom-color: transparent;
}

#koInputVisualContainer {
	position: relative;
	padding-top: 1rem;
	width: -moz-min-content;
	width: min-content;
	height: 3rem;
	margin: 0 auto;
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--sub-color);
	cursor: default;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

#koInputVisualContainer.blurred {
	opacity: .25;
	filter: blur(4px);
}

#keymap {
	display: grid;
	grid-template-rows: 1fr 1fr 1fr;
	justify-content: center;
	white-space: nowrap;
	gap: 0.25rem;
	margin-top: 1rem;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

[aria-label][data-balloon-pos] {
	position: relative;
	cursor: pointer;
}

button[aria-label][data-balloon-pos] {
	overflow: visible;
}

#restartTestButton {
	margin: 1rem auto 0;
	display: flex;
	padding: 1em 2em;
}

[aria-label][data-balloon-pos]:before {
	width: 0;
	height: 0;
	border: 5px solid transparent;
	border-top-color: var(--balloon-color);
	opacity: 0;
	pointer-events: none;
	transition: all .18s ease-out 0s;
	content: "";
	position: absolute;
	z-index: 10;
}

[aria-label][data-balloon-pos][data-balloon-pos=down]:before {
	width: 0;
	height: 0;
	border: 5px solid transparent;
	border-bottom-color: var(--balloon-color);
	left: 50%;
	top: 100%;
	transform: translate(-50%, calc(var(--balloon-move)* -1));
}

[aria-label][data-balloon-pos][data-balloon-pos=down]:hover:before,
[aria-label][data-balloon-pos][data-balloon-pos=down][data-balloon-visible]:before {
	transform: translate(-50%, 0);
}

[aria-label][data-balloon-pos]:after {
	opacity: 0;
	pointer-events: none;
	transition: all .18s ease-out 0s;
	text-indent: 0;
	font-weight: 400;
	font-style: normal;
	text-shadow: none;
	font-size: var(--balloon-font-size);
	line-height: var(--balloon-font-size);
	background: var(--balloon-color);
	border-radius: 2px;
	color: var(--balloon-text-color);
	border-radius: var(--balloon-border-radius);
	content: attr(aria-label);
	padding: 0.5em 1em;
	position: absolute;
	white-space: nowrap;
	z-index: 10;
}

[aria-label][data-balloon-pos][data-balloon-pos=down]:after {
	left: 50%;
	margin-top: 10px;
	top: 100%;
	transform: translate(-50%, calc(var(--balloon-move)* -1));
}

[aria-label][data-balloon-pos]:hover:after,
[aria-label][data-balloon-pos]:hover:before,
[aria-label][data-balloon-pos]:not([data-balloon-nofocus]):focus:after,
[aria-label][data-balloon-pos]:not([data-balloon-nofocus]):focus:before,
[aria-label][data-balloon-pos][data-balloon-visible]:after,
[aria-label][data-balloon-pos][data-balloon-visible]:before {
	opacity: 1;
	pointer-events: none;
}

[aria-label][data-balloon-pos][data-balloon-pos=down]:hover:after,
[aria-label][data-balloon-pos][data-balloon-pos=down][data-balloon-visible]:after {
	transform: translate(-50%, 0);
}

.pagetest #largeLiveWpmAndAcc {
	font-size: clamp(1rem, 12vw, 10rem);
	color: #000;
	width: 100%;
	left: 0;
	text-align: center;
	z-index: -1;
	height: 0;
	line-height: 0;
	top: clamp(1rem, 10vw, 5rem);
	position: relative;
	display: grid;
	grid-auto-flow: column;
	justify-content: center;
	gap: clamp(1rem, 8vw, 5rem);
	width: 0;
	margin: 0 auto;
}

.pagetest #largeLiveWpmAndAcc.timerMain,
.pagetest #timerNumber.timerMain {
	color: var(--main-color);
}

.pagetest #largeLiveWpmAndAcc #liveWpm,
.pagetest #largeLiveWpmAndAcc #liveAcc,
.pagetest #largeLiveWpmAndAcc #liveBurst {
	opacity: 0;
}

#montypekey {
	width: 308px;
	height: 0;
	margin: 0 auto;
	animation: shake 0s infinite;
}

#montypekey div {
	height: 200px;
	width: 308px;
	position: fixed;
}

#montypekey .up {
	background-image: url(..img/m3.png);
}

#montypekey .left {
	background-image: url(..img/m1.png);
}

#montypekey .right {
	background-image: url(..img/m2.png);
}

#montypekey .both {
	background-image: url(..img/m4.png);
}

#montypekey .fast .up {
	background-image: url(..img/m3_fast.png);
}

#montypekey .fast .left {
	background-image: url(..img/m1_fast.png);
}

#montypekey .fast .right {
	background-image: url(..img/m2_fast.png);
}

#montypekey .fast .both {
	background-image: url(..img/m4_fast.png);
}

#result {
	display: grid;
	gap: 1rem;
	align-items: center;
	grid-template-columns: auto 1fr;
	grid-template-areas: "stats chart" "morestats morestats";
}

#result .chart {
	grid-area: chart;
	width: 100%;
	max-height: 200px;
	height: 200px;
}

#result .stats {
	grid-area: stats;
	display: grid;
	gap: 0.5rem;
	justify-content: center;
	align-items: center;
	grid-template-areas: "wpm" "acc";
}

#result .stats .wpm {
	grid-area: wpm;
}

#result .stats .group .top {
	color: var(--sub-color);
	margin-bottom: 0.25rem;
}

#result .stats .wpm .top {
	display: flex;
}

[aria-label][data-balloon-pos] {
	position: relative;
	cursor: pointer;
}

#result .stats .wpm .top .crown {
	margin-left: 0.5rem;
	margin-top: -0.2rem;
	font-size: .7rem;
	line-height: 1.7rem;
	background: var(--main-color);
	color: var(--bg-color);
	border-radius: 0.6rem;
	text-align: center;
	align-self: center;
	width: 1.7rem;
	height: 1.7rem;
}

#result .stats .group .bottom {
	color: var(--main-color);
}

[aria-label][data-balloon-pos][data-balloon-pos=up]:before {
	bottom: 100%;
	left: 50%;
	transform: translate(-50%, var(--balloon-move));
	transform-origin: top;
}

[aria-label][data-balloon-pos][data-balloon-pos=up]:after {
	bottom: 100%;
	left: 50%;
	margin-bottom: 10px;
	transform: translate(-50%, var(--balloon-move));
	transform-origin: top;
}

[aria-label][data-balloon-pos][data-balloon-break]:after {
	white-space: pre;
}

[aria-label][data-balloon-pos][data-balloon-pos=up]:hover:before,
[aria-label][data-balloon-pos][data-balloon-pos=up][data-balloon-visible]:before {
	transform: translate(-50%, 0);
}

[aria-label][data-balloon-pos][data-balloon-pos=up]:hover:after,
[aria-label][data-balloon-pos][data-balloon-pos=up][data-balloon-visible]:after {
	transform: translate(-50%, 0);
}

#result .stats .acc {
	grid-area: acc;
}

#result .stats.morestats {
	display: grid;
	grid-auto-flow: column;
	grid-template-areas: none;
	align-items: flex-start;
	justify-content: space-between;
	-moz-column-gap: 2rem;
	column-gap: 2rem;
	grid-area: morestats;
}

#result .stats .info .top,
#result .stats .tags .top,
#result .stats .source .top,
#result .stats .info .bottom,
#result .stats .tags .bottom,
#result .stats .source .bottom {
	font-size: 1rem;
	line-height: 1rem;
}

#result .stats .testType .bottom,
#result .stats .leaderboards .bottom {
	font-size: 1rem;
	line-height: 1rem;
}

#result .editTagsButton {
	display: inline-block;
	font-size: .75rem;
	padding-bottom: 0;
}

#result .stats .group.time .afk,
#result .stats .group.time .timeToday {
	color: var(--sub-color);
	font-size: .75rem;
	line-height: .75rem;
	margin-left: 0.2rem;
}

#result .stats .group.dailyLeaderboard {
	max-width: 13rem;
	overflow: hidden;
	white-space: nowrap;
}

#result .stats .source {
	max-width: 30rem;
}

#resultWordsHistory {
	position: relative;
}

#result #resultWordsHistory,
#result #resultReplay {
	color: var(--sub-color);
	margin-bottom: 1rem;
}

#result #resultWordsHistory .title,
#result #resultReplay .title {
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	margin-bottom: 0.25rem;
	display: flex;
	align-items: center;
}

#result #resultWordsHistory .button_txt,
#result #resultReplay .button_txt {
	padding: 0 0.25em;
}

#result #resultWordsHistory #copyWordsListButton,
#result #resultReplay #copyWordsListButton {
	margin-left: 0.5em;
}

#result #resultWordsHistory .heatmapLegend,
#result #resultReplay .heatmapLegend {
	margin-left: 0.5rem;
	display: inline-grid;
	grid-template-columns: auto auto auto;
	gap: 1rem;
	font-size: .75rem;
	color: var(--sub-color);
	width: -moz-min-content;
	width: min-content;
}

#result #resultWordsHistory .heatmapLegend .boxes,
#result #resultReplay .heatmapLegend .boxes {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

#result #resultWordsHistory .heatmapLegend .boxes .box,
#result #resultReplay .heatmapLegend .boxes .box {
	height: 1rem;
	color: var(--bg-color);
	padding: 0.1rem 0.5rem;
	white-space: nowrap;
	line-height: .75rem;
	display: grid;
	place-content: center center;
}

#result #resultWordsHistory .heatmapLegend .boxes .box:nth-child(1),
#result #resultReplay .heatmapLegend .boxes .box:nth-child(1) {
	border-radius: var(--roundness) 0 0 var(--roundness);
}

#result #resultWordsHistory .heatmapLegend .boxes .box:nth-child(5),
#result #resultReplay .heatmapLegend .boxes .box:nth-child(5) {
	border-radius: 0 var(--roundness) var(--roundness) 0;
}

#result #resultWordsHistory .words,
#result #resultReplay .words {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	align-content: flex-start;
}

#replayStats {
	color: var(--main-color);
	display: inline-block;
	margin: 0 0 0 0.5em;
}

#result #resultReplay .words {
	-moz-user-select: none;
	user-select: none;
	-webkit-user-select: none;
}

#replayWords {
	cursor: pointer;
}

button.danger,
.button.danger,
input[type=button].danger,
input[type=reset].danger,
input[type=submit].danger {
	background: var(--error-color);
	color: var(--bg-color);
}

#result #retrySavingResultButton {
	margin: 0 auto 1rem;
	display: flex;
}

#result .buttons {
	display: grid;
	grid-auto-flow: column;
	gap: 1rem;
	justify-content: center;
	grid-column: 1 / 3;
}

.type_keyboard img {
	width: 100%;
}


footer {
	position: relative;
	text-align: center;
	line-height: 1rem;
	font-size: .75rem;
	color: var(--sub-color);
	margin: -5.5em;
}

footer #commandLineMobileButton {
	display: none;
	top: -4rem;
	left: 0;
	position: absolute;
	font-size: 1rem;
	width: 3rem;
	height: 3rem;
	text-align: center;
	line-height: 3rem;
	background: var(--main-color);
	border-radius: 99rem;
	z-index: 99;
	cursor: pointer;
	color: var(--bg-color);
	transition: .25s;
}



key {
	color: var(--bg-color);
	background-color: var(--sub-color);
	padding: 0.1rem 0.3rem;
	margin: 0 0.5rem;
	border-radius: 0.1rem;
	display: inline-block;
	font-size: 12px;
	line-height: 1;
}

footer .keyTips key {
	margin: 0 0.25rem;
}

footer .footer_links {
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	display: grid;
	grid-template-columns: auto auto;
	justify-content: center;
}

footer .footer_links .left ul {
	text-align: left;
	display: grid;
	grid-auto-flow: column;
	width: -moz-fit-content;
	width: fit-content;
}

footer .footer_links .left ul li a {
	text-decoration: none;
	font-size: 13px;
	line-height: 1;
	padding: 5px 10px;
	display: grid;
	grid-auto-flow: column;
	gap: 0.25rem;
	align-items: baseline;
	width: -moz-available;
	width: -moz-max-content;
	width: max-content;
	color: var(--sub-color);
	cursor: pointer;
}

footer .footer_links .left ul li a:hover {
	color: var(--text-color);
	background: 0 0;
	outline: none;
}


@media(min-width:992px) {

	.mobile_toggle,
	.menuclose {
		display: none;
	}

	.word {
		font-size: 1em;
		line-height: 1em;
		margin: 0.25em;
	}
}

@media(max-width:991px) {
	.mobile_toggle {
		margin-left: auto;
		margin-right: 15px;
	}

	.mobile_toggle a,
	.menuclose a {
		color: var(--sub-color);
	}

	.menuclose a {
		padding: 10px 15px 5px;
		display: block;
	}

	body.show {
		position: relative;
	}

	body.show:after {
		content: "";
		background: rgba(0, 0, 0, 0.50);
		width: 100%;
		height: 100%;
		position: absolute;
		top: 0px;
		left: 0px;
	}

	header.header .navmenu #testconfig {
		position: fixed;
		top: 0px;
		right: 0px;
		width: 200px;
		height: 100%;
		background: #F8F8FF;
		display: none;
		z-index: 999;
	}

	body.show header.header .navmenu #testconfig {
		display: block;
	}

	header.header .navmenu #testconfig .testrow,
	#testconfig .punc_num,
	#testconfig .mode {
		display: block;
	}

	#testconfig .wordCount .dropdown a.dropdown-toggle {
		display: block;
		padding: 0.75rem 0.5rem 0.7rem 1rem;
	}
}

@media(min-width:768px) and (max-width:991px) {
	.word {
		font-size: 24px;
		line-height: 1;
		margin: 5px;
	}
}

@media(min-width:481px) and (max-width:991px) {
	#result .morestats {
		gap: 1rem;
		grid-template-rows: 1fr 1fr;
	}
}

@media(min-width:768px) {
	header.header .logo .logotxt {
		font-size: 2rem;
		line-height: 2rem;
	}

	#result .stats .group .top {
		font-size: 1rem;
		line-height: 1rem;
	}

	#result .stats .wpm .top {
		font-size: 2rem;
		line-height: 1.5rem;
	}

	#result .stats .group .bottom {
		font-size: 2rem;
		line-height: 2rem;
	}

	#result .stats .wpm .bottom {
		font-size: 4rem;
		line-height: 4rem;
	}

	#result .stats .acc .top {
		font-size: 2rem;
		line-height: 1.5rem;
	}

	#result .stats .acc .bottom {
		font-size: 4rem;
		line-height: 4rem;
	}

	#result button {
		padding: 1em 2em;
	}
}

@media(max-width:767px) {
	.wrapper {
		gap: 1rem;
		padding: 1rem;
	}

	.word {
		font-size: 21px;
		line-height: 1;
		margin: 5px;
	}

	header.header .logo .logotxt {
		font-size: 1.5rem;
		line-height: 1.5rem;
	}

	footer .footer_links .left ul {
		display: grid;
		grid-template-rows: 1fr 1fr 1fr;
		grid-auto-flow: row;
	}

	.main_content #result {
		grid-template-areas:
			"stats stats"
			"chart chart"
			"morestats morestats";
	}

	#result .stats .group .top {
		font-size: 0.8rem;
		line-height: 0.8rem;
	}

	#result .stats .wpm .top {
		font-size: 1rem;
		line-height: 1.1rem;
	}

	#result .stats .group .bottom {
		font-size: 1.3rem;
		line-height: 1.3rem;
	}

	#result .stats .wpm .bottom {
		font-size: 3rem;
		line-height: 3rem;
	}



	#result .stats .acc .top {
		font-size: 1.5rem;
		line-height: 1.6rem;
	}

	#result .stats .acc .bottom {
		font-size: 3rem;
		line-height: 3rem;
	}

	#result button {
		padding: 0.7em 1.5em;
	}
}

@media (max-width:480px) {
	#result .stats .wpm  .bottom {
		font-size: 1rem ;
		line-height: 3rem;
	}#result .stats .acc .bottom {
		font-size: 1rem ;
		line-height: 3rem;
	}

}

@media(min-width:481px) and (max-width:767px) {
	footer .footer_links .left ul {
		grid-template-columns: auto auto auto auto;
	}
	
	.main_content #result .stats {
		grid-template-areas: "wpm acc";
		gap: 2rem;
	}

	#result .buttons {
		grid-template-rows: 1fr 1fr;
	}

	#result .buttons #nextTestButton {
		grid-column: 1 / 6;
		width: 100%;
		text-align: center;
	}
}

@media(max-width:480px) {
	footer .footer_links .left ul {
		grid-template-columns: auto auto auto;
	}

	.main_content #result .stats {
		gap: 1.5rem;
		grid-template-areas: "wpm acc";
	}

	#result .morestats {
		gap: 1rem;
	}

	#result .buttons {
		grid-template-rows: 1fr 1fr 1fr;
	}

	#result .buttons #nextTestButton {
		grid-column: 1 / 5;
		width: 100%;
		text-align: center;
	}
}