/* Copyright 2013 Christian Krebs */

body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: #808080;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 1024px) {
  body {
    height: 100.2%;
  }
}

#measure-top {
  position: absolute;
  top: -100px;
  left: 0;
  padding: 0 86px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  font-family: sans-serif;
}

#measure-bottom {
  position: absolute;
  left: 0px;
  top: -100px;
  font-family: sans-serif;
  font-size: 20px;
  line-height: 30px;
  padding-left: 15px;
  white-space: nowrap;
}

#measure-bottom span {
  font-family: sans-serif;
  font-size: 24px;
  font-style: italic;
  font-weight: bold;
  padding-right: 18px;
  white-space: nowrap;
}

.script {
  display: none;
}

.noscript {
  font-family: sans-serif;
}

.noscript p {
  font-family: sans-serif;
  margin: 0;
  padding: 1em 1.2em;
  font-size: 1.9em;
  font-weight: bold;
  color: white;
  background-color: red;
}

.noscript a {
  color: #fff;
}

#navigationbar,
.submenu {
  list-style: none;
  margin: auto;
  padding: 0;
  width: 100%;
  height: 3.8em;
  position: absolute;
  left: 0;
  top: 0;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  transition: 0.3s;
}

.is-touch-device #navigationbar {
  height: 7.6em;
}

.submenu {
  top: 1.9em;
  height: 0;
  overflow: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  transition: 0.3s;
}

.is-touch-device .submenu {
  top: 3.8em;
}

.visible .submenu {
  height: 3.8em;
}

.visible .is-touch-device .submenu {
  height: 7.6em;
}

#navigationbar li {
  float: left;
  height: 100%;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  transition: 0.3s;
}

#navigationbar li h2 {
  white-space: nowrap;
  margin: 0;
  padding: 0 0.6em;
  color: #ccc;
  font-size: 1.3em;
  font-weight: bold;
  text-align: center;
  font-family: sans-serif;
  height: 1.5em;
  line-height: 1.5em;
  cursor: pointer;
}

.is-touch-device #navigationbar li h2 {
  height: 3em;
  line-height: 3em;
}

#navigationbar h2:hover {
  background-color: #4d4d4d;
  color: #e6e6e6;
}

#navigationbar .selected > h2,
#navigationbar .selected:hover > h2 {
  background-color: #333;
  color: #ffffff;
}

#navigationbar .visible.selected > h2,
#navigationbar .visible.selected:hover > h2 {
  background-color: #666;
}

.slideshow-container {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  position: relative;
}

.slideshow {
  position: absolute;
  left: 0;
  top: 1.9em;
  width: 100%;
  bottom: 1.9em;
  -webkit-transform: translate3d(0, 0, 0);
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  transition: 0.3s;
}

.is-touch-device .slideshow {
  top: 3.8em;
}

.submenu-visible .slideshow {
  top: 3.8em;
}

.is-touch-device.submenu-visible .slideshow {
  top: 7.6em;
}

.drag {
  -webkit-transition: 0;
  -moz-transition: 0;
  transition: 0;
}

.slide {
  align-items: center;
  background-color: #333;
  background-image: url(loader.gif);
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.slide.hidden {
  display: none;
}

.slide a {
  align-items: center;
  border: 1px solid transparent;
  display: flex;
  height: 100%;
  justify-content: center;
  margin: -1px;
}

video,
img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  opacity: 0;
  -webkit-transform: translate3d(0, 0, 0);
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  transition: 0.3s;
}

.left-container,
.right-container {
  position: absolute;
  width: 50px;
  bottom: 0;
  opacity: 0.2;
  top: 50px;
  -webkit-transition: 0.3s;
}

.no-controls .left-container,
.no-controls .right-container {
  display: none;
}

.left-container {
  left: 0;
}

.right-container {
  right: 0;
}

.left-container:hover,
.right-container:hover {
  opacity: 0.5;
}

.left,
.right {
  position: absolute;
  border-radius: 17px;
  padding: 17px;
  background: #000 url(br_next_icon&24.png) no-repeat 5px 5px;
  top: 50%;
  margin-top: -14px;
}

.left {
  left: 10px;
  background-image: url(br_prev_icon&24.png);
}

.right {
  right: 10px;
}

#logo {
  margin: 0;
  padding: 0;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.25em;
  font-family: sans-serif;
  font-size: 1.5em;
  font-style: italic;
  font-weight: bold;
  white-space: nowrap;
  padding-right: 0.75em;
  line-height: 1.25em;
  text-align: right;
  overflow: hidden;
}

.legend {
  position: absolute;
  left: 0;
  top: 100%;
  height: 1.5em;
  line-height: 1.5em;
  padding-left: 0.75em;
  white-space: nowrap;
  font-family: sans-serif;
  font-size: 1.25em;
  color: #333;
}

/* Portrait */
@media screen and (orientation: portrait) {
  .is-touch-device .slideshow {
    bottom: 5.7em;
  }
  .is-touch-device .legend {
    font-size: 1.5em;
    white-space: normal;
    line-height: 1.8em;
  }
}
/* Landscape */
@media screen and (orientation: landscape) {
  .ipad-mac-os-7-safari body {
    height: calc(100% - 20px);
  }
}

.link-button {
  text-decoration: none;
  color: #ccc;
}

/* sections */

.section {
  position: absolute;
  left: 0;
  padding-right: 1em;
  top: 1.9em;
  width: 100%;
  bottom: 1.9em;
  overflow: auto;
  display: none;
  opacity: 0;
  -webkit-transition: 0.6s;
  -moz-transition: 0.6s;
  transition: 0.6s;
}

.is-touch-device .section {
  top: 3.8em;
  bottom: 3.8em;
}

#about {
  background-color: #173b82;
  color: #fff;
  -webkit-touch-callout: text;
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* example of styling of a section */

#about :link {
  text-decoration: none;
}

#about h3 {
  font-size: 1.8em;
  font-family: sans-serif;
  padding-left: 1.35em;
  margin: 0;
  padding-top: 1.2em;
}

#about h4 {
  margin: 0;
  font: normal 1.3em/1.4em sans-serif;
  max-width: 45em;
  padding-left: 1.9em;
  padding-bottom: 1em;
  padding-top: 0.6em;
}

#about h5 {
  font: normal 1em sans-serif;
  margin: 0;
  padding-bottom: 1em;
  padding-left: 2.4em;
  padding-top: 0.4em;
}

#about h5 a {
  font-size: 1.4em;
  margin: 0;
  padding: 0;
}

#about h6 {
  margin: 0;
  max-width: 50em;
  padding-top: 2em;
  padding-left: 2.7em;
  padding-bottom: 2em;
  font: normal 0.9em sans-serif;
  color: #e5ca7a;
}

#about p {
  font-size: 1.2em;
  line-height: 1.4em;
  font-family: sans-serif;
  max-width: 50em;
  margin: 0;
  padding-left: 2.04em;
  padding-bottom: 0.6em;
}

#sitemap h2 {
  font-family: sans-serif;
  font-size: 1.7em;
  margin: 0;
  padding-top: 50em;
  padding-left: 0;
  padding-bottom: 0;
}

#sitemap h3 {
  padding-top: 1em;
}

#sitemap h3 a {
  color: white;
  font-size: 0.8em;
}

#sitemap h4 {
  font-size: 0.8em;
  line-height: 3em;
  margin: 0;
  padding: 0;
}

#sitemap h4 a {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  line-height: 1.6em;
  font-size: 1.8em;
}

ul {
  list-style-type: none;
  margin: 0;
  padding-left: 2.45em;
  padding-bottom: 1em;
  padding-top: 1em;
}

.indention li {
  text-indent: -1.2em;
  margin: 0;
  font: 1.3em/1.4em sans-serif;
  padding-left: 1.1875em;
  padding-bottom: 0.3em;
}

.dates li {
  margin-left: 5em;
  font: 1.3em/1.4em sans-serif;
  padding-bottom: 0.3em;
}

.date {
  display: inline-block;
  width: 5em;
  margin-left: -5em;
}

a {
  color: #ffcccc;
}
