:root {
  --page-background: #fff;
  --background-brightness: 1;
  --logo-brightness: 1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-background: #222;
    --background-brightness: 0.75;
    --logo-brightness: 1.7;
  }
}

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: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

html {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

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

caption, th, td {
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}

q, blockquote {
  quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after {
  content: "";
  content: none;
}

a img {
  border: none;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
  display: block;
}

body {
  font: 100% "Open Sans", Helvetica, Arial, sans-serif;
  background-color:var(--page-background);
}

header[role="banner"] {
  position: relative;
  width: 90%;
  margin: 0 auto;
  padding: 10px 0 10px 0;
}
header[role="banner"] div.header-buttons {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(0, -50%);
}
header[role="banner"] a {
  font-size: 1em;
  padding: 0.5em 1.5em;
  display: inline-block;
  cursor: pointer;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  *zoom: 1;
  filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF4E7892', endColorstr='#FF2A4150');
  background-color: #4e7892;
  border: 0;
  color: white;
  text-shadow: #22343f 0 -1px 0;
  text-decoration: none;
}
header[role="banner"] a:hover {
  text-decoration: none;
}
header[role="banner"] a:hover {
  background-color: #456a81;
}
header[role="banner"] a:active {
  background-color: #406277;
}
header[role="banner"] a.disabled, header[role="banner"] a[disabled] {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60);
  opacity: 0.6;
  background: false;
  cursor: default;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
}
header[role="banner"] a::-moz-focus-inner {
  padding: 0 !important;
  margin: -1px !important;
}

section.content {
  position: relative;
  width: 100%;
  background-color: #012a44;
}
section.content div.panel {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  padding: 4% 0 0 5%;
  width: 30%;
  color: white;
}
section.content div.panel h1 {
  font-size: 1.25em;
  margin-bottom: 0.5em;
}
section.content div.panel p {
  font-size: 0.875em;
  margin-bottom: 0.75em;
}
.panelBtn {
  font-size: 1em;
  padding: 0.5em 1.5em;
  display: inline-block;
  cursor: pointer;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  *zoom: 1;
  filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF4E7892', endColorstr='#FF2A4150');
  background-color: #4e7892;
  border: 0;
  color: white;
  text-shadow: #22343f 0 -1px 0;
  text-decoration: none;
}
.panelBtn:hover {
  text-decoration: none;
}
.panelBtn:hover {
  background-color: #456a81;
}
.panelBtn:active {
  background-color: #406277;
}
.panelBtn.disabled, .panelBtn[disabled] {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60);
  opacity: 0.6;
  background: false;
  cursor: default;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
}
.panelBtn::-moz-focus-inner {
  padding: 0 !important;
  margin: -1px !important;
}

footer {
  background-color: #012a44;
  padding: 20px;
  text-align: center;
  font-size: 0.75em;
}
footer p {
  margin-top: 1.5em;
  color: rgba(255, 255, 255, 0.2);
}
footer a {
  font-weight: bold;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.2);
}

img {
  max-width: 100%;
  height: auto;
}

.background {
  filter: brightness(var(--background-brightness));
}

#fr_text, #zh_text, #pt_text {
  display: none;
}

#logo-link {
  padding: 0px;
  background-color: var(--page-background);
}

#logo-link img {
  filter: brightness(var(--logo-brightness));
}

/* Subscript that doesn't increase line height*/
sup,
sub {
  vertical-align: 0;
  position: relative;
}
sup {
  bottom: 1ex;
}
sub {
  top: 0.8ex;
}

section.content div.panel p a {
  color: white;
}

#regionSelector {
  display: none;
  position: absolute;
  z-index: 100;
}
