/* Mobile First */

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

ul,
ol {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

sup {
    line-height: 0;
}

.cf::before,
.cf::after {
    content: " ";
    display: table;
}

.cf::after {
    clear: both;
}

html {
   
    font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana;
    min-height: 100%;
}

body {
    color: #363510;
    min-height: 100%;
    margin: 0;
    background-color:  rgba(128,155,206,1.00);
        
}

.container {
    margin: 0 .625rem;
    overflow: hidden;
}

.wrapper {
    border: 8px solid rgba(101,163,173,1.00);
    border-radius: 20px;
    background:rgba(216,220,219,1.00)20%;
    margin-top: 4.625em;
    margin-bottom: 10px;
}

.header-main {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100; /* identifies a stacking order of operation */
    background: #000 linear-gradient(to bottom,rgba(99,161,128,1.00),rgba(109,170,123,1.00) 100%);
    box-shadow: inset 0 2px 4px rgba(178,178,178,0.80), 0px 4px 6px 0px rgba(33,36,47,0.62);
}

/**
 * - left: 50% find the left edge of the element and align with 50% left of parent element
 * - translateX move the element based on the element size -50% plus half the size of the hamburger
 * - this will center the h1 in the negative space to the right of the hamburger
 * - not the center of the parent element
 */
.header-main h1 {
    font-size:1.6em;
    line-height: 1; /* line height will be 1X the font size */
    float: left;  /* shrink wraps the width around the content */
    text-align: center;
    margin: 0;
    color:rgba(28,79,51,1.00);
    font-family: 'Palatino Linotype', 'Times New Roman';
    text-shadow: 0 -2px 2px hsla(57,90%,37%,0.87);
    padding-bottom: 20px;
}

.header-main h1 sup {
    font-size: .6em;
}


/* Beginning of Display: flex CARDS */
.cards {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.cards .card {
    flex: 0 0 calc(100% - 20px);
    display: flex;
    margin: 10px;
    min-width: 0;
    background:rgba(214,224,221,1.00);
}

.cards .card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 0 0 100%;
}

.cards .card-figure {
    border-radius:20px;
    position: relative;
    margin: 0;
    line-height: 0;
    overflow: hidden;
}

.cards .card-figure-image {
    border:solid 2px rgba(100,155,170,1.00);
    border-radius:20px;
    width: 100%;
    height: 300px;
    object-fit: cover;
    transform-origin: 80% 12%;
    transform: rotate(0) scale(1);
    transition: all 2s;
    filter:drop-shadow(100px);
}

.cards .card-figure-caption {
    padding: 0 10px;
}

.cards .card-link:hover .card-figure-image {
    transform: scaleX(1.1);
    filter:sepia(80%);
}

.cards .card-figure-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px;
    background: hsla(177,24%,36%,0.65);
    color: hsla(0,0%,100%,1.00);
    line-height: 2;
    font-style: italic;
}

.cards .card-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color:rgba(99,161,128,1.00);
}

.cards .card-section-title {
    margin-bottom: 0;
    border-bottom: 1px solid;
}

.cards .card-section-meta {
    display: flex;
    flex-wrap: wrap;
}

.cards .card-section-meta * {
    flex: 0 0 50%;
    font-size: .8em;
    line-height: 2;
}

.cards .card-section-meta :nth-child(even) {
    text-align: right;
}

.cards .card-section-excerpt {
    flex-grow: 1;
}

.cards .card-section-button {
   background-color:rgba(144,197,197,1.00);
    align-self: flex-end;
    margin: 10px;
    padding: 0 1em;
    border-radius: .5em;
    line-height: 2;
}
 .cards .card-section-button:hover {
    transform: scaleX(1.1);
    filter:sepia(80%);
        border: 5px double;
}

section {
    overflow: hidden;
    color:black;
    margin: 20px;
    border: 2px solid rgba(46,45,45,1.00);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 4px ;
    background:rgba(151,181,164,1.00);
}



footer {
    clear: both;
    overflow: auto;
    margin: 0 20px;
    padding: 0 0 20px;
    color: hsla(177,55%,14%,1.00);
}

footer a[href^="javascript"] {
    position: relative;
    color: hsl(0, 0%, 0%);
    display: block;
    line-height: 2em;
    font-size: 0.625em;
    background-color: hsla(197,35%,62%,1.00);
    border-radius: 3px;
    margin: 0 0 0 10px;
    padding: 0 10px;
    float: right;
    text-decoration: none;
    box-shadow: 0 2px 2px hsl(0, 0%, 0%);
}

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

/*
Start Media Query
    if screen is 48rem or 768px or larger */ 
@media (min-width: 48rem) {

    /*  override margin */
    .container {
        width: 96%;
        max-width: 900px;
        margin: 10px auto;
    }

    /*  override size and position of header */
    .header-main {
        position: static;
        height: 120px;
        border-radius: 10px;
        border: 2px solid hsla(193,23%,67%,1.00);
        margin: 20px;
    }

    .header-main h1 {
        line-height: 1.0em;
        font-size: 2.75em;
        padding: 20px 10px 20px 45px; /* top,right,bottom,left*/
    }

    .cards .card {
        flex: 0 0 calc(50% - 20px);
    }
    .cards .card:first-child {
        /* flex: 1 1 auto; */
    }
    .cards .card:nth-child(n+4) {
        /* flex: 0 0 calc(33.333% - 20px); */
    }
   
}
/* Close: @media (min-width: 48rem) */