*, *::before, *::after {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  background: #bbbbbb;
  padding: 0;
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
header {
  margin: 2rem auto 0 auto;
  background: #ffffff;
  width: 1140px;
  margin: 32px auto 0 auto;
  padding: 36px 36px 0 36px;
}
header > a,
header > a:hover {
  background-color: #f96e5b;
  color: #fff;
  display: inline-block;
  padding: 1rem;
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  text-decoration: none;
  font-size: 3rem;
  line-height: 1;
  text-transform: uppercase;
}
nav {
  margin-top: 1rem;
  background: #333;
  width: auto;
}
nav > input,
nav > label {
  display: none;
}
nav > ul {
  display: flex;
}
nav > ul,
nav > ul > li {
  padding: 0;
  margin: 0;
  list-style-type: none;
}
nav > ul > li > a {
  font-size: 1rem;
  padding: 1rem 1.2rem 0.9rem 1.2rem;
  text-decoration: none;
  color: #fff;
  background: rgba(51, 51, 51, 100%);
  display: inline-block;
}
nav > ul > li > a:hover {
  background: #f96e5b;
}
nav > ul > li > a > span:first-child {
  color: #f96e5b;
}
nav > ul > li > a:hover > span:first-child {
    color: #333;
}
nav > ul > li:last-of-type > a {
  color: #f96e5b;
  font-weight: bold;
}
nav > ul > li:last-of-type > a:hover,
nav > ul > li:last-of-type > a:hover > span:first-child {
  color: #fff;
}
nav > ul > li > a > span:last-child {
  text-decoration: underline;
}
.cost-of-living-calculator {
  background: #ffffff;
  color: #222;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.625;
  max-width: 1140px;
  margin: 0 auto 32px auto;
  padding: 2px 36px 36px 36px;
}
.cost-of-living-calculator > ol {
  margin: 0;
  padding: 0 0 0 20px;
}
.cost-of-living-calculator > ol > li {
  margin: 10px 0;
}
.cost-of-living-calculator .question {
  font-weight: bold;
}
.cost-of-living-calculator .answer {
  display: flex;
  flex-direction: column;
}
.cost-of-living-calculator .choices label {
  display: flex;
  align-items: flex-start;
}
.cost-of-living-calculator .choices input {
  margin: 4px 10px 0 0;
}
.cost-of-living-calculator b {
  font-weight: bold;
}
.cost-of-living-calculator .summary {
  display: none;
  margin: 20px 0;
}
.cost-of-living-calculator .summary div:nth-of-type(odd) span {
  background: #eee;
}
.cost-of-living-calculator .summary div:first-of-type,
.cost-of-living-calculator .summary div:last-of-type {
  font-weight: bold;
}
.cost-of-living-calculator .summary span {
  display: inline-block;
}
.cost-of-living-calculator .summary span:first-of-type {
  text-align: left;
  width: 420px;
  padding: 0 0 0 5px;
}
.cost-of-living-calculator .summary span:last-of-type {
  width: 90px;
  text-align: right;
  padding: 0 5px 0 0;
}
.cost-of-living-calculator .summary div:first-of-type span {
  border-bottom: 5px double #aaa;
}
.cost-of-living-calculator .summary div:last-of-type span {
  border-top: 5px double #aaa;
}
.cost-of-living-calculator button {
  background: #f96e5b;
  color: #fff;
  padding: 1rem 2rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  line-height: 1;
}
.explanation {
  margin-top: 2rem;
  width: 40rem;
  display: none;
}
.explanation a {
  text-decoration: underline;
  font-weight: bold;
  color: #f96e5b;
  cursor: pointer;
  margin: 1rem 0;
}
.explanation h2,
.explanation h3 {
  font-weight: 800;
}
.explanation h3 {
  margin: 1rem 0;
}
@media only screen and (max-width: 640px) {
  header, nav {
    width: 100%;
    margin: 0;
  }
  header > a,
  header > a:hover {
    display: block;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    text-align: center;
  }
  nav {
    display: inline-block;
    background: rgba(0, 0, 0, 0);
    position: absolute;
    top: 0;
    left: 0;
    width: auto !important;
    margin: 0;
  }
  nav > label {
    display: flex;
    align-items: center;
    font-family: Arial;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    width: 40px;
    height: 40px;
    margin: 0;
    padding-left: 5px;
  }
  nav > input ~ ul {
    display: none;
  }
  nav > input:checked ~ ul {
    display: block;
    width: 300px;
    border: 2px solid #777;
    border-left: none;
    border-top: none;
    background: #333;
  }
  nav > ul {
    flex-direction: column;
  }
  nav > ul > li > a {
    display: block;
    background: transparent;
  }
}
