body {
  background-color: hsl(330, 2%, 16%);
  background-image: url(../img/bg.png);
  background-repeat: repeat;
  background-size: 120px 100px;
  background-position: 50% 0;
  color: white;
  margin: 100px 0;
}

body, input {
  font-family: "ff-enzo-web", "Helvetica Neue", Arial, Helvetica, sans-serif;
}

h2 {
  color: #CCC;
}

p {
  color: #CCC;
}

a:link, a:visited {
  color: #F46448;
  text-decoration: none;
}

a:hover, a:active {
  text-decoration: underline;
}

a:active {
  color: #F46448;
}

a .dim {
  color: #F46448;
}

a:active .dim {
  color: #F46448;
}

h1, h2, .signup, .dataviz, footer {
  background-color: hsl(330, 2%, 16%);
  box-sizing: border-box;
  text-align: center;
}

header {
  width: 960px;
  height: 100px;
  box-sizing: border-box;
  padding-left: 1px;
  margin: 0 auto;
  position: relative;
}

h1, h2 {
  margin: 0;
  height: 99px;
  font-weight: 400;
}

h1 {
  margin-right: 1px;
  font-size: 60px;
  line-height: 1.5;
  width: 359px;
  padding: 15px 0 0;
}

h2 {
  position: absolute;
  top: 0;
  left: 361px;
  width: 599px;
  padding: 26px 0 0;
  font-size: 20px;
  line-height: 26px;
}

.dataviz {
  position: relative;
  z-index: 1;
  height: 199px;
  box-sizing: border-box;
  padding: 0 0 0 0;
}

.signup {
  width: 719px;
  height: 199px;
  margin: 0 auto 1px;
  padding: 16px 0 0 0;
  font-size: 20px;
  line-height: 26px;
}

.signup form {
  margin: 0 0 1em;
}

.signup input, #thanks {
  font-size: 16px;
  line-height: 21px;
}

.input-placeholder {
  width: 450px;
  display: inline-block;
  vertical-align: bottom;
  position: relative;
}

input[type=email], #thanks.revealed {
  background-color: transparent;
  border-width: 0 0 1px 0;
  border-style: dotted;
  border-color: hsl(330, 2%, 50%);
  padding: 6px 5px 5px;
  width: 100%;
  color: white;
  margin-right: 16px;
  border-radius: 3px;
  box-sizing: border-box;
}

#spinner {
  position: absolute;
  top: 8px;
  right: 3px;
  display: none;
}

#thanks {
  display: none;
  border: none;
  overflow: hidden;
}

#thanks.revealed {
  display: block;
  border: none;
}

#email.hidden {
  display: none;
}

/* I SURE LOVE CSS */
input[type=email]::-webkit-input-placeholder {
  color: hsl(330, 2%, 40%);
  opacity: 1;
}
input[type=email]:-moz-placeholder {
  color: hsl(330, 2%, 40%);
  opacity: 1;
}
input[type=email]:-ms-input-placeholder {
  color: hsl(330, 2%, 40%);
  opacity: 1;
}
input[type=email]::input-placeholder {
  color: hsl(330, 2%, 40%);
  opacity: 1;
}

input[type=email]:hover {
  background-color: hsl(330, 2%, 10%);
}

input[type=email]:focus {
  outline: none;
}

input[type=submit] {
  background-color: transparent;
  border: 1px solid hsl(224, 54%, 73%);
  border-radius: 3px;
  //background-image: linear-gradient(to bottom, hsl(224, 36%, 57%) 0%, hsl(224, 36%, 57%) 49%, hsl(224, 27%, 48%) 50%, hsl(224, 27%, 48%) 100%);
  //font-weight: 700;
  padding: 5px 10px;
  color: white;
}

input[type=submit]:hover {
  background-image: linear-gradient(to bottom, hsl(224, 36%, 60%) 0%, hsl(224, 36%, 60%) 49%, hsl(224, 27%, 45%) 50%, hsl(224, 27%, 45%) 100%);
}

input[type=submit]:focus {
  border-color: hsl(224, 54%, 73%);
  border-width: 3px;
  padding: 3px 8px;
  outline: none;
}

input[type=submit]:active {
  border-color: hsl(224, 27%, 48%);
  background-image: linear-gradient(to bottom, hsl(224, 27%, 48%) 0%, hsl(224, 27%, 48%) 49%, hsl(224, 36%, 57%) 50%, hsl(224, 36%, 57%) 100%);
}

input[type=submit]:disabled {
  opacity: 0.5;
}

p.note {
  margin-top: 2em;
  font-size: 12px;
  line-height: 18px;
}

footer {
  margin: 100px auto 0;
  width: 238px;
  height: 99px;
  font-size: 12px;
  line-height: 18px;
  padding-top: 28px;
}

@media screen and (max-width: 960px) {
  header {
    width: 480px;
    height: 200px;
  }

  h1 {
    width: 479px;
    padding-top: 30px;
  }

  h2 {
    position: static;
    width: 479px;
    font-size: 16px;
    line-height: 21px;
  }

  .dataviz {
    height: 100px;
    box-sizing: border-box;
    padding-top: 0;
  }

  .signup {
    width: 100%;
    font-size: 16px;
    line-height: 21px;
  }

  .signup input, #thanks {
    font-size: 14px;
    line-height: 18px;
  }

  .input-placeholder {
    width: 400px;
  }
}

@media screen and (max-width: 720px) {
  .signup {
    padding: 6px 60px 0;
  }

  .input-placeholder {
    width: 300px;
  }

  p.note, footer {
    font-size: 11px;
    line-height: 16px;
  }
}

@media screen and (max-width: 550px) {
  .input-placeholder {
    width: 250px;
  }
}

@media screen and (max-width: 520px) {
  body {
    margin-top: 50px;
    background-position: 50% 50px;
  }
  header {
    width: 100%;
    margin: 0;
  }

  h1, h2 {
    width: 100%;
  }

  h1 img {
    width: 239px;
    height: 56px;
  }

  h2 {
    padding-top: 30px;
  }

  h2, .signup {
    font-size: 14px;
    line-height: 18px;
  }
}

@media screen and (max-width: 480px) {
  .signup {
    height: 225px;
    padding-top: 25px;
  }

  .input-placeholder {
    width: 200px;
    display: block;
    margin: 0 auto 16px auto;
  }

  input[type=email], #thanks {
    text-align: center;
  }

  footer {
    width: 100%;
    background-color: hsl(330, 2%, 16%);
    margin-top: -1px;
    height: 74px;
    padding-top: 1px;
  }
}

@media screen and (max-width: 400px) {

  h2, .signup {
    font-size: 12px;
    line-height: 16px;
  }

  p.note, footer {
    font-size: 10px;
    line-height: 14px;
  }
}

@media screen and (max-width: 320px) {
  body {
    margin-top: 0;
    background-position: 50% 0;
  }

  header {
    height: 142px;
  }

  h1 {
    padding-top: 5px;
    height: 87px;
  }

  h2 {
    padding: 0 20px;
  }

  h1 img {
    width: 199px;
    height: 47px;
  }

  .dataviz {
    height: 100px;
  }

  .signup {
    padding: 14px 20px 0;
    height: 225px;
  }

  footer {
    height: 46px;
  }
}
