.main-content{
    max-width: 1440px;

}

.main-content h2, p {
    justify-content: center;
    margin: 0 auto;
    display: flex;
    clear: right ;
    max-width: 960px;

}


.card-container{
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: row;
    padding-bottom: 50px;
}

.card {
    width: 300px;
    height: 400px; 
    margin: 15px; 
    padding: 10px;
    float: left;
    background-color: #EBEEF3;
    border-radius: 10px;
}

figure {
    width:300px;
    height: auto;
    margin-bottom: 10px;
    margin-left: 0px;
    float: left;
}

figure img{
    width: 100%;
    height: auto;
    border-radius: 10px;
}

figcaption {
    font-size: 16px;
    font-family: 'Roboto',sans-serif;
    font-style: italic;


    height: auto;
    padding: 0.5em;
    color: #000;
}

@media screen and (max-width: 800px){
    .card-container{
        flex-direction: column;
    }


}