/* @import url("https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700"); */

*,
*::after,
*::before {
  /* padding: 0;
  margin: 0; */
  box-sizing: border-box;
}

body {
  font-family: Calibri, "Trebuchet MS", sans-serif;
}

.content {
  height: fit-content;
  text-align: center;
  padding: 64px 0;
}

.cards {
  display: flex;
  justify-content: space-evenly;
}

.card {
  width: 300px;
  position: relative;
  margin-top: 10px;
  height: 300px;
  /* perspective: 2400px; */
}

.card__side {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px;
  backface-visibility: hidden;
  transition: all 0.6s ease;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.card__side--front {
  /* background-color: rgba(0, 0, 0, 0.1); 
  */
  background-image: linear-gradient(to left bottom, #ffffff, #bff1f1);
}

.card__side--back {
  color: #fff;
  transform: rotateY(180deg);
  padding: 20px 10px;
}
.card__side--back-1 {
  background-image: linear-gradient(to right bottom, #7ed56f, #28b485);
}

.card__side--back-2 {
  background-image: linear-gradient(to right bottom, #2998ff, #5643fa);
}

.card__side--back-3 {
  background-image: linear-gradient(to right bottom, #ffb900, #ff7730);
}
.card__side--back-4 {
  background-image: linear-gradient(to right bottom, #c43e90, #bb2431);
}

.card:hover .card__side--front {
  transform: rotateY(180deg);
}

.card:hover .card__side--back {
  transform: rotate(0);
}

.card__description {
  text-align: left;
  border-radius: 5px;
}

.card_img{
  /* height: 25vw; */
  width: fit-content;
}

.card__description .card_img img {
  border-radius: 5px;
}

.front_description {
  color: rgba(0, 0, 0, 0.3);
  font-size: 1.2rem;
  font-weight: 900;
  position: absolute;
  bottom: 10px;
  right: 5px;
}

.headingCourse {
  font-size: 50px;
  font-weight: 600;
}

.card__description p {
  font-size: 16px;
  font-weight: 600;
}

/* Responsive columns - one column layout (vertical) on small screens */
@media screen and (max-width: 600px) {
  .cards {
    display: flex;
    position: relative;
    flex-direction: column;
  }
  .card {
    width: 100%;
    margin-top: 5px;
  }

  .card__side--front {
    background-image: url(https://bit.ly/3pe1WIl);
    background-position: center;
    background-size: cover;
  }

  .card_img{
    width: 300px;
  }
  .content {
    padding: 0px 20px;
  }
}
