.results-heading{
  max-width: 600px;
  margin-left: 100px;
}

.results-cards {
  display: grid;
  grid-template-columns: auto auto;
  gap: 100px;
  justify-content: center;
  margin: auto;
  max-width: 650px;
}

.card {
  position: relative;
  width: 275px;
  height: 300px;
  perspective: 1000px;
  
}

.card h2 {
  color: #000;
}

.card p {
  color: #000;
}

/* Cards for DB results (no images) */
.results-cards-text {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 85px;
  justify-content: center;
  margin: auto;
}

.card-text{
  height: 250px;
}

/* All cards! */

 .results-cards h2{
  text-align: center;
  color: #000;
 
 }

 body {
  background: #9e1a1a;
}


.content {
  position: absolute;
  width: 100%;
  height: 85%;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);

  transition: transform 1s;
  transform-style: preserve-3d;
}

.card:hover .content {
  transform: rotateY( 180deg ) ;
  transition: transform 0.5s;
}

.front, .back {
  padding: 20px;
  position: absolute;
  height: 100%;
  width: 100%;
  background: rgb(255, 255, 255);
  border-radius: 5px;
  backface-visibility: hidden;
}

.front {
  text-align: center;
}

.front-text{
  text-align: left;
}

.back {
  text-align: left;
  background: #03446A;
  color: white;
  transform: rotateY( 180deg );
}


