@font-face {
	font-family: 'Inter'; /* 400 */
	src: url('/static/fonts/Inter/Inter_Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}
@font-face {
	font-family: 'Inter'; /* 500 */
	src: url('/static/fonts/Inter/Inter_Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
}

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	max-width: 100%;
}
body {
	font-family: 'Inter', sans-serif;
	background-color: #fff;
	color: #050505;
	max-width: 100%;
}
.app {
	display: grid;
	width: 100%;
	height: 100%;
}
.wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 25px;
	padding: 0 25px;
}
.stories_wrap {
	position: relative;
	background-color: #f8f8f8;
	border-radius: 15px;
	overflow: hidden;
	margin: 25px 0;
}
.story_box {
	position: absolute;
	opacity: 0;
	transition: .3s;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: grid;
	align-items: end;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	transition: .3s;
}
.story_title {
	display: grid;
	align-items: end;
	padding: 35px 15px;
	font-size: 24px;
	font-weight: 500;
	color: #fff;
	background-image: linear-gradient(to top, rgb(0, 0, 0, .75), rgb(0, 0, 0, 0));
	background-image: linear-gradient(to top, rgba(38, 38, 38, .8) 0%, rgba(38, 38, 38, 0) 100%);
	min-height: 300px;
}
.story_box.current { opacity: 1 }
.progress_box {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 15px;
	display: flex;
	gap: 10px;
}
.progress_bar {
	position: relative;
	flex: 1;
	border-radius: 5px;
	height: 5px;
	background-color: rgb(255, 255, 255, .35);
}
.progress_bar i {
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 0;
	border-radius: 16px;
	background-color: #fff;
	transition: none;
}
.progress_bar.current i {
	width: 100%;
	transition: width 7s linear;
}
.progress_bar.viewed i { width: 100% }
.auth_wrap {
	display: grid;
	align-items: center;
	position: relative;
	overflow: hidden;
}
.ajax {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: none;
	justify-content: center;
	align-items: center;
	background-color: rgb(255, 255, 255, .75);
}
.ajax.show { display: grid }
.ajax img { max-width: 42px }
.error_box {
	position: absolute;
	right: 0;
	bottom: 25px;
	left: 0;
	margin: 0 auto;
	max-width: 300px;
	display: grid;
	gap: 10px;
	grid-template-columns: auto 1fr;
	align-items: center;
	border-radius: 15px;
	padding: 10px;
	background-color: #fc5b62;
	transition: .3s;
	transform: translateY(50px);
	transition-duration: .3s;
	opacity: 0;
	z-index: -1;
}
.error_box i {
	font-size: 32px;
	color: #fc5b62;
	filter: brightness(60%);
}
.error_box span {
	font-size: 14px;
	color: #fff;
}
.error_box.show {
	opacity: 1;
	z-index: auto;
	transform: translateY(0);
}
.auth_box {
	display: none;
	gap: 10px;
}
.auth_box.show { display: grid }
.auth_box h3 {
	text-align: center;
}
.auth_form {
	display: grid;
	gap: 5px;
	padding: 0 125px;
}
label {
	font-size: 14px;
	color: #304f6e;
}
input {
	display: grid;
	border-radius: 5px;
	outline: none;
	border: 1px solid #eee;
	background-color: #f8f8f8;
	padding: 10px;
	margin-bottom: 10px;
	transition: .3s;
}
input:focus {
	border-color: #007aff;
	background-color: #fff;
}
input.invalid { border-color: #fc5b62 }
.btn {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
	background-color: #fff;
	color: #007aff;
	border-radius: 5px;
	border: 1px solid #007aff;
	font-size: 16px;
	font-weight: 500;
	padding: 10px;
	outline: none;
	cursor: pointer;
	transition: .3s;
}
.btn.fill {
	background-color: #007aff;
	color: #fff;
}
.btn:hover { filter:  brightness(110%) }
.btn.empty {
	padding: 5px;
	border-color: transparent;
	text-align: center;
	font-weight: bold;
}