body {
    background-color: #f4f4f4;
    /* min-height: 100vh; */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.demo-wrapper {
    max-width: 960px;
    width: 96%;
    margin: auto;
    min-height: 100vh;
    background: white;
}



.demo-footer {
    text-align: center;
	padding: 20px;
	background-color: #111;
	color: #ccc;
	font-size: 0.9rem;
}

.demo-footer a:first-child {
    margin: 0 auto 0 0;
}

.home {
	color: #1abc9c;
	text-decoration: none;
  }

.validation {
	color: #1abc9c;
	text-decoration: none;
}
.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: lightblue;
}

.cards .card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 0 0 100%;
}

.cards .card-figure {
    position: relative;
    margin: 0;
    line-height: 0;
    overflow: hidden;
}

.cards .card-figure-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transform-origin: 80% 12%;
    transform: rotate(0) scale(1);
    transition: all 2s;
    filter: grayscale(100);
}

.cards .card-figure-caption {
    padding: 0 10px;
}

.cards .card-link:hover .card-figure-image {
    transform: rotate(6deg) scale(2);
    filter: grayscale(0);
}

.cards .card-figure-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px;
    background: hsla(228, 3%, 34%, 0.5);
    color: hsla(0, 0%, 100%, 1);
    backdrop-filter: blur(5px);
    line-height: 2;
    font-style: italic;
}

.cards .card-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: #1abc9c;
}

.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 {
    align-self: flex-end;
    margin: 10px;
    padding: 0 1em;
    border-radius: .5em;
    border: 1px solid;
    line-height: 2;
}

/* html {
    box-sizing: border-box;
} */

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* body {
    margin: 0;
} */

main {
    width: 98%;
    max-width: 960px;
    margin: 0 auto;
}



@media (min-width: 1001px) {
    
    .cards .card {
        flex: 0 0 calc(50% - 20px);
    }
    .container {
        
        text-align: center;
      }
    
      .nav-links {
        margin-top: 1rem;
      }
    
      .nav-links a {
        
        margin: 0.5rem 0;
      }

    }
    
    
    
    /* header {
        position: fixed;
        z-index: 40;
        top: 0;
        right: 0;
        left: 0;
        background-color: lightgreen;
        box-shadow: 0 2px 4px black;
    }
    
    header>h1 {
        line-height: 48px;
        margin: 0;
        text-align: center;
    } */
/* Container */
.container {
	width: 90%;
	max-width: 1200px;
	margin: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
  }
    /* Navbar */
  nav {
	background-color: #222;
	color: #fff;
	padding: 1rem 0;
  }
  
  .logo {
	font-size: 1.5rem;
	font-weight: 600;
  }
  
  .nav-links a {
	margin-left: 2rem;
	color: #fff;
	text-decoration: none;
	transition: color 0.3s;
  }
  
  .nav-links a:hover {
	color: #1abc9c;
  }



