﻿*,
*:before,
*:after {
  box-sizing: border-box;
}

body {
  margin: 40px;
  background-color: #fff;
  color: #444;
}

h1,
p {
  margin: 0 0 1em 0;
}

.wrapper {
  max-width: 100%;
  
  margin: 0 20px;
  display: grid;
  grid-gap: 4px;
}

	/* no grid support? */

.wrapper {
  display: flex;
  flex-wrap: wrap;
}

.wrapper {
  display: grid;
  margin: 0 auto;
/*  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));*/
  grid-auto-rows: minmax(50px, auto);
}

.panel {
  /* needed for the flex layout*/
  margin-left: 5px;
  margin-right: 5px;
  flex: 1 1 200px;
}

.header,
.footer {
  margin-left: 5px;
  margin-right: 5px;
  flex: 0 1 100%;
  grid-column: 1 / -1;
}

.wrapper > * {
  background-color: #666;
  color: #fff;
  border-radius: 5px;
  padding: 10px;
  font-size: 135%;
  margin-bottom: 10px;
  font
}

a {
  color: white;
  text-decoration: none;
}

a:hover {
  text-decoration: underline; 
  color:#ffff00;
}



/* Non-Demo Styles */
body {
  display: flex;
  justify-content: center;
}


/* We need to set the margin used on flex items to 0 as we have gaps in grid.  */

@supports (display: grid) {
  .wrapper > * {
    margin: 0;
  }
}