/* General styling */
*, *:before, *:after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-family: "Noto Serif", serif;
  font-size: 16px;
  color: #454443;
  overflow-y: scroll;
}

body {
  background-image: url(../images/background.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-color: #fef7ea;
  margin: 0;
  padding: 0;
}

/* Typography */

p {
  line-height: 1.5;
}

p.inline-quote, p.quote, p.credits, .toc h3, a, .btn, .item header {
  font-family: Roboto, sans-serif;
}

article a {
  font-family: "Noto Serif", serif;
}

p.inline-quote, p.quote {
  font-size: 1.2rem;
}

p.inline-quote {
  color: #0073ab;
  font-weight: 700;
  border-top: dotted 1px #000;
  border-bottom: dotted 1px #000;
  padding: 8px 0;
}

p.quote, article p.credits {
  color: #fff;
}

p.credits, .toc h3 {
  font-variant: small-caps;
  text-transform: lowercase;
}

article p.credits {
  letter-spacing: 0.4px;
  border-top: 1px solid;
  padding-top: 3px;
}

p.credits {
  letter-spacing: 0.4px;
}

article p.credits span.name {
  font-weight: 800;
}

article p.credits span.function {
  font-weight: 100;
}

p::selection, i::selection, a::selection, h1::selection, h2::selection, h3::selection{
  background-color:#b9c3db;
}

h1, h2, h3 {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
}

h2 {
  color: #0073ab;
  font-size: 2rem;
  font-weight: 200;
  border-bottom: 0px;
  margin-bottom: -3px;
}

h3 {
  font-size: 1.5rem;
}

.toc h3 {
  padding-bottom: 5px;
  margin-bottom: 20px;
  border-bottom: solid 1px black;
}

a {
  text-decoration: none;
  color: #003a76;
}

a:hover {
  border-bottom: 1px dotted #2c3b78;
}

.article a {
  color: #0073ab;
}

.credits a {
  font-weight:bold;
}

h1 a {
  font-family: "Noto Serif", serif;
  color: #212d5b;
}

h1 a:hover {
  border-bottom: none;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0;
  height: 38px;
  background-color: #2c2c2c;
  border-bottom: 1px solid #59554e;
  z-index: 1000;
}

nav > * {
  display: table-cell;
}

nav .fa-bars {
  display: none;
  cursor: pointer;
}

.sitebrand {
  background-position: center center;
  background-repeat: no-repeat;
  text-indent: -9999px;
  border-bottom-width: 0;
}

.sitebrand p {
  margin: 0;
  line-height: 38px;
}

.sitebrand.tijd {
  width: 109px;
  height: 38px;
  background-image: url(../images/nav/DeTijdLogoMini.png);
  background-position-y: 9px;
}

.sitebrand.tijd p {
  line-height: 38px;
}

.sharing {
  position: absolute;
  top: 0;
  right: 8px;
  height: 100%;
}

.sharing .fa {
  color: #ddd;
  font-size: 24px;
  line-height: 38px;
  margin-right: 6px;
}

@media (max-width: 384px) {
  .sitebrand.tijd {
    width: 42px;
    background-image: url('../images/nav/DeTijdLogoMonogram.png');
    background-size: 17px;
    background-position-y: 8px;
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .sitebrand.tijd {
    background-image: url('../images/nav/DeTijdLogoMini@2x.png');
    background-size: 89px;
  }
}

@media
  (-webkit-min-device-pixel-ratio: 2) and (max-width: 384px),
  (min-resolution: 192dpi) and (max-width: 384px) {
  .sitebrand.tijd {
    width: 42px;
    background-image: url('../images/nav/DeTijdLogoMonogram@2x.png');
    background-size: 17px;
  }
}

/* Buttons */

.btn {
  font-variant: small-caps;
  height: 36px;
  line-height: 36px;
  text-align: center;
  color: #fef7ea;
  background-color: #0073ab;
  padding: 3px 5px;
  outline: 0;
  cursor: pointer;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.btn:hover {
  background-color: #003a76;
  color: #fff;
}

.btn i {
  margin-left: 8px;
  font-size: 0.9rem;
}

/* Cards */

#intro {
  width: 50%;
  height: 100vh;
  float: left;
  padding: 89px 55px 18px 105px;
  border-right: 1px solid #e3d7c4;
  background-color: rgba(254, 247, 234, 0.2);
  position: fixed;
  transition: 0.5s;
}

#intro.reduced {
  width: 25%;
  padding: 55px 18px 18px 21px;
  transition: 0.5s;
}

#intro p.intro {
  max-width: 757px;
  color: #59554e;
  font-size: 1.1rem;
}

#cards {
  width: 50%;
  margin-left: 50%;
  padding: 38px 15px 144px 15px;
  background-color: rgba(254, 247, 234, 0.4);
  transition: 0.5s;
}

#cards.locked {
  position: fixed;
}

#cards.expanded {
  margin-left: 25%;
  width: 75%;
  transition: 0.5s;
}

.toc {
  display: none;
}

.toc.right {
   padding:54px 55px 10px 55px;
}

.toc.left {
  padding: 0;
}

.toc.left p {
  font-size: 0.9rem;
  margin: 0 0 10px 0;
}

.toc.left p a.active {
  background-color: #0073ab;
  color: white;
  padding: 2px 5px 2px 5px;
  font-weight: 800;
}

.item {
  max-width: 757px;
  margin: 24px auto 144px auto;
  padding: 0;
  background-color: #fef7ea;
}

.item header {
  height: 36px;
  color: #fffaf4;
  background-color: #212d5b;
  font-size: 1.2rem;
  position: relative;
  letter-spacing: 0.1rem;
}

.item header > span {
  width: 50%;
  line-height: 36px;
  position: absolute;
  top: 0;
  padding: 0 7px;
  cursor: pointer;
}

.item header span.previous {
  left: 0;
}

.item header span.next {
  right: 0;
  text-align: right;
}

.card header p {
  margin: 0;
  text-align: center;
  padding-top: 5px;
}

.card article {
  padding: 14px;
}

/* Quotebox */
.quotebox {
  background-color:#0073ab;
}

.quotebox header {
  background-color:#0073ab;
}

.quotebox article {
  padding: 0 29px 3px 29px;
}

.quotebox a {
  color: white;
  border-bottom: 1px dotted white;
}

.quotebox a:hover {
  border-bottom: 1px solid white;
}

/* Content */

img.right {
  float: right;
  margin: 0 8px 8px 16px;
  max-width: 40%;
}

img.shadow {
  -webkit-box-shadow: 3px 3px 7px 0px rgba(180,180,180,1);
  -moz-box-shadow: 3px 3px 7px 0px rgba(180,180,180,1);
  box-shadow: 3px 3px 7px 0px rgba(180,180,180,1);
}

p.caption {
  color: #888;
  margin-top: 0;
  font-size: 13px;
}

/* Put the intro on top if screen <768px */
@media (max-width: 767px) {

  nav .fa-bars {
    display: inline;
  }

  #intro {
    width: 100%;
    height: auto;
    position: relative;
    float: none;
    padding: 55px 18px 18px 18px;
  }

  #intro p {
    margin: 0 auto 10px auto;

  }

  #intro p.start {
    margin-top: 8px;
    margin-bottom: 12px;
    text-align: center;
  }

  #intro.reduced {
    width: 100%;
  }

  .toc.left {
    margin-top: 15px;
    text-align: left;
  }

  .toc.right {
    padding:10px 10px 10px 10px;
  }

  #intro.reduced p.intro {
    display: block;
  }

  #cards, #cards.expanded {
    padding-top: 0;
    padding-bottom: 50px;
    margin-left: 0;
  }

  #cards.expanded {
    padding-top: 38px;
    width: 100%;
  }

  #cards, #cards.locked {
    position: relative;
    width: 100%;
  }

  .toc.left p a.active {
    background: none;
    color: #003a76;
    padding: 0;
    font-weight: normal;
  }
}

/* Reduce title and hide intro if screen <1024px (in reduced mode) */

@media (max-width: 1023px) {
  .reduced h1 {
    font-size: 1.9em;
  }

  .reduced p.intro {
    display: none;
  }
}

.toc.right.hover {
  display: block !important;
  z-index: 999;
  position: fixed;
  top: 26px;
  left: 0;
  width: 100%;
  background-color: #fef7ea;
  font-size: 0.9rem;
  line-height: 1;
  border-bottom: 1px solid #c3b6a4;
  height: auto !important;
}
