* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

:root {
  --blauw: hsl(196, 52%, 46%);
  --pink: hsl(0, 59%, 94%);
  --light-bg: hsl(204, 37%, 92%);
  --light-gray-bg: hsl(0, 0%, 94%);
  --white: hsl(0, 0%, 100%);
  --dark: hsl(0, 0%, 7%);
  --rood: hsl(3, 70%, 48%);
}

html, body {
	height: 100%;
	width: 100%;
	margin: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh; /* overrides where supported */
}

body {
  font-family: "Source Sans Pro", sans-serif;
  color: var(--dark);  
  position: static;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url(https://www.goudatijdmachine.nl/omeka/iiif/2/2966756/full/728,1000/0/default.jpg);
  background-size: cover;
  background-blend-mode: lighten;  
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed; /* optional: nice for desktop, but can break on mobile */
}

main {
  padding-top:11em;
  flex: 1; /* pushes footer to bottom */
  text-align:center;
}


h3 {
  font-size: 1.2em;
  font-weight: 700;
}

p {
  font-size: 1em;
  line-height: 1.7;
  font-weight: 300;
  color: var(--dark);
}

.description {
  white-space: wrap;
}

.bron {
	border-top:1px solid var(--blauw);
	font-size:0.8em;
	padding:1em;
	
}

a {
  color: inherit;
}

.wrap {
  display: flex;
  justify: space-between;
  align-items: stretch;
  width: 96%;
  margin:auto;
  gap: 4em;
  padding: 2em;
  flex-wrap: wrap;
}

.box {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  position: relative;
  padding: 24px;
  background: #fff;
  box-shadow: 3px 3px 6px #555;
}

.box:hover {
	box-shadow: 3px 3px 8px #888;
}

.box-top {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 12px;
  margin-bottom: 16px;
}

.box-image  {
  width: 75px;
  height: 75px;
  margin:0 auto;
  object-fit: contain;
}

.box-image, .toon-image {
   filter: sepia(1) saturate(100%) hue-rotate(172deg);
}

.title-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.box-title {
  border-bottom: 1px solid var(--blauw);

}

.alts {
  color: var(--blauw);
  padding: 2px 12px;
}

.button {
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: auto;
  padding: 5px !important;
  border-radius: 5px !important;
  color: #fff;
  width: 15em;
  text-decoration: none !important;
  background: hsl(196deg 52% 46% / 63%);
}

.button:hover, .button:active {
  background: var(--blauw);
}

@media (min-width: 640px) {
  .box {
    flex-basis: calc(50% - 2em);
  }
}

@media (min-width: 1024px) {
  .box {
    flex-basis: calc(24.5% - 3em);
  }
}

.ingebruik {
	font-size:0.75em;
	background-color:var(--rood);
	border-radius:15px;
	padding:3px 6px 1px 6px;
	color:#fff;
	float:right;
}

.ingebruik2 {
	font-size:0.75em;
	background-color:var(--rood);
	border-radius:15px;
	padding:3px 6px 1px 6px;
	color:#fff;
	margin-left:1em;
}

.merksoort {
	font-size:0.75em;
	background-color:var(--blauw);
	border-radius:10px;
	padding:3px 6px 3px 6px;
	color:#fff;
	width:15em;
	margin:1em auto;
}

#toon_bladzijde, .merksoort a {
	text-decoration:underline;
	margin:0 6px;
	cursor:pointer;
}

#viewerOverlay {
  display: none; /* hidden by default */
  position: fixed;
  top: 1em;
  left: 1em;
  right: 1em;
  bottom: 1em;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  z-index: 9999;
}

#viewerOverlay iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#closeViewer {
  position: absolute;
  top: 0.5em;
  left: 15em;
  background: var(--rood);
  color: white;
  border: none;
  border-radius: 50%;
  width: 2em;
  height: 2em;
  font-size: 1.2em;
  line-height: 1.2em;
  cursor: pointer;
  z-index: 10000;
}

#closeViewer:hover {
  background: var(--blauw);
}

/* Header */

header {
	position:absolute;
	top:0;
	height: 12vh;
	width:100%;
	background-color:var(--blauw);
	color:white;
}

.header-title {
  margin: 0.6em 0 0em 0;
  color: white;
  font-size: 1.4em;
  font-weight: 500;
  text-align: center;
}

h1 { 
	color: white;
	text-align: center;
    padding: 0.5em;
    font-size: 1.4em;
    text-wrap-style: balance;
    background-color: var(--blauw);	
	height:3em;
}

.header-logo {
  vertical-align: super;
}

/* Search input */
.search-container {
  margin: 2em auto;
}

.search-input {
  width: 100%;
  font-size: 1.2em;
  padding: 10px;
}

input,select {
	padding:3px;
	font-size:1.4em;
	margin:5px;
	width:15em;
	border:1px solid var(--blauw);
	background-color: #ffffffaa;
}

p img { padding:1em }

footer {

	color:#555;
	background-color:#ffffffaa;
	padding:1em;text-wrap-style:balance;
	font-size:0.9em;
	text-align:center;
	line-height:1.3em;
}

.of {
	margin: 1em auto;
    background-color: hsl(3deg 70% 48% / 64%);
    border-radius: 80%;
    color: white;
    width: 4em;
}