* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    text-align: center;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Raleway', sans-serif;
    margin: 1.5em 2.5em;
}

.nav-bar img {
    height: 1.5em;
}

.nav-bar li {
    display: inline-block;
    margin-left: 20px;
}

.nav-bar li a {
    text-decoration: none;
    color: hsl(238, 22%, 44%);
    font-size: .7em;
}

.top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1em auto;
}

.top-pic img {
    position: relative;
    height: 13em;
    width: auto;
    margin-top: 4em;
}

h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.4em;
    line-height: 1.5em;
    font-family: 'open sans', sans-serif;
    margin: 1em 1.35em;
}

.paragraph-1 {
    font-size: .85em;
    margin: 1em 3em;
    color: hsl(243, 87%, 12%);
}

#email {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2em auto;
    width: 22em;
    padding: .6em;
    font-family: 'open sans', sans-serif;
}

input::placeholder {
    color: rgba(192, 192, 192, 0.683);
    padding-left: 1em;
    font-size: .8em;
}

#submit {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -1.2em auto;
    width: 22em;
    padding: .75em;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    background-color: hsl(224, 93%, 58%);
    color: hsl(240, 75%, 98%);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.middle-bg {
    background-image: url(./images/bg-curve-mobile.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 140em 100%;
    margin-top: 6em;
    height: 150vh;
}

.middle img {
    position: relative;
    height: 14em;
    width: auto;
    margin: 3.5em auto;
    margin-top: 6.5em;
}

.bold {
    font-weight: bold;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    font-size: 1.1em;
    margin: 1.5em 1.2em;
}

.paragraph-2 {
    font-size: .85em;
    text-align: left;
    margin: 1em 2.4em;
    color: grey;
}

.cyan {
    text-align: center;
    font-size: .75em;
    margin: 3em auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: hsl(170, 45%, 43%);
    margin-bottom: -1.2em;
}

.cyan img {
    height: 1.5em;
    width: auto;
    margin: .2em;
}

.cyan-underline {
    color: hsl(170, 45%, 43%);
    margin-right: .5em;
}

.review #quotes {
    height: .6em;
    position: relative;
    margin: .4em 0;
    margin-top: 8.5em;
}

.review {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    background-color: white;
    height: 10.5em;
    width: auto;
    margin: 3.5em;
    padding: 1.6em 1.9em;
    padding-bottom: 9.5em;
    line-height: 1.2em;
    border-radius: 3px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.review p {
    font-size: .6em;
    color: hsl(238, 22%, 44%);
    margin: .5em 0;
}

.review-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.review-photo #reviewer {
    height: 1.7em;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: .5em;
}

#name {
    font-family: 'Raleway', sans-serif;
    letter-spacing: .5px;
    font-size: .4em;
    font-weight: 700;
    margin-bottom: -1em;
    color: black;
}

#title {
    font-size: 6px;
    color: black;;
}

.bottom {
    background-color: hsl(238, 22%, 44%);
    color: hsl(240, 75%, 98%);
    font-family: 'Raleway', sans-serif;
    height: 20em;
}

h2 {
    padding-top: 3.5em;
    font-size: 1.1em;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

.bottom p {
    margin: 1.5em 3.5em;
    font-size: .85em;
    font-family: 'open sans', sans-serif;
}


#email-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: .5em auto;
    width: 46.5em;
    padding: 2em;
    font-family: 'open sans', sans-serif;
    font-size: .3em;
}

#submit-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1em auto;
    width: 28em;
    padding: 1em;
    font-family: 'Raleway', sans-serif;
    font-weight: bolder;
    font-size: .5em;
    background-color: hsl(224, 93%, 58%);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

footer {
    background-color: hsl(243, 87%, 12%);
    color: hsl(240, 75%, 98%);
}

.footer-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

footer img {
    height: 11em;
    margin: 1.5em 2.5em;
}

.phone {
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(240, 75%, 98%);
    margin-top: -5em;
    margin-left: 1.5em;
}

.phone img {
    height: 1em;
    margin: 1em;
}

.email {
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(240, 75%, 98%);
    margin-bottom: 3em;
    margin-left: 1.5em;
}

.email img {
    height: 1em;
    margin: 1em;
}

footer ul {
    text-align: left;
}

footer li {
    margin: 1em;
    list-style: none;
}

footer a {
    text-decoration: none;
    margin: 1.5em;
    color: hsl(240, 75%, 98%);
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4em auto;
}

.social-icons a {
    margin: .5em;
    font-size: 13px; 
}

.fa {
    padding: 5px;
    text-decoration: none;
    border-radius: 50%;
    width: 1.9em;
  }

/* Facebook */
.fa-facebook {
    color: hsl(240, 75%, 98%);
    border: 1px solid hsl(240, 75%, 98%);
  }
  
  /* Twitter */
  .fa-twitter {
    color: hsl(240, 75%, 98%);
    border: 1px solid hsl(240, 75%, 98%);
  }

  /* Instagram */
  .fa-instagram {
    color: hsl(240, 75%, 98%);
    border: 1px solid hsl(240, 75%, 98%);
  }

.attribution { 
    font-size: 11px; 
    text-align: center;
    position: relative;
    bottom: 0;
 }

.attribution a { 
    color: hsl(228, 45%, 44%); 
}

/* Desktop View */

@media only screen and (min-width: 1440px) {
    .nav-bar {
    margin: 3em 5em;
   } 
   
   .nav-bar img {
    height: 2.8em;
   }

   .nav-bar li a {
    font-size: 1em;
    margin: 1em;
   }

    .top {
        display: flex;
        flex-direction: row-reverse;
        margin: -6em 4em;
        height: 40em;
    }

    .top-pic {
        float: right;
        transform: scale(1.8);
        width: 100%;
    }

    .top-text {
        text-align: left;
    }

    .top-text h1 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        margin-top: 5em;
        font-size: 2.2em;
        text-align: left;
    }

    .paragraph-1 {
        font-size: 1.1em;
        margin: 0 2.8em;
        margin-top: -.8em;
    }

    .email-signup {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: left;
        margin-left: -3.5em;
    }

    #email {
        width: 23em;
    }
    
    #submit {
        width: 14em;
        margin-left: -7em;
        height: 2.65em;
    }

    .middle-bg {
        background-size: 300em 100%;
        height: 100vh;
    }

    .middle {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: center;
        margin-top: 6em;
    }

    .middle img {
        transform: scale(1.8);
        padding: 0;
        margin-right: 15em;
        position: relative;
        bottom: -6em;
    }

   .bold {
        font-size: 2em;
        position: relative;
        left: -2.2em;
   }

   .paragraph-2 {
        margin: 1em 16em;
        position: relative;
        left: -7em;
   }

   .link {
        position: relative;
        left: -33em;
        top: -7em;
   }

    .review {
        width: 17em;
        font-size: 1em;
        position: relative;
        left: 4em;
        top: -8.5em;
    }

    .bottom {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .bottom-h2 {
        font-size: 1.5em;
        margin: 1em;
        position: relative;
        right: -3.75em;
    }

    .bottom p {
        margin: 1em 20em;
        position: relative;
        left: -11.5em;
    }

    .bottom-text {
        text-align: left;
    }

    .bottom-form {
        position: relative;
        left: -4em;
        bottom: -8em;
    }
  
    #email-2 {
        width: 100em;
    }

    #submit-2 {
        position: relative;
        left: -16em;
    }

    footer {
        display: flex;
        flex-direction: row;
        padding-top: 5em;
        height: 35em;
    }

    .upper-ul {
        position: relative;
        left: 30em;
        top: -9em;
    }

    .lower-ul {
        position: relative;
        left: 50em;
        top: -19.25em;
    }

    .social-icons {
        position: relative;
        left: 20em;
        top: -7em;
    }

    .attribution {
        bottom: 0;
        position: absolute;
    }

}
