@import url('https://fonts.googleapis.com/css?family=Open+Sans');

:root {
  --app-height: 100%;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

main {
  display: block;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

html {
  color: #222;
  line-height: 1.4;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
}

::-moz-selection {
  background: rgba(0, 128, 255, 0.25);
  text-shadow: none;
}

::selection {
  background: rgba(0, 128, 255, 0.25);
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}


.hidden,
[hidden] {
  /* Hide visually and from screen readers */
  display: none !important;
}


.invisible {
  /* Hide visually and from screen readers, but maintain layout */
  visibility: hidden;
}

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

@media print {
  body {
    color-adjust: exact;
  }
  
  *,
  *::before,
  *::after {
    background: #fff !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) ")";
  }
  
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }
  
  pre {
    white-space: pre-wrap !important;
  }
  
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  
  thead {
    display: table-header-group;
  }
  
  tr,
  img {
    page-break-inside: avoid;
  }
  
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  
  h2,
  h3 {
    page-break-after: avoid;
  }
}

body,
div,
nav,
header,
main,
article,
section,
footer,
img {
  box-sizing: border-box;
}

html,
body {
  color: #eeeeee;
  font-family: 'Open Sans', serif;
  font-size: calc((1vw + 2vh) * 1);
  line-height: normal;
  letter-spacing: 0.0625rem;
  background: #04539a;
  text-align: center;
}

* {
  z-index: 0;
}

html {
  height: 100vh;
  position: relative;
  /*background: rgba(0,92,166,1);*/
  /*background: rgba(0, 36, 82, 1);*/
  background: linear-gradient(0deg, rgba(0, 36, 82, 1) 0%, rgba(0, 149, 251, 1) 100%);
  z-index: -2;
}

body {
  background: transparent;
}

html.home,
body.home {
  display: block;
  position: relative;
  height: 100%;
  max-height: var(--app-height);
  overflow: hidden;
}

#bg {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 36, 82, 1) 0%, rgba(0, 149, 251, 1) 100%);
}

#bg {
  height:  calc(100vh  +  120px);
}

header {
  display: grid;
  height: 44%;
  text-align: center;
  align-items: center;
  grid-auto-rows: 100%;
}

header a {
  margin: 0 auto;
}

header img {
  width: calc((1vw + 4vh) * 16);
  max-width: 90vw;
  max-height: 30%;
  margin: 0 auto;
}

nav {
  font-family: 'Open Sans', serif;
  font-weight: 600;
  font-size: calc((1vw + 2vh) * 1.8);
  padding: 0.25rem 0;
}

nav a {
  margin: 0 0.5rem;
  font-variant: small-caps;
  color: #a9b8cb;
  text-decoration: none;
  text-decoration-thickness: 1px;
}

nav a.current,
nav a:hover,
nav a:active {
  text-decoration: underline;
  color: #ffffff;
  text-decoration-color: #ffff00;
}

main {
  display: grid;
  height: 56%;
  text-align: center;
  align-items: center;
  grid-auto-rows: 1fr 1fr;
}

p {
  margin: 0.5rem 0;
  padding: 0;
}

h3 {
  margin: 2rem 0 1rem 0;
  padding: 0;
}

.slogan {
  opacity: 0.75;
  margin: 0;
  padding: 0;
}

body.sub-page {
}

.sub-page header {
  height: auto;
  padding: 1rem 0;
}

.sub-page main {
  display: block;
  height: auto;
  text-align: center;
  align-items: center;
  grid-auto-rows: 1fr 1fr;
  overflow: auto;
}

.sub-page nav {
  font-size: calc((1vw + 2vh) * 1.2);
  padding: 3rem 1rem 1rem 1rem;
}

.sub-page main img {
  display: block;
  width: min(80vw, 100vh);
  max-width: 528px;
  clear: both;
  margin: 0 auto;
}

.sub-page .caption {
  font-size: calc((1vw + 2vh) * 0.8); /* variation from body */
  opacity: 0.75;
}

.sub-page article {
  display: block;
  width: calc(75vw + 5vh);
  max-width: 96vw;
  margin: 0 auto;
  text-align: left;
}

.emphasized-block {
  display: block;
  box-sizing: border-box;
  width: fit-content;
  margin: 3rem auto;
  padding: 0 5%;
  border-top: 1px dotted rgba(255, 255, 255, 0.5);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
}

.emphasized-block a {
  color: white;
  text-decoration-color: yellow;
}

.emphasized-block a:hover {
  color: yellow;
}
