* {
  box-sizing: border-box;
}

button {
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 1rem;
  background: #fff;
  color: #2898C2;
  text-transform: uppercase;
  font-weight: bold;
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  outline: 0;
  cursor: pointer;
}

button.alt {
  background: #0878a0;
  color: #fff;
}

button.login-button {
  position: absolute;
  top: 2rem;
  right: 2rem;
}

h1 {
  font-size: 2rem;
}

p {
  line-height: 1.5rem;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
}

header {
  display: block;
  background: #333;
  padding: 1rem;
}

header #header-logo {
  display: block;
  max-width: 100%;
  width: 350px;
  height: auto;
  margin: 0.5rem auto;
}

section#hero {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  color: #eee;
  background: url('img/tipton-new-home.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.5);
}

div#hero-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  width: 1000px;
  margin-top: 6rem;
}

div#hero-image img  {
  display: block;
  margin: 0 auto;
  width: 400px;
  max-width: 100%;
  height: auto;
}

div#hero-text {
  max-width: 100%;
  flex: 1;
  padding: 0 1rem;
}

div#hero-text h1 {
  margin-top: 0;
}

aside {
  display: flex;
  justify-content: center;
  background: #E8E8E8;
  padding: 4rem 1rem;
  font-size: 14px;
}

aside #usp-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

aside .usp-block {
  max-width: 100%;
  width: 17rem;
  text-align: center;
  margin: 1rem 0.5rem;
}

aside .fas {
  font-size: 36px;
}

aside .usp-block h3 {
  margin-bottom: 10px;
}

aside .usp-block p {
  margin: 0;
}

main {
  display: flex;
  align-items: center;
  flex-direction: column;
}

main #main-container {
  margin: 5rem 0;
  padding: 1rem;
  width: 900px;
  max-width: 100%;
}

main #main-container .video {
  padding: 10px;
  background: #fff;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
  width: 700px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 5rem;
}

main #main-container button.alt {
  margin-top: 2rem;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #333;
  color: #ccc;
  padding: 3rem 1rem;
}

footer .social-media ul {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: 1rem;
}

footer .social-media ul li {
  display: inline-block;
  font-size: 36px;
  margin: 0 5px;
}

footer .social-media a {
  color: #ccc;
}

#signup-popup {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  justify-content: center;
  align-items: center;
}

#signup-popup.hidden {
  display: none;
}

#signup-popup #mc_embed_signup {
  width: 25rem;
  max-width: 100%;
  background: #fff;
  padding: 2rem;
}

#signup-popup #mc_embed_signup #mce-responses {
  float: none;
  top: 0;
  padding: 0;
  margin: 0;
}

@media screen and (max-width: 780px) {
  #hero-container {
    flex-direction: column;
    justify-content: center;
  }

  #hero-text {
    width: 40rem;
    margin: 0 auto;
    text-align: center
  }

  #hero-image {
    margin-top: 5rem;
    order: 1;
  }

  header {
    text-align: center;
  }
  
  button.login-button {
    position: relative;
    margin: 1rem auto;
    top: 0;
    right: 0;
  }
}