/**
 * Stylesheet for income.seamusjohnston.com 
 * Some styles taken from
 * normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
 */

body {
  background-color: #ebdcb0;
  color: #2B2B2B;
  line-height: 1.6rem;
  font-family: "Courier", serif;
  font-size: 1.2rem;
  background-image:
    -webkit-gradient(linear, right top, right bottom, from(#ebdcb0), to(#c7b078));
  background-image:
    -webkit-linear-gradient(top, #ebdcb0, #c7b078);
  background-image:
    -moz-linear-gradient(top, #ebdcb0, #c7b078);
  background-image:
    -o-linear-gradient(top, #ebdcb0, #c7b078);
  background-image:
    linear-gradient(to bottom, #ebdcb0, #c7b078);
  height: 100%;
  margin: 0;
  padding: 0 1rem;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

nav {
  margin: auto;
}

footer {
  text-align: center;
  width: 100%;
}

select, button {
  padding: 8px 0;
  font-size: .8rem;
  margin-top: .3rem;
}

h1 {
  font-size: 2rem;
  color: #474747;
  line-height: 2rem;
}

pre {
  font-size: 1rem;
  font-family: "Courier", monospace;
  font-weight: bold;
  text-align: center;
}

hr {
  margin-top: 0.5rem;
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

table {
  display: block;
  width: 100%;
  font-size: .8rem;
  border-collapse: collapse;
  white-space: nowrap;
}

th, td {
  padding: .3rem;
  text-align: left;
  border: 1px solid black;
}

tr {
  background-color: #e0dddf;
}

tr:nth-child(even) {
  background-color: #c9c7c8;
}

fieldset {
  border: .2rem double #5c6a6b;
  margin: 0.05rem;
  padding: 0.35em 0.40em 0.625em;
}

a {
  color: #4F3091;
  text-decoration: none;
  border-bottom: 0.1rem solid;
}

a:visited {
  color: #8F0000;
}

.coupon {
  padding: 0.5rem 0.5rem;
  font-size: .9rem;
  margin: 0.3rem 0.05rem 0.05rem 0.05rem;
  border: 0.15rem dashed #5c6a6b;
}

input[type=text] {
  padding: 0.2rem;
  /* font-size: .9rem; */
  width: 5rem;
}

input[type=text]:invalid {
  border: .2rem solid red;
}

input[type=radio] {
  margin-right: .3rem;
}

input[id="pay-input"] {
  width: 4rem;
  float: left;
  margin-right: .6rem;
  margin-bottom: .2rem;
}

#wrapper {
  margin: 30px auto;
  padding: .2em 1rem;
  max-width: 450px;

  background-color: #e0dddf;
  box-shadow: 0 0 40px;

  border-top: .4rem double #5c6a6b;
  border-right: 0;
  border-bottom: .4rem double #5c6a6b;
  border-left: 0;
}

#table-wrapper {
  overflow-x: auto;
}

#inputs-container {
  display: grid;
  grid-template-columns: 58% 42%;
  grid-template-rows: auto;
  grid-template-areas: 
    "pay cost"
    "pay first"
}

#pay-fieldset {
  margin-right: .3rem;
  margin-bottom: auto;
  grid-area: pay;
}

#item-cost-fieldset {
  grid-area: cost;
}

#price-input {
  width: 4rem;
}

#first-paragraph {
  margin-top: .3rem;
  margin-left: .3rem;
}

.percents {
  color: #131B62;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 1.3rem;
}

.money {
  /* color: #1B4106; */
  font-family: sans-serif;
  /* font-weight: bold; */
  font-size: 1.3rem;
}

.hours {
  color: #880400;
  font-weight: bold;
  font-size: 1.2rem;
}

.center {
  text-align: center;
}

@media (max-width: 645px) {
  #inputs-container {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 604px) {
  input[id="pay-input"] {
    float: none;
  }
}

@media (max-width: 472px) {
  input[id="pay-input"] {
    float: left;
  }
}
