* {
    margin: 0;
    padding: 0;
}

html {
    font-family: Arial, Helvetica, sans-serif;
}

body {
    width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background-color: #F2E8CF;
}

h1, h2, h3 {
    text-align: center;
}

.flex-container {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    align-items: start;
}

.center {
    text-align: center;
}

.divider {
    margin: 10px 0;
    background-image: url(images/divider1.png);
    width: 1200px;
    height: 60px;
}



/* HEADER STYLES */
.flex-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

/* HERO STYLES */

.hero {
    background-image: url(images/mushrooms.jpg);
    background-position: left center;
    background-size: cover;
    height: 450px;
    padding: 20px;
}
.book-benefits {
    padding: 10px 20px;
    margin: 20px;
    height: 395px;
}

.video-player iframe {
    padding: auto;
    margin: 10px 20px;
    height: 413px;
    width: 550px;
}

.book-benefits {
    background: rgba(56, 102, 65, .85); 
    color: #F2E8CF;
    font-size: 1.2rem;
    margin-top: 10px;
}

.book-benefits p{
    padding: 20px;
    text-align: center;
}

.book-benefits ul {
    margin-left: 20px;
}

.book-benefits li {
    padding: 10px 0;
}

a.cta {
    padding: 12px 24px;
    background-color: #bc4749;
    text-decoration: none;
    color:#F2E8CF;
    font-size: 1.4rem;
    transition: background 0.5s ease, color 0.5s ease;
}

a.cta:hover {
    background-color: #a7c957;
    color: black;
}

/* BOOK REVIEW STYLES */

.card {
    background-color: #386641;
    color: #f2e8cf;
    padding: 10px;
    margin: 10px;
    width: 33%;
    height: 285px;
}

.card h3, p {
    padding: 10px;
}

p.stars {
    text-align: center;
}


/* ABOUT STYLES */

.about-text {
    padding: 20px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.author-image img {
    width: 500px;
}


/* COMMUNITY STYLES */

.community-text {
    padding: 20px;
}

.community-text p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.community-vid iframe {
    width: 500px;
    height: 375px;
}


/* FOOTER STYLES */

footer {
    background-color:#386641;
    color:#F2E8CF;
    padding: 20px 0;
}

.social-icons {
    margin-left: auto;
    margin-right: auto;
    height: 40 px;
    width: 180px;
}

.social-icons img {
    height: 40px;
    padding-left: 10px;
    padding-right: 10px;
    display: inline-block;
}

.attribution {
    font-size: x-small;
    margin-top: 20px;
}

.attribution a {
    text-decoration: none;
    color: #F2E8CF;
}


/*********************  RESPONSIVE STYLES *****************/

@media screen and (max-width: 768px) {
    body {
        width: 100vw;
        margin-left: auto;
        margin-right: auto;
    }

    .flex-header {
        display: flex;
        flex-direction: column;
        height: fit-content;
        padding: 35px 0;
    }

    .logo {
        margin-bottom: 10px;
    }

    header, section, footer {
        width: 100vw;
        margin-left: 0;
        margin-right: 0;
    }

    .flex-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .hero .flex-container {
        margin: 10px auto;
    }

    .hero {
        height: fit-content;
        padding: 10px 0;;
    }

    .book-benefits {
        padding: 10px 20px;
        margin: 20px;
        height: fit-content;
    }

    .reviews {
        margin-top: 10px;
    }

    .card {
        width: 90%;
        height: fit-content;
    }

    .card p {
        font-size: 1.2rem;
    }

    .divider {
        margin: 10px 0;
        background-image: url(images/divider1.png);
        background-position: center;
        background-size: cover;
        width: 100vw;
        height: 60px;
}

    .video-player {
        height: unset;
        width: 500px;
        padding: 0;
        margin: 0;
    }

    .video-player iframe {
        width: 100vw;
        margin: 0 auto;
        padding: 0;
    }

    .cta {
        margin: 10px 0;
    }

    .author-image {
        width: 100vw;
        margin-left: auto;
        margin-right: auto;
    }
    .author-image img {
        width: 100%;
        max-width: 100vw;
        /*min-width: 500px;*/
    }

    .community-vid iframe {
        width: 100vw;
        margin: 0 auto;
        padding: 0;
    }

    footer {
        padding: 20px 0;
    }
}