/* Set sane viewport widths, mostly for Mobile IE10.
   We are NOT applying the javascript temporary bugfix from 2013.
   See http://timkadlec.com/2013/01/windows-phone-8-and-device-width */
@-webkit-viewport{width: device-width}
@-moz-viewport{width: device-width}
@-ms-viewport{width: device-width}
@-o-viewport{width: device-width}
@viewport{width: device-width}

html {
  height: 100%;
  min-height: 100%;
  /* Prevent text resizing on orientation change.
     Also requires fuller viewport meta tag. */
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  max-width: 80em;
  margin: 0 auto;
  height: 100%;
  font-family: Arial, sans-serif;
  font-size: 100%;
  line-height: 1.67;
}
body * {
  max-height: 999999px;  /* Prevent Android font scaling */
}

/* Text, border & background color. */
.menu,
.menu > a {
  color: white;
}
h1, h2 {
  color: rgb(0, 150, 64);
}
header,
main {
  background-color: white;
}
.menu {
  background-color: rgb(0, 150, 64);
}
html {
  background-color: rgb(102, 102, 104);
}
body,
.legal {
  background-color: rgb(56, 56, 58);
}

/* Element defaults. */
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
}

/* Margins. */
.pad-both {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.unpad-both {
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}
@media all and (min-width: 72rem) {
  .pad-both {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  .unpad-both {
    margin-left: -2.5rem;
    margin-right: -2.5rem;
  }
}

/* Email obfuscation. */
a.email > span {
  unicode-bidi: bidi-override;
  direction: rtl;
}

/* Enlarge everything. */
@media all and (min-width: 120rem) {
  body {
    font-size: 112.5%;
  }
}