#comic-read {
	height: 100vh;
	width: 100vw;
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

#comic-read.show {
	opacity: 1;
	pointer-events: auto;
}

#comic-read.show #comic-container {
	transform: scale(1);
}

#comic-container {
	position: relative;
	text-align: center;
	transform: scale(0.9);
	transition: transform 0.4s ease;
}

#comic-container img {
	max-height: 90vh;
	width: auto;
}

/* Botones de cerrar y descargar agrupados */
#comic-buttons {
	position: absolute;
	top: -20px;
	right: -20px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

#close-comic,
#download-comic {
	width: 40px;
	height: 40px;
	padding: 0;
	font-size: 24px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 25%;
}

/* Botón de descargar un poco más pequeño el icono */
#download-comic i {
	font-size: 20px;
}

@media (max-width: 550px) {
	#comic-container img {
		height: auto;
		width: 95%;
	}
	#comic-buttons {
		top: -10px;
		right: 0px;
	}
}
