html {
    box-sizing: border-box;
    font-family: "Helvetica Neue", Arial, sans-serif;
    min-height: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
    transition: all .25s ease-in;
}
 body {
    min-height: 100%;
    margin: 0;
    background: #000 linear-gradient(to bottom, #1e5799 0%,#a2c4d8 22%,#87bbdb 57%,#87bbdb 85%,#157226 85%,#84c17f 100%) fixed;
}

.container-wrapper {
    max-width: 960px;
    width: 96%;
    margin: 20px auto;
    min-height: 100vh;
    background: #F6479E;
    border: 5px solid white;
    border-radius: 10px;
}

.demo-header {
    text-align: center;
    padding: 10px;
    color: white;
    text-shadow: 0 -2px 2px rgba(0, 0, 0, 0.6);
}
main{
    margin: 20px;
}

footer {
    clear: both;
    overflow: auto;
    margin: 20px;
    padding: 0 0 20px;
    color: #fff;
}

footer a[href^=javascript] {
    position: relative;
    color: #000;
    display: block;
    line-height: 2em;
    font-size: 0.625em;
    background-color: #fff;
    border-radius: 3px;
    margin: 0 0 0 10px;
    padding: 0 10px;
    float: right;
    text-decoration: none;
    box-shadow: 0 2px 2px #000;
}

footer a[href^=http]:active {
    top: 2px;
    box-shadow: none;
}


/**
 * Begin: UI - Cards Blog Posts
 *
 * Design is based on content from a blog
 * Each Post Summary is placed in a Card component
 * Cards are placed in OL LIs
 */

.cards {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    border: 5px solid white;
    border-radius: 10px;
    box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.8);
}

.cards .card {
    background: #177227;
    margin: 10px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.cards .card figure {
    background: lightseagreen;
    margin: 0;
    line-height: 0;
}

.cards .card figure img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cards .card section {
    background: cornsilk;
    padding: 10px;
    flex: 1 1 auto;
}

.cards .card a {
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid white;
    color: white;
    box-shadow: inset 0px 3px 2px 0px #5885b4;
    font-weight: bold;
    text-shadow: 0px 1px 0px #1f589a;
    align-self: flex-end;
    background: #1f589a;
    margin: 10px;
    line-height: 3em;
    padding: 0 1em;
}
.cards .card a:hover {
    background:linear-gradient(to bottom, #5885b4 5%,#1f589a 100%);
    background-color: #5885b4;
}

footer a {
    color: white;
}

@media (min-width: 768px) {
    .cards .card {
        flex: 0 0 calc(50% - 20px);
    }
     .container {
        width: 96%;
        max-width: 800px;
        margin: 20px auto;
    }
}