* {
	font-family: "Roboto", regular;
	font-size: 18px;
}

.material-icons {
	font-family: 'Material Icons';
	font-weight: normal;
	font-style: normal;
	font-size: 74px;  /* Preferred icon size */
	display: inline-block;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	word-wrap: normal;
	white-space: nowrap;
	direction: ltr;
	vertical-align: middle;
	color: #906464;
	padding: 10px;
	
	/* Support for all WebKit browsers. */
	-webkit-font-smoothing: antialiased;
	/* Support for Safari and Chrome. */
	text-rendering: optimizeLegibility;
	
	/* Support for Firefox. */
	-moz-osx-font-smoothing: grayscale;
	
	/* Support for IE. */
	font-feature-settings: 'liga';
}


body {
	background-color: #F2EEEE;
}

form {
	background-color: white;
	/* height: 520px; */
	height: 100%;
	width: 400px;
	display: flex;
	flex-direction: column;
	margin: auto;
	margin-top: 200px;
	padding-left: 50px;
	padding-right: 50px;
	padding-top: 30px;
	padding-bottom: 30px;
	border-radius: 20px;
	justify-content: center;
	gap: 5px;
	align-items: center;
}

form h2 {
	font-size: 25px;
}

input {
	width: 350px;
	height: 45px;
	border-radius: 50px;
	outline: none;
	padding: 0px 30px;
	border: 2px solid rgb(161, 160, 160);
	font-family: "Inter";
	font-size: 20px;
}

button {
	width: 410px;
	border: 2px solid #7B4343;
	height: 45px;
	background-color: #7B4343;
	color: white;
	border-radius: 50px;
	padding: 0px 20px;
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background */
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0s 0.5s;
	z-index: 1; /* Make sure it's below the side panel */
}

.catlogo {
	display: flex;
	flex-direction: row;
	background-color: white;
	border-radius: 30px;
	padding: 1px;
}

.catlogo img {
	vertical-align: middle;
}

.catlogo p {
	font-family: "Marck Script";
	font-size: 40px;
	margin-bottom: 0;
	display: none;
}

.sidepanel {
	display: flex;
	position: fixed;
	background-color: #E4E4E4;
	flex-direction: column;
	padding: 40px 40px 0px;
	padding-top: 40px;
	padding-right: 40px;
	padding-bottom: 40px;
	padding-left: 40px;
	gap: 40px;
	row-gap: 40px;
	column-gap: 40px;
	top: 0;
	left: 0;
	height: 100vh;
	overflow-y: auto;
	overflow-x: hidden;
	transition: width 0.3s ease;
	z-index: 2;
	/* justify-content: flex-start; */
}

.sidepanel:hover + .overlay {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease, visibility 0s 0s;
	/* width: 350px; */
}

.sidepanel .icon {
	transition: margin 0.3s ease;
}

.sidepanel a {
	display: none;
	font-size: 32px;
	color: black;
	font-weight: normal;
	opacity: 0;
	transition: opacity 1.3s ease;
}

.sidepanel:hover a, .sidepanel:hover p {
	display: inline;
	opacity: 1;
}

.sidepanel img {
	width: 100px;
	height: 100px;
	position: relative;
	border-radius: 20px;
}

a {
	color: rgb(123, 67, 67);
	font-weight: bold;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.recCategory {
	margin-top: 80px;
	margin-left: 400px;
	margin-right: 100px;
	margin-bottom: 50px;
}

.recCategory h2 {
	font-size: 40px;
	background-color: white;
	border-radius: 30px;
	padding: 20px;
	display: inline-block;
	margin-bottom: 50px;
}

.booksRow {
	/* margin-top: 50px; */
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 40px;
	padding: 40px;
	background-color: white;
	border-radius: 30px;
}

.book {
	height: 300px;
	width: 200px;
	padding: 20px;
	background-color: #F2EEEE;
	border-radius: 30px;
	display: flex;
	flex-direction: column;
	/* justify-content: center; */
	align-items: center;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.book img {
	height: 200px;
	width: 150px;
}

.book p {
	margin-top: 0;
}

.book h1 {
	font-size: 28px;
	font-style: italic;
	margin-bottom: 0;
}

#book_delete {
	margin-top: 0;
}

.search {
	margin-top: 200px;
	margin-left: 400px;
	margin-right: 100px;
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
}

.search input {
	width: 1000px;
	height: 60px;
	font-size: 40px;
}

.searchCategory {
	margin-top: 100px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 40px;
	justify-content: center;
}

.search a {
	font-size: 26px;
	text-align: center;
	background-color: white;
	color: black;
	border-radius: 30px;
	padding: 20px;
	display: inline-block;
	width: calc(25% - 70px);
}

.search a:hover {
	text-decoration: none;
}

.whiteBg {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: 40px;
	background-color: white;
	border-radius: 30px;

	margin-top: 80px;
	margin-left: 400px;
	margin-right: 100px;
	position: relative;
}

.fields {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1px;
}

.fields p {
	font-family: "Inter";
	font-size: 20px;
	/* text-align: center; */
	background-color: white;
	color: black;
	opacity: 0.8;
	border-radius: 40px;
	border: 2px solid rgb(161, 160, 160);
	padding: 10px 20px;
	/* display: inline-block; */
	width: 100%;
	margin: 5px;
}

.fields h2 {
	font-size: 32px;
	font-weight: normal;
	/* text-align: center; */
}

.whiteBg h2 {
	font-size: 26px;
	font-weight: normal;
	margin-bottom: 20px;
}

.profile img {
	width: 350px;
	height: 350px;
	border-radius: 30px;
	border: 1px solid rgb(161, 160, 160);
	/* object-fit: cover; */
	margin-left: 300px;
}

.profile {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 40px;
}

.profile .material-icons {
	font-size: 40px;
}

.logout {
	display: flex;
	flex-direction: column;
}

.logout a {
	margin-top: 10px;
	margin-left: 380px;
	font-size: 22px
	/* text-align: right; */
}

.logout .material-icons	{
	font-size: 30px;
}

.logout label {
	width: 250px;
	height: 45px;
	border: 2px solid #7B4343;
	background-color: #7B4343;
	color: white;
	border-radius: 50px;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

.logout form {
	background-color: transparent;
	padding: 10px 20px;
	border-radius: 20px;
	display: flex;
	flex-direction: row;
	gap: 10px;
	width: 100%;
	align-items: center;
	box-sizing: border-box;
	margin-top: 20px;
	margin-left: 150px;
}

.aboutBook {
	display: flex;
	gap: 30px;
}

.aboutBook img {
	height: 410px;
	width: 350px;
	border-radius: 30px;
	border: 2px solid rgb(161, 160, 160);
}

.aboutBook h1 {
	font-size: 36px;
	font-weight: normal;
}

.likeButton button {
	all: unset;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: transparent;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	top: 170px;
	right: 200px;
	z-index: 10;
}

.likeButton .material-icons {
	font-size: 80px;
	color: #906464;
}

.likeButton #likesCount {
	font-size: 20px;
}

.aboutBookText {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
}

.aboutBookText h1, h2 {
	margin-bottom: 0;
	text-align: center;
}

.aboutBookText h2, p {
	font-style: italic;
}

.aboutBookText p {
	font-size: 20px;
	opacity: 0.8;
}

.provided {
	display: flex;
	flex-direction: row;
	gap: 100px;
}

.provided .material-icons {
	font-size: 40px;
}

.provided .fields {
	width: 45vw;
}

.similar h1 {
	font-size: 30px;
	font-weight: normal;
	text-align: left;
}

.about {
	display: flex;
	flex-direction: column;
}

.about h1, p {
	opacity: 0.8;
}

.about h1 {
	text-align: center;
	margin-top: 0;
	font-size: 50px;
}

.about p {
	font-size: 30px;
	padding-left: 40px;
}

.regButtons {
	display: flex;
	gap: 20px;
	justify-content: flex-end;
	margin-right: 8vw;
	margin-top: 30px;
}

.regButtons a {
	color: white;
	background-color: rgb(123, 67, 67);
	padding: 5px 20px;
	border-radius: 30px;
	text-align: center;
	padding-right: 2%;
}

.regButtons .material-icons {
	font-size: 20px;
	color: white;
}

.whiteBg.about {
	margin-top: 20px;
}

#search-form {
	all: unset;
}

.chat form {
	background-color: white;
	padding: 10px 20px;
	border-radius: 20px;
	display: flex;
	flex-direction: row;
	gap: 10px;
	width: 100%;
	align-items: center;
	box-sizing: border-box;
	margin-top: 20px;
}

.chat form input[type="text"] {
	flex-grow: 1;
	width: auto !important;
	height: 40px;
	border-radius: 20px;
	padding: 0 15px;
	font-size: 18px;
	border: 2px solid rgb(161, 160, 160);
	outline: none;
	box-sizing: border-box;
}

.chat form button {
	width: 40px !important;
	height: 40px !important;
	border-radius: 50%;
	background-color: #7B4343;
	color: white;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 20px;
	box-sizing: border-box;
}

.book .like-button {
	all: unset;
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 16px;
	background-color: transparent;
	border-radius: 50%;
	padding: 4px;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	z-index: 2;
	cursor: pointer;
	color: #7B4343;
	line-height: 1;
	width: auto;
	height: auto;
	border: none;
}

.book .like-button:hover {
	transform: scale(1.2);
	background-color: #f8f8f8;
}

@media (max-width: 768px) {
	.sidepanel {
		padding: 15px;
		padding-top: 15px;
		padding-right: 10px;
		padding-bottom: 15px;
		padding-left: 10px;
		gap: 20px;
		row-gap: 20px;
		column-gap: 40px;
		overflow-y: hidden;
	}

	.sidepanel img {
		width: 80px;
		height: 80px;
	}

	.sidepanel a {
		font-size: 20px;
	}

	.catlogo p {
		font-size: 30px;
	}

	.regButtons {
		flex-direction: column;
		gap: 10px;
		align-items: center;
	}

	.whiteBg {
		margin-left: 110px;
		padding: 10px;
		width: 280px;
	}

	.whiteBg ul {
		margin-bottom: 200px;
	}

	.about h1 {
		font-size: 30px;
	}

	.about p {
		font-size: 20px;
		padding-left: 10px;
	}

	h1 {
		word-wrap: break-word;
	}

	form {
		width: 200px;
		margin-left: 110px;
	}

	input {
		width: 190px;
	}

	button {
		width: 260px;
	}

	.recCategory {
		margin-left: 120px;
		margin-right: 0px;
		margin-top: 0px;
		margin-bottom: 200px;
	}

	.recCategory h2 {
		font-size: 30px;
	}

	.aboutBook {
		display: flex;
		flex-direction: column;
	}

	.aboutBook img {
		height: 350px;
		width: 275px;
	}

	.aboutBook h1 {
		font-size: 26px;
	}

	.aboutBook h2 {
		font-size: 20px;
	}

	h3 {
		width: 100%;
	}

	.provided {
		flex-direction: column;
		gap: 10px;
	}

	.provided .fields {
		width: 59vw;
	}

	.provided form {
		width: 150px;
	}

	#book_delete {
		margin-left: 0px;
		padding-left: 40px;
		background-color: transparent;
	}

	.chat form {
		margin-left: 0px;
		padding-left: 0px;
		width: 100%;
		background-color: transparent;
	}

	.chat form input[type="text"] {
		width: 80% !important;
	}

	.likeButton button {
		top: 160px;
		right: 80px;
	}

	.search {
		margin-top: 200px;
		margin-left: 120px;
		margin-right: 0px;
	}

	.search input {
		width: 200px;
		height: 60px;
		font-size: 40px;
	}

	.searchCategory {
		margin-top: 50px;
		display: flex;
		flex-direction: column;
		flex-wrap: wrap;
		gap: 20px;
		justify-content: center;
	}

	.search a {
		width: calc(100% - 50px);
	}

	.profile {
		flex-direction: column;
	}

	.profile img {
		height: 280px;
		width: 280px;
		margin-left: 0px;
	}

	.logout form {
		margin-left: 0px;
	}

	.logout a {
		margin-left: 0px;
	}

	.booksRow {
		margin-bottom: 200px;
	}

	.material-icons {
		font-size: 60px;
	}
}
