body{
  font-family: "Helvetica", sans-serif;
}

h1{
  text-align: center;
}
/* Grid */
.grid-container{
  display: grid;
  grid-gap: 10px;
  /* grid-column-gap: 20px;
  grid-row-gap: 5px; */
  grid-template-columns: 2fr 1fr 3fr;
  grid-template-rows: 1fr 2fr 1fr;
  border: 2px dashed #000;
  padding: 10px;
  margin: 10px;
}

#grid-even{
  /* grid-template-columns: 1fr 1fr 1fr; */
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  /* grid-template-rows: 1fr 1fr 1fr;*/
} 

.grid-item, .flex-item{
  background-color:dodgerblue;
  min-height: 50px;
  border: #000000 2px dashed;
}

.grid-8{
  grid-column-start: 2;
  grid-column-end: 4;
}

.grid-1{
  grid-row-start: 1;
  grid-row-end: 3;
}

.grid-4{
  display: none;
}

/* Flex */
.flex-container{
  display: flex;
  flex-direction: column;
  border: 2px dashed #000;
  padding: 10px;
  margin: 10px;
}
.flex-default .flex-item{
  margin-bottom: 10px;
}

.flex-default .flex-item:last-child{
  margin-bottom: 0;
}

.flex-v{
  justify-content: space-between;
  min-height: 300px;
  align-items: center;
}

.flex-h{
  flex-direction: row;
  justify-content: space-between;
}

.flex-h-s{
  flex-direction: row;
  min-height: 200px;
  align-items: center;
  justify-content: space-between;

}
.flex-h-s{
  flex-wrap: wrap;
}
.flex-h-s .flex-item{
  min-width: 100px
}

.flex-h .flex-item,
.flex-v .flex-item{
  width: 50px;
}

.flex-h a{
  display: block;
  height: 100%;
  text-decoration: none;
  color: #fff;
}

.flex-h a:hover{
  background-color: #000;
}

.flex-1{
  background: url("../img/cat.jpg");
  background-size: cover;
  background-position: center;
}

img{
  width: 100%;
  height: 100%;
}