/* grafikklang.ch 2014 – only the rules this page actually uses. */

/* ---------- reset ---------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style-type: none;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: #fff;
}

body {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: #444;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  border: 0;
}

/* The UA default is `bolder`, which resolves relative to the inherited
   weight – be explicit so the labels stay at 700. */
b,
strong {
  font-weight: 700;
}

::selection {
  background: #333;
  color: #fff;
  text-shadow: none;
}

/* ---------- typography ---------- */

h1,
h2,
h3 {
  font-family: inherit;
  color: #182a54;
}

h1 {
  font-size: 33px;
  font-weight: 700;
  line-height: 18px;
  /* normalize.css used to supply this and it survived the `* { margin: 0 }`
     reset, because an element selector beats the universal one. */
  margin: 0.67em 0;
  padding-left: 80px;
  padding-bottom: 0.85em;
}

h2 {
  font-size: 1.5em;
  line-height: 1.3em;
  padding-bottom: 0.2em;
}

@media only screen and (max-width: 380px) {
  h1 {
    font-size: 23px;
  }

  h2 {
    font-size: 1.35em;
  }
}

a,
a:link,
a:visited,
a:active {
  color: #182a54;
  font-weight: 700;
  cursor: pointer;
}

a:hover {
  color: #000;
}

/* ---------- background ---------- */

#bg {
  position: fixed;
  top: 50%;
  left: 0;
  width: 671px;
  transform: translateY(-50%);
}

#bg img {
  display: block;
  width: 100%;
}

@media only screen and (max-width: 480px) {
  #bg {
    width: 100%;
  }
}

@keyframes animatedBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 1140px;
  }
}

#perls {
  position: fixed;
  top: 0;
  left: 18%;
  height: 100%;
  width: 64px;
  background-image: url("../img/perls.svg");
  background-repeat: repeat-y;
  background-position: 0 0;
  background-blend-mode: multiply;
  animation: animatedBackground 30s linear infinite;
  mix-blend-mode: multiply;
}

/* ---------- layout ---------- */

#content {
  position: absolute;
  top: 0;
  left: 5%;
  width: 85%;
  height: 100%;
  margin-left: 5%;
  margin-right: 5%;
  overflow: visible;
}

#contentcontainer {
  position: absolute;
  top: 7%;
  left: 30%;
  width: 70%;
  max-width: 460px;
  z-index: 500;
}

#c2 {
  background-color: rgba(255, 255, 255, 0.3);
  padding: 10px;
}

@media only screen and (max-width: 680px) {
  #contentcontainer {
    top: 1.5em;
    left: 15%;
    width: 85%;
  }

  #c2 {
    background-color: rgba(255, 255, 255, 0.65);
  }
}

@media only screen and (max-width: 480px) {
  #content {
    left: 0;
    width: 96%;
    margin-left: 2%;
    margin-right: 2%;
  }

  #contentcontainer {
    left: 0;
    width: 100%;
  }
}

/* ---------- programme table ---------- */

.contenttable {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  empty-cells: show;
}

.contenttable td {
  border-bottom: 1px solid #c5c5c5;
  padding-top: 0.8em;
  padding-right: 1.2em;
  padding-bottom: 1.1em;
  vertical-align: top;
}

#sponsor {
  width: 100%;
  max-width: 220px;
}

/* ---------- print ---------- */

@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }

  @page {
    margin: 0.5cm;
  }
}
