[hidden] {
	display: none !important;
}

[opacity] {
	opacity: 1;
}

[debug] * {
	border: 1px solid pink;
}

[unselectable] {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

::-moz-selection {
	/* Code for Firefox */
	background: rgba(var(--rgb-secondary), 0.7);
}

::selection {
	background: rgba(var(--rgb-secondary), 0.7);
}

* {
	/* outline: none; */
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

a {
	text-decoration: none;
	-moz-text-decoration: none;
	-moz-text-decoration: none;
	color: inherit;
}

/* i{
	color: #95979b;
} */

:root {
	color-scheme: only light;
	/* #edf2f7 */
	/* #1b252d; */
	/* #2f3738 */
	/* --primry:#111; */
	--font-color: #111;
	--body-color: #fff;
	/* #faf9f5 as a color for a light theme */
	--secondary: #b893fc;
	/* --secondary: red; */
	/* --secondary: #1ec981; */
	--primary: #111;
	--main-font-color: #111;
	--gorgeous-light: #f7f7f7;

	/* Relevant colors*/
	--green-light: rgb(223, 255, 217);
	--green-dark: rgb(79, 159, 58);
	--green-dark-rgb: 79, 159, 58;

	--red-light: #fbd4c5;
	--red-dark: rgb(217, 57, 57);
	--red-hover: #e7c6b9;
	--red-rgb: 234, 84, 85;
	--red-dark-rgb: 217, 57, 57;

	--yellow-rgb: 255, 210, 76;
	--yellow-dark: rgb(211, 172, 57);
	/* #ec6931 */

	/* font */
	--lora: 'Lora', serif;
	--popins: 'Poppins', sans-serif;

	/* rgb color */
	--rgb-primary: 17, 17, 17;
	--rgb-secondary: 30, 201, 129;
	--rgb-secondary: 184, 147, 252;

	/* hsl colors */
	--hdl-secondary: 261, 95%, 78%;

	/* Border color */
	--border-color: rgba(0, 0, 0, 0.09);
}

html {
	height: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--main-font-color);
	position: relative;
	height: 100%;
	font-family: 'Poppins', sans-serif;
	background: var(--body-color);
}

img {
	user-select: none;
	pointer-events: none;
}

/* ////// Logo */

.logo {
	position: relative;
	transition: 300ms;
}

.logo:hover {
	opacity: 0.65;
}

.logo img {
	height: 1.5625em;
}

.logo::after {
	content: 'Beta';
	position: absolute;
	bottom: -25%;
	left: calc(100% + 5px);
	font-family: inherit;
	font-weight: 600;
	font-size: 0.8em;
	text-transform: uppercase;
}

.big-funtenjer {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 40px;
}

.funtenjer {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

.min-funtenjer {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* /// INPUTS */

/* // checkbox */

/* /////////////////////////////////INPUT: CHECKBOX */

.cbx {
	position: relative;
	display: flex;
	-webkit-user-select: none;
	user-select: none;
	cursor: pointer;
	padding: 6px 8px;
	border-radius: 6px;
	overflow: hidden;
	transition: all 0.2s ease;
}

.cbx:hover {
	background: rgba(var(--rgb-primary), 0.06);
}

.cbx span {
	margin-top: 4px;
	float: left;
	vertical-align: middle;
	transform: translate3d(0, 0, 0);
	color: rgba(var(--rgb-primary), 0.6);
}

.cbx span a {
	font-weight: 500;
	color: var(--primary);
	text-decoration: underline;
}

.cbx span:first-child {
	margin-top: 3px;
	position: absolute;
	width: 18px;
	height: 18px;
	border-radius: 4px;
	transform: scale(1);
	border: 2px solid #c8ccd4;
	transition: all 0.2s ease;
}

.cbx span:first-child svg {
	position: absolute;
	top: 2px;
	left: 1px;
	fill: none;
	stroke: #fff;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 16px;
	stroke-dashoffset: 16px;
	transition: all 0.3s ease;
	transition-delay: 0.1s;
	transform: translate3d(0, 0, 0);
}

.cbx span:last-child {
	padding-left: 25px;
	line-height: 18px;
}

.cbx:hover span:first-child {
	border-color: var(--primary);
}

.inp-cbx:checked + .cbx span:first-child {
	background: var(--primary);
	border-color: var(--primary);
	animation: wave 0.4s ease;
}

.inp-cbx:checked + .cbx span:first-child svg {
	stroke-dashoffset: 0;
}

.inline-svg {
	position: absolute;
	width: 0;
	height: 0;
	pointer-events: none;
	user-select: none;
}

@-moz-keyframes wave {
	50% {
		transform: scale(0.9);
	}
}

@-webkit-keyframes wave {
	50% {
		transform: scale(0.9);
	}
}

@-o-keyframes wave {
	50% {
		transform: scale(0.9);
	}
}

@keyframes wave {
	50% {
		transform: scale(0.9);
	}
}

::-webkit-scrollbar {
	width: 6px;
}

::-webkit-scrollbar-track {
	background: #eee;
}

::-webkit-scrollbar-thumb {
	background: var(--primary);
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Firefox */
input[type='number'] {
	-moz-appearance: textfield;
}

input[type='text'],
input[type='password'],
input[type='email'],
input[type='number'] {
	font-family: inherit;
	border: 2px solid var(--body-color);
	background: var(--body-color);
	border-radius: 6px;
	width: 100%;
	height: 48px;
	padding: 0px 14px;
	-webkit-text-fill-color: var(--primary);
	outline: none;
	box-shadow: rgb(255 255 255) 0px 0px 0px 1000px inset;
}

input.negative {
	border: 2px solid transparent;
	background: rgba(var(--rgb-primary), 0.06);
	border-radius: 6px;
	width: 100%;
	height: 48px;
	padding: 0px 14px;
	-webkit-text-fill-color: var(--primary);
	outline: none;
	box-shadow: #f1f1f1 0px 0px 0px 1000px inset;
}

input::placeholder {
	opacity: 0.5;
}

input[type='password'] {
	padding-right: 40px;
}

input:focus {
	border: 2px solid var(--primary);
}

input:focus-visible {
	outline: none;
}

.input-holder small {
	display: none;
}

/* // Wrong input hendaler */
.input-holder.corect,
.input-holder.wrong {
	position: relative;
}

.input-holder.wrong input {
	padding-right: 35px;
	background: var(--body-color);
	box-shadow: none;
	border: 1px solid rgba(var(--rgb-secondary), 0.7);
	box-shadow: 0px 0px 0 3px rgba(var(--rgb-secondary), 0.3);
	transition: 300ms;
	/* animation: shake .2s; */
}

.input-holder.wrong::after {
	content: '\f06a';
	font-family: 'Font Awesome 6 Pro';
	font-weight: 900;
	position: absolute;
	bottom: 15px;
	right: 10px;
	color: rgba(var(--rgb-secondary), 0.9);
	/* animation: shake .2s; */
}

.input-holder.wrong small {
	display: block;
	position: absolute;
	font-size: 0.7em;
	margin-left: 2px;
	margin-top: 4px;
	color: var(--secondary);
}

@keyframes shake {
	0% {
		transform: translateX(0);
	}
	10% {
		transform: translateX(-5px);
	}
	40% {
		transform: translateX(5px);
	}
	50% {
		transform: translateX(-5px);
	}
	80% {
		transform: translateX(5px);
	}
	100% {
		transform: translateX(0);
	}
}

/* // Corect input hendlaer */

.input-holder.corect::after {
	content: '\f058';
	font-family: 'Font Awesome 6 Pro';
	font-weight: 900;
	position: absolute;
	bottom: 15px;
	right: 10px;
	color: var(--green-dark);
	animation: shake 0.2s;
}

.input-holder.corect input {
	border: transparent;
	background: var(--green-light);
	box-shadow: none;
}

/* /////////// Button ///////// */

button {
	font-family: 'Poppins', sans-serif;
}

button:disabled {
	cursor: not-allowed;
	filter: grayscale(1);
	opacity: 0.8;
}

.btn-primary {
	background: var(--secondary);
	display: inline-block;
	margin-top: 20px;
	padding: 7px 40px;
	color: var(--body-color);
	letter-spacing: 1px;
	border-radius: 5px;
	font-weight: bold;
	transition: 0.5s ease;
	border: 2px solid var(--secondary);
	cursor: pointer;
}

.btn-primary:hover {
	background: var(--body-color);
	color: var(--secondary);
	border-color: var(--secondary);
}

button.secondary-btn {
	border: none;
	border-radius: 6px;
	height: 48px;
	padding: 0 55px;
	cursor: pointer;
	font-size: 1em;
	font-weight: 600;
	color: var(--body-color);
	appearance: none;
	background-color: var(--primary);
	border: 2px solid transparent;
	outline: none;
	transition: 300ms;
}

button.secondary-btn:focus {
	border-color: var(--secondary);
}

button.secondary-btn:hover:enabled {
	background: var(--body-color);
	border-color: var(--primary);
	color: var(--primary);
}

button.secondary-btn[disabled] {
	cursor: not-allowed;
	background: rgba(var(--rgb-primary), 0.08);
	color: var(--primary);
}

.input-reverse {
	border: 2px solid transparent;
	background: rgba(var(--rgb-primary), 0.06);
	border-radius: 6px;
	width: 100%;
	height: 48px;
	padding: 0px 14px;
	font-size: 16px;
	-webkit-text-fill-color: var(--primary);
	/* border: 1px solid #111; */
	outline: none;
}

/* // google and facebook button */

.register-with-button {
	display: flex;
	justify-content: center;
	align-items: center;
	border: 2px solid var(--primary);
	background: var(--body-color);
	border-radius: 6px;
	width: 100%;
	height: 48px;
	outline: none;
	cursor: pointer;
	font-weight: 500;
	font-size: 0.9em;
	transition: 300ms;
	margin-bottom: 15px;
}

.register-with-button svg {
	margin-right: 10px;
}

.register-with-button:hover {
	background: var(--primary);
	color: var(--body-color);
}

.register-with-button:active {
	transform: translateY(2px);
}

/* // Loading button loader spinner */

body button.loading {
	background: var(--body-color);
	border: 2px solid var(--primary);
	color: var(--primary);
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: default;
	transition: 300ms;
}

button.loading .loading-button-loader {
	display: block;
}

.loading-button-loader {
	--size: 1em;
	display: none;
	width: var(--size);
	height: var(--size);
	border-radius: 50%;
	position: relative;
	margin-right: 0.5em;
	animation: rotate 1s linear infinite;
}
.loading-button-loader::before {
	content: '';
	box-sizing: border-box;
	position: absolute;
	inset: 0px;
	border-radius: 50%;
	border: 0.212em solid var(--primary);
	animation: prixClipFix 2s linear infinite;
}

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

@keyframes prixClipFix {
	0% {
		clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
	}
	25% {
		clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
	}
	50% {
		clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
	}
	75% {
		clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
	}
	100% {
		clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
	}
}

/* ////////// template ///////// */

aside {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 20px 30px;
	overflow: auto;
	background: var(--body-color);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	border-right: 1px solid rgba(0, 0, 0, 0.09);
}

aside .logo {
	font-size: 0.8rem;
	display: flex;
}

aside .logo img {
	margin: 0 auto;
}

aside .logo::after {
	left: 76%;
}

aside nav {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

aside nav ul {
	display: flex;
	flex-direction: column;
	list-style: none;
	padding: 0;
	margin: 0;
	margin-top: 20px;
}

aside nav ul > div {
	padding-top: 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.09);
}

aside nav .help {
	background: rgba(var(--rgb-primary), 0.06);
	padding: 20px 30px;
	margin: 0 -30px;
	margin-bottom: -20px;
	cursor: pointer;
	transition: 300ms;
	font-size: 0.8em;
}

aside nav .help:hover {
	background: rgba(var(--rgb-primary), 0.12);
}

aside nav .help i {
	color: rgba(var(--rgb-primary), 0.5);
	margin-right: 7px;
	font-size: 1em;
}

aside nav ul li {
	display: flex;
	align-items: center;
	font-weight: 500;
	padding: 10px 30px;
	cursor: pointer;
	color: rgba(var(--rgb-primary), 0.5);
	font-size: 1rem;
	transition: 300ms;
	border-radius: 10px;
	margin: 15px 0;
	border-bottom: 2px solid transparent;
}

/* disabled element */

aside nav ul li.disabled {
	--background: rgba(var(--rgb-primary), 0.03);
	--color: rgba(var(--rgb-primary), 0.5);
	position: relative;
	background: var(--background);
	color: var(--color);
	cursor: not-allowed;
	opacity: 0.6;
}

aside nav ul li.disabled::after {
	content: '\f023';
	font-weight: 900;
	font-family: 'Font Awesome 6 Pro';
	position: absolute;
	right: -10px;
	height: 30px;
	width: 30px;
	background: rgba(var(--rgb-primary), 0.2);
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
}

aside nav ul li.disabled:hover i,
aside nav ul li.disabled i {
	color: var(--color);
}

aside nav ul li.disabled:hover {
	background: var(--background);
	color: var(--color);
	border-color: rgba(var(--rgb-primary), 0.08);
	border-color: transparent;
}

aside nav ul li.active {
	background: rgba(var(--rgb-primary), 0.06);
	color: var(--primary);
}

aside nav ul li i {
	margin-right: 12px;
	color: var(--primary);
	color: rgba(var(--rgb-primary), 0.6);
}

aside nav ul li:hover {
	background: rgba(var(--rgb-primary), 0.06);
	color: var(--primary);
	border-color: rgba(var(--rgb-primary), 0.08);
}

aside nav ul li:hover i {
	color: var(--primary);
}

/* ////////ENDE ASIDE /////////// */

.page-grid {
	display: grid;
	grid-template: 1fr / 300px 1fr;
	height: 100%;
}

.page-grid main {
	--side-padding: 20px;
	padding: 20px var(--side-padding);
	overflow: auto;
}

.access-warning {
	position: relative;
	background-color: rgba(var(--yellow-rgb), 0.3);
	margin: calc(var(--side-padding) * -1);
	margin-bottom: 20px;
	margin-top: -20px;
	padding: 20px 20px;
	font-size: 0.9em;
}

.access-warning i {
	color: var(--yellow-dark);
	font-size: 1em;
}

.access-warning a {
	font-weight: 500;
}

.access-warning a:hover {
	text-decoration: underline;
}

.explanation .header {
	position: relative;
	display: flex;
	align-items: center;
	background-color: rgba(var(--yellow-rgb), 0.3);
	padding: 1em;
	margin-bottom: 1em;
}

.page-grid main header {
	position: relative;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	padding: 0 30px;
}

.page-grid main header .notifications {
	position: relative;
	margin-right: 20px;
	cursor: pointer;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: 300ms;
	font-size: 1rem;
}

.page-grid main header .notifications.active {
	background: rgba(var(--rgb-primary), 0.06);
}

.page-grid main header .notifications .circle {
	position: absolute;
	top: 0.25em;
	right: 0.25em;
	height: 0.4375em;
	width: 0.4375em;
	border-radius: 50%;
	box-sizing: content-box;
	background: var(--secondary);
	color: var(--body-color);
	border: 2px solid var(--body-color);
}

/* .page-grid main header .notifications.active .circle{
	display: none;
} */

.page-grid main header .notifications i {
	color: rgba(var(--rgb-primary), 0.6);
}

/* // Notifications  feed*/

.notification-nav {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	background: var(--body-color);
	box-shadow: 0px 10px 50px rgb(0 0 0 / 10%);
	z-index: 10;
	border-radius: 6px;
	max-width: 400px;
	width: 100%;
	animation: fadeIn 300ms;
}

.notification-nav::after {
	content: '';
	position: absolute;
	top: -6px;
	left: 45px;
	width: 0;
	height: 0;
	-webkit-transform: translateX(-50%);
	-ms-transform: translateX(-50%);
	transform: translateX(-50%);
	border-right: 6px solid transparent;
	border-bottom: 6px solid #fff;
	border-left: 6px solid transparent;
}

.notification-nav .header {
	height: 1.875em;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #eee;
	padding: 1.25em;
}

.notification-nav .header h3 {
	margin: 0;
	font-size: 0.9em;
	font-weight: 500;
}

.notification-nav .header .read {
	position: relative;
	cursor: pointer;
}

.notification-nav .header .read i {
	color: var(--secondary);
}

.notification-nav .header .read:active i {
	color: var(--green-dark);
}

.notification-nav .header .read .flag {
	--color: #ddd;
	padding: 5px 10px;
	background: var(--color);
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: calc(100% + 10px);
	animation: fadeIn 300ms;
	display: none;
	border-radius: 5px;
}

.notification-nav .header .read .flag span {
	font-size: 0.7em;
	white-space: nowrap;
	opacity: 0.9;
}

.notification-nav .read .flag::before {
	content: '';
	position: absolute;
	top: 50%;
	left: -9px;
	width: 0;
	height: 0;
	transform: translateY(-50%) rotate(-90deg);
	border-right: 6px solid transparent;
	border-bottom: 6px solid var(--color);
	border-left: 6px solid transparent;
}

.notification-nav .read:hover .flag {
	display: block;
}

/* // types of notificatins */

.new-book {
	display: grid;
	align-items: flex-start;
	padding: 0.9em 1.25em;
	grid-template: 1fr / 33px 1fr;
	font-size: 0.8rem;
	border-radius: 0.3125em;
	border: 1px solid transparent;
	border-bottom-color: #eee;
	position: relative;
}

.new-book.seen::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(var(--rgb-primary), 0.06);
}

.new-book:last-child {
	border: none;
}

.new-book .img-holder {
	position: relative;
}

.new-book .img-holder img {
	height: 50px;
	width: 33px;
	border-radius: 5px;
}

.new-book .img-holder .flag {
	position: absolute;
	right: -6px;
	bottom: -6px;
	height: 17px;
	width: 17px;
	font-size: 0.6em;
	background: var(--secondary);
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	border: 2px solid #fff;
	box-sizing: content-box;
}

.new-book .content {
	padding-left: 20px;
}

.new-book .content .content-header {
	display: flex;
	align-items: center;
	margin-bottom: 5px;
}

.new-book .content .content-header .title {
	font-weight: 600;
}

.new-book .content .content-header .dot {
	height: 3px;
	width: 3px;
	margin: 0 5px;
	border-radius: 50%;
	background: rgba(var(--rgb-primary), 0.6);
}

.new-book .content .content-header .time {
	font-size: 0.8em;
	color: rgba(var(--rgb-primary), 0.7);
}

.new-book .content .content-body p {
	margin: 0;
	font-size: 0.9em;
	color: rgba(var(--rgb-primary), 0.9);
}

/* // End */

.page-grid main header .notification-nav .header {
	height: 30px;
	border-bottom: 1px solid #eee;
}

.page-grid main header .notification-nav .body {
	overflow: auto;
	min-height: 350px;
	height: 350px;
}

.page-grid main header .notification-nav .body .no-content {
	display: none;
	flex-direction: column;
	align-items: center;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.page-grid main header .notification-nav .body .no-content i {
	font-size: 5em;
	color: rgba(var(--rgb-secondary), 0.4);
}

.page-grid main header .notification-nav .body .no-content span {
	font-size: 0.9em;
	color: rgba(var(--rgb-primary), 0.5);
	margin-top: 10px;
}

.page-grid main header .search {
	position: relative;
	width: 800px;
	max-width: 100%;
	margin-left: auto;
	margin-bottom: 0;
	margin-right: 20px;
}

.page-grid main header .search input[placeholder] {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: inherit;
}

/* // Ubaci animacijuu */
.page-grid main header .search .suggested-books {
	position: absolute;
	background: var(--body-color);
	z-index: 10;
	width: 100%;
	padding: 20px 10px;
	padding-bottom: 0;
	border-radius: 6px;
	box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.06);
	top: calc(100% + 5px);
	border: 1px solid #eee;
	display: none;
	box-shadow: 0px 10px 50px rgb(0 0 0 / 10%);
}

/* // Book Card */

.book-card {
	display: grid;
	padding: 5px;
	grid-template: 1fr / 60px 1fr;
	font-size: 0.8rem;
	border-radius: 5px;
	border: 1px solid transparent;
	border-bottom-color: #eee;
	margin-bottom: 10px;
}

.book-card:last-child {
	border: none;
}

.book-card:hover {
	background: rgba(var(--rgb-primary), 0.06);
}

.book-card.focus {
	background: rgba(var(--rgb-primary), 0.06);
}

.book-card .book-img {
	position: relative;
}

.book-card .book-img.audio::after {
	content: '\f58f';
	font-family: 'Font Awesome 6 Pro';
	font-weight: bold;
	font-size: 12px;
	position: absolute;
	top: 5px;
	right: 15px;
	padding: 5px;
	color: var(--body-color);
	background: var(--secondary);
	border-radius: 50%;
}

.book-card .book-img img {
	height: 50px;
	width: 33px;
	border-radius: 5px;
}

.book-card .other .info {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.book-card .other .info .author {
	font-weight: 300;
	color: rgba(var(--rgb-primary), 0.6);
	font-size: 0.8rem;
}

.page-grid main header .search i {
	font-size: 0.8rem;
	position: absolute;
	top: 50%;
	right: 2%;
	transform: translate(-50%, -50%);
	background: #f1f1f1;
}

.profile {
	position: relative;
	margin-left: auto;
	display: flex;
	align-items: center;
}

/* in explorer mode */

.explorer-buttons {
	display: flex;
}

.explorer-buttons a {
	font-size: 0.9em;
	border-radius: 6px;
	padding: 7px 20px;
	font-weight: 700;
	border: 2px solid transparent;
	transition: 500ms;
}

.profile .login-button {
	margin-right: 10px;
	width: max-content;
	border-color: var(--primary);
}

.profile .login-button:hover {
	color: var(--body-color);
	background: rgba(var(--rgb-primary), 1);
}

.profile .register-button {
	color: var(--body-color);
	background: rgba(var(--rgb-primary), 1);
	box-shadow: 0 16px 40px rgb(0 0 0 / 12%);
}

.register-button:hover {
	background: var(--body-color);
	color: var(--primary);
	border-color: var(--priamry);
}

/* // END */

.profile:hover .nav {
	display: block;
}

.profile .img-holder {
	position: relative;
}

.profile .nav {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	transform: translateX(-80%);
	width: 270px;
	padding: 0.9375em 0;
	background: var(--body-color);
	box-shadow: 0px 10px 50px rgb(0 0 0 / 10%);
	z-index: 20;
	border-radius: 0.375em;
	display: none;
	animation: fadeIn 300ms;
}

.profile .nav::after {
	content: '';
	top: -20px;
	right: 0;
	left: 0;
	position: absolute;
	padding: 20px;
}

.profile .nav::before {
	content: '';
	position: absolute;
	top: -6px;
	left: 80%;
	width: 0;
	height: 0;
	transform: translateX(-50%);
	border-right: 6px solid transparent;
	border-bottom: 6px solid #fff;
	border-left: 6px solid transparent;
}

.profile .row {
	padding: 0.5em 2em;
	display: block;
	opacity: 0.8;
	margin: 0.3125em 0;
	font-size: 0.9em;
}

.profile .row i {
	margin-right: 0.3125em;
}

.profile .row:hover {
	background: rgba(var(--rgb-primary), 0.06);
	opacity: 1;
}

.profile hr {
	display: block;
	height: 0.0625em;
	border: 0;
	background: #e7e7e9;
	margin: 0 2em;
}

.profile img {
	display: inline-block;
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 50%;
	box-sizing: content-box;
	border: 2px solid rgba(0, 0, 0, 0.09);
	position: relative;
	object-fit: cover;
}

.profile span {
	margin-left: 10px;
	font-size: 0.9rem;
}

.profile .more i {
	margin-left: 10px;
	color: #141212;
}

/* / Book  */
.book {
	max-width: 10em;
}

.book .stars {
	font-size: 0.9em;
	margin-bottom: 10px;
}

main .banner .img-holder .cover,
.book .cover {
	position: relative;
}

.book .cover img {
	/* background: #f1f1f1; */
	animation: gradient 5s ease-in-out infinite;
	background: linear-gradient(270deg, #f1f1f1, #d3cbcb, #f1f1f1);
	background-size: 200% 200%;
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.book .cover.read img {
	border: 3px solid var(--primary);
	border-radius: 5px;
	position: relative;
}

.book .cover.read::before {
	content: '\f00c';
	position: absolute;
	font-family: 'Font Awesome 6 Pro';
	font-weight: 900;
	font-size: 0.8em;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #fff;
	top: -10px;
	right: calc(100% - 20px);
	--size: 1.7625em;
	height: var(--size);
	width: var(--size);
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--primary);
	z-index: 10;
}

.book .cover img {
	display: block;
	width: 10em;
	height: 15em;
	position: relative;
	border-radius: 0 2px 2px 0;
	/* box-shadow: 0px 8px 20px 1px rgba(6, 35, 64, 0.3); */
	box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.06);
	object-fit: cover;
	transition: filter 0.2s;
}

.book .cover:hover img {
	filter: brightness(1.05);
}

.book .cover .audio-tag {
	position: absolute;
	top: 5px;
	right: -10px;
	font-size: 0.9em;
	padding: 10px 5px 20px;
	color: var(--body-color);
	background: var(--secondary);
	border-radius: 2px;
	clip-path: polygon(0 0, 100% 1%, 100% 100%, 51% 79%, 0 100%);
}

main .banner .img-holder .cover::after,
.book .cover::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	background: linear-gradient(
		to right,
		rgba(0, 0, 0, 0.1) 0%,
		rgba(211, 211, 211, 0.1) 5%,
		rgba(255, 255, 255, 0.15) 5%,
		rgba(255, 255, 255, 0.1) 9%,
		rgba(0, 0, 0, 0.01) 100%
	);
}

.book .title {
	font-family: var(--lora);
	font-size: 1em;
	line-height: 1.3;
	display: block;
	margin-bottom: 5px;
	margin-top: 15px;
	cursor: pointer;
	font-weight: 600;
}

.book .author {
	font-size: 0.8125em;
	margin-bottom: 5px;
	color: #a5a4aa;
}

.book .progress {
	display: flex;
	align-items: center;
	margin-top: auto;
}

.book .progress span {
	margin-left: 0.625em;
	font-size: 0.8125em;
}

.book .progress progress {
	-webkit-appearance: none;
	border: none;
	height: 5px;
}

.book .progress progress::-webkit-progress-bar {
	background: #ddd;
}

.book .progress progress::-webkit-progress-value {
	background: var(--secondary);
}

.book-stack .cover::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
}

.book-price {
	font-family: var(--popins);
	font-size: 1.1em;
	color: var(--star-background);
	font-weight: 600;
	margin-top: -5px;
}

/* Rate book */
.rate-book-holder {
	position: absolute;
	display: none;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(var(--rgb-primary), 0.3);
	z-index: 100;
}

.rate-book {
	position: relative;
	margin: auto;
	width: 100%;
	max-width: 400px;
	background: #fff;
	box-shadow: 0px 10px 50px rgb(0 0 0 / 10%);
	z-index: 2;
	border-radius: 6px;
}

.rate-book .book-card {
	margin: 30px 20px 10px 20px;
	border: none;
}

.rate-book .book-card:hover {
	background: none;
}

.rate-book .close {
	position: absolute;
	display: flex;
	top: 7px;
	right: 7px;
	font-size: 1em;
	cursor: pointer;
	height: 25px;
	width: 25px;
	border-radius: 50%;
	translate: 300ms;
}

.rate-book .close i {
	margin: auto;
}

.rate-book .close:hover {
	background: rgba(var(--rgb-primary), 0.06);
}

.rate-book .stars-holder {
	display: flex;
	padding: 20px 50px;
	justify-content: space-between;
	background: rgba(var(--rgb-primary), 0.06);
}

.rate-book .stars-holder .star {
	font-size: 1.2em;
	cursor: pointer;
	color: rgba(var(--rgb-primary), 0.2);
}

.rate-book .stars-holder .star.active i {
	color: var(--star-background);
	transition: 300ms;
}

.rate-book .stars-holder .star.chosen {
	animation: rotate 1s;
}

/* // Notifications */
.notification-success {
	position: absolute;
	display: none;
	align-items: center;
	height: 80px;
	bottom: 10px;
	left: 20px;
	right: 20px;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	animation: fadeIn 0.3s ease-in-out;
}

.notification-success .ico-holder {
	display: flex;
	background: var(--green-light);
	color: var(--green-dark);
	height: 100%;
	width: 50px;
}

.notification-success .ico-holder i {
	margin: auto;
}

.notification-success .info {
	margin-left: 20px;
}

.notification-success .info h3 {
	margin: 0;
}

.notification-success span {
	font-size: 0.9em;
	opacity: 0.8;
}

/* ///STARS////// */

:root {
	--star-size: 15px;
	--star-color: rgba(var(--rgb-primary), 0.1);
	--star-background: #ffaf00;
}

.stars {
	--percent: calc(var(--rating) / 5 * 100%);
	display: inline-block;
	font-size: var(--star-size);
	font-family: Times;
}
.stars::before {
	font-family: 'Font Awesome 6 Pro';
	content: '\f005 \f005 \f005 \f005 \f005';
	font-weight: 900;
	letter-spacing: 3px;
	background: linear-gradient(90deg, var(--star-background) var(--percent), var(--star-color) var(--percent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.stars span {
	font-family: var(--popins);
	font-size: 0.8em;
	margin-left: 5px;
}

/* ///END////// */

/* // progress bar for Firefox */

::-moz-progress-bar {
	background-color: var(--secondary);
}

.simple-hover {
	--size: 0;
	width: var(--size);
	height: var(--size);
	display: flex;
	border-radius: 50%;
	transition: background 0.5s ease;
	cursor: pointer;
}

.simple-hover i {
	margin: auto;
}

.simple-hover:hover {
	background: #f6f7fa;
}

.simple-hover:active {
	transform: scale(0.96);
}

category {
	padding: 2px 10px;
	margin-right: 5px;
	display: inline-block;
	margin-top: 10px;
	border-radius: 10px;
	font-size: 0.8rem;
	background: var(--gorgeous-light);

	-webkit-user-select: none; /* Safari */
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* IE10+/Edge */
	user-select: none; /* Standard */
}

category i {
	margin-left: 5px;
}

/* ////////////////SCROLL BAR/////////////////////// */

/* width */
::-webkit-scrollbar {
	width: 7px;
	height: 7px;
}

/* Track */
::-webkit-scrollbar-track {
	background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
	background: rgb(204, 203, 203);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
	background: #999;
}

* {
	scrollbar-color: #999 #f1f1f1;
	scrollbar-width: thin;
}

/* ///////progress???????????? */

progress {
	width: 100%;
	-webkit-appearance: none;
	border: none;
	height: 5px;
	/* transform: translateY(5px); */
}

progress::-webkit-progress-bar {
	background: #eee;
}

progress::-webkit-progress-value {
	background: var(--secondary);
}

/* // Highlighter som fixes */

.fa-highlighter {
	font-weight: 400;
}

/* ///sound waves ico */

.sound-waves {
	display: flex;
	align-items: center;
}

.sound-waves div {
	background: var(--secondary);
	width: 2px;
	animation: 0s onlyScale infinite;
}

.sound-waves div:not(:last-child) {
	margin-right: 2px;
}

.sound-waves div:nth-child(5),
.sound-waves div:nth-child(1) {
	height: 6px;
}

.sound-waves div:nth-child(4),
.sound-waves div:nth-child(2) {
	height: 12px;
	animation-duration: 3s;
}

.sound-waves div:nth-child(3) {
	height: 18px;
	animation-duration: 3.5s;
}

/* ALLL ANIMATION */

@keyframes rotate-dance {
	50% {
		transform: rotate(45deg);
	}

	100% {
		transform: rotate(-45deg);
	}
}

@keyframes itemLoading {
	from {
		background: #f1f1f1;
		opacity: 0;
	}
	to {
		background: transparent;
		opacity: 1;
	}
}

@keyframes bounceIn {
	from,
	20%,
	40%,
	60%,
	80%,
	to {
		-webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
		animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
	}

	0% {
		opacity: 0;
		-webkit-transform: scale3d(0.3, 0.3, 0.3);
		transform: scale3d(0.3, 0.3, 0.3);
	}

	20% {
		-webkit-transform: scale3d(1.1, 1.1, 1.1);
		transform: scale3d(1.1, 1.1, 1.1);
	}

	40% {
		-webkit-transform: scale3d(0.9, 0.9, 0.9);
		transform: scale3d(0.9, 0.9, 0.9);
	}

	60% {
		opacity: 1;
		-webkit-transform: scale3d(1.03, 1.03, 1.03);
		transform: scale3d(1.03, 1.03, 1.03);
	}

	80% {
		-webkit-transform: scale3d(0.97, 0.97, 0.97);
		transform: scale3d(0.97, 0.97, 0.97);
	}

	to {
		opacity: 1;
		-webkit-transform: scale3d(1, 1, 1);
		transform: scale3d(1, 1, 1);
	}
}

@keyframes bookApear {
	0% {
		opacity: 0;
		transform: scale(0.5);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes onlyScale {
	0% {
		transfom: scaleY(1);
	}
	50% {
		transform: scaleY(0.5);
	}

	100% {
		transform: scaleY(1);
	}
}

@keyframes putZindex {
	to {
		z-index: -40;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		-webkit-transform: translate3d(0, 100%, 0);
		transform: translate3d(0, 100%, 0);
	}

	to {
		opacity: 1;
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}
}

@keyframes fadeOutUp {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
		-webkit-transform: translate3d(0, -100%, 0);
		transform: translate3d(0, -100%, 0);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fadeOut {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

@keyframes slideInUp {
	from {
		-webkit-transform: translate3d(0, 150%, 0);
		transform: translate3d(0, 150%, 0);
		visibility: visible;
	}

	to {
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}
}

@keyframes slideInLeft {
	from {
		-webkit-transform: translate3d(-150%, 0, 0);
		transform: translate3d(-150%, 0, 0);
		visibility: visible;
	}

	to {
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}
}

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

.logo .small {
	display: none;
}

@media screen and (max-width: 1450px) {
	.page-grid {
		grid-template: 1fr / 60px 1fr;
	}

	aside {
		padding: 0;
	}

	aside .logo img,
	aside .logo::after,
	aside nav ul li span,
	aside nav .help {
		display: none;
	}

	.logo .small {
		display: block;
		margin-top: 10px;
	}

	aside nav ul {
		height: unset;
		display: flex;
	}

	aside nav ul li {
		border-radius: 0;
		width: 100%;
		padding: 0;
		margin: 0;
		width: 100%;
		height: 60px;
		display: flex;
		border-bottom: none;
	}

	aside nav ul li i {
		margin: auto;
	}

	aside nav ul li.disabled::after {
		display: none;
	}
}

/* // screeen size not supported */

.no-support {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	background: white;
	display: flex;
	padding: 40px;
	display: none;
}

.no-support .content {
	margin: auto;
}

.no-support .content .back {
	background: rgba(var(--rgb-primary), 0.06);
	position: absolute;
	top: 40px;
	left: 40px;
	display: flex;
	width: 50px;
	height: 40px;
	transition: 300ms;
	margin-bottom: auto;
}

.no-support .content .back:hover {
	background: var(--primary);
	color: var(--body-color);
}

.no-support .content .back i {
	margin: auto;
	transition: 300ms transform;
}

.no-support .content .back:hover i {
	transform: translateX(-5px);
}

.no-support h2 {
	font-family: var(--lora);
	font-size: 2em;
}

.no-support .devices-holder {
	--color: rgba(var(--rgb-secondary), 0.7);
	width: 100%;
	display: flex;
	/* justify-content: space-between; */
	justify-content: center;
	align-items: center;
	padding: 20px;
}

.no-support .devices-holder > i {
	color: rgba(var(--rgb-primary), 0.5);
	font-size: 2em;
	display: none;
}

.no-support .laptop {
	width: 150px;
}

.no-support .laptop .screen {
	width: 100%;
	height: 100px;
	border: 5px solid var(--color);
	display: flex;
	border-radius: 10px;
}

.no-support .laptop .screen i {
	margin: auto;
	font-size: 2em;
	color: var(--secondary);
}

.no-support .laptop .keyboard {
	height: 10px;
	background: var(--color);
	margin-top: 5px;
	margin: 5px -10px;
	border-radius: 10px;
}

.no-support .devices-holder .mobile {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-left: 30px;
	/* margin-top: -10px; */
}

.no-support .devices-holder .mobile i:first-child {
	font-size: 7em;
	color: var(--secondary);
}

.no-support .devices-holder .mobile i:last-child {
	position: absolute;
	font-size: 1.5em;
	margin-bottom: 10px;
	color: #fff;
}

/* // More icon */

.more-options {
	height: 30px;
	width: 30px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	font-size: 0.8rem;
	transition: 0.5s ease;
	border: 2px solid transparent;
}

.more-options.active,
.more-options:hover {
	background: #f6f7fa;
}

@media screen and (max-width: 1200px) {
	.no-support {
		display: flex;
	}
}

@media screen and (max-width: 900px) {
	*::-webkit-scrollbar {
		display: none;
	}

	* {
		-ms-overflow-style: none;
		scrollbar-width: none;
	}

	.page-grid {
		grid-template: 1fr 60px / auto;
	}

	.page-grid main {
		--side-padding: 10px;
	}

	main {
		grid-column-start: 1;
		grid-row-start: 1;
	}

	.logo .small {
		display: none;
	}

	aside nav {
		border-top: 1px solid #eee;
		overflow: hidden;
	}

	aside nav ul {
		flex-direction: row;
		margin: 0;
	}

	aside nav ul li.active i {
		font-weight: bold;
		color: var(--primary);
	}

	aside nav ul > div {
		display: flex;
		padding: 0;
		border: none;
		flex: 1;
	}

	aside nav ul a {
		flex: 1;
	}

	.page-grid main header {
		flex-wrap: wrap;
		padding: 0;
	}

	.page-grid main header .profile {
		order: 0;
		margin: 0;
		margin-right: auto;
		position: unset;
	}

	.page-grid main header .profile .img-holder {
		position: unset;
	}

	.page-grid main header .profile .nav {
		position: absolute;
		top: 54px;
		left: 0;
		right: 0;
		transform: translateX(0);
		width: unset;
		font-size: 1.05rem;
	}

	.page-grid main header .profile .nav::before {
		display: none;
	}

	.page-grid main header .notifications {
		order: 1;
		margin: 0;
	}

	.page-grid main header .search {
		order: 2;
		margin: 0;
		margin-top: 10px;
		width: 100%;
	}

	.notification-nav {
		max-width: unset;
		font-size: 1rem;
		top: 53px;
	}

	.notification-nav::after {
		display: none;
	}

	.notification-nav .header .read .flag {
		display: none;
	}
}

/* // for now */

.discount-popup {
	position: fixed;
	bottom: 1rem;
	right: 1rem;
	background: #fff;
	border-radius: 0.325rem;
	box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
	z-index: 99;
	max-width: 500px;
	width: 100%;
	border-top: 5px solid var(--secondary);

	transform: translateX(110%);
	opacity: 0;
	z-index: -2;
	transition: 500ms;
}

.discount-popup.show {
	transform: translateX(0);
	opacity: 1;
	z-index: 999;
}

.discount-popup .header {
	position: relative;
	display: flex;
	padding: 1rem 2rem;
	padding-right: 4.5rem;
}

.discount-popup .header .close {
	--size: 2rem;
	position: absolute;
	right: 20px;
	width: var(--size);
	height: var(--size);
	border-radius: 50%;
	display: flex;
	transition: 300ms;
	cursor: pointer;
}

.discount-popup .header .close:hover {
	background: rgba(var(--rgb-primary), 0.06);
}

.discount-popup .header .close:active {
	transform: scale(0.98);
}

.discount-popup .header .close i {
	margin: auto;
}

.discount-popup .header .logo-holder {
	display: flex;
	border-right: 2px dashed var(--border-color);
	padding: 1rem 1rem 1rem 0;
	margin-right: 2rem;
}

.discount-popup .header .logo-holder img {
	width: 3rem;
	margin: auto;
}

.discount-popup .header .more-info {
	display: flex;
	flex-direction: column;
}

.discount-popup .header .more-info h3 {
	margin: 0;
	margin-bottom: 5px;
}

.discount-popup .header .more-info p {
	margin: auto;
	font-weight: 500;
}

.discount-popup .header .more-info b {
	font-size: 1.1rem;
}

.discount-popup .body {
	padding: 0 1rem;
}

.discount-popup .body .button-holder {
	border-top: 2px dashed var(--border-color);
	padding: 0.7rem 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.discount-popup .body .button-holder a {
	background: var(--primary);
	color: var(--body-color);
	font-weight: 600;
	padding: 0.4rem 2rem;
	border-radius: 6px;
}

.discount-popup .body .button-holder span {
	color: rgba(var(--rgb-primary), 0.5);
	font-size: 0.9rem;
	padding: 1px 5px;
}

@media screen and (max-width: 800px) {
	.discount-popup {
		bottom: 0;
		left: 0;
		right: 0;
	}
	.discount-popup .body .button-holder a {
		padding: 0.7rem 2rem;
	}
}

@media screen and (max-width: 400px) {
	.discount-popup .header {
		padding: 20px;
		padding-right: 2.5rem;
	}

	.discount-popup .header .logo-holder {
		border-right: none;
		padding: 0;
		margin-right: 2rem;
	}

	.discount-popup .header .logo-holder img {
		width: 2.5rem;
	}

	.discount-popup .body .button-holder a {
		width: 100%;
		text-align: center;
	}

	.discount-popup .body .button-holder span {
		display: none;
	}
}

:root {
	--star-background: #c6c6d0;
	--font-color: #111;
	--page-color: #fff;
	--font: 'Poppins', sans-serif;
	--primary: #111;

	--light-theme-background:var(--body-color);;
	--light-theme-color:#111;

	--dark-theme-background: #242228;
	--dark-theme-color:#E9ECF1;

	--tan-theme-background: #fbf3e6;
	--tan-theme-color: #4d1d0c;
}

/* *{
	overflow: visible !important;
} */

body {
	font-family: var(--font);
	touch-action: none !important;
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
}

header.mobile-show{
	transform: translateY(0);
}

header .funtenjer {
	display: flex;
	align-items: center;
	height: 72px;
	border-bottom: 1px solid #ddd;
	color: #333;
	justify-content: space-between;
	padding: 0 20px;
}

header .title{
	overflow: hidden;
}

header .title a{
	display: flex;
	font-family: var(--lora);
	align-items: flex-end;
	width: 100%;
	overflow: hidden;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

header .title span{
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;

}

header .title .back {
	margin-right: 0.625em;
}

header .tools-bar {
	height: 100%;
	display: flex;
	align-items: center;
}

header .tools-bar .ico-holder{
	margin-left: 0.3em;
	cursor: pointer;
	padding: 0.425em;
	border-radius: 50%;
}

header .tools-bar .ico-holder.active{
	background: rgba(var(--rgb-primary), .06);
}

/* // price for individual book */

.cart-button{
	--height: 50px;
	display: flex;
	padding: 7px 20px 7px 7px;
	height: var(--height);
	border-radius: .5em;
	background: rgba(var(--body-color));
	/* box-shadow: rgb(0 0 0 / 8%) 0px 8px 28px; */
	border: 2px solid var(--secondary);
	transform: scale(1);
	transition: 300ms;
}

.cart-button:hover .holder-ico i:first-child{
	opacity: 1;
}

.cart-button:hover .holder-ico i:last-child{
	opacity: 0;
}

.cart-button:hover{
	transform: scale(1.03);
}

.cart-button:active{
	transform: scale(0.97);
}

.cart-button .holder-ico{
	height: 100%;
	width: var(--height);
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: .5em;
	background: rgba(var(--rgb-secondary), .3);
	color: var(--secondary);
}

.holder-ico i{
	position: absolute;
	transition: 500ms;
}

.holder-ico i:first-child{
	opacity: 0;
}

.cart-button .info{
	display: flex;
	margin-left: 10px;
}

.cart-button .info .price{
	font-weight: 600;
	margin: auto;
}

header.dark {
	background: var(--dark-theme-background);
}

header.dark .funtenjer {
	color: var(--dark-theme-color);
}

header.light {
	background: var(--light-theme-background);
}

header.light .funtenjer {
	color: var(--light-theme-color);
}

header.tan {
	background: var(--tan-theme-background);
}

header.tan .funtenjer {
	color: var(--tantheme-color);
	border-bottom-color: var(--tantheme-color);
}

main {
	padding: 20px;
}

main.dark {
	background: var(--dark-theme-background);	
}

main.light {
	background: var(--light-theme-background);
}
main.tan {
	background: var(--tan-theme-background);
}

.page-grid {
	max-width: 1560px;
	margin: 0 auto;
	display: grid;
	grid-template: 1fr / 80px 1fr 80px;

	height: calc(var(--height-of-page) - 128px);	
}

/* body.ios-device .page-grid {
	height: calc(var(--height-of-page) - 140px);
} */

/* ///////NEXT PAGE AND BACK PAGE ?///////////////////////// */

.next-page,
.back-page {
	position: relative;
	display: flex;
	align-items: center;	
	transition: 300ms;
	cursor: pointer;
}

.next-page::after,
.back-page::after{
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 200px;
	z-index: 10;
	display: none;
	
	opacity: .6;
}

.next-page::after{
	right: 0;
}

.back-page::after{
	left: 0;
}

body.ios-device .back-page::after,
body.ios-device .next-page::after{
	display: block;
}


/* .next-page *,
.back-page * {
		opacity: 0;
}

.next-page:hover *,
.back-page:hover * {
		opacity: 1;
} */

.next-page {
	justify-content: flex-end;
}

.back-page {
	justify-content: flex-start;
}

.next-page:hover .reader-arrow,
.back-page:hover .reader-arrow{
	background: rgba(var(--rgb-primary), .05);
}

.reader-arrow{
	--size: 45px;
	height: var(--size);
	width: var(--size);
	display: flex;
	border: 2px solid #333;
	border-radius: 50%;
	cursor: pointer;
	transition: 300ms;
}

main.dark .reader-arrow{
	border-color: var(--dark-theme-color);
}


main.dark .reader-arrow i{
	color: var(--dark-theme-color);
}



.reader-arrow i{
	font-size: calc(var(--size)/2 - 5px) ;
	margin: auto;
}

.reader-arrow:hover{
	opacity: 1;
}

.reader-arrow:active{
transform: scale(.8);
}


/* /////// ENDE ///////////////////////// */

article {
	display: flex;
	flex-direction: column;
	align-items: center;
}

article .img-holder img {
	max-width: 200px;
	display: block;
	margin: 0 auto;
	padding-bottom: 20px;
	border-bottom: 2px solid #c6c6d0;
}

article .info {
	text-align: center;
}

article .info h2 {
	font-size: 1.5em;
	margin-bottom: 15px;
}

article .rating {
	margin-bottom: 20px;
}

article .rating i {
	margin-left: 5px;
	color: var(--star-background);
	font-size: 13px;
}

.book-page {
	padding: 10px 0;
	position: relative;
}

.book-page small {
	display: block;
	text-align: center;
	margin-bottom: 10px;
}

.book-page p {
	margin-bottom: 30px;
	line-height: 2em;
	text-align: justify;
	margin-top: 0;
}

/* // Selected text box */

.multi-button {
	position: absolute;
	display: flex;
	border-radius: 5px;
	transform-origin: bottom;
	transform: scaleY(0);
	transform-style: preserve-3d;
	perspective: 100px;
	border: 1px solid rgba(var(--rgb-primary), .09); 
	z-index: 100;
	background: #fff;
	/* background:rgb(255 255 255 / 50%); */
	padding: 0 7px;

	/* backdrop-filter: blur(55px); */
	/* -webkit-backdrop-filter: blur(15px); */
	max-width: 200px;
	width: 100%;
}

.multi-button .remove-note, .mobile-multi-button .remove-note{
	display: none;
}

.multi-button .edit-note, .mobile-multi-button .edit-note{
	display: none;
}

.multi-button .remove-highlight, .mobile-multi-button .remove-highlight{
	display: none;
}

.multi-button.edit .remove-highlight, .mobile-multi-button.edit .remove-highlight{
	display: block;
}

.multi-button.edit.is-note .remove-note, .mobile-multi-button.edit.is-note .remove-note{
	display: block;
}

.multi-button.edit.is-note .edit-note, .mobile-multi-button.edit.is-note .edit-note{
	display: block;
}

.multi-button.edit.is-note .remove-highlight, .mobile-multi-button.edit.is-note .remove-highlight{
	display: none;
}

.multi-button.edit.is-note .highlights-palet, .mobile-multi-button.edit.is-note .highlights-palet {
	display: none;
}

.multi-button.edit .add-note, .mobile-multi-button.edit .add-note {
	display: none;
}

.highlights-palet{
	border-bottom: 1px solid #eee;
	padding: 10px 0;
}

.highlights-palet .option{
	display: flex;
	align-items: center;
	transition: 300ms;
}

.highlights-palet .circle{
	--size: 1.1em;
	width: var(--size);
	height: var(--size);
	background: var(--color);
	border-radius: 50%;
	
	border: 0.0625em solid rgba(var(--rgb-primary), .3);
	box-sizing: border-box;	
	opacity: .8;
}

.highlights-palet .circle:last-child{
	margin: 0;
}

.highlighted-text-options{
	width: 100%;
}

.highlighted-text-options .option{
	margin: 0.3125em 0;
	padding: 0.125em 0.4375em;
	cursor: pointer;
	border-radius: 0.3125em;
	font-weight: 500;
}

.highlighted-text-options .option:hover{
	background: rgba(var(--rgb-primary), .7);
	color: var(--body-color);
}

.highlighted-text-options .option i{
	font-size: .7em;
}

.highlighted-text-options .option span{
	margin-left: 0.4375em;
    font-size: 0.813em;
}

.note {
	position: absolute;
	top: 66px;
    right: -191px;
	width: 250px;
	display: none;
	background: #fff;
	border: 2px solid #111;
	border-radius: 5px;
	box-shadow: 0 20px 20px -10px rgb(0 0 0 / 50%);
}

.multi-button.bottom-restricted {
	top: unset;
	bottom: 66px;
}

.note .body {
	padding: 20px 10px;
}

.note-mobile {
	display: none;
}

/* REMOVE THIS */
.note-container textarea,
.note-mobile textarea{
	font-family: "Poppins";
	line-height: 1.5;
	display: block;
	width: 100%;
	resize: none;
	padding: 5px 10px;
	border: none;
	outline: none;
	/* // THIS ADDED */
	margin-top: 15px;
	max-height: 100px;
}

.note-container .button-container{
	margin-top: 5px;
	border-top: 2px solid #eee;
	padding-left: 7px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}


.note-container .button-container .save,
.note-mobile .button-holder .save{
	border-left: 2px solid #eee;
	padding: 4px 15px;
	margin: 0;
	border-radius: 0;
	transition: 300ms;
	cursor: pointer;
}

.note-container .button-container .save:hover,
.note-mobile .button-holder .save:hover{
	background: rgba(var(--rgb-primary), .06);
}

.note-container .button-container .save i{
	margin-right: 5px;
}

.note-container .header .close:active,
.note-container .button-container .save:active{
	transform: scale(.98);
}

.note-mobile .footer .colors,
.circles-holder{
	display: flex;
	margin: 0;
}
.note-mobile .footer .colors input,
.circles-holder input{
	display: none;
}

.note-mobile .footer .colors label,
.circles-holder label{
	display: block;
	width: 1em;
	height: 1em;
	background: var(--color);
	border-radius: 50%;
	margin-left: 0.625em;
	cursor: pointer;
}

.note-mobile .footer .colors input:checked + label,
.circles-holder input:checked + label{
	border: 1px solid #333;
}

/* // NOTE POPUP REDESIGN */

.note-popup-holder{
	--color: #ecce6d;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(var(--rgb-primary), .3);
	z-index: 99;
	display: none;
}

.note-container{
	border-radius: .5em;
	margin: auto;
	background: var(--body-color);
	max-width: 500px;
	width: 100%;
}

.note-container .header{
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--border-color);
	padding: 10px 20px;
}

.note-container .header .date{
	font-size: .9em;
	color: rgba(var(--rgb-primary), .5);
}

.note-container .header .close{
	cursor: pointer;
}

.note-container .body{
	padding: 20px 10px;
}

.note-container .highlighted-text{
	display: -webkit-box;
    max-width: 100%;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
	border-left: 5px solid var(--color);
	padding: 5px 10px;
}

.multi-button .button-holder button {
	outline: none;
	padding: 10px 20px;
	border: none;
	background: #fff;
	text-transform: uppercase;
	font-weight: 900;
	letter-spacing: 2px;
	cursor: pointer;
	transition-delay: 0.2s, 0.3s, 0s;
	backface-visibility: hidden;
	overflow: hidden;
	position: relative;
	box-sizing: border-box;
}

.multi-button .button-holder button:first-of-type {
	border-right: 2px solid var(--primary);
}

.multi-button.visible {
	transform: scaleY(1);
	box-shadow: 0 20px 20px -10px rgba(0, 0, 0, 0.5);
}

.multi-button.visible:before {
	transition-delay: 0.3s;
	background: rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(0.25px);
	box-shadow: 0px -25px 450px 10px rgba(255, 255, 255, 0.25);
}
.multi-button.visible .button-holder button {
	transition-delay: 0.4s, 0s, 0s;
	transform: rotateY(0deg);
	background: #fff;
}
.multi-button.visible .button-holder button.active {
	padding-left: 20px;
	padding-right: 0px;
}

.multi-button.visible > button.active:before {
	transition-delay: 0.25s;
	transform: translateY(-300%);
}
.multi-button.visible .button-holder button.active:hover:before {
	transition-delay: 0.25s;
	transform: translateY(-300%);
}

.multi-button.visible .button-holder button.active:after {
	transition-delay: 0.25s;
	transform: translateY(calc(-50% - 2.5px));
} 

/* // Muliti button for mobile */
.mobile-multi-button {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--body-color);
	border-radius: 20px 20px 0 0;
	display: none;
	z-index: 999;
}

.mobile-multi-button .highlights-palet{
	font-size: 1.8rem;
	display: flex;
	justify-content: space-around;
	padding: 20px;
}

.mobile-multi-button .highlighted-text-options .option{
	font-size: 1.2rem;
	margin: 0;
	padding: .8em 35px;
	border-radius: 0;
}
.note-mobile .header,
.note-mobile .footer{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px;
	border-top: 1px solid #eee;
}

.note-mobile .footer{
	padding: 0;
}

.note-mobile .footer .colors {
	font-size: 1.5rem;
}

.note-mobile .body{
	padding: 20px;
	border-top: 1px solid #eee;
}

.note-mobile .save{
	font-size: .9em;
}

.note-mobile .save i{
	margin-right: .6em;
}



/* ////////////////////// PROGRESS LINES /////////////////// */

.progress-line {
	position: relative;
	display: flex;
	align-items: center;
}

.progress-line.funtenjer{
	padding: 0;
}

.progress-line .current-chapter{
	padding: 2px 3em;
	border: 1px solid rgba(var(--rgb-primary), .3);
	border-radius: .4em;
	position: absolute;
	top: -35px;
    left: 50%;
	transform: translate(-50%, -50%);
	z-index: -2;
	opacity: 0;
	transition: .3s;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.progress-line .current-chapter span{
	white-space: nowrap;
}

.progress-line .current-chapter.show{
	z-index: 1;
	opacity: 1;
}

.progress-line.light .current-chapter{
	background: var(--light-theme-background);
	color: var(--light-theme-color);
}

.progress-line.tan .current-chapter{
	background: var(--tan-theme-background);
	color: var(--tan-theme-color);
}

.progress-line.dark .current-chapter{
	background: var(--dark-theme-background);
	color: var(--dark-theme-color);
	border-color: #fff;
}


.progress-line .current-page,
.progress-line .total-pages {
	color: rgba(var(--rgb-primary), 0.6);
	font-size: .8em;

	-webkit-user-select: none; /* Safari */        
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* IE10+/Edge */
	user-select: none; 
}

.progress-line .current-page{
	width: 45px;
	height: 30px;
	display: flex; 
	justify-content: center;
	align-items: center;
	border: 1px solid #eee;
	margin-right: 20px;
}

.progress-line .current-page span {
	color: var(--primary);
}

.progress-line.dark .dot-flashing{
	--color: #fff;
	--color-2: #f9f9f9;
}

.progress-line.dark .current-page span{
	color: #fff;
}

.progress-line.dark .total-pages span{
	color: #f9f9f9;
}

.progress-line .total-pages{
	position: unset;
	display: flex;
	margin-left: 20px;
	transition: 300ms all;
	z-index: 1;
}

.progress-line .total-pages.remove{
	opacity: 0;
	transform: translateX(100px);
	position: absolute;
	right: 0;
	z-index: -1;
}

.progress-line .total-pages > span:first-child{
	margin-right: 5px;
}

/* // mark as read */

.mark-as-read{
	--color: rgba(var(--rgb-primary), .7);
	color: var(--color);
	font-size: .8em;
	margin-left: 1em;
	border: 1px solid var(--color);
	font-weight: 500;
	border-radius: 6px;
	padding: 5px .7em;
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
	transition: .3s;
	cursor: pointer;
	-webkit-user-select: none; /* Safari */        
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* IE10+/Edge */
	user-select: none; 
	transform: translateX(100px);
	opacity: 0;
	z-index: -1;
	position: absolute;	
	right: 0;
}

.mark-as-read span:last-child{
	display: none;
}

.mark-as-read.show.marked{
	transform: translateX(100px);
	opacity: 0;
	z-index: -1;
	position: absolute;	
	right: 0;
}

.mark-as-read.show{
	transform: translateX(0);
	opacity: 1;
	z-index: 1;
	position: unset;
}

.mark-as-read:hover{
	--color: rgba(var(--rgb-primary), 1);
}

.mark-as-read:active{
	transform: scale(.98);
}

.mark-as-read i{
	margin-right: .4em;
}

.mark-as-read.show{
	opacity: 1;
}

.progress-line.dark .mark-as-read{
	color: var(--body-color);
	box-shadow: none;
	border-color: var(--body-color);
}

.progress-line .line-holder {
	flex: 1;
	position: relative;
	background: #bababa;
	height: 2px;
	cursor: pointer;
}

.progress-line.dark .line-holder {
	background: #333;
}

.line-holder::before{
	content: "";
	position: absolute;
	top: -20px;
	bottom: -20px;
	left: 0;
	right: 0;
}

.progress-line.dark .line-holder .line .circle,
.progress-line.dark .line-holder .line {
	background: #eee;
}

.progress-line .line-holder .line .circle span {
	color: #777;
	user-select: none;
    pointer-events: none;
}

.progress-line .line-holder .line {
	display: flex;
	align-items: center;
	background: var(--primary);
	height: 100%;
	cursor: pointer;
}

.progress-line .line-holder .line .circle {
	min-height: 7px;
	min-width: 7px;
	background: var(--primary);
	margin-left: auto;
	border-radius: 50%;
	display: flex;
	position: relative;
	cursor: pointer;
}

.progress-line .line-holder .line .circle span {
	position: absolute;
	top: -25px;
	margin: auto;
	font-size: 13px;
	align-items: center;
	cursor: pointer;
}

.locked-line-holder{
	flex: 0;
	height: 0;
	border-top: 2px dashed #bababa;
}

.progress-line.dark .locked-line-holder{
	border-color: #333;
}


/* // Thing to handle */
.dot-flashing {
	--color: var(var(--primary));
	--color-2: rgba(var(--rgb-primary), .06);;
	position: absolute;
	width: 5px;
	height: 5px;
	border-radius: 5px;
	background-color: var(--color);
	animation: dotFlashing 1s infinite linear alternate;
	animation-delay: .5s;
  }
  
  .dot-flashing::before, .dot-flashing::after {
	content: '';
	display: inline-block;
	position: absolute;
	top: 0;
  }
  
  .dot-flashing::before {
	left: -7.5px;
	width: 5px;
	height: 5px;
	border-radius: 5px;
	background-color: var(--color);
	animation: dotFlashing 1s infinite alternate;
	animation-delay: 0s;
  }
  
  .dot-flashing::after {
	left: 7.5px;
	width: 5px;
	height: 5px;
	border-radius: 5px;
	background-color: var(--color);
	animation: dotFlashing 1s infinite alternate;
	animation-delay: 1s;
  }
  
  @keyframes dotFlashing {
	0% {
	  background-color: var(--primary);
	}
	50%,
	100% {
	  background-color: var(--color-2);
	}
  }


/* NOTED */

.noted-container {
	position: absolute;
}

.noted-container .ico {
	--size: 26px;
	width: var(--size);
	height: var(--size);
	background: var(--color);
	display: flex;
	cursor: pointer;
	transition: 0.5s;
	position: relative;
	z-index: 2;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 55% 100%, 0 55%);
	border: 1px solid #111;
	transition: 300ms opacity;
}

.noted-container .ico::before{
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 13px;
	height: 11px;
	background: linear-gradient(39deg,#111 0 8px, rgba(0, 0, 0, 0.4) 51%);
}
/* Reader stuff */

#reader {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

#readerHiddenClone {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -99;
	opacity: 0;
	visibility: hidden;
}

#readerHiddenClone.visible{
	z-index: 0;
	opacity: 1;
	visibility: visible;
}

:root{
	--theme-background: #fff;
}

.reader-loading.dark{
	--theme-background: var(--dark-theme-background);
}

.reader-loading.dark .logo{
	filter: invert(1);
}

.reader-loading.light{
	--theme-background: var(--light-theme-background);
}

.reader-loading.tan {
	--theme-background: var(--tan-theme-background);
}


#readerLoading {
	height: 100%;
	width: 100%;
	position: fixed;
	z-index: 999;
	top: 0;
	left: 0;
}

#inputBookFileOverlay {
	height: 100%;
	width: 100%;
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
}

.reader-loading{
	display: flex;
	background: var(--theme-background);
}

.reader-loading .logo {
	margin: auto;
	font-size: 2rem;
}

.reader-loading .logo{
	animation: logo-blinking 2s infinite;
}

#demo-end {
	position:absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;

	z-index: 100;
	background: red;
}


@keyframes logo-blinking {
	0%{
		opacity: 1;
	}

	50%{
		opacity: .5;
	}

	100%{
		opacity: 1;
	}
}

/* Media querys */

@media screen and (max-width: 1370px){
	header .funtenjer{
		font-size: 1.2rem;
	}

	header .tools-bar .ico-holder {
		margin-left: .7em;
	}
}

@media screen and (max-width: 1350px) {
	.page-grid {
		grid-template: 1fr / 0 1fr 0;
	}

	.reader-arrow{
		display: none;
	}
}

@media screen and (max-width: 800px) {
	 header{
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 100;
		transform: translateY(-100%);
		transition: .5s;
	}
	

	header .funtenjer{
		height: 72px;
		font-size: 1rem;
	}
	.reader-loading .logo {
		font-size: 1.4rem;
		transform: translateX(-12%);
	}
	.total-pages span:last-child{
		display: none;
	}

	.page-grid {
		height: calc(var(--height-of-page) - 128px + 72px);	
	}

	header.unhide-mobile {
		transform: translateY(0);
	}

	/* // removes buy button from phone users */
	.cart-button{
		display: none;
	}

	/* // change mark-as-read content for mobile */

	.mark-as-read span:nth-child(2){
		display: none;
	}

	.mark-as-read span:last-child{
		display: inline-block;
	}

	/* // Current chapter */
	.progress-line .current-chapter{
		padding: 2px 1em;
	}

	/* // note sign for movile */

	.noted-container .ico{
		--size: 12px;
		clip-path: none;
		border: none;
		border-radius: 2px;
		margin-top: -6px;
	}
	.noted-container .ico::before{
		display: none;
	}
}

input{
	border-radius: 0;
}

.funtenjer {
	position: relative;
}

.search-aside,
.bookmark-aside,
.chapters-aside,
.aside {
	position: absolute;
	top: -20px;
	right: 0;
	background: #fff;
	border: 2px solid var(--primary);
	font-family: 'Poppins', sans-serif;
	max-width: 350px;
	width: 100%;
	display: none;
	z-index: 10;
	border-top: 1px solid;
}

main.light .search-aside,
main.light .bookmark-aside,
main.light .chapters-aside,
main.light .aside.light {
	background: var(--light-theme-background);
	color: var(--light-theme-color);
}

/* main.tan .search-aside,
main.tan .bookmark-aside,
main.tan .chapters-aside,
main.tan .aside {
	background: var(--tan-theme-background);
	color: var(--tan-theme-color);
} */

main.dark .search-aside,
main.dark .bookmark-aside,
main.dark .chapters-aside,
main.dark .aside {
	background: var(--dark-theme-background);
	color: var(--dark-theme-color);
}

.aside nav input {
	display: none;
}

.search-aside nav .header,
.bookmark-aside nav .header,
.chapters-aside nav .header,
.aside nav .header {
	padding: 0 20px;
	height: 60px;
	display: flex;
	align-items: center;
	border-bottom: 2px solid #333;
	justify-content: space-between;
}

.search-aside nav .header div i,
.bookmark-aside nav .header div i,
.chapters-aside nav .header div i,
.aside nav .header div i {
	margin-right: 10px;
}

.search-aside nav .header>i,
.bookmark-aside nav .header>i,
.chapters-aside nav .header>i,
.aside nav .header>i {
	cursor: pointer;
	position: relative;
}

.search-aside nav .header>i::after,
.bookmark-aside nav .header>i::after,
.chapters-aside nav .header>i::after,
.aside nav .header>i::after {
	content: "";
	position: absolute;
	top: -20px;
	right: -20px;
	left: -20px;
	bottom: -20px;
}

.aside nav .header>i:active {
	font-size: 0.875em;
}

.aside .body {
	padding: 0 20px;
}

.aside .body .segment:not(:last-child) {
	border-bottom: 1px solid #eee;
}

.aside .body .segment {
	padding-bottom: 10px;
}

.aside .body .segment:first-child {
	padding-bottom: 20px;
}

.aside .body .segment .row {
	display: flex;
	align-items: center;
}

.aside .body .segment h3 {
	font-size: 0.9375em;
	font-weight: 400;
}

.aside .body .segment .colors .color-circle {
	margin-right: 10px;
	width: 40px;
	height: 40px;
	background: var(--page-color);
	border: 1px solid #eee;
	border-radius: 50%;
	cursor: pointer;
	position: relative;
}

.aside .body .segment .colors .color-circle::before {
	content: '';
	height: 5px;
	width: 5px;
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translate(-50%, 0);
	background: var(--primary);
	border-radius: 50%;
	opacity: 0;
	transition: 0.5s;
}

.aside .body .segment .colors input:checked+.color-circle::before {
	opacity: 1;
}

.aside .body .segment i {
	cursor: pointer;
}

.aside .body .segment i:active {
	font-size: 0.875em;
}

.aside .body .segment .color-circle .active {
	border: 1px solid var(--star-background);
	border-radius: 50%;
	width: 100px;
	height: 100px;
	background: #333;
}

.aside .body .segment .change-circle {
	display: flex;
	justify-content: center;
	position: relative;
	align-items: center;
	height: 25px;
	width: 25px;
	border-radius: 50%;
	font-size: 0.625em;
	border: 1px solid #333;
	cursor: pointer;
}

.aside .body .segment .change-circle::after {
	content: '';
	position: absolute;
	top: -10px;
	left: -10px;
	right: -10px;
	bottom: -10px;
}

.aside .body .segment .change-circle:active i {
	font-size: 0.875em;
}

.aside .body .segment .value {
	margin: 0 13px;
	font-size: 1.25em;
}

.aside .body .segment .column {
	display: flex;
	flex-direction: column;
}

.aside .body .segment .option {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.aside .body .segment .option input:checked+label::before {
	opacity: 1;
}

.aside .body .segment .option label {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	width: 20px;
	height: 20px;
	background: #fff;
	border: 1px solid var(--primary);
	border-radius: 50%;
	cursor: pointer;
}

.aside .body .segment .option label::after {
	content: '';
	position: absolute;
	top: -10px;
	left: -10px;
	right: -144px;
	bottom: -10px;
}

.aside .body .segment .option label::before {
	content: '';
	height: 8px;
	width: 8px;
	background: var(--primary);
	position: absolute;
	border-radius: 50%;
	opacity: 0;
	transition: 0.3s;
}

.aside .body .segment .option span {
	margin-left: 10px;
	font-size: 0.813em;
}

.aside .body .segment .line-height,
.aside .body .segment .justification {
	border: 1px solid var(--primary);
	display: flex;
	border-radius: 5px;
	overflow: hidden;
}

.aside .body .segment .line-height input:checked+label,
.aside .body .segment .justification input:checked+label {
	background: var(--primary);
	color: #fff;
	font-weight: 700;
}

.aside .body .segment .line-height label,
.aside .body .segment .justification label {
	flex: 1;
	padding: 3px 20px;
	font-size: 0.813em;
	cursor: pointer;

}

.aside .body .segment .justification label:first-of-type {
	border-right: 1px solid var(--primary);
}

.aside .body .segment .line-height label:nth-child(4) {
	border-right: 1px solid var(--primary);
	border-left: 1px solid var(--primary);
}

/* ///////////////////////////////// CHAPTER //////////////////////////////// */

.chapters-aside{
	-webkit-user-select: none;        
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none; 
}

.chapters-aside .body {
	overflow-y: auto;
	overflow-x: hidden;
	max-height: calc(100vh - 200px);
}

.highlights-container input[type='text'],
.search-aside .body input[type='text'],
.chapters-aside input[type='text'] {
	width: 100%;
	padding: 15px 20px;
	border: none;
	border-bottom: 1px solid var(--primary);
	background: #f7f7f7;
	border-radius: 0;
}

/* // Dark theme */
main.dark ~ .highlights-popup .highlights-container input[type='text'],
main.dark .search-aside .body input[type='text'],
main.dark .chapters-aside input[type='text'] {
	background: var(--dark-theme-background);
	color: var(--dark-theme-color);
	-webkit-text-fill-color: var(--dark-theme-color);
	box-shadow: none;
}

.search-aside .body{
	position: relative;
}

.search-aside .body input[type='text'] {
	border: 0;
	border-radius: 0;
}

.search-aside .body .suggestions{
	background: #fff;
	border: 2px solid #333;
	border-top: none;
	position: absolute;
	top: calc(100% + 2px);
	right: -2px;
	left: -2px;
	max-height: calc(100vh - 190px);
	overflow: auto;
	/* display: none; */
}

.search-aside .body .suggestions .row{
	padding: 15px 20px;
	font-size: .8em;
	border-bottom: 1px solid #eee;
	transition: 300ms;
	cursor: pointer;
}

/* // Dark theme */
main.dark .search-aside .body .suggestions .row{
	background: var(--dark-theme-background);
	color: var(--dark-theme-color);
}

.search-aside .body .suggestions .row:hover{
	background: rgba(var(--rgb-primary), .06);
}



.search-aside .body .suggestions .row span{
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 300px;
}


.chapters-aside .body .row {
	padding: 10px 20px;
	display: flex;
	align-items: center;
	cursor: pointer;
	border-bottom: 1px solid #eee;
}

.chapters-aside .body .row.locked {
	position: relative;
    user-select: none;
    pointer-events: none;
	background: rgba(var(--rgb-primary), .03);
}

.chapters-aside .body .row.locked::after{
	content: "\f023";
	font-weight: 900;
	font-family: "Font Awesome 6 Pro";
	position: absolute;
	right: 10px;
    font-size: .7em;
	color: rgba(var(--rgb-primary), .6);
}

main.dark .chapters-aside .body .row.locked::after{
	color: #eee;
}

.chapters-aside .body .row .arrow{ 
	font-size: .6em;
	margin-right: 10px;
}

.chapters-aside .body .row .title{
	flex: 1;
	text-overflow: ellipsis;
	overflow: hidden;
}

.chapters-aside .body .row .page {
	padding-left: 10px;
	
}

.chapters-aside .body .row:hover span {
	text-decoration: underline;
}

.chapters-aside .body .row span {
	font-size: 0.813em;
}

/* ///////////////////////////////// END //////////////////////////////// */

.bookmark-aside .body .row {
	padding: 10px 20px;
	display: flex;
	align-items: center;
	cursor: pointer;
	transition: background 0.3s linear;
}

.bookmark-aside .body .row:hover {
	background: var(--primary);
	color: #fff;
}

.bookmark-aside .body .row i {
	margin-right: 10px;
}

.chapters-aside .body .row span {
	font-size: 0.813em;
}

/* // Highlights box */

.highlights-popup{
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(var(--rgb-primary), .3);
	display: none;
	z-index: 20;
}

.highlights-popup .highlights-container{
	background: #fff;
	border-right: 2px solid #333;
	max-width: 400px;
}

/* // Dark theme */
main.dark ~ .highlights-popup .highlights-container{
	background: var(--dark-theme-background);
	color: var(--dark-theme-color);
}

.highlights-popup .highlights-container .header{
	border-bottom: 1px solid #333;
}

.highlights-popup .highlights-container .header .title{
	display: flex;
	align-items: center;
	padding: 20px;
}

.highlights-popup .highlights-container .header span{
	margin-left: 10px;
}
.highlights-container input[type='text']{
	border-top: 2px solid #333;
}


.highlights-popup .highlights-container .body{
	overflow: auto;
	height: calc(100vh - 114px);
}

.highlights-popup .highlights-container .row{
	font-family: var(--lora);
	line-height: 1.5;
	padding-bottom: 10px;
	cursor: pointer;
	padding: 10px 30px 10px 20px;
}


.highlights-popup .highlights-container .row:hover{
	background: rgba(var(--rgb-primary), .04)
}

.highlights-popup .highlights-container .row mark{
	background: var(--color);
}

/* // Dark theem */

main.dark ~ .highlights-popup .highlights-container .row mark{
	color: var(--dark-theme-color);
}


/* // Customise for mobile */
.customise-aside-mobile{
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	display: none;
	border-radius: 20px 20px 0 0;
	overflow: hidden;
	box-shadow:0 .25rem 1rem rgba(48,55,66,.15);
	z-index: 10;
}

.customise-aside-mobile .aside{
	display: block;
	position: unset;
	border: none;
	max-width: unset;
}

.customise-aside-mobile .aside .segment{
	padding: 20px 0;
}

.customise-aside-mobile .segment.modes .row{
	justify-content: space-around;
}


.customise-aside-mobile .font-size-holder{
	width: 100%;
}

.customise-aside-mobile .font-size-holder .letter{
	font-size: 1em;
	font-family: var(--lora);
	font-weight: 900;
}

.customise-aside-mobile .font-size-holder .letter:last-child{
	font-size: 1.5em;
}

.customise-aside-mobile .font-size-holder .line{
	flex: 1;
	display: flex;
	position: relative;
	align-items: center;
	height: 2px;
	border-radius: 50px;
	background: #111;
	margin: 0 20px;
}

.customise-aside-mobile .font-size-holder .line::before{
	content: "";
	position: absolute;
	top: -20px;
	bottom: -20px;
	left: 0;
	right: 0;
}


.customise-aside-mobile .font-size-holder .line .circle{
	position: absolute;
	left: calc( var(--left) - 15px);
	width: 30px;
	height: 30px;
	background: var(--primary);
	border-radius: 50%;
}

.customise-aside-mobile .segment.fonts{
	overflow: auto;
}

.customise-aside-mobile .segment.fonts {
    -ms-overflow-style: none; /* for Internet Explorer, Edge */
    scrollbar-width: none; /* for Firefox */
    overflow-y: scroll; 
}

.customise-aside-mobile .segment.fonts::-webkit-scrollbar {
    display: none; /* for Chrome, Safari, and Opera */
}

.customise-aside-mobile .segment .fonts .option{
	margin: 0;
}

.customise-aside-mobile .segment .fonts .option label{
	width: unset;
	height: unset;
	display: block;
	border-radius: 1em;
	margin-right: 10px;
	padding: 5px 15px;
}

.customise-aside-mobile .segment .fonts .option label span{
	margin: 0;
	white-space: nowrap;
}

.customise-aside-mobile .segment .fonts .option label::before{
	display: none;
}

.customise-aside-mobile .segment .fonts .option input:checked + label{
	background: var(--primary);
	color: #fff;
}

/* .customise-aside-mobile .segment.justification{
	padding: 5px 0;
} */

.customise-aside-mobile .segment .line-height label,
.customise-aside-mobile .segment.justification .justification label{
	padding: 5px 20px;
}
.customise-aside-mobile .segment.justification .justification label i{
	margin-right: 5px;
}

@media screen and (max-height: 870px) {
	.aside .body{
		overflow: auto;
		height: calc(100vh - 140px);
	}

	.customise-aside-mobile .aside .body{
		overflow: unset;
		height: unset;
	}
}


@media screen and (max-width: 1200px) {
	body::after{
		content: "";
	}
} 

@media screen and (max-width: 800px) {
.search-aside,
.bookmark-aside,
.chapters-aside,
.aside {
	position: absolute;
	top: -20px;
	right: -20px;
	left: -20px;
	width: unset;
	max-width: unset;
	border: none;
	box-shadow:0 .25rem 1rem rgba(48,55,66,.15);
}

.highlights-container input[type='text'],
.search-aside .body input[type='text'],
.chapters-aside input[type='text'] {
	padding: 30px;
}

.search-aside .body .suggestions .row,
.chapters-aside .body .row,
.bookmark-aside .body .row{
	padding: 20px;
}
}
