﻿/*ebooks bibliotheek*/
.ebook-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-top: 1.5rem;
}

@media (max-width: 992px) {
	.ebook-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.ebook-grid {
		grid-template-columns: 1fr;
	}
}

.ebook-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease;
}

	.ebook-card:hover {
		transform: translateY(-4px);
	}

	.ebook-card figure {
		margin: 0;
		display: flex;
		flex-direction: column;
		height: 100%;
	}

	.ebook-card img {
		width: 100%;
		height: auto;
		display: block;
		object-fit: cover;
		aspect-ratio: 5 / 5; /*	 4 / 3;*/
	}

	.ebook-card figcaption {
		padding: 1rem;
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
	}

	.ebook-card h3 {
		font-size: 1.1rem;
		margin: 0;
		color: #003366;
	}

	.ebook-card p {
		font-size: 0.95rem;
		color: #555;
		flex-grow: 1;
	}

	.ebook-card a.buttonlink {
		border-radius: 5px;
		width: 80%;
		margin: 0 10%;
		color: #FFF;
		background: #1B75BA;
		text-align: center;
		font-weight: bold;
		font-size: 20px;
		padding: 15px;
		text-decoration: none;
	}

/*ebook download page*/

section.ebooktop {
	background: #F0F3F5;
	border-bottom: 1px solid #CCC;
}
section.ebook-checklist {
	background: #f8f8f8;
	border-bottom: 1px solid #CCC;
}

.ebook-layout {
	display: flex;
	gap: 4rem;
	margin-top: 2rem;
}

	.ebook-layout p {
		font-size: 1.2rem;
		line-height: 1.7rem;
	}

	.ebook-layout .button {
		margin: 24px 0 0 2.5%;
		padding: 0px 25px;
		font-weight: bold;
		background: #1B75BB;
		border-radius: 5px;
		text-align: center;
		color: #FFF;
		height: 45px;
		cursor: pointer;
		font-size: 13pt;
		border: 0px;
	}

	.ebook-layout img {
		width: 340px;
		height: auto;
	}

.ebook-summary {
	flex: 1;
}

.ebook-checklist ul {
	list-style: none;
	padding: 0;
	margin: 3rem 0;
}

.ebook-checklist li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: 1rem;
	font-size: 1.2rem;
	color: #333;
}

	.ebook-checklist li::before {
		content: "✔";
		position: absolute;
		left: 0;
		top: 0;
		color: #009688; /* of je primaire accentkleur */
		font-weight: bold;
	}


/* Basis styling */
#download-dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	padding: 1.5rem;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	z-index: 9999;
	width: 90%;
	max-width: 700px;
	border-radius: 8px;
	border: 1px solid #CCC;
}

	#download-dialog::backdrop {
		background: rgba(2,6,23,.6);
		backdrop-filter: blur(2px);
	}

/* Binnenkant */
.ebook-form {
	display:flex;
	gap: 1rem;
	
}

#download-dialog .ebook-form input {
	width: 100%;
	padding: 0.5rem 0.75rem;
	margin-top: 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
}

#download-dialog .ebook-form img {
	width: 50%;
	max-width: 340px;
	height: auto;
}

.close {
	position: absolute;
	right: 15px;
	top: 0px;
	background: transparent;
	border: 0;
	font-size: 24pt;
	cursor: pointer;
}
#download-dialog .ebook-form .button {
	margin-top: 1.5rem;
	padding: 0.7rem 1.5rem;
	background: #1B75BB;
	color: #fff;
	font-size: 1rem;
	font-weight: bold;
	text-align: center;
	border-radius: 5px;
	cursor: pointer;
	user-select: none;
}

#download-dialog .ebook-form div h2 {
	font-weight: 700;
	font-size: 1.5rem;
	margin: 0 0 0.5rem;
}

#download-dialog .ebook-form div p {
	font-size: 1.1rem;
	line-height: 1.7;
	margin: 0.5rem 0;
}

/* Optioneel: focus styles voor toegankelijkheid */
#download-dialog :focus {
	outline: 2px solid #000;
	outline-offset: 2px;
}