body {
    font-size:16px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background-color: #efefef;
    font-weight: 100;
}

.container{
    width: 100%;
    display: flex;
    height: 100%;
    justify-content: center;
}

.main-content{
    width:100%;
    max-width: 1024px;
    background-color:#ffffff;
    background-image: url(images/eggs.jpg);
    background-size: cover;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.main-content h1{
    display:inline-block;
    background-color: #626C66;
    color:#ffffff;
    font-size: 2.1rem;
    padding: 1.5rem;
    margin-right: 1rem;
    border-radius: 0 10px 10px 0px;
    font-weight: bold;
    margin-top: 0;
}

.main-content h2{
    background-color: #E1CA96;
    text-align: center;
    width: 100%;
    font-size: 2rem;
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    margin-bottom: 1rem;
}

.card-deck{
    margin: 0px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 1rem;
}

.card {
    min-width: 300px;
    margin:0;
    text-decoration: none;
}

.card-body {
    background-color:#ffffff;
    border-radius:10px;
    margin:.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.7rem;
    color: #3A606E;
}

.round-image{
    max-width: 100%;
    height: auto;
    margin: .5rem 1rem 2rem 1rem;
}

.card-body h3{
    margin-bottom: 0;
}

.heading {
    grid-area: heading;
    align-self: start; 
    justify-self: start;
}

.buttons {
    grid-area: buttons;
    align-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

}

.fancy-button{
    border: 2px solid #3A606E;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    font-weight: bold;
    color: #3A606E;
    text-decoration: none;
    margin-left: 1.5rem;
    margin-top: 1rem;
    padding: .5rem;
    
}

.card-grid{
    grid-area: cards;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: left;
    align-items: center;
    justify-content: start;
}

.recipe-content{
    padding:0;
   background-image: url(images/eggs-flipped.jpg);
   background-size: cover;
   min-height: 711px;
}

.recipe-content .buttons {
    margin-bottom: 3rem;
}

.recipe-content h1{
    margin-top:2rem;
}

.ingredients{
    background-color: #F6E2B3;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
}

.ingredients div{
    width: 45%;
}

.ingredients h5, .directions h5{
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom:0;
}

.directions{
    background-color:#ffffff;
    padding: 2rem;
    grid-area: directions;
}

.description {
    grid-area: description;
    margin-left: 1rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.description ul{
    background-color: #918B76;
    color: #ffffff;
    padding: 1rem;
    border-radius: 10px 0 0 10px;
}

.description ul li {
    list-style: none;
}

.hard-boiled{
    background-image: url(images/hard-boiled-bg.jpg);
    background-size: cover;
    background-position: center;
}

.soft-boiled{
    background-image: url(images/soft-boiled-bg.jpg);
    background-size: cover;
    background-position: center;
}

.poached{
    background-image: url(images/poached-bg.jpg);
    background-size: cover;
    background-position: center;
}

.steamed{
    background-image: url(images/steamed-bg.jpg);
    background-size: cover;
    background-position: center;
}

.sunny-side-up{
    background-image: url(images/sunny-side-bg.jpg);
    background-size: cover;
    background-position: center;
}

.over-easy{
    background-image: url(images/over-easy-bg.jpg);
    background-size: cover;
    background-position: center;
}

.over-medium{
    background-image: url(images/over-medium-bg.jpg);
    background-size: cover;
    background-position: center;
}

.over-hard{
    background-image: url(images/over-hard-bg.jpg);
    background-size: cover;
    background-position: center;
}

.scrambled{
    background-image: url(images/scrambled-bg.jpg);
    background-size: cover;
    background-position: center;
}

.omelette{
    background-image: url(images/omelette-bg.jpg);
    background-size: cover;
    background-position: center;
}

.frittata{
    background-image: url(images/frittata-bg.jpg);
    background-size: cover;
    background-position: center;
}

@media only screen and (min-width: 801px){
    .grid-layout-choose {
        display: grid;
        grid-template-columns: 25% auto;
        grid-template-rows: 1fr 1fr;
        grid-template-areas: 'heading cards'
                             'buttons cards';
        justify-content: start;
    
    }

    .grid-layout-recipe {
        display: grid;
        grid-template-columns: 25% 50% 25%;
        grid-template-rows: 25% 1fr;
        grid-template-areas: 'heading ingredients description'
                             'buttons directions description';
        justify-content: start;
        grid-row-gap: 1rem;
    }
}

@media only screen and (min-width:550px) and (max-width:800px){
    .grid-layout-choose {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: 'heading'
                            'cards'
                             'buttons';
        justify-content: start;
    
    }

    .grid-layout-recipe {
        display: grid;
        grid-template-columns: 1fr 3fr;
        grid-template-rows: 25% 1fr auto;
        grid-template-areas: 'heading ingredients'
                                'description directions'
                             'buttons directions';
        justify-content: start;
        grid-row-gap: 1rem;
    }

    .description{
        margin:0;
        align-items: flex-start;
    }

    .card-grid{
        justify-items: center;
    }

}


@media only screen and (max-width: 549px) {
    .main-content{
        padding-top: 0;
        padding-bottom: 0;
    }

    .main-content h1 {
        border-radius:0;
        font-size: 1.7rem;
        margin:0;
        padding: 1rem;
        display: block;
        text-align: center;
    }

    .card-deck h2{
        margin:0;
        font-size: 1.4rem;
    }

    .card-body {
        font-size: 1.2rem;
    }

    .grid-layout-choose{
        display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-content: start;
    grid-template-areas: 'heading'
                            'cards'
                             'buttons';
                             padding-bottom: 2rem;

    }

    .card-grid{
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;

    }

    .heading{
        justify-self: auto;
    }

    .grid-layout-recipe {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        grid-template-areas: 'heading'
                            'description'
                            'ingredients'
                            'directions'
                             'buttons';
    }

    .description{
        margin:0;
    }

    .ingredients{
        flex-direction: column;
    }

}

@media only screen and (min-width: 401px){
    .ingredients{
        flex-direction: row;
    }
}