.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(5px);
	justify-content: center;
	align-items: center;
	z-index: 2000;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.modal.show {
	display: flex;
	opacity: 1;
}

.modal-content {
	background-color: #ffffff;
	border-radius: 16px;
	width: 90%;
	max-width: 800px;
	padding: 30px;
	position: relative;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	transform: translateY(-30px);
	transition: transform 0.3s ease;
}

.modal.show .modal-content {
	transform: translateY(0);
}

.close {
	position: absolute;
	top: 20px;
	right: 25px;
	font-size: 2rem;
	color: var(--text-muted);
	cursor: pointer;
	transition: color 0.2s ease;
}

.close:hover {
	color: var(--accent-color);
}

.modal-body {
	display: flex;
	gap: 30px;
	margin-top: 15px;
}

.modal-image-wrapper {
	flex: 0 0 220px;
}

#modal-cover {
	width: 100%;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	object-fit: cover;
}

.book-details {
	flex: 1;
	display: flex;
	flex-direction: column;
}

#modal-title {
	margin: 0 0 8px 0;
	color: var(--primary-color);
	font-size: 1.8rem;
}

#modal-author,
#modal-year {
	margin: 4px 0;
	font-size: 1.05rem;
	font-weight: 500;
}

#modal-sinopse {
	margin: 16px 0;
	line-height: 1.6;
	color: #4f5d73;
}

#download {
	margin-top: auto;
}

#link {
	display: inline-block;
	background-color: #2ecc71;
	color: #ffffff;
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 600;
	transition: background-color 0.2s ease;
}

#link:hover {
	background-color: #27ae60;
}

@media screen and (max-width: 600px) {
	.modal-body {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.modal-image-wrapper {
		width: 160px;
	}
}
