/* Sophia Carolina - styles for the card page (index.html) and the photo slideshow (fotos.html).
   Colours, fonts and borders follow the original site. */
* { margin: 0; padding: 0; }

html { background: #fcfbd7; }

body {
  min-height: 100vh;
  text-align: center;
  background: #fcfbd7 url(../img/bckgradient.jpg) repeat-x left bottom;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10px;
  color: #990000;
  -webkit-text-size-adjust: 100%;
}

a:link, a:visited { color: #990000; text-decoration: none; }
a:hover { text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid #990000; outline-offset: 2px; }

.links { margin: 24px 0 40px; line-height: 1; }
.links a { display: inline-block; padding: 8px 4px; }
.links .red:link, .links .red:visited { color: #ff0000; }   /* the "Kaartje" link was red on the old page */

/* ---------------------------------------------------------------- card page */
.card {
  position: relative;
  box-sizing: content-box;
  width: min(850px, calc(100% - 2px));
  margin: 36px auto 0;
  border: 1px dotted #c9c99e;
  background: #fff;
  line-height: 0;
}
.card:focus { outline: none; }
.card canvas { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; }
.card img.fallback { display: block; width: 100%; height: auto; }
.card .hit { position: absolute; border: 0; background: transparent; cursor: pointer; }

/* ---------------------------------------------------------------- slideshow */
#Masthead { height: 80px; }

#Container {
  position: relative;
  box-sizing: content-box;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  background: #dedede;
  border: 5px solid #e9e7b1;
  font-size: 0;
  transition: width .3s ease, height .3s ease;
}
#Photo { position: absolute; top: 0; left: 0; z-index: 5; opacity: 0; transition: opacity .5s ease; }
#Photo.visible { opacity: 1; }

#Loading {
  position: absolute; top: 40%; left: 0; width: 100%; height: 25%;
  text-align: center; line-height: 0; z-index: 0;
  transition: opacity .3s ease;
}
#Loading.hidden { opacity: 0; }

#LinkContainer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; }
#PrevLink, #NextLink {
  display: block; width: 48%; height: 100%;
  background: transparent no-repeat; cursor: pointer;
}
#PrevLink { float: left; }
#NextLink { float: right; }
#PrevLink span, #NextLink span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#PrevLink:hover, #PrevLink:focus-visible { background-image: url(../img/prev_chevron.png); background-position: 20% 50%; }
#NextLink:hover, #NextLink:focus-visible { background-image: url(../img/next_chevron.png); background-position: 80% 50%; }
#LinkContainer.off { visibility: hidden; }
/* touch screens have no hover: always show the arrows, but small and light */
@media (hover: none) {
  #PrevLink { background-image: url(../img/prev_chevron.png); background-position: 10% 50%; background-size: 24px; opacity: .6; }
  #NextLink { background-image: url(../img/next_chevron.png); background-position: 90% 50%; background-size: 24px; opacity: .6; }
}

#CaptionContainer {
  box-sizing: content-box;
  width: 210px;
  margin: 0 auto;
  text-align: left;
  background: #e9e7b1;
  transition: width .3s ease;
}
#CaptionContainer p { padding: 5px 10px 10px; font-size: 11px; }
#Counter { font-weight: bold; color: #999; padding-right: 5px; }
