html {
	scroll-behavior: smooth;
}

:root {
	--color1: hsl(206,  84%, 40%);
	--color2: hsl(197, 100%, 47%);
	--color3: hsl(197, 100%, 70%);
	--color4: hsl(197,  50%, 90%);
	--color5: hsl( 69,  96%, 44%);
	--color6: hsl( 60, 100%, 90%);
	--color-link: hsl(0, 92%, 31%);
	--color-text: hsl(206, 33%, 30%);
	--font-text: Calibri, Arial, Helvetica, sans-serif;
	--font-head: Cambria, serif;
	--font-hebr: "Times New Roman", serif;
}
 
body {
	margin: 10px;
	font-size: 18px;
	font-family: var(--font-text);
	color: var(--color1);
	scroll-behavior: smooth;
}

*:target { /*[id] { */
	scroll-margin-top: 30px;
}

*[title] {
	border-bottom: 1px dashed var(--color1);
}
/*
header p {
	width: 768px;
	margin: 0;
	text-align: center;
}
*/

h1 {
	margin: 3em 0 .5em 0;
	font-size: 2.3rem;
	text-align: center;
}
h2 {
	margin: 2em 0 .2em 0;
	font-size: 1.5rem;
}
h3 {
	margin: 1em 0 0.5em 0;
	font-size: 1.2rem;
}
h5 {
	margin: 0;
	font-size: 1.2rem;
}
h6 {
	margin: 0;
	font-size: 1.5rem;
}
h1, h2, h3, h4, h5, h6 {
	text-wrap: balance
};
p {
	margin: 1rem 0;
}
p, li, th, td {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-text);
	text-wrap: pretty;
}
p:last-of-type,
ul:last-child {
	margin-bottom: 0;
}
blockquote {
	margin: 1em;
	padding: 0 0 0 0.5rem;
	color: #666; 
	font-size: 1rem;
	line-height: 1.4; 
    border: solid var(--color4); 
	border-width: 0 0 0 5px; 
	border-radius: 10px;
}
li {
	margin-top: 6px;
	margin-bottom: 6px;
}
em {
	font-family: var(--font-hebr);
}
h2 em {
	font-weight: 600;
}
sup {
	vertical-align:super; 
	line-height:0.5em; 
	font-size:70%;
}
a {
	text-decoration: none;
	color: var(--color-link);
	border-bottom: 1px dotted var(--color-link);
}
a:hover {
	text-decoration: underline;
}
bdi, bdo {
	font-family: "SBL Hebrew";
	font-style: normal;
	font-weight: inherit;
	font-size: 120%;
	color: inherit;
	padding: 0 2px;
	white-space: nowrap;
	direction: rtl;
}

.nobreak {
	white-space: nowrap;
}
.pre {
	white-space: pre;
}

main {
	display: flex;
	flex-flow: row nowrap;
	gap: 20px;
}

article {
	order: 2;
	width: 75ch;
	max-width: 75ch;
	padding: 1rem 1rem 8rem 1rem;
}

div#intro {
	color: var(--color1);
	position: relative;
}
div#intro img {
	margin-top: 8px;
	position: absolute;
	width: 25%;
	height: auto;
	z-index: -1
}
p.href {
	 position: absolute;
	 top: 0; 
	 margin: 0;
	 width: 100%; 
	 font-size: 1.2rem;
	 text-align: center;
	 z-index: 9;
}
p.hrefs {
	margin: 0;
	font-size: 125%;
	text-align: center;
}
.hrefs a {
	white-space: nowrap;
}
p.lezingen {
	text-align: center;
}
div.intro {
	padding: 10px;
	background: var(--color6);
	border-radius: 20px;
}
div.intro p:first-child {
	margin-top: 0;
}

/*
div#info {
	background: var(--color4);
	padding: 20px;
}
*/

div#vragen {
 /*	margin: 70px -20px 0 -20px; */
	margin: 70px 0;
	padding: 20px;
	background: var(--color4);;
	border: 1px solid var(--color2);
	border-radius: 10px;
}
div#vragen h2 {
	margin-top: 0;
}

div#extra {
	margin: 60px 0;
}

div#NZion,
div#Geert {
	margin: -10px -15px;
	padding: 10px 15px;
	background: #ffc;
	border: 3px solid #ff8;
	border-radius: 10px;
}
#NZion:target {
	border: 3px ridge #ff2;
}
#NZion h2,
#Geert h2 {
	margin-top: 0;
}
#NZion h3,
#Geert h3 {
	margin-top: 40px;
}

div#Geert {
	background: #eef;
	border: 3px solid #88f;
}

.terzij {
	margin: 10px 26px;
	font-size: 90%;
	color: #888;
}

img.links {
	float: left;
	margin-right: 10px;
	max-width: 40%;
}
img.rechts {
	float: right;
	margin-left: 10px;
	max-width: 40%;
}
img.nofloat {
	float: none;
}

img.links,
img.rechts,
img.nofloat,
figure img,
.grid img {
	height: auto;
	transition: all 1s;
}
img.links:hover,
img.rechts:hover,
img.nofloat:hover,
figure img:hover,
.grid img:hover {
	scale: 1.5;
	box-shadow: 2px 2px 25px #000;
}

figure {
	float: right;
	margin: 0 0 0 8px;
	max-width: 40%;
	background: var(--color4);
	outline: 3px solid var(--color4);
	border-radius: 8px;
}
figure img {
	width: 100%;
}
figcaption {
	padding: 4px;
	font-size: 75%;
	text-align: center;
}

iframe {
	margin-left: 6px
}

table.vergelijk td {
	font-size: 80%;
	line-height: 1.1em;
	vertical-align: top;
}

#balk-links {
	order: 1;
	width: clamp(200px, 13vw, 500px);
	min-width: 210px;
	height: 90vh;
	margin: 20px auto;	
	position: sticky;
	top: 30px;
	opacity: 0.3;
	transition: 0.5s;
}
#balk-links:hover {
	opacity: 1;
}
#balk-links:focus-within {
	opacity: 1;
}
#balk-links details {
	margin-bottom: 0px;
}
#balk-links summary {
	padding: .4em 0 .4em .4em;
	font: bold 1.25rem var(--font-text);
	white-space: nowrap;
}

#kalender table {
	width: 100%;
	font-family: Tahoma;
	font-size: 10.5pt; /* clamp(9pt, 0.9cqw, 12pt); */
	background: var(--color4);
	border: 3px ridge var(--color4);
	border-collapse: collapse;
}
#kalender th, 
#kalender td {
	height: 30px;
	padding: 2px 4px;
	font-weight: bold;
	line-height: 1.2;
	text-align: center;
	border: 1px solid #888;
	position: relative;
	cursor: pointer;
}
#kalender th {
	background: var(--color1);
	color: var(--color4);;
}
#kalender td:not(:has(div)){
	opacity: 0.3;
	cursor: auto;
}
#kalender td div {
	position: absolute;
	top: 15px;
	left: 20px;
	padding: 8px 16px;
	white-space: nowrap;
	text-align: left;
	font-size: 110%;
	background: var(--color1);
	color: #fff;
	border-radius: 0 20px 20px 20px;
	display: none;
	opacity: 1;
	z-index: 2;
}
#kalender td:hover div {
	display: block;
}
.special1 {
	background: var(--color3);
}
.special2 {
	background: var(--color2);
	color: #fff;
}

.onderdeel{
	--iconsize: 20px;
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 2px;
}
.onderdeel-tekst {
	align-self: center;
	color: var(--color-text);
}

#icons {
	box-sizing: border-box;
	width: 100%;
	height: 50px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--color4);
	border: 3px ridge var(--color4);
	--iconsize: 30px; 
}
.icon {
	width: var(--iconsize);
	height: var(--iconsize);
	margin: 2px auto;
	display: grid;
	place-items: center;
	background: radial-gradient(ellipse at 30% 30%, var(--color2), var(--color1));
	color: #fff;
	font: bold 54px serif;
	font-size: calc(0.9 * var(--iconsize));
	border: 3px solid var(--color2);
	border-radius: 50%;
	cursor: pointer;
	transition: 0.5s;
}
.icon:hover {
	border: 3px solid var(--color1);
}
.NZ {
	font: bold 80% Tahoma;
	transition: 1s;
}
.NZ:hover {
	transform: rotate(90deg);
}
#NZion:hover .NZ {
	transform: rotate(270deg);
}

#mail {
	box-sizing: border-box;
	width: 100%;
	padding: 0px 10px 10px 10px;
	background: var(--color4);
	border: 1px solid var(--color3);
}
#mail p {
	line-height: 1;
	color: var(--color1);
}
#mail form {
	margin-top: 8px;
}
#mail input {
	width: calc(100% - 52px);
	font: normal 100% var(--font-text);
}
#mail input:first-child::placeholder {
	color: var(--color3);
}
#mail input:last-child {
	float: right;
	width: 40px;
}

#balk-rechts {
	order: 3;
	width: auto;
	max-width: 220px;
	height: 120px;
	margin: 10px auto;
	display: flex;
	flex-flow: row wrap;
	justify-content: flex-end;
	gap: 10px;
}

.logo {
	width: auto;
	margin: 10px;
	text-align: right;
}

.logo img {
	height: 100px;
	width: auto;
	margin: 10px;
}


/*** MODAL ***/
 
/* de modal als geheel */
.modal {
    min-width: 200px;
    max-height: 96vh;
    padding: 32px 0 0 0;
    position: fixed;
    left: 50vw;
    top: 50vh;
    transform: translate(-50%, -50%);
    margin: 0;
    border: 3px ridge gray;
}

.modal-content {
    position: relative;
    scroll-margin-top: 0px;
    overscroll-behavior: contain;
}

/* modal met tekst */
.modal .tekst {
    max-width: 80ch;
    max-height: calc(96vh - 64px);
    padding: 10px 10px 0px 30px;
    overflow-x: scroll;
    overflow-x: hidden;
}

.modal .tekst h2 {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color1);
}

.modal .tekst p {
	font-size: 1rem;
	line-height: 1.6;
}

.modal .tekst b,
.modal .tekst a {
	font-weight: normal;
	color: var(--color1);
}

.modal .tekst sup {
	font-size: 70%;
	color: var(--color2);
	margin-right: 2px;
}

/* de balk bovenaan, met X */
.modal .balk {
    position: absolute;
    top: 0;
    left: 0;
    height: 32px;
    width: 100%;
    padding-left: 8px;
    font: bold 16px sans-serif;
    line-height: 2; 
    background: var(--color1);
    overflow: hidden;
    color: #fff;
}
.modal .balk a {
	color: var(--color4)
}

.modal .close {
    display: block;
    position: absolute;
    right: 6px;
    top: 2px;
    font: bold 120% sans-serif;
    color: #fff;
    z-index: 999;
}

/* modal met image */
.modal .image {
    padding: 16px;
    background: #fec;
}
.modal .image img {
    display: block;
    margin: 0;
    max-height: calc(98vh - 64px);
}

.modal::backdrop {
    background: #000;
    opacity: 0.75;
}


/*** @MEDIA ***/
/*
@media (max-width: 1279px) {
	.logo img {
		height: 60px;
		margin: 0;
		margin-left: -30px;
	}
}
*/
@media (max-width: 1166px) {
	body {
		font-size: 16px;
	}
	main {
		flex-flow: row wrap;
	}
	article {
		order: 3;
		width: 70ch;
		max-width: 90vw;
		padding: 0;
		margin: 0 auto;
	}
	#balk-rechts {
		order: 2;
		width: 140px;
	}
	#balk-links {
		position: static;
		width: 40vw;
		height: auto;
		opacity: 1;
	}
	.logo img {
		height: 60px;
		margin: 0;
		margin-left: -30px;
	}
	.modal .tekst {
		width: 96vw;
	}
}

@media (max-width: 749px) {
	#balk-rechts {
		order: 4;
		width: 140px;
	}
	.logo img {
		height: 40px;
		margin: 0;
	}
}
