/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/*https://stackoverflow.com/a/45890842*/
button, input[type="submit"], input[type="reset"] {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}
/* FINISH CSS RESET */
:root {
	--primary-color: #fffefb;
	--primary-compl-color: #fff;
	--contrast-color: #3b1907;
	--accent-color: 217, 39, 70; /* 232, 93, 117; */
	--accent-compl-color: #ff7878;
	--accent2-color: #38369a;
	--accent3-color: #ffdc5e;

	--border-light: #c8c8c8;
	--border-medium: #a7a7a7;

	--main-text: #000;
	--sub-text: #000;
	--grayscale: #c8c8c8;
	--grayscale-2: #717171;

	--green: #258125;
	--red: rgb(179 0 31);
}

html {
	height: auto;

	font-family: "Roboto Slab", serif;

	background-color: var(--primary-color);
}

h1, h2, h3, h4, label {
	color: var(--main-text);
}

p, li {
	color: var(--sub-text);
}

input {
	font-family: inherit;
}

hr {
	border-style: solid;
	border-width: 0;
	border-top-width: 1px;
	min-width: 0;
	width: 100%;
}

button.btn-1 {
	padding: 18px 12px;
	box-sizing: border-box;

	border-radius: 4px;
	border-width: 1px;
	border-style: solid;
	border-color: var(--border-light);
}

button.btn-2 {
	padding: 10px;
	margin-left: 16px;

	border-radius: .2rem;
	border-style: solid;
	border-width: 1px;
	border-color: var(--main-text);
}

button.discard {
	border-color: #e54343;
	color: #e54343;
}

.details-btn.inactive {
	border-color: var(--border-light);
	color: var(--border-light);
}

.details-btn.discard {
	border-color: #e54343;
	color: #e54343;
}

.details-btn.delete {
	--btn-color: #e54343;

	border-color: var(--btn-color);
	background-color: var(--btn-color);
	color: #fff;
}

a.link-1 {
	text-decoration-color: transparent;

	transition-property: text-decoration-color;
	transition-duration: 100ms;
	transition-timing-function: cubic-bezier(.2, 0, .4, 0);
}

input.input-1 {
	padding: 14px;

	font-size: 14px;

	border-radius: 4px;
	border-width: 1px;
	border-style: solid;
	border-color: var(--border-light);
	color: var(--sub-text);
	background-color: var(--primary-compl-color);

	transition-property: border-color;
	transition-duration: 100ms;
	transition-timing-function: cubic-bezier(.2, 0, .4, 0);
}

input.input-1.invalid {
	border-color: #e54343;
}

input.input-2:not([type]),
input.input-2:is([type="password"], [type="text"]) {
	width: 100%;

	padding: 14px;

	outline: none;

	box-sizing: border-box;

	border-radius: 4px;
	border-style: solid;
	border-width: 1px;
	border-color: var(--border-light);
}

input.input-2.invalid {
	border-color: #e54343;
}

/**
 * PASSWORD INPUT WITH VISIBILITY TOGGLE BTN
 */
.password-inp-container {
	display: flex;
	flex-direction: row;
	align-items: center;

	padding: 0;
	margin-bottom: 20px;

	box-sizing: border-box;

	border-radius: .2rem;
	border-style: solid;
	border-width: 1px;
	border-color: var(--border-light);
	color: var(--sub-text);
	background-color: var(--primary-compl-color);
}

.password-inp-container > input {
	flex-grow: 1;

	min-width: 0;

	margin: 0;
	padding: 10px;

	outline: none;
	border: none;

	color: inherit;
	background-color: transparent;
}

.password-inp-container:has(> input.invalid) {
	border-color: #e54343;
}

.password-inp-container > .password-inp-toggle-visibility-btn {
	flex-basis: 20px;
	flex-grow: 0;
	flex-shrink: 0;

	height: 20px;

	margin: 0 12px;

	outline: none;
}

.password-inp-toggle-visibility-btn > svg {
	width: 100%;
	height: 100%;

	color: var(--grayscale-2);
	fill: currentColor;
}
/**
 * END
 */

.heavy {
	font-weight: 700;
}

@media (hover: hover) {
	.hover-1:focus,
	.hover-1:hover {
		outline-width: 3px;
		outline-style: solid;
		outline-color: #d2d2d23d;
	}

	.hover-2:focus,
	.hover-2:hover {
		outline-width: 3px;
		outline-style: solid;
		outline-color: rgba(var(--accent-color), .3);
	}

	.hover-3:focus,
	.hover-3:hover {
		border-color: color-mix(in srgb, var(--btn-color) 20%, transparent);

		outline-width: 3px;
		outline-style: solid;
		outline-color: color-mix(in srgb, var(--btn-color) 20%, transparent);
	}

	a.link-1:focus,
	a.link-1:hover {
		text-decoration-color: currentColor;
		text-decoration-line: underline;
		text-decoration-style: solid;
		text-decoration-thickness: 1px;
	}

	input.input-2:focus,
	input.input-2:hover {
		outline-width: 2px;
		outline-style: solid;

		outline-color: #d2d2d23d;
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--primary-color: #161616;
		--primary-compl-color: #272727;

		--border-light: #272727;
		--border-medium: #434343;

		--main-text: #fff;
		--sub-text: #dfdfdf;
		--grayscale: #9e9e9e;
		--grayscale-2: #9e9e9e;

		--green: #429b42;
		--red: #e53333;
	}
}
:root {
	--computed-topbar-height: 81px;
}

#topbar-container {
	position: sticky;
	top: 0;

	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;

	width: auto;
	min-width: 0;
	padding: 6px 20px;

	background-color: var(--primary-color);

	font-weight: 600;
	z-index: 99;
}

#topbar-container.scrolled {
	border-bottom-style: solid;
	border-bottom-width: 1px;
	border-bottom-color: var(--border-light);
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

#logo-redirect {
	margin-right: 20%;
}

#logo-redirect > img {
	width: auto;
	height: 34px;

	object-fit: cover;
}

#topbar-desktop-navig-container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;

	flex-grow: 1;
}

#topbar-container a {
	color: var(--sub-text);
	text-decoration: none;

	transition-property: color;
	transition-duration: 100ms;
	transition-timing-function: linear;
}

#topbar-container a:hover,
#topbar-container a:focus {
	color: var(--accent-compl-color);
}

#topbar-container a.active {
	color: rgb(var(--accent-color));
}

#topbar-mobile-component {
	display: none;

	color: var(--main-text);
}

#topbar-mobile-account-details {
	display: flex;
	flex-direction: column;
	align-items: flex-end;

	margin-right: 12px;

	font-size: .9em;
}

#topbar-mobile-account-details.noclass {
	display: none;
}

#topbar-mobile-account-uname {
	font-weight: 400;
	font-size: 14.4px;

	text-decoration: none;

	color: inherit;
}

#topbar-mobile-sidepanel-container {
	position: absolute;
	top: -6px;
	right: -20px;

	display: none;

	width: 100vw;
	height: 100vh;

	backdrop-filter: blur(5px);

	color: inherit;
}

#topbar-mobile-sidepanel-container.active {
	display: block;
}

#topbar-mobile-sidepanel-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;

	position: absolute;
	top: 0;
	right: 0;

	width: 230px;
	max-width: 230px;
	height: 100svh;

	padding: 10px 5px;

	box-sizing: border-box;

	border-left-style: solid;
	border-left-width: 1px;
	border-left-color: var(--border-light);
	background-color: var(--primary-color);

	color: inherit;
}

#topbar-mobile-close-btn {
	margin-left: auto;

	color: inherit;
}

#topbar-mobile-close-btn > svg {
	width: 26px;
	height: 26px;

	padding: 5px;

	color: inherit;
}

#topbar-mobile-close-btn > svg > g {
	stroke: currentColor;
}

#topbar-mobile-navig-container {
	display: flex;
	flex-direction: column;

	margin-top: 15px;
	padding-left: 5px;
}

#topbar-mobile-navig-container > a {
	display: flex;
	flex-direction: row;
	align-items: center;

	padding: 10px 0;
}

#topbar-mobile-navig-container > a > svg {
	width: 24px;
	height: 24px;

	padding-right: 5px;

	color: var(--main-text);
}

#topbar-mobile-navig-container > a > svg > g {
	stroke: currentColor;
}

@media (min-width: 640px) {
	#topbar-container {
		align-items: flex-end;

		padding: 15px 45px 30px;
		padding-right: 160px;
	}
}

@media (max-width: 640px) {
	#logo-redirect {
		margin-bottom: 10px;
		margin-right: 0;
	}

	#topbar-desktop-navig-container {
		display: none;
	}

	#topbar-mobile-component {
		position: relative;

		display: flex;
		flex-direction: row;
		align-items: center;

		margin-left: auto;
	}

	#topbar-mobile-hamburg-btn {
		color: inherit;
	}

	#topbar-mobile-hamburg-btn > svg {
		width: 28px;
		height: 28px;

		padding: 5px;

		object-fit: cover;

		color: inherit;
	}

	#topbar-mobile-hamburg-btn > svg > g {
		stroke: currentColor;
		color: inherit;
	}
}

@media (prefers-color-scheme: dark) {
	#topbar-container.scrolled {
		border-bottom-color: #232323;
		box-shadow: rgb(0 0 0 / 20%) 0px 8px 24px;
	}
}
.screen-overlay {
	position: fixed;
	top: 0;
	left: 0;

	width: 100%;
	height: 100%;

	pointer-events: none;

	z-index: 101;
}

.screen-overlay.hidden {
	display: none;
}

.screen-overlay > .notif-window {
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-end;

	position: absolute;
	bottom: 0;
	right: 0;

	padding-right: 20px;
	padding-bottom: 20px;

	overflow: hidden;
}

.notif-container {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;

	max-width: 80%;
	width: 340px;

	padding: 16px 24px;
	margin-top: 12px;

	pointer-events: auto;
	box-sizing: border-box;

	transform-origin: bottom right;
	transform: translateX(100%);

	border-radius: .4rem;
	border-width: 1px;

	color: black;
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
	background-color: white;

	transition-duration: 100ms;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-property: transform;
}

.notif-container.active {
	transform: translateX(0);
}

.notif-img-container {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;

	flex-basis: 42px;
	flex-grow: 0;
	flex-shrink: 0;

	height: 42px;

	border-radius: 21px;
}

.notif-container.success > .notif-img-container {
	background-color: #a4f2a485;
}

.notif-container.warning > .notif-img-container {
	background-color: #f2d2a485;
}

.notif-container.failed > .notif-img-container {
	background-color: #ffc2c285;
}

.notif-img-container > img {
	width: 70%;
	height: 70%;
}

.notif-content-container {
	margin-left: 24px;
	margin-right: 12px;
}

.notif-content-container > h3 {
	font-weight: 700;
	font-size: .9em;
}

.notif-container.success > .notif-content-container > h3 {
	color: #2f912bff;
}

.notif-container.warning > .notif-content-container > h3 {
	color: #df9f00;
}

.notif-container.failed > .notif-content-container > h3 {
	color: #d53333;
}

.notif-content-container > p {
	padding-top: 6px;

	font-size: .85em;

	color: #727272;
}

.notif-close-btn {
	margin-left: auto;
}

.notif-close-btn > img {
	width: 16px;
	height: 16px;
}
@keyframes single-bar-progress {
	from {
		transform: scaleX(0);
	}

	to {
		transform: scaleX(1);
	}
}

#container {
	position: fixed;

	display: flex;
	flex-direction: row;

	width: 100%;
	height: 100%;
}

#story-content-container {
	display: none;
}

#login-content-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;

	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 0;

	min-width: 0;

	padding: 20px;

	overflow-y: auto;

	z-index: 100;

	background-color: #fff;
	box-shadow: -2px 0px 4px 0px #2d2d2d;
}

#back-login {
	display: inline-flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;

	margin-top: 20px;
	margin-bottom: 8px;

	visibility: hidden;

	text-decoration-line: none;
	color: rgb(var(--accent-color));
}

#back-login > span {
	transform: translateX(8px);

	transition-property: transform;
	transition-duration: 100ms;
	transition-timing-function: cubic-bezier(.2, 0, .4, 0);
}

#back-login > img {
	width: 24px;
	height: 24px;

	margin-right: 4px;
}

#login-content-container.fp > #back-login {
	visibility: visible;
}

#header {
	margin-bottom: 60px;

	font-size: 36px;
	font-weight: 400;
}

#forget-password-form {
	display: none;
	flex-direction: column;

	width: 100%;
}

#login-content-container.fp > #forget-password-form {
	display: flex;
}

#login-form {
	display: flex;
	flex-direction: column;

	width: 100%;
}

#login-content-container.fp > #login-form {
	display: none;
}

#login-form label {
	margin-top: 25px;
}

#login-content-container input {
	padding: 14px;
}

#fp-email-inp {
	margin: 10px 0;
}

#email-inp, .password-inp-container {
	margin-top: 10px;
	margin-bottom: 10px;
}

#forget-password {
	display: inline-flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;

	margin-bottom: 20px;
	margin-left: auto;

	text-decoration-line: none;
	color: rgb(var(--accent-color));
}

#forget-password > span {
	transform: translateX(-8px);

	transition-property: transform;
	transition-duration: 100ms;
	transition-timing-function: cubic-bezier(.2, 0, .4, 0);
}

#forget-password > img {
	width: 24px;
	height: 24px;

	margin-left: 4px;
}

#fp-btn,
#signin-btn {
	margin-top: 10px;
	margin-bottom: 15px;

	font-size: 16px;

	color: white;
	border-width: 0;
	border-radius: 4px;
	background-color: rgb(var(--accent-color));
}

#signin-btn > p,
#fp-btn > p {
	display: inline-block;

	color: inherit;
	font-size: 16px;
}

#signin-btn.disabled > p,
#fp-btn.disabled > p {
	display: none;
}

#signin-btn.disabled > span.loader,
#fp-btn.disabled > span.loader {
	display: inline-block;
}

.loader {
	display: none;

	width: 16px;
	height: 16px;

	border-radius: 50%;
	border-top: 3px solid #FFF;
	border-right: 3px solid transparent;
	box-sizing: border-box;
	animation: rotation 1s linear infinite;
}

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

#create-account-txt {
	font-size: 14px;
}

#create-account-txt > a {
	color: rgb(var(--accent-color));
}


#account-divider {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;

	width: 100%;
	min-width: 0;

	margin: 15px 0;
	margin-top: auto;

	color: var(--border-medium);
}

#account-divider > hr {
	flex-grow: 1;
	flex-shrink: 1;
}

#account-divider > p {
	padding: 12px;

	color: var(--grayscale-2);
}

#login-with-google-btn-container {
	display: flex;
	flex-direction: row;
	justify-content: center;

	width: 100%;
}

@media (min-width: 1024px) {
	#story-content-container {
		display: block;
		position: relative;

		flex-grow: 1;
		flex-basis: 400px;

		min-width: 0;

		overflow-x: auto;
	}

	#story-overlay {
		position: absolute;

		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: flex-end;

		width: 100%;
		height: 100%;
	}

	#story-overlay-bar-container {
		display: flex;
		flex-direction: row;

		width: 20%;

		padding: 8px;
	}

	.story-overlay-bars {
		flex-grow: 1;
		flex-shrink: 1;

		height: 4px;

		margin: 0 4px;

		border-radius: 2px;
		background-color: rgba(181, 181, 181, .4);

		transition-property: background-color;
		transition-duration: 100ms;
		transition-timing-function: cubic-bezier(.2, 0, .4, 0);

		z-index: 99;

		overflow: hidden;
	}

	.story-overlay-bars::before {
		display: block;
		content: "";

		width: 100%;
		height: 100%;

		transform: scaleX(0);
		transform-origin: left center;

		background-color: rgba(181, 181, 181, 1);
	}

	.story-overlay-bars.active::before {
		transform: scaleX(1);
	}

	.story-overlay-bars.running::before {
		animation-name: single-bar-progress;
		animation-duration: 5s;
		animation-timing-function: linear;
		animation-fill-mode: forwards;
	}

	#story-cards-container {
		position: relative;

		display: flex;
		flex-direction: row;

		height: 100%;

		overflow-x: scroll;
		overflow-y: hidden;
		scroll-behavior: smooth;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}

	#story-cards-container::-webkit-scrollbar {
		height: 0;
	}

	#story-cards-container::-webkit-scrollbar-thumb {
		width: 0;
	}

	#story-cards-container::-webkit-scrollbar-track {
		width: 0;
	}

	.story-element-container {
		scroll-snap-align: center;

		flex-basis: 100%;
		flex-grow: 0;
		flex-shrink: 0;

		width: 100%;
		height: 100%;

		transition-property: background-color;
		transition-duration: 100ms;
		transition-timing-function: cubic-bezier(.4, 0, .2, 0);
	}

	.story-element-container > img {
		width: 100%;
		height: 100%;

		object-position: left top;
		object-fit: cover;
	}
}

@media (min-width: 460px) {
	#login-content-container {
		padding: 20px 100px;
	}

	#back-login {
		margin-top: 100px;
	}
}

@media (hover: hover) {
	#back-login:focus > span,
	#back-login:hover > span {
		transform: translateX(0);
	}

	#forget-password:focus > span,
	#forget-password:hover > span {
		transform: translateX(0);
	}

	#signin-btn:focus,
	#signin-btn:hover {
		outline-color: rgba(var(--accent-color), .1);
	}
}

@media (prefers-color-scheme: dark) {
	#login-content-container {
		background-color: var(--primary-color);
	}
}
