*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  color: #404040;
  margin: 0;
}

/* =================
    Typography 
   ================= */

h1 {
  font-weight: 400;
  font-size: 2.5rem;
  text-shadow: 0 2px 2px #816fca;
}

h2 {
  font-size: 2.25rem;
  margin: .167em 0;
}

p {
  font-size: 1.125rem;
  line-height: 1.35;
}

.beta-text {
  font-weight: 900;
}

.subheading {
  color: #575757;
  font-weight: 900;
  margin-bottom: .5em;
}

.beta-text,
.top-text,
.subheading {
  text-transform: uppercase;
}

.top-text {
  font-size: .875rem;
  font-weight: 900;
  padding-top: .25em;
  border-top: 5px solid;
  order: -1;
  margin: 0 auto;
}

.fine-print {
  font-size: .75rem;
  letter-spacing: 1px;
  color: #858585;
}

/* =================
    Flex containers
   ================= */

.intro,
.main-content {
  display: flex;
  flex-direction: column;
  padding-left: 2em;
  padding-right: 2em;
}

/* =================
    Intro
   ================= */

.intro {
  color: #fff;
  background-color: #9480e4;
  min-height: 250px;
  text-align: center;
  justify-content: space-between;
  background-image: url('./images/intro-bg.png');
  background-size: cover;
  padding-bottom: 1.5em;
}

/* ====================
    Main content
   ==================== */

.main-content {
  padding-top: 2.5em;
  align-items: center;
}

.img-main {
  width: 120px;
  border-radius: 50%;
}

.main-content p,
form {
  max-width: 450px;
}

/* =================
    Form
   ================= */

input,
button {
  font-family: inherit;
  width: 100%;
  border-radius: 5px;
}

input {
  margin-bottom: .75em;
  padding: .5em;
  border: 2px solid #d1d5db;
}

input:focus {
  outline: none;
  border-color: #8a71ec;
  background-color: #e6e8ec;
}

.btn {
  font-weight: 900;
  text-transform: uppercase;
  border: none;
  letter-spacing: 1px;
  padding: 1em 0;
  cursor: pointer;
}

.btn-primary {
  color: white;
  background-color: #8a71ec;
  margin-top: 1em;
}

.btn-primary:hover {
  background-color: #b7a7f6;
}

.btn:hover {
  background-color: #b7a7f6;
}

/* =================
    Media queries 
   ================= */

@media (min-width: 576px) {
  body {
    display: flex;
  }

  h1 {
    font-size: 3.25vw;

  }

  h2 {
    font-size: 2.625rem;
  }

  .beta-text {
    font-size: 1.25rem;
  }

  .intro,
  .main-content {
    width: 50%;
  }

  .intro {
    height: 100vh;
  }

  .main-content {
    justify-content: center;
    padding-top: 0;
  }
}