@import url('normalize.css');
@import url('variables.css');

@font-face {
	font-family: 'Dancing Script';
	src: url('../fonts/Dancing_Script/DancingScript-Regular.ttf');
}

@font-face {
	font-family: 'Yanone Kaffeesatz';
	src: url('../fonts/Yanone_Kaffeesatz/YanoneKaffeesatz-Regular.ttf');
}


.debug {
	color: var(--debug-color);
}

/* @import url("https://fonts.googleapis.com/css?family=Dancing+Script|Yanone+Kaffeesatz&display=swap"); */
/*----------  Main blocks ---------- */
body,
html {
	margin: 0;
	padding: 0;
	background: var(--body-background-color);
	scroll-behavior: smooth;
	font-size: 1.1rem;
}

body {
	display: flex;
	flex-direction: column;
	font-family: var(--body-font);
	height: auto;
	justify-content: space-between;
	min-height: 100dvh;
	min-width: 320px;
	position: relative;
	width: 100dvw;
	/* Prevent page from jumping around if less than 1 screen long */
	/* overflow-y: scroll; */
}

img {
	max-width: 100%;
}

/* ---------- Navbar ---------- */
header#navbar {
	position: fixed;
	top: 0;
	z-index: 100;
	height: var(--navbar-height);
	min-width: 100%;
	width: 100%;
	background-color: var(--banner-background-color);
	color: var(--banner-text-color);
	font-family: var(--banner-font);
	text-shadow: 2px 4px 10px var(--banner-text-shadow-color);
	border-bottom: 1.5px solid var(--banner-border-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: box-shadow 0.25s linear;
}

header *.open a:focus {
	background-color: var(--focus-color) !important;
}

div.logo {
	font-size: 2rem;
	font-weight: 700;
	white-space: nowrap;
	padding-left: 1rem;
}

	div.logo a {
		text-decoration: none;
		color: var(--banner-text-color);
	}

nav#menu {
	font-weight: 500;
	display: flex;
	justify-content: space-between;
	padding-right: 1rem;
	transform: translateY(.6rem);
}

	nav#menu a,
	footer a {
		color: var(--banner-text-color);
		text-decoration: none;
		padding: .2em .5em;
		font-size: 1.2rem;
		border-radius: 5px;
		border: 1px solid transparent;
	}

		nav#menu a.current {
			font-weight: 700;
			text-decoration: underline;
			text-decoration-color: var(--banner-text-hightlight-color);
			text-underline-offset: 5px;
		}

			nav#menu a.current::after {
				content: ' ';
				width: 1px;
				height: 1px;
				display: block;
				position: relative;
				top: .2rem;
				border: 4px solid var(--banner-text-color);
				border-radius: 50%;
				background-color: var(--banner-text-color);
				left: calc(50% - 5px);
			}

		nav#menu a#searchButton > span.label {
			display: none;
		}

button#hamburger {
	color: var(--banner-text-color);
	display: none;
	margin-right: 1rem;
	background: transparent;
    border: none;
}

	button#hamburger i {
		transform: none;
		transition: transform 0.3s ease-in-out;
	}

/* ---------- Main content ---------- */
main.container {
	margin: var(--navbar-height) auto 2rem;
	width: 100%;
	max-width: 1200px;
	height: 100%;
	color: var(--body-text-color);
}

div.visual {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	height: 300px;
	max-width: 100%;
	transition: all 1s linear;
}

h1,
article {
	margin: 0 1rem;
	box-sizing: border-box;
}

/* ---------- chevrons for when the visual takes up most of the display ---------- */
div#chevrons {
	width: 5rem;
	text-align: center;
	background-color: var(--floating-overlay-background-color);
	border-radius: 100px 100px 0 0;
	position: fixed;
	bottom: 0;
	left: calc(50vw - 2.5rem);
	opacity: 0;
	transition: opacity 0.5s linear;
	display: none;
}

	div#chevrons.show {
		opacity: 1;
		display: block;
	}

	div#chevrons p {
		line-height: 0;
		font-size: 2rem;
		margin: 0;
		animation: lightup 1s infinite;
		color: var(--floating-overlay-text-color);
	}

		div#chevrons p:nth-child(2) {
			animation-delay: 0.2s;
		}

		div#chevrons p:first-of-type {
			transform: translateY(1rem);
		}

		div#chevrons p:last-of-type {
			transform: translateY(-1rem);
			animation-delay: 0.4s;
		}

@keyframes lightup {
	0% {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

div#toTop {
	width: 3rem;
	height: 3rem;
	text-align: center;
	vertical-align: middle;
	background-color: var(--floating-overlay-background-color);
	border-radius: 40%;
	border: 1px solid var(--floating-overlay-border-color);
	position: fixed;
	bottom: calc(var(--footer-height) - .5rem);
	right: 2.5rem;
	opacity: 0;
	transform: rotate(-15deg);
	transition: opacity 0.5s linear;
}

	div#toTop a {
		display: inline-block;
		width: 100%;
		line-height: 3rem;
		font-size: 2rem;
		margin: 0;
		transform: rotate(7deg);
		animation: lightup 3s infinite;
		color: var(--floating-overlay-text-color);
	}

	div#toTop.show {
		opacity: .75;
	}

/* ---------- Lightbox and searchpage styles ---------- */
div#lightbox,
div#searchpage, .overlay {
	position: fixed;
	top: 0;
	left: 0;
	display: none;
	z-index: 1000;
	background-color: var(--overlay-background-color);
	width: 100%;
	height: 100%;
	margin: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

div.inbox {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 90%;
	max-height: 90%;
}

div#lightbox img,
div#searchpage form {
	display: block;
	max-width: 95%;
	max-height: 95%;
	border: 2px var(--floating-overlay-border-color) solid;
	text-align: center;
}

div#searchpage form {
	background: var(--form-background-color);
	color: var(--overlay-text-color);
	padding: .5rem;
	font-size: 1.2rem;
}

#sr_searchbutton {
	width: 90%;
	background: var(--btn-background-color);
	border-radius: 20px;
	line-height: 2rem;
	color: var(--overlay-text-color);
	border: none;
	margin: 1rem auto 0;
}

span.btn-close {
	text-align: right;
	display: block;
	width: 90%;
	padding: 0 1rem 1rem;
	background: transparent;
	color: var(--btn-color);
	font-size: 2rem;
	justify-self: self-end;
}

form input {
	max-width: 100%;
}

form {
	border-radius: 5px;
}

/* ---------- Contact info ---------- */
div#contact {
	opacity: 0.6;
	background: var(--floating-overlay-background-color);
	display: inline-block;
	width: auto;
	height: 2rem;
	line-height: 2.2rem;
	text-align: center;
	padding: 0.5rem;
	color: var(--floating-overlay-text-color);
	font-size: 1.5rem;
	border-radius: 100px 0 0 100px;
	position: fixed;
	bottom: 35vh;
	right: -5.5rem;
	z-index: 100;
	transition: all 1s ease-out;
}

div#contact:hover,div#contact:active, div#contact.touch {

	right: 0;
	opacity: 0.95;
	}

	div#contact a {
		text-decoration: none;
		color: var(--floating-overlay-text-color);
		margin: auto 1rem;
		transition: all 1s ease-out;
	}

/* ---------- Footer styles ---------- */
footer {
	align-self: flex-end;
	height: var(--footer-height);
	min-width: 100%;
	width: 100%;
	background-color: var(--banner-background-color);
	color: var(--banner-text-color);
	font-family: var(--banner-font);
	text-shadow: 2px -4px 10px var(--banner-text-shadow-color);
	border-top: 1.5px solid var(--banner-border-color);
	display: grid;
	grid-template-columns: 1fr 3fr 1fr;
	justify-content: space-between;
	align-items: center;
}

	footer div:first-of-type {
		text-align: left;
		margin-left: 1rem;
		font-size: 1rem;
	}

	footer div:last-of-type {
		text-align: right;
		margin-right: 1rem;
		font-size: 1rem;
	}

	footer div.links {
		display: flex;
		justify-content: space-evenly;
		flex-wrap: nowrap;
	}

		footer div.links a {
			flex-grow: 3;
			text-align: center;
		}

/* ---------- Heading styles ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--titles-font);
	color: var(--titles-text-color);
	border-bottom: 1px solid var(--titles-border-color);
	background: transparent;
}


#pageTitle {
	border-bottom: 1px solid var(--titles-border-color);
	right: unset;
	font-size: 2rem;
	margin-top: 1rem;
	width: auto;
	box-shadow: none;
	transition: all 0.25s linear;
}

/* ---------- containers and inlines ---------- */
main.container a {
	color: var(--body-linktext-color);
	border-bottom: 1px dotted var(--body-linktext-color);
	text-decoration: none;
}

	main.container a:hover,
	main.container a:active {
		color: var(--body-linktext-highlight-color);
		border-bottom: 1px solid var(--body-linktext-highlight-color);
		text-decoration: none;
	}

span.titel {
	color: var(--color-titel);
	font-weight: 500;
}

span.prijs {
	color: var(--body-text-highlight-color);
}

span.persoon {
	color: var(--color-person);
}

span.contact {
	font-size: 1em;
}

span.fotorechten {
	font-size: 0.8em;
	text-align: right !important;
	clear: left;
}

span.evenement {
	color: var(--color-event);
}

span.plaats {
	color: var(--color-place);
}

div.boek {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-template-rows: max-content;
	grid-gap: 0.5rem;
	padding: 0.5rem;
	background-color: var(--color-book-card);
	border: 1px dotted var(--color-book-border);
	border-radius: 10px;
	margin: 1rem 0;
}

div.quotes {
	grid-column: 1 / 7;
	grid-row: 3 / 4;
}

div.quote p {
	text-align: center;
	font-style: italic;
	color: var(--color-quote);
	margin-bottom: 0;
}

	div.quote p.quotesource {
		text-align: right;
		font-size: 0.7875em;
		color: var(--color-quotesource);
		margin: 0 0;
	}

h3.titel {
	grid-column: 1 / -1;
	grid-row: 1 / 2;
	font-size: 1.5rem;
	margin: 0;
}

div.kaft {
	display: block;
	width: auto;
	grid-column: 7/ -1;
	grid-row: 2 / 4;
	margin: 0.5rem auto;
	transform: rotate(5deg);
	padding: 1rem;
}

	div.kaft a {
		text-align: right;
		max-width: 100%;
		border: none;
	}

	div.kaft img {
		/* box-shadow: 0 4px 20px var(--image-box-shadow-color);*/
		filter: drop-shadow(0px 4px 20px var(--image-box-shadow-color));
	}

div.beschrijving {
	grid-column: 1 / 7;
}

div.data {
	vertical-align: bottom;
	grid-column: 1 / -1;
	background: var(--color-data-background);
	color: var(--color-data-text);
	padding: 0 0.5rem;
	margin: 0.5rem -0.5rem -0.5rem;
	border-radius: 0 0 10px 10px;
}

div.foto {
	display: block;
	text-align: center;
	clear: both;
	padding: 10px 10px;
}

/* ---------- Responsive behaviour ---------- */
@media screen and (max-width: 1200px) {
	:root {
		--navbar-height: 6rem;
	}

	header#navbar {
		flex-direction: column;
		justify-content: flex-start;
	}

	div.logo {
		padding: 0.5rem 0;
	}

	nav#menu a {
		padding: .2em .5em;
	}

	nav#menu {
		margin-left: 1rem;
		transform: translateY(0);
	}
}

@media screen and (max-width: 768px) {
	:root {
		--navbar-height: 4.5rem;
		--footer-height: 3rem;
	}

	div.logo {
		font-size: 1.5rem;
		padding: 0.25rem 0;
	}

	nav#menu a {
		padding: .1em .5em;
	}

		nav#menu a#searchButton {
			margin-left: 0;
		}

	nav#menu a,
	footer a {
		font-size: 1rem;
	}

	div.visual {
		height: 250px;
	}


	footer {
		grid-template-columns: 1fr 1fr 1fr;
	}

		footer span.label {
			display: none;
		}
}

@media screen and (max-width: 660px) {
	:root {
		--navbar-height: 3rem;
		--footer-height: 4rem;
	}

	header#navbar {
		flex-direction: row;
		justify-content: space-between;
		z-index: 1000;
	}

	button#hamburger {
		display: block;
		font-size: 1.5rem;
		transform: unset;
		transition: transform 500ms ;
	}

		button#hamburger.open {
			transform: rotateZ(450deg);
			transition: transform 500ms ;
		}

	div.logo {
		padding-left: 1rem;
	}

	nav#menu {
		display: none;
		visibility: hidden;
		opacity: 0;
		position: absolute;
		top: var(--navbar-height);
		flex-direction: column;
		justify-content: flex-start;
		background-color: var(--banner-background-color);
		width: 100%;
		margin-left: 0;
		border-top: 1px solid var(--banner-text-color);
		border-bottom: 1.5px solid var(--banner-border-color);
		box-shadow: 0 4px 20px var(--banner-box-shadow-color);
		transition: opacity 0.5s linear;
	}

		nav#menu.open {
			display: flex;
			visibility: visible;
			opacity: 1;
			overflow-y: auto;
			max-height: calc(100vh - var(--navbar-height));
		}

		nav#menu a {
			font-size: 1.5rem;
			line-height: 3rem;
			border-bottom: 1px solid var(--banner-text-color);
			text-align: center;
		}

			nav#menu a.current {
				background-color: var(--color-current-page-menu-highlight);
			}

				nav#menu a.current::after {
					display: inline-block;
					margin-left: 1rem;
					left: inherit;
					top: inherit;
				}

			nav#menu a#searchButton span.label {
				display: inline;
			}

	div.visual {
		background-size: cover;
		background-position: bottom right 35%;
		height: 200px;
	}

	#navbar.fixedHeading {
		box-shadow: 0 2px 5px var(--banner-box-shadow-color);
		transition: box-shadow 0.25s linear;
	}

	#pageTitle.fixedHeading {
		position: fixed;
		right: 0rem;
		width: auto;
		margin: 0;
		padding: 0.5rem 1rem; 
		z-index: 100;
		border-radius: 0 0 0 10px;
		border-bottom: 3px solid var(--titles-border-color);
		border-left: 3px solid var(--titles-border-color);
		border-top: none;
		background-color: var(--body-background-color);
		font-size: 1.4rem;
		transition: position .25s linear, width .25s linear, border .25s linear, font-size .25s linear,  right .25s linear;
		/* top is calculated in javascript */
	
	}

	footer {
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: auto auto;
	}

		footer div.links {
			grid-row: 1 / 2;
			grid-column: 1 / 4;
			justify-content: space-between;
			margin-left: 1rem;
			margin-right: 1rem;
		}

		footer div:first-of-type {
			grid-column: 1/3;
		}

		footer div:last-of-type {
			grid-column: 3/4;
		}

		footer span.label {
			display: inline-block;
			font-size: 0.95rem;
		}
}

@media screen and (max-width: 576px) {
	div.boek {
		display: flex;
		flex-direction: column;
		max-width: 100%;
	}
}

@media screen and (max-width: 380px) {
	:root {
		--footer-height: 4.5rem;
	}

	footer span.label {
		font-size: 0.75rem;
	}
}

@supports (not (display:grid)) or (not (display: flex)) {
	/* ------------ for browsers that do not support grid and/or flexbox ---------- */
	body {
		display: block;
	}

	nav#menu a#searchButton span {
		cursor: pointer;
		/* for IOS9 safari ... */
	}

	div.boek {
		display: block;
		max-width: 100%;
	}

	div.kaft {
		margin: 3rem auto 1rem;
		transform: rotate(5deg);
		padding: 1rem;
	}

	footer {
		clear: both;
		padding: 1rem;
	}

		#navbar, footer, footer div.links, nav#menu {
			/* for browsers that do not support grid */
			display: table;
		}

			footer div, #navbar div, nav#menu, nav#menu a {
				display: table-cell;
			}

				footer div:last-of-type {
					text-align: center;
				}
}
