*,
*:before,
*:after{
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
*{
  font-family: Arial, Helvetica, sans-serif;
}
html,
body{
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
body{
  background-image: url("./img/background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}
#topmenu{
  display:inline-block;
  width: calc(23em - 1px); /* sluit rechts aan op input+button */
  margin-bottom: 0.5em;
}
#topmenu button,
#canvasbuttons button,
#specialsearchbar button{
  vertical-align: top;
  width: 2em;
  height: 2em;
  padding: 3px;
}
button:hover{
  background-color: white;
}
#canvasbuttons button{
  width: 4em;
}
#canvasbuttons button img{
  height: 100%;
  width: auto;
}
#topmenu button img{
  width: 100%;
  height: 100%;
}
input#search{
  padding: 0.25em;
  width: 21em;
}
button{
  background-color: transparent;
  border: 1px solid gray;
  padding: 3px;
}
button > img{
  width: 100%;
  height: 100%;
}
#preResults{
  display: inline-block;
  padding: 0.5em 0 0.5em 0;
  border-left: 1px solid #777;
  border-right: 1px solid #777;
  border-bottom: 1px solid #777;
  border-bottom-left-radius: 0.5em;
  border-bottom-right-radius: 0.5em;
  width: calc(21em - 2px);
  overflow: hidden;
}
#preResults > div{
  padding: 0.25em 1em 0.25em 1em;
}
#preResults > div:hover{
  background-color: #eee;
  cursor: pointer;
}
#results{
  overflow-y: auto;
  margin-right: -0.5em;
}
.card:nth-child(n+2),
.minicard:nth-child(n+2){ /* scheidingslijntjes tussen de kaartjes */
  border-top: 1px solid #ccc;
}
.card,
.minicard{
  padding: 0.5em 1em 0.5em 2em;
  cursor: pointer;
  line-height: 1.5em;
  width: 100%;
}
.card:hover,
.minicard:hover{
  background-color: #def;
}
.card img,
.minicard img{
  height: 3em;
  margin-left: 0.5em;
}
img.withimage{
  border: 1px solid gray;
  box-shadow: 1px 1px 6px rgb(0 0 0 / 50%);
}
.card img.withimage:hover{
  border-width: 0;
}
.card td,
.minicard td{
  vertical-align: top;
  word-break: break-word;
}
.card td:nth-child(2),
.minicard td:nth-child(2){
  text-align: right; /* het gaat hier om het plaatje tegen de rechter kantlijn */
}
.card .deat{
  color: rgba(0,0,0,0.5);
}
#sidepanel {
  padding: 0.5em;
  width: 24em;
  min-height: 100vh;
  max-height: 100vh;
  border-right: 1px solid #ccc;
  box-shadow: 10px 0 10px -5px rgba(0,0,0,0.15);
  background-color: rgba(255,255,255,0.9);
}
#canvas{
  background-color: rgba(255,255,255,0.7);
  position: absolute;
  z-index: -1; /* zodat de schaduw van het zijpaneel te zien is */
  top: 0;
  left: 24em; /* sluit naadloos aan bij #sidepanel */
}
#overlay{
  background-color: transparent;
  position: absolute;
  top: 0;
  left: 24em; /* op #canvas */
  overflow: hidden; /* geen scrollers aub */
}
.ccard{ /* naamkaartje voor op het canvas */
  display: inline-block;
  position: absolute;
  width: 15em;
  height: 7.5em;
  overflow-y: hidden;
  padding: 0.5em;
  box-shadow: 5px 5px 5px rgba(0,0,0,0.15);
  border-radius: 0.5em;
  background-color: white;
  border: 1px solid #aaa;
}
.ccard > *{ /* zal een table zijn */
  width: 100%;
  height: 100%;
}
.ccard:hover{
  z-index: 100;
}
.ccard.selected{
  background-color: #def;
}
#logo{
  position:fixed;
  right:5px;
  top:5px;
  z-index:2;
  height:1.5em;
  opacity: 0.2;
}
#settings{
  border: 1px solid gray;
  margin: 0.5em 0 1em 0;
  padding: 0.5em;
}
#settings > table{
  width: 100%;
  table-layout: fixed;
  margin-top: 1em;
}
#settings > table tr td *{
  width: 100%;
}
#settings > table tr td input[type=checkbox]{
  width: auto;
}
.spinner{ /* hierin zit een fikse "zandloper" */
  position: absolute;
  float: left;
  left: 2em;
  top: 2em;
  display: none;
  margin: 1em;
}
#settings.hidden{
  display: none;
}
#settings.visible{
}
.cover{
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 10%);
}
#canvasbuttons{
  position: absolute;
  left: 24em;
  z-index: 9999;
  padding: 0.5em;
  margin-top: -0.5em; /* tegen de padding van de container, de sidepanel */
  background-color: rgb(255 255 255 / 50%);
}
button{
  border-radius: 0.25em;
}
button > *{
  vertical-align: sub;
}
.gallery{
  margin-left: 0.5em; /* bovenop de pictureframe-margin */
  margin-bottom: 4em;
}
.gallery .header{
  background-color: rgb(255 255 255 / 50%);
  margin: 0.5em 0 0.5em -0.5em; /* -0.5em heft de margin-left van de gallery op */
  border-top: 1px solid white;
  border-bottom: 4px solid rgb(0 0 0 / 20%);
  padding-left: 1em;
  color: rgb(0 0 0 / 66%);
}
.pictureframe{
  display: inline-block;
  width: 12em;
  height: 12em; /* genoeg voor 4 rijen in het verwantschappen-overzicht */
  text-align: center;
  vertical-align: middle;
  margin: 0.5em;
  position: relative; /* dit helpt bij picturetitle onderaan zetten */
  border: 4px solid white;
  box-shadow: 5px 5px 5px rgba(0,0,0,0.15);
  background-color: rgb(255 255 255 / 50%);
}
.pictureframe .picture{
  max-width: 100%;
  max-height: 100%;
  border-left: 1px solid white;
  border-top: 1px solid white;
  border-right: 1px solid gray;
  border-bottom: 1px solid gray;
}
.pictureframe .picturecaption{
  position: absolute;
  display: block;
  padding: 0 0.3em 0 0.3em;
  top: 0;
  background-color: rgb(0 0 0 / 25%);
  color: white;
  text-align: left;
}
.pictureframe .picturetitle{
  position: absolute;
  display: block;
  width: 100%;
  bottom: 0;
  background-color: rgb(0 0 0 / 50%);
  border-top: 1px solid rgb(0 0 0 / 66%);
  color: white;
  text-align: center;
}
#specialsearchbar{
  margin-top: 0.5em;
}
.t2x2{
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2,1fr);
}
.c2x2{
  border: 1px solid gray;
}
.c2x2 > div{
  position: relative;
  height: 100%;
  width: 100%;
  font-size: 70%;
  overflow: hidden;
}
.c2x2 > div > canvas,
.c2x2 > div > div{
  position: absolute;
  height: 100%;
  width: 100%;
}
span.id{
  font-size: 50%;
  color: #0007;
}
