@font-face {
  font-family: "Source Sans Pro";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-pro-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans Pro";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-pro-600-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans Pro";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/source-sans-pro-700-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-pro-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-pro-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/source-sans-pro-700.woff2") format("woff2");
}

*,
*:after,
*:before {
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  color: #111;
  font-size: 18px;
  line-height: 1.6;
}
@media (max-width: 768px) {
  body {
    display: inline-block;
  }
}

footer {
  text-align: center;
  padding: 3rem 0;
  font-size: 90%;
}

a:visited,
a:active,
a {
  color: blue;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  max-width: 100%;
  width: 100%;
}
nav a {
  margin: 0 16px;
}
nav .nav-links {
  flex-grow: 1;
  text-align: center;
}
@media (max-width: 768px) {
  nav .nav-links {
    text-align: left;
  }
}

div.inner {
  margin: 0 auto;
  width: 660px;
}
@media (max-width: 768px) {
  div.inner {
    padding: 24px;
  }
}

div.header h1 {
  font-size: 40px;
  margin-bottom: 0;
  color: #314839;
}

div.header {
  margin-bottom: 1em;
}

p.link {
  font-size: 90%;
}

p.intro {
  padding-top: 1em;
}

div.distance {
  padding-top: 1em;
}

div.distance select {
  font-size: 17px;
  margin-left: 6px;
}

div.distance input {
  border: 1px solid #d5dad7;
  border-radius: 5px;
  font-size: 16px;
  padding: 3px 5px;
  width: 100px;
  margin-left: 6px;
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}

button {
  color: #fff;
  background-color: #314839;
  border: 1px solid #314839;
  border-radius: 5px;
  padding: 8px 16px;
  font-size: 16px;
  margin-left: 16px;
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}

code {
  background-color: #f5f5f5;
  padding: 3px 6px;
  border-radius: 5px;
}

code.light {
  background-color: #fffffa;
}

.hint {
  font-size: 90%;
  color: #666;
  margin-bottom: 32px;
}

.hidden {
  display: none;
}

div.right {
  float: right;
}

span.or {
  font-weight: normal;
  font-size: 116%;
}

div.highlight {
  padding-top: 1.618em;
  font-size: 20px;
  font-weight: bold;
}

div.error {
  padding-top: 1.618em;
  color: red;
  font-size: 90%;
}

div.explain {
  padding-top: 1.618em;
  font-size: 95%;
}

div.explain p {
  white-space: nowrap;
}

div.explain h2,
div.table h2 {
  font-size: 100%;
}

div.table {
  margin-top: 2em;
}

div.table table {
  width: 100%;
}

table td {
  text-align: left;
}

table th {
  text-align: left;
}

div.image {
  padding-top: 1em;
}
