/* * {
  box-sizing: border-box;
} */
/*body {
  padding: 1rem;
}*/

/* Just for the fallback layout */

main {
  max-width: 500px;
  margin: 0 auto;
}
article {
  margin: 1rem 0;
}

/* Now, the grid-based layout */

@supports (display: grid) {
  main { 
    max-width: 10000px;
    margin: 10px;
  }
  article {
    margin: 0;
  }
  .coverclass {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 1rem;
  }
}
  
.coverclass {
  font-family: Avenir, Roboto, Helvetica, san-serif; 
  font-size: 80%;
}
.itemclass {
  display: flex;
  flex-flow: column;
  border:  1px solid white;
  border-radius: 1rem;
  padding: 2rem;
}
.itemclass > h1 {
  margin: 1rem 1rem 0;
}
.itemclass > ul {
  margin: 0 0 1rem;
}
.itemclass > p {
  margin: 0.25em 1rem 1rem;
}
.itemclass > img {
  order: -1;
  align-self: center;
  z-index: auto;    
}
.itemclass > button {
  margin-top: auto; 
  background: black;
  color: white;
  padding: 0.5rem;
  border-color: white;
  border-radius: 1rem;
  font-size: .8rem;    
}

.itemclass > button > a {
  list-style: none;
  text-decoration: none; 
}

section .topspace {
    font-size: 200%;
    padding-top: 10px;
    color: white;
    font-family: "Satisfy", serif;
    text-align: center;
}

section .secondtopspace {
    font-size: 150%;
    color: black;
    font-family: "Satisfy", serif;
    font-style: italic;
    text-align: center;
}
