:root {
	--bg-gradient: -webkit-linear-gradient(0deg, #95268c, #2a99a5);
	--placeholder-color: #6c7b9b;

	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	font-size: 100%;
	background: #13171f;
	color: #7b8495;
	font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

* {
	-webkit-tap-highlight-color: transparent;
}

body {
	padding: 0.5rem 1rem;
	margin: 0;
}

a, a:visited, .a {
	text-decoration: underline solid #34bdd3;
	color: #34bdd3;
	text-underline-offset: 0.15em;
	transition: color 0.3s, text-decoration 0.3s;
	cursor: pointer;
}

a:hover, .a:hover {
	color: #51e2f9;
	text-decoration-color: #51e2f9;
}

small {
	font-size: 0.875em;
}

header {
	padding: 0.5rem;
}

.container {
	max-width: 1000px;
	margin: auto;
	padding: 1.5rem 0;
}

.site-header {
	display: flex;
	grid-gap: 0.5rem;
	justify-content: center;
	align-items: center;
	text-decoration: none;
}

.site-logo {
	width: 2rem;
	height: 2rem;
}

.site-title {
	background: var(--bg-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: bolder;
}

.app {
	text-align: center;
	padding-bottom: 2.5rem;
}

.input-container {
	background: #1c212c;
	padding: 0.7rem;
	border-radius: 0.375rem;
	border: 0.0625rem solid #2a3140;
	display: flex;
	transition: border-color 0.3s;
	grid-gap: 0.5rem;
}

.input-container:has(input:focus) {
	border-color: #2f93a3;
}

.input-container input {
	background: transparent;
	border: 0;
	outline: 0;
	width: 100%;
	padding: 0;
	margin: 0;
	color: #fff;
	font-family: inherit;
	font-size: inherit;
	margin-left: 0.4rem;
}

input::placeholder {
	color: var(--placeholder-color);
	opacity: 1;
}

input::-ms-input-placeholder {
	color: var(--placeholder-color);
}

button {
	border: 0;
	outline: 0;
	border-radius: 0.375rem;
	padding: 0.5rem 1rem;
	color: #fff;
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
	font-weight: bolder;
	background: var(--bg-gradient);
}

button.disabled {
	filter: grayscale(1);
	pointer-events: none;
}

h1, h2 {
	margin-top: 2rem;
	margin-bottom: 0.5rem;
	color: #c2c7d0;
}

h4 {
	margin-bottom: -0.4rem;
	padding-bottom: 0;
}

.text-main {
	color: #c2c7d0;
	font-weight: bolder;
}

.app p {
	margin-top: 0;
	margin-bottom: 2.5rem;
}

.loader {
	margin: 2rem auto;
	display: flex;
	justify-content: center;
	flex-direction: row;
	align-items: center;
	grid-gap: 0.5rem;
}

.loader.box {
	display: inline-flex;
	padding: 1rem;
	border: 0.15rem solid #363a43;
	border-radius: 0.75rem;
	margin: 0;
}

.spinner {
	box-sizing: border-box;
	font-size: 1.5rem;
	width: 1em;
	height: 1em;
	border-radius: 50%;
	border: 0.2em solid transparent;
	border-top-color: #c2c7d0;
	animation: spin 0.7s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0);
	}

	to {
		transform: rotate(360deg);
	}
}

.cross {
	--color: #c2c7d0;
	width: 1.5em;
	height: 1.5em;
	position: relative;
}

.cross:before, .cross:after {
	content: ' ';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 100%;
	height: 25%;
	background: var(--color);
	transform: translate(-50%, -50%) rotate(45deg);
}

.cross:after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

@media (min-width: 576px) {
	:root {
		font-size: 106.25%;
	}
}

@media (min-width: 768px) {
	:root {
		font-size: 112.5%;
	}
}

@media (min-width: 1024px) {
	:root {
		font-size: 118.75%;
	}
}

@media (min-width: 1280px) {
	:root {
		font-size: 125%;
	}
}

@media (min-width: 1536px) {
	:root {
		font-size: 131.25%;
	}
}

::-moz-selection {
	background-color: rgb(25 211 255 / 25%);
}

::selection {
	background-color: rgb(25 211 255 / 25%);
}

.hidden {
	display: none !important;
}

.shake {
	animation: shake 0.2s;
}

@keyframes shake {
	0% { 
		transform: translateX(0); 
		border-color: red; 
	}
	
	25% { 
		transform: translateX(-0.5em); 
	}
	
	75% { 
		transform: translateX(0.5em);
	}
	
	100% { 
		transform: translateX(0); 
	}
}

.result {
	margin: 2em 0;
}

img {
	max-width: 100%;
	height: auto;
}

.doc {
	display: inline-flex;
	justify-content: center;
	grid-gap: 2rem;
	margin: 2rem 0;
	text-align: left;
}

@media (max-width: 500px) {
	.doc {
		flex-direction: column;
	}
}

.doc-thumb {
	width: 149px;
	height: 198px;
	place-self: center;
	background: #000;
}

.doc-info {
	display: flex;
	flex-direction: column;
	align-items: start;
	grid-gap: 1.25rem;
	max-width: 400px;
}

.doc-title {
	display: flex; 
	align-items: center; 
	grid-gap: 0.5rem; 
	font-weight: bolder;
}

.link-btn {
	display: block;
	font-size: 1.25rem;
	width: 1em;
	height: 1em;
	background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAwcHgiIGhlaWdodD0iODAwcHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgoJPHBhdGggZD0iTTE3IDJIMjJWNyIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KCTxwYXRoIGQ9Ik0yMSAxM1YxOUMyMSAyMC4xMDQ2IDIwLjEwNDYgMjEgMTkgMjFINUMzLjg5NTQzIDIxIDMgMjAuMTA0NiAzIDE5VjVDMyAzLjg5NTQzIDMuODk1NDMgMyA1IDNIMTEiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cgk8cGF0aCBkPSJNMTMgMTFMMjEuNSAyLjUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cgk8L3N2Zz4=");
	background-size: 100% 100%;
	opacity: 0.5;
	transition: 0.3s opacity;
	cursor: pointer;
}

.link-btn:hover {
	opacity: 1;
}

.doc-stats {
	display: flex;
	grid-gap: 1rem;
}

.stat {
	display: flex;
	flex-direction: column;
	align-items: start;
	grid-gap: 0.5rem;
}

.text-main {
	color: #c2c7d0;
	font-weight: bolder;
}

.progress {
	width: 100%;
	max-width: 500px;
	height: 2rem;
	background: #2c3341;
	border-radius: 1rem;
	overflow: hidden;
	border: 0.125rem solid #363a43;
	position: relative;
}

.bar {
	height: 100%;
	width: 0;
	border-radius: inherit;
	background-color: #23cf56;
	background-image: -webkit-linear-gradient(135deg, transparent 25%, rgba(0, 0, 0, 0.2) 25%, rgba(0, 0, 0, 0.2) 50%, transparent 50%, transparent 75%, rgba(0, 0, 0, 0.2) 75%);
	background-size: 3rem 3rem;
	animation: bar 3s infinite linear;
	transition: 0.5s all;
}

@keyframes bar {
	from {
		background-position: 0 0;
	}

	to {
		background-position: 3rem 3rem;
	}
}

.progress span {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	white-space: nowrap;
}

.doc-download {
	display: flex;
	flex-direction: column;
	grid-gap: 0.75rem;
	margin: auto;
	align-items: center;
}

.invisible {
	position: fixed;
	top: 0;
	left: 0;
	visibility: hidden;
	pointer-events: none;
}