html {
  color: #f0f8f8;
  font-size: 1em;
  line-height: 1.4;
  min-width: 1152px;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #93b4dc;
  text-shadow: none;
}

::selection {
  background: #93b4dc;
  text-shadow: none;
}

body {
  background: #384877;
  background-image: url(../img/bg.png);
  background-repeat: repeat;
  font-family: sans-serif;
}

h1, h2 {
  font-family: serif;
  text-transform: uppercase;
  margin: 0;
}

h3 {
  font-family: serif;
}

a {
  color: inherit;
  text-decoration: underline dotted;
}

.with-bg-image {
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  height: 768px;
  box-shadow: inset 0 0 10em 3em rgba(0,0,0,0.3);
}

.content-area {
  padding: 64px 5% 0 5%;
  text-align: justify;
}

.right {
  float: right;
}

.section-title {
  height: 64px;
  padding-left: 5%;
  padding-right: 5%;
}

.section-title h1 {
  font-size: 40px;
}

h2, h3 {
  color: deepskyblue;
}

h2 {
  margin-top: .75em;
}

h3 {
  margin-top: 1em;
  margin-bottom: .2em;
}

p {
  margin-top: .25em;
  margin-bottom: .5em;
}

#head {
  height: 256px;
}

/* extra height for first section */
#mediacontent {
  height: 1024px;
}

#mainmenu {
  display: table;
  border-collapse: separate;
  border-spacing: 32px;
  margin: -32px;
}

#mainmenu .row {
  display: table-row;
}

#mainmenu .row > * {
  display: table-cell;
  vertical-align: top;
  padding: 0px;
}

#mainmenu video {
  height: 256px;
}

#mainmenu .borderbox {
  height: 256px;
}

.borderbox {
  border-style: solid;
  border-color: #00a0e3;
  border-width: 2px;
  background: rgba(0, 0, 0, 0.6);
}

.paddingbox {
  padding: 5%;
}

#mediacontent {
  background-image: url(../img/screen0.jpg);
}

#install {
  background-image: url(../img/screen1.jpg);
}

.half-page-content {
  width: 60%; /* slightly reduce content width, s.t. part of background is still visible */
}

.half-page-content .borderbox {
  max-height: 640px;
  overflow-y: auto;
}

#lore {
  background-image: url(../img/screen2.jpg);
}

#faq {
  background-image: url(../img/screen3.jpg);
}

#links {
  background-image: url(../img/screen4.jpg);
}

#links .content-area {
  max-width: 1280px;
}

.link-box {
  display: flex;
  align-items: stretch;
  margin-bottom: 32px;
}

.link-box .descr {
  height: 192px;
  flex-grow: 1;
  border-left: none;
}

.link-box .descr > div {
  box-sizing: border-box;
  padding: 1.5em;
  max-height: 100%;
  text-align: justify;
  overflow-y: auto;
}

div.link-image {
  height: 192px;
  background: darkcyan;
  display: inline-block;
  padding: 0;
}

img.link-image:hover {
  opacity: .7;
}

#copyright {
  font-weight: bold;
  text-align: center;
  padding-top: 16px;
  height: 48px;
}

/* ==========================================================================
   Respond to other devices.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* TODO: Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* TODO: Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}

