:root {
	--color-primary: #5c7cfa;
	--color-primary-dark: #4263eb;
	--color-primary-alpha: #5c7cfa50;

	--body-color: #495057;
	--body-bg: #f8f9fa;

	--border-color: #dee2e6;
}

body {
	max-width: 30rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 2rem;
	padding-right: 2rem;
	color: var(--body-color);
	background: var(--body-bg);
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	text-rendering: optimizelegibility;
	-webkit-font-smoothing: antialiased;
	background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url('https://rimages.coldsea.vip/') no-repeat ;
	background-size: cover;
}

/* img{
		all: initial;
		opacity: 0.2;
		display: block;
		float: left;
		margin-top: -10%;
		margin-left: -35%;
		width: 100%;
		height: 120vh;
		position: fixed;
		object-fit: fill; 
		pointer-events: none;
	  }
	  */
a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color .3s;
}

a:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

h1 {
	font-size: 5rem;
	font-weight: 300;
	text-align: center;
	text-shadow: #4263eb 2px 2px 10px;
}

main {
	background-color: rgba(2, 255, 213, 0.3);
	/* margin: 20px; */
	border-radius: 10px;
	border: #fff 1px solid;
	padding: 20px;
	width: 480px;
	margin: 10px;
	margin-left: 0;
	transform: translateX(-20px);
}

main[x-cloak] {
	opacity: 0;
}

main:not([x-cloak]) {
	opacity: 1;
	transition: opacity .3s;
}

input {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	padding: .5rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: .25rem;
	box-sizing: border-box;
	color: #33404d;
	line-height: inherit;
	font-size: 1rem;
	transition: border .3s, box-shadow .3s;
}

input:focus {
	box-shadow: 0 0 0 .25rem var(--color-primary-alpha);
	border-color: var(--color-primary);
	outline: 0;
}

details {
	margin: 1rem 0 2rem;
	border: 1px solid var(--border-color);
	border-radius: .25rem;
	transition: background .3s;
}

details[open] {
	background: #fff;
}

details summary {
	padding: .5rem 1rem;
	font-weight: 500;
	user-select: none;
	cursor: pointer;
	opacity: .8;
	outline: 0;
}

details div {
	padding: 1rem;
	border-top: 1px solid var(--border-color);
}

details small {
	margin: 0;
	font-size: .875rem;
	line-height: 2;
}

#sluga {
	position: fixed;
	width: 450px;
	margin: auto;
	float: left;
}

button {
	appearance: none;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-bottom: 10px;
	padding: .5rem .75rem;
	border: 1px solid var(--color-primary);
	border-radius: .25rem;
	background: var(--color-primary);
	color: #fff;
	font-size: 1rem;
	font-weight: 500;
	line-height: inherit;
	cursor: pointer;
	user-select: none;
	transition: border .3s, background .3s, ;
	margin-top: 100px;
}

button:hover {
	border-color: var(--color-primary-dark);
	background: var(--color-primary-dark);
}

button:focus {
	box-shadow: 0 0 0 .25rem var(--color-primary-alpha);
	border-color: var(--color-primary);
	outline: 0;
}

button:disabled {
	background: var(--color-primary);
	border-color: var(--color-primary);
	opacity: .6;
	cursor: not-allowed;
}

button.loading::before {
	content: '';
	display: inline-block;
	margin-right: .5rem;
	border: 2px solid #fff;
	border-top-color: transparent;
	border-bottom-color: transparent;
	border-radius: 50%;
	width: .75rem;
	height: .75rem;
	animation: rotate .5s linear infinite;
}

footer {
	padding: 1rem;
	border-top: 1px solid var(--border-color);
	text-align: center;
	opacity: .5;
}

footer i {
	font-style: normal;
	color: #ff8787;
}

.success,
.error {
	margin-bottom: 1rem;
	padding: .5rem 1rem;
	border-radius: .25rem;
	color: #fff;
	text-align: center;
	opacity: 1;
	transition: opacity .3s;
}

.success {
	border: 1px solid #12b886;
	background: #38d9a9;
}

.error {
	border: 1px solid #fa5252;
	background: #ff8787;
}

@keyframes rotate {
	100% {
		transform: rotate(360deg);
	}
}

@media screen and (max-width:768px) {
	body {
		background: none;
	}

	main {
		width: 100%;
		/* transform: none; */
	}

	#sluga {
		width: 80%;
	}

	button {
		margin-top: 130px;
	}
}