/* Base Styling */
/* Font size is set to 16px so that when using the grid system, 1rem can be used to simulate 16px */
html {
  /* 1rem is equal to this font size */
  font-size: 16px;
}

body {
  /* 1em is equal to this font size unless the element has a parent with a specified font size */
  font: normal normal 16px/1em "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #000;
}

/* Grid - 12 columns, 1.5rem/24px gutters, 1008px wide */
.parcel,
.container {
  width: 1008px; /* 1008px wide when padding is added to column */
  margin: auto;
}

.row {
  display: flex;
  flex-direction: row;
}

.padded {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.padded-top {
  padding-top: 2rem;
}

.padded-bottom {
  padding-top: 2rem;
}

.extra-padded {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.extra-padded-top {
  padding-top: 5rem;
}

.extra-padded-bottom {
  padding-bottom: 5rem;
}

.padded-less {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Column */
[class*='col-'],
.column {
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.column > *:last-child:not(:only-child),
[class*='col-'] > *:last-child:not(:only-child){
  margin-bottom: 0;
}

[class*='col-1'],
.column.one {
  width: 8.33%;
}

[class*='col-2'],
.column.two {
  width: 16.66%;
}

[class*='col-3'],
.column.three,
.column.one-quarter {
  width: 25%;
}

[class*='col-4'],
.column.four,
.column.one-third {
  width: 33.33%;
}

[class*='col-5'],
.column.five {
  width: 41.66%;
}

[class*='col-6'],
.column.six,
.column.one-half,
.column.two-quarters {
  width: 50%;
}

[class*='col-7'],
.column.seven {
  width: 58.33%;
}

[class*='col-8'],
.column.eight,
.column.two-thirds {
  width: 66.66%;
}

[class*='col-9'],
.column.nine,
.column.three-quarters {
  width: 75%;
}

[class*='col-10'],
.column.ten {
  width: 83.33%;
}

[class*='col-11'],
.column.eleven {
  width: 91.66%;
}

[class*='col-12'],
.column.twelve,
.full-width {
  width: 100%;
}

@media (max-width: 1008px) {
  .row {
    display: block;
  }

  .container {
    width: calc(100% - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
  }

  [class*='col-'] {
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
    display: block;
  }

  [class*='col-'] + [class*='col-'] {
    padding-top: 2.5rem;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6, p {
  margin-top: 0;
  margin-bottom: 1rem;
}

h1 {
  font-size: 4.0em;
  line-height: 1.2;
}

h2 {
  font-size: 3.6em;
  line-height: 1.25;
}

h3 {
  font-size: 3.0em;
  line-height: 1.3;
}

h4 {
  font-size: 2.4em;
  line-height: 1.35;
}

h5 {
  font-size: 1.8em;
  line-height: 1.5;
}

h6 {
  font-size: 1.5em;
  line-height: 1.6;
}

p {
  line-height: 1.5em;
}

@media (max-width: 1008px) {
  h1 {
    font-size: 3.0em;
  }
  
  h2 {
    font-size: 2.5em;
  }
  
  h3 {
    font-size: 2em;
  }
  
  h4 {
    font-size: 1.8em;
  }
  
  h5 {
    font-size: 1.5em;
  }
  
  h6 {
    font-size: 1.2em;
  }
}

strong {
  font-weight: bold;
}

em {
  font-style: italic;
}

u {
  text-decoration: underline;
}

s {
  text-decoration: line-through;
}

/* Links */

a {
  color: inherit;
  text-decoration: none;
  word-break: break-word;
}

a[href^=tel] { 
  text-decoration: none;
  display: inline !important;
}

/* Buttons */

.button,
button,
input[type="submit"] {
  display: inline-block;
  padding: 0.5em 1em;
  margin-bottom: 1rem;
  background-color: #CCC;
  border: none;
  color: #FFF;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
  cursor: pointer;
  text-align: center;
  font-size: 100%;
  word-break: normal;
}

.button.alt,
button.alt,
input[type="submit"].alt {
  background: #AAA;
}

.button.full,
button.full,
input[type="submit"].full {
  display: block;
  width: 100%;
}

input[type="submit"]:focus {
  border: none;
}

@media (max-width: 1008px) {
  .button,
  button,
  input[type="submit"] {
    display: block;
    width: 100%;
  }
}

/* Forms */

input,
textarea,
select {
  padding: 0.5em;
  background-color: #FFF;
  border: 1px solid #EEE;
  border-radius: 3px;
  box-shadow: none;
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  margin-bottom: 1rem;
}

input,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

textarea {
  min-height: 65px;
}

select {
  -moz-appearance: none
  -webkit-appearance: none;
  appearance: none;
  border-radius: 3px;
  background: none;
}

input:focus,
textarea:focus,
select:focus {
  border: 1px solid #33C3F0;
  outline: 0;
}

input.half,
textarea.half,
select.half {
  width: calc(50% - 1rem);
  display: inline-block;
}

input.invalid,
textarea.invalid,
select.invalid {
  border: 1px solid #DD0000;
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
  position: absolute;
  opacity: 0;
}

input[type="radio"] + label,
input[type="checkbox"] + label {
  position: relative;
  padding-left: 1em;
  margin-right: 0.25em;
}

input[type="radio"] + label:before,
input[type="checkbox"] + label:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: calc(1em - 2px);
  width: calc(1em - 2px);
  background: #FFF;
  border: 1px solid #AAA;
  box-shadow: inset 0px 0px 0px 1.5px #FFF;
  border-radius: 50%;
  transition: background 0.3s;
}

input[type="radio"]:checked + label:before,
input[type="checkbox"]:checked + label:before {
  background: #3CF;
}

input[type="checkbox"] + label:before {
  border-radius: 3px;
}

label {
  display: inline-block;
  margin-bottom: 1rem;
}

#error-text {
  color: #D00;
}

@media (max-width: 1008px) {
  input.half,
  textarea.half,
  select.half {
    width: 100%;
  }
  
  .half + .half {
    margin-left: 0;
  }
}

/* Lists */

ul {
  list-style: none;
}

ol {
  list-style: decimal;
}

ol, ul, li {
  margin-bottom: 0;
}

/* Mobile */

@media (min-width: 1008px) {
  .mobile {
    display: none !important;
  }
}

@media (max-width: 1008px) {
  .desktop {
    display: none !important;
  }
}

/* Only display information on mobile devices and not resized desktop screens */
@media screen and (min-device-width: 1008px) {
  .mobile-ready {
    display: none !important;
  }
}

/* Misc */
img {
  max-width: 100%;
  height: auto;
  margin: 0px auto 1rem auto;
}

.logo img {
  margin-bottom: 0px;
}

hr {
  border: none;
  border-top: 2px solid #DDD;
  width: 100%;
  margin: 1rem 0;
}

.left {
  text-align: left;
  display: block;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  vertical-align: middle;
}

.right {
  text-align: right;
  display: block;
}