/*******************************************************************************
 * CSS Reset v2.0: http://meyerweb.com/eric/tools/css/reset/
 ******************************************************************************/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/*******************************************************************************
 * Colours
 ******************************************************************************/

:root {
  --col-font: #0e0e0e;
  --col-bg: #13293D;
  --col-header: #1a90cf;
  --col-border: #84BCDA;
  --col-footer: #034B77;
  --col-section-header: #FEE486;
  --col-link: #EC0B43;
  --col-link-visited: #90092b;
  --col-success-bg: #e8f2e9;
  --col-success-border: #109939;
  --col-note-bg: #e8f1f2;
  --col-note-border: #1a90cf;
  --col-warn-bg: #f2f2e8;
  --col-warn-border: #d6ad0c;
  --col-danger-bg: #f2e8e8;
  --col-danger-border: #c20707;
  --col-code-bg: #f3f3f3;
  --col-datestamp: #919191;
  --col-plus: #0bb90b;
  --col-minus: #da0000;
  --col-download-button: #e6f6ff;
}

/*******************************************************************************
 * Fonts
 ******************************************************************************/

/* Open-Sans */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  src: url(/fonts/OpenSans-Regular.ttf) format('truetype');
}

@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  src: url(/fonts/OpenSans-Italic.ttf) format('truetype');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  src: url(/fonts/OpenSans-SemiBold.ttf) format('truetype');
}

@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 600;
  font-stretch: 100%;
  src: url(/fonts/OpenSans-SemiBoldItalic.ttf) format('truetype');
}

/* Raleway */

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  src: url(/fonts/Raleway-Regular.ttf) format('truetype');
}

@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  src: url(/fonts/Raleway-Italic.ttf) format('truetype');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  src: url(/fonts/Raleway-SemiBold.ttf) format('truetype');
}

@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 600;
  font-stretch: 100%;
  src: url(/fonts/Raleway-SemiBoldItalic.ttf) format('truetype');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  src: url(/fonts/Raleway-Bold.ttf) format('truetype');
}

@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 700;
  font-stretch: 100%;
  src: url(/fonts/Raleway-BoldItalic.ttf) format('truetype');
}

/* Roboto Slab */

@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  src: url(/fonts/RobotoSlab-Regular.ttf) format('truetype');
}

@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  src: url(/fonts/RobotoSlab-SemiBold.ttf) format('truetype');
}

@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  src: url(/fonts/RobotoSlab-Bold.ttf) format('truetype');
}

/* Source Code Pro */

@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  src: url(/fonts/SourceCodePro-Regular.ttf) format('truetype');
}

@font-face {
  font-family: 'Source Code Pro';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  src: url(/fonts/SourceCodePro-Italic.ttf) format('truetype');
}

@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  src: url(/fonts/SourceCodePro-SemiBold.ttf) format('truetype');
}

@font-face {
  font-family: 'Source Code Pro';
  font-style: italic;
  font-weight: 600;
  font-stretch: 100%;
  src: url(/fonts/SourceCodePro-SemiBoldItalic.ttf) format('truetype');
}

@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  src: url(/fonts/SourceCodePro-Bold.ttf) format('truetype');
}

@font-face {
  font-family: 'Source Code Pro';
  font-style: italic;
  font-weight: 700;
  font-stretch: 100%;
  src: url(/fonts/SourceCodePro-BoldItalic.ttf) format('truetype');
}

/*******************************************************************************
 * Site Layout
 ******************************************************************************/

body {
  background: var(--col-footer);
  color: var(--col-font);
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.site-header {
  background: var(--col-header);
  border-bottom: 3px solid var(--col-border);
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.center-column, .page {
  margin: 0 auto;
}

/* Widescreen - 840px fixed width page */
@media only screen and (min-width: 960px) {
  .center-column, .page {
    width: 840px;
  }
}

/* Medium screen - 680px to 840px responsive width page */
@media only screen and (min-width: 680px) and (max-width: 959px) {
  .center-column, .page {
    max-width: 840px;
    min-width: 640px;
    width: 55%;
  }
}

/* Small screen - full width page, no gutters */
@media only screen and (max-width: 679px) {
  .center-column, .page {
    min-width: 0;
    width: 100%;
  }
}

.site-header__link {
  align-items: center;
  display: flex;
  padding: 10px;
  text-decoration: none;
  width: 200px;
}

.site-header__link:hover {
  text-decoration: none;
}

.site-header__logo {
  height: 48px;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  width: 48px;
}

.site-header__title {
  font-size: 1.5rem;
  margin-left: 15px;
}

.site-header__title,
.site-header__title:hover,
.site-footer__link,
.site-footer__link:hover,
.site-footer__link:visited {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  background: var(--col-footer);
  border-top: 3px solid var(--col-border);
  color: #ffffff;
  padding: 20px;
  text-align: right;
}

.site-footer__content {
  padding: 0 20px;
}

.page-container {
  background: var(--col-bg);
}

.page {
  background: #ffffff;
  box-sizing: border-box;
  /* height of viewport - (header + footer) */
  min-height: calc(100vh - 138px);
}

.nav-back {
  background: var(--col-border);
  display: block;
  font-weight: 600;
  padding: 10px 20px;
}

.nav-back::before {
  content: '\00AB';
  margin-right: 5px;
}

.page-content {
  padding: 20px;
}

.section-break {
  border: none;
  border-top: 10px dashed var(--col-note-bg);
  margin: 40px 0;
}

/*******************************************************************************
 * Contents Pages
 ******************************************************************************/

.contents-page-item {
  margin-bottom: 15px;
}

.contents-page-item__link {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.contents-page-item__summary {
  border-left: 2px solid lightgray;
  margin-left: 10px;
  padding-left: 10px;
}

/*******************************************************************************
 * About Page
 ******************************************************************************/

.about__link {
  display: block;
  margin-bottom: 20px;
}

/*******************************************************************************
 * Article List
 ******************************************************************************/

.article-list-item {
  margin-bottom: 15px;
}

.article-list-item__date {
  color: var(--col-datestamp);
  font-size: 1rem;
  font-style: normal;
}

.article-list-item__link {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.article-list-item__summary {
  border-left: 2px solid lightgray;
  margin-left: 10px;
  padding-left: 10px;
}

/*******************************************************************************
 * Global Styles
 ******************************************************************************/

p {
  margin-bottom: 20px;
}

a {
  color: var(--col-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: var(--col-link-visited);
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

pre, code {
  font-family: 'Source Code Pro', monospace;
}

pre {
  margin-bottom: 20px;
}

main > :last-child,
nav > :last-child,
aside > :last-child,
blockquote > :last-child,
div > :last-child,
ul > :last-child,
ol > :last-child,
span > :last-child {
  margin-bottom: 0;
}

em > em {
  font-style: normal;
}

/*******************************************************************************
 * Lists
 ******************************************************************************/

ol,
ul {
  margin-bottom: 20px;
}

li {
  margin-left: 35px;
  margin-top: 5px;
  padding-left: 5px;
}

.plus-minus-list {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
}

.li-plus, .li-minus {
  list-style-type: none;
  position: relative;
}

.li-plus::before, .li-minus::before {
  font-size: 1.5em;
  font-weight: bold;
  left: -0.75em;
  position: absolute;
  top: -0.25em;
}

.li-plus::before {
  color: var(--col-plus);
  content: '+';
}

.li-minus::before {
  color: var(--col-minus);
  content: '-';
}

/*******************************************************************************
 * Tables
 ******************************************************************************/

table {
  margin-bottom: 20px;
}

td {
  padding: 10px;
}

/*******************************************************************************
 * Headers
 ******************************************************************************/

/* h1 */
.page-title {
  font-family: 'Raleway', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

/* h2 */
.section-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* h2 */
.section-title--block {
  background: var(--col-section-header);
  font-family: 'Raleway', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 20px 0;
  padding: 5px;
  text-align: center;
}

.section-title--block:first-child {
  margin-top: 0;
}

/* h3 */
.subsection-title,
.subsection-title--block {
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* h3 */
.subsection-title--block {
  border-bottom: 3px solid var(--col-header);
}

/* h4 */
.subsubsection-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/*******************************************************************************
 * Anchors
 ******************************************************************************/

.anchor {
  display: block;
  position: relative;
  top: -90px;
  visibility: hidden;
}

/*******************************************************************************
 * Action Links
 ******************************************************************************/

.action-link {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.action-link:before {
  content: '►';
  display: inline-block;
  margin: 0 15px;
}

/*******************************************************************************
 * Taglines
 ******************************************************************************/

.tagline {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  max-width: 70%;
  text-align: center;
}

/*******************************************************************************
 * Asides
 ******************************************************************************/

.success, .note, .warn, .danger {
  font-family: 'Roboto Slab', serif;
  margin-bottom: 20px;
  margin-left: 10px;
  padding: 15px;
}

.success {
  background: var(--col-success-bg);
  border-left: 3px solid var(--col-success-border);
}

.note {
  background: var(--col-note-bg);
  border-left: 3px solid var(--col-note-border);
}

.warn {
  background: var(--col-warn-bg);
  border-left: 3px solid var(--col-warn-border);
}

.danger {
  background: var(--col-danger-bg);
  border-left: 3px solid var(--col-danger-border);
}

/*******************************************************************************
 * Quotes
 ******************************************************************************/

.quote {
  border: 2px solid var(--col-header);
  border-radius: 3px;
  font-family: 'Roboto Slab', serif;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  padding: 20px;
  position: relative;
  width: 80%;
}

.quote:before {
  color: var(--col-border);
  content: '“';
  position: absolute;
  font-size: 96px;
  left: -17px;
  opacity: 0.5;
  top: -32px;
}

.quote:after {
  bottom: -19px;
  color: var(--col-border);
  content: '„';
  font-size: 96px;
  opacity: 0.5;
  position: absolute;
  right: -13px;
}

/*******************************************************************************
 * Code
 ******************************************************************************/

/*
 * Prism can be used alongside these styles, in which case some properties may
 * be overridden.
 */
.code-block {
  background: var(--col-code-bg);
  border-radius: 5px;
  display: block;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.9rem;
  margin-bottom: 20px;
  margin-left: 10px;
  padding: 15px;
  white-space: pre-wrap;
}

.inline-code {
  background: var(--col-code-bg);
  display: inline-block;
  font-family: 'Source Code Pro', monospace;
  padding: 0 4px;
  white-space: pre-wrap;
}

/*******************************************************************************
 * Datestamp
 ******************************************************************************/

.datestamp {
  color: var(--col-datestamp);
  font-size: 0.75rem;
  font-style: italic;
  margin-bottom: 0;
  text-align: right;
}

/*******************************************************************************
 * Contents
 ******************************************************************************/

.contents {
  border: 2px solid var(--col-header);
  border-radius: 3px;
  margin: 20px auto;
  width: 50%;
}

.contents :last-child {
  margin-bottom: 0;
}

.contents__header {
  background: var(--col-header);
  color: white;
  padding: 5px 15px;
}

.contents__body {
  padding: 15px;
}

/*******************************************************************************
 * Checkboxes
 ******************************************************************************/

.checkbox-container {
  height: 40px;
  position: relative;
}

.checkbox-label {
  cursor: pointer;
  padding: 10px;
  padding-right: 40px;
  position: absolute;
  right: 0;
  top: -10px;
}

.checkbox {
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 3px;
}

/*******************************************************************************
 * Images & Captions
 ******************************************************************************/

.pixellated {
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.caption {
  font-style: italic;
  text-align: center;
}

/*******************************************************************************
 * Icons
 ******************************************************************************/

.media-button {
  height: 48px;
  margin: 0 4px;
  width: 48px;
}

.play-store-badge {
  width: 256px;
}

/*******************************************************************************
 * Video
 ******************************************************************************/

.video-container {
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 */
  position: relative;
  margin: 20px auto;
  width: 90%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*******************************************************************************
 * Tiles
 ******************************************************************************/

.tile-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.tile-container {
  align-items: center;
  display: flex;
  justify-content: center;
}

.tile {
  -webkit-box-shadow: 3px 3px 6px 0px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 3px 3px 6px 0px rgba(0, 0, 0, 0.25);
  box-shadow: 3px 3px 6px 0px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  display: flex;
  margin: 15px;
  max-height: 180px;
  max-width: 360px;
  overflow: hidden;
  position: relative;
}

.tile__description {
  max-width: 50%;
  padding: 15px;
}

.tile--small {
  max-height: 110px;
  max-width: 220px;
}

.tile__image {
  height: 100%;
  width: 100%;
}

.tile__tooltip {
  background: rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  height: auto;
  left: 0;
  opacity: 1;
  overflow: hidden;
  padding: 10px;
  position: absolute;
  text-overflow: ellipsis;
  top: 0;
  transition: background 0.3s;
  white-space: nowrap;
  width: 100%;
}

.tile:hover .tile__tooltip {
  background: rgba(0, 0, 0, 0.7);
}

/* Small screen - make tiles smaller to fit 2 per row */
@media only screen and (max-width: 540px) {
  .tile__description {
    display: none;
  }

  .tile--small {
    max-width: 165px;
  }
}

/* Tiny screen - make tiles smaller to fit 2 per row */
@media only screen and (max-width: 429px) {
  .tile--small {
    max-width: 130px;
  }
}

/* Tiny screen - make tooltip font smaller */
@media only screen and (max-width: 429px) {
  .tile__tooltip {
    font-size: 0.9rem;
  }
}

/*******************************************************************************
 * Spoilers
 ******************************************************************************/

.spoiler-button,
.spoiler-button--expanded {
  border: none;
  background: none;
  color: var(--col-link);
  cursor: pointer;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.spoiler-button::before {
  content: "▶";
  font-size: 0.75rem;
  padding-right: 10px;
}

.spoiler-button--expanded::before {
  content: "▼";
  font-size: 0.75rem;
  padding-right: 10px;
}

.spoiler {
  border: 3px dotted lightgray;
  margin-bottom: 20px;
  margin-left: 10px;
  margin-right: 10px;
  padding: 15px;
}

/*******************************************************************************
 * Chips
 ******************************************************************************/

.chip {
  background: var(--col-header);
  border-radius: 30px;
  color: white;
  display: inline-block;
  font-size: 80%;
  padding: 5px 10px;
  margin-bottom: 15px;
}

/*******************************************************************************
 * Download Box
 ******************************************************************************/

.download-button {
  background: var(--col-download-button);
  border: 6px solid var(--col-border);
  border-radius: 20px;
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 40px auto 90px auto;
  padding: 40px;
  text-align: center;
  width: 50%;
}

/*******************************************************************************
 * Modifiers
 ******************************************************************************/

.fit {
  display: block;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  max-width: min(720px, 100%);
}

.fit--small {
  display: block;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  max-width: min(400px, 100%);
  ;
}

.compact {
  margin-bottom: 0;
  margin-top: 0;
}

.spaced {
  margin-bottom: 20px;
  margin-top: 20px;
}

.space-after {
  margin-bottom: 20px;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.align-right {
  display: block;
  text-align: right;
}

.center-contents {
  text-align: center;
}

.hidden {
  display: none;
}

.small {
  width: 35%;
}

.outlined {
  border: 1px solid lightgrey;
}