/*
Theme Name: La casa de Sefarad
Text Domain: sefarad
Author: Xeleh
Version: 1.0
*/

:root {
	--sefa-color1: rgb(0, 0, 0);
	--sefa-color2: rgb(153, 0, 51);
	--sefa-footer-background: #626161;
	--sefa-footer-color: rgb(233, 233, 233);
	--sefa-footer-color-hover: #ffffff;
}

header .logo {
	max-width: 180px;
}

@media screen and (max-width: 640px) {
	header .logo {
		max-width: 120px;
	}
}

/* header .fondo {
	background-image: url('../assets/fondo.png');
	background-repeat: no-repeat;
	background-size: cover;
} */

header .container {
	opacity: 0.99;
}

header .adorno img.fondo {
	position: absolute;
	top: 0;
	width: 100%;
	object-fit: cover;
	pointer-events: none;
}

header .adorno img.foto {
	position: relative;
	width: 100%;
	object-fit: cover;
	margin-bottom: 60px;
	pointer-events: none;
}

header .home-button {
	position: absolute;
	top: 25px;
}

header .home-button a {
	background-color: white;
}

@media screen and (max-width: 640px) {
	header .adorno img.fondo {
		min-height: 400px;
	}
	header .adorno img.foto {
		min-height: 200px;
		margin-bottom: 40px;
	}
	header .home-button {
		top: 15px;
	}
}

/* */

main .container {
	opacity: 0.99;
	min-height: 100vh;
}

main h2.title {
	color: var(--sefa-color2);
	text-align: center;
	font-family: cursive;
	margin-bottom: 20px;
}

@media screen and (max-width: 640px) {
	main h2.title {
		font-size: 21px;
		margin-bottom: 10px;
	}
}

.accordion-body {
	background: white;	
}

.input-group-text {
	min-width: 120px;
}

@media screen and (max-width: 640px) {
	form#form-advanced input {
		border-top-left-radius: var(--bs-border-radius);
		border-bottom-left-radius: var(--bs-border-radius);
	}
	form#form-advanced .form-text {
		padding-bottom: 4px;
	}
}

.search-icon {
	margin-top: -4px;
	margin-right: 2px;
}

.card-actions {
	position: absolute;
	top: 0;
	right: 0;
	margin: 10px 10px;
}

.card-actions a.btn {
	border: 1px solid transparent;
	opacity: 0.5;
	padding: 4px 4px 6px 6px;
}

.card-actions a.btn:hover {
	border: 1px solid;
	opacity: 1;
}

.card .card-title {
	font-weight: bold;
	font-size: 18px;
}

.card .card-title a {
	color: var(--sefa-color1);
}

.card.autor .card-title {
	margin-bottom: 0;
}

.card.materia .card-title .info {
	font-weight: normal;
}

a.autor, span.autor {
	color: var(--bs-secondary-color) !important;
}

a.card-link.materia {
	margin-left: 0;
	margin-right: 1rem;
	color: var(--sefa-color2);
}

a.card-link.indice {
	margin-left: 0;
	margin-right: 1rem;
	line-height: 30px;
	white-space: nowrap;
}

p.total {
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow-x: hidden;
	font-size: 16px;
	font-weight: normal;
}

p.pagina {
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow-x: hidden;
	font-size: 16px;
	font-weight: normal;
}

.list .list-item {
	padding-bottom: 10px;
}

.list .list-item .obra-literaria {
	font-style: italic;
}

.dropdown-menu {
	-webkit-box-shadow: 0px 2px 15px -5px rgba(0,0,0,0.75);
	-moz-box-shadow: 0px 2px 15px -5px rgba(0,0,0,0.75);
	box-shadow: 0px 2px 15px -5px rgba(0,0,0,0.75);
}

/* */

.modal-header {
	border-bottom: 0;
}

.materia-search {
	position: absolute;
	right: 32px;
	top: 59px;
}
.materia-search svg {
	filter: invert(1) opacity(0.8);
	margin-top: 0px;
}

.modal-dialog-scrollable {
	height: calc(80% - var(--bs-modal-margin)* 2);
}

@media (max-width: 576px) {
	.materia-search {
		right: 23px;
		top: 51px;
	}
}

.list-group-item:hover {
	background-color: #cfe2ff;
}

/* */

footer {
	margin-top: 100px;
	min-height: 60px;
	background-color: var(--sefa-footer-background);
	color: var(--sefa-footer-color);
}

footer .logo {
	max-width: 55%;
	padding: 0px 0px 30px 0px;
}

footer .datos-contacto {
	text-align: center;
}

footer h3 {
	font-size: 1.5em;
	font-weight: 300;
}

footer a {
	color: var(--sefa-footer-color);
	text-decoration: none;
}

footer a:hover {
	color: var(--sefa-footer-color-hover);
}

footer a.indice {
	display: flex;
	line-height: 30px;
}

footer a.social-icon img {
	width: 40px;
	height: 40px;
	filter: opacity(0.85);
}

footer a.social-icon img:hover {
	filter: opacity(1);
}

footer h3, footer p {
	font-weight: 200;
}

@media screen and (max-width: 640px) {
	footer h3, footer p {
		text-align: center;
	}
}

/* estilos para impresión */

@media print {
	header img.fondo {
		visibility: hidden;
	}
	main .container {
		max-width: 100%;
	}
	.home-button {
		display: none;
	}
	.accordion-button.collapsed, .accordion-button::after, button[type="submit"] {
		display: none;
	}
	.accordion-item:first-of-type, .accordion-item:first-of-type .accordion-button {
		border-top-left-radius: 0 !important;
		border-top-right-radius: 0 !important;
	}
	.accordion-body.p-3.p-sm-4 {
		padding-bottom: 10px !important;
	}
	#flex-texto {
		margin-right: 0 !important;
		margin-bottom: 15px !important;
	}
	main .card {
		page-break-inside: avoid;
	}
	.card-actions {
		display: none;
	}
	footer {
		display: none;
	}
	input#campo-materias {
		border-top-right-radius: var(--bs-border-radius);
		border-bottom-right-radius: var(--bs-border-radius);
	}
	button#button-elegir-materia {
		display: none;
	}
}