
/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */

.flip-card {
  background-color: transparent;
  position: relative;
  width: 70%;
  height: 300px;
  perspective: 1000px;
  display: inline-block;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  color: black;
  background-position:center;
  background-size: cover;
}

.flip-card-back {
  transform: rotateY(180deg);
  background-color: gray;
  color: black;
}

.img{
  margin:5px auto;
  padding:1px;
  width: 290px;
  height: 290px;
  }
.img img{
  width: 100%;
}
@media all and (min-width: 500px) and (max-width: 1000px)
{  
.img{
  margin:5px auto;
  padding:1px;
  width:290px;
  height:290px;
  
  }
}
.img img{
   width:100%;
}

