.flipCardsContainer {
  height: 100vh;
  width: 100%;
  background-color: white;
  color: #222;
  padding-top: 5rem;
  position: relative;
  margin-top: -1px;
}

.flipCardsContainer h2 {
  font-family: "Rubik", sans-serif;
  font-size: clamp(28px, 4vw, 2.5rem);
  margin: 30px 0;
  margin-bottom: 60px;
  margin-left: 13%;
}

.flip-content {
  width: 90%;
  height: 73vh;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  margin: 0 auto;
}

.fliptext {
  width: 40%;
  height: 73%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  padding-top: 0;
  font-family: 'Rubik', sans-serif;
}

.flip-para {
  font-size: clamp(16px, 2vw, 18px);
  color: #222;
}

.flip-cards {
  width: 40%;
  height: 73%;
  display: grid;
  grid-template-columns: 150px 150px 150px;
  grid-template-rows: 90px 90px 90px 90px;
}

.scene {
  width: 140px;
  height: 80px;
  perspective: 5000px;
}

.cardFlip {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 1s;
  transform-style: preserve-3d;
}

.card__face {
  position: absolute;
  height: 100%;
  width: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
}

.card__face--front {
  background: #333;
  background-size: auto 50px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.card__face--back {
  background: #333;
  transform: rotateY(180deg);
  background-size: auto 55px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.card.is-flipped {
  transform: rotateY(180deg);
}

/* ==========================BG LOGOS======================= */

.card1 .card__face--front {
  background-image: url(../../img/angular.png);
}

.card1 .card__face--back {
  background-image: url(../../img/reactjs.png);
}

.card2 .card__face--front {
  background-image: url(../../img/.net.png);
}

.card2 .card__face--back {
  background-image: url(../../img/node.svg);
}

.card3 .card__face--front {
  background-image: url(../../img/flutter_logo.png);
}

.card3 .card__face--back {
  background-image: url(../../img/android_studio_logo.svg);
}

.card4 .card__face--front {
  background-image: url(../../img/js_logo.svg);
}

.card4 .card__face--back {
  background-image: url(../../img/python.png);
}

.card5 .card__face--front {
  background-image: url(../../img/css_logo.svg);
}

.card5 .card__face--back {
  background-image: url(../../img/bootstrap.png);
}

.card6 .card__face--front {
  background-image: url(../../img/development/s.png);
}

.card6 .card__face--back {
  background-image: url(../../img/development/wordpress.png);
  background-size: 120px auto;
}

.card7 .card__face--front {
  background-image: url(../../img/adobe_xd_logo.svg);
}

.card7 .card__face--back {
  background-image: url(../../img/illustrator_logo.svg);
}

.card8 .card__face--front {
  background-image: url(../../img/photoshop.png);
}

.card8 .card__face--back {
  background-image: url(../../img/swift_logo.svg);
  background-size: 120px auto;
}

.card9 .card__face--front {
  background-image: url(../../img/after-effects.png);
}

.card9 .card__face--back {
  background-image: url(../../img/corel-draw.png);
}

.card10 .card__face--front {
  background-image: url(../../img/sublime_logo.svg);
}

.card10 .card__face--back {
  background-image: url(../../img/github_logo.svg);
  background-size: 120px auto;
}

.card11 .card__face--front {
  background-image: url(../../img/php.png);
}

.card11 .card__face--back {
  background-image: url(../../img/docker.png);
}

.card12 .card__face--front {
  background-image: url(../../img/html-5.png);
}

.card12 .card__face--back {
  background-image: url(../../img/sass.png);
}

.fliptext button {
  height: 40px;
  width: 150px;
  color: white;
  border-radius: 25px;
  border: 1px solid white;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
  text-transform: uppercase;
  position: relative;
  opacity: 0;
  transition: color 0.4s ease;
  transition: background 0.4s ease;
}

.fliptext button:hover {
  background: white;
  color: #222;
  font-weight: 700;
}

.fliptext button img {
  height: 9px;
  display: inline;
  filter: invert(98%) sepia(99%) saturate(3%) hue-rotate(252deg)
    brightness(107%) contrast(100%);
}

.fliptext button:hover img {
  filter: none;
}
/* ==========================MOBILE VIEW========================== */

@media screen and (max-width: 1100px) {
  .fliptext {
    justify-content: flex-start;
  }

  .flip-para {
    margin-bottom: 30%;
  }

  .flip-cards {
    grid-template-columns: 120px 120px 120px;
    grid-template-rows: 70px 70px 70px 70px;
    align-items: center;
    justify-content: center;
  }

  .scene {
    width: 110px;
    height: 60px;
  }

  .card__face--front {
    background-size: auto 40px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
  }

  .card6 .card__face--back {
    background-size: 90px auto;
  }

  .card8 .card__face--back {
    background-size: 90px auto;
  }

  .card10 .card__face--back {
    background-size: 90px auto;
  }
}

@media screen and (max-width: 786px) {
  .flipCardsContainer {
    margin-top: -1px;
    padding-top: 3rem;
    height: auto;
    padding-bottom: 5%;
  }

  .flipCardsContainer h2 {
    width: 85%;
    margin: 2% auto;
  }
  .flip-content {
    flex-direction: column;
  }

  .fliptext {
    width: 100%;
    height: 45%;
    padding: 0;
  }

  .flip-para {
    margin: 5% 3%;
    margin-bottom: 8%;
    font-size: 15px;
  }

  .fliptext button {
    height: 41px;
    width: 150px;
    border-radius: 22.5px;
    border: 1px solid black;
    color: black;
    opacity: 1;
    font-size: 11px;
    display: block;
    margin: 0 3%;
  }

  .fliptext button img {
    filter: none;
  }

  .flip-cards {
    width: 100%;
    grid-template-columns: 110px 110px 110px;
    grid-template-rows: 70px 70px 70px 70px;
    align-items: center;
    justify-items: center;
    margin-top: 10%;
  }

  .flip-content {
    width: 90%;
    height: 77vh;
  }

  .scene {
    width: 90px;
    height: 50px;
  }

  .card__face--front {
    background-size: auto 40px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
  }

  .card8 .card__face--back {
    background-size: 70px auto;
  }

  .card10 .card__face--back {
    background-size: 70px auto;
  }

  .card__face--back {
    background-size: auto 5vh;
  }
}

@media screen and (min-width: 1400px) {
  .flipCardsContainer h2 {
    font-size: 3.3rem;
  }

  .flip-para {
    font-size: 24px;
  }

  .flip-cards {
    grid-template-columns: 180px 180px 180px;
    grid-template-rows: 100px 100px 100px 100px;
}

.scene {
  width: 165px;
  height: 85px;
}

.fliptext{
  height: 385px;
}

  .card__face--front,
  .card__face--back {
    background-size: auto 60px;
  }

  .fliptext button {
    height: 55px;
    width: 180px;
    border-radius: 28px;
    font-size: 15px;
  }

  .fliptext button img {
    height: 12px;
    margin-bottom: 3px;
  }
}

@media screen and (min-width: 1700px) {
  .flipCardsContainer h2 {
    font-size: 4.3rem;
    margin: 4% 13%;
  }

  .fliptext {
    height: 500px;
  }

  .flip-para {
    font-size: 30px;
  }

  .flip-cards {
    grid-template-columns: 210px 210px 210px;
    grid-template-rows: 130px 130px 130px 130px;
}

  .scene {
    width: 190px;
    height: 110px;
  }

  .card__face {
    border-radius: 15px;
  }

  .card__face--front,
  .card__face--back {
    background-size: auto 85px;
  }

  .fliptext button {
    height: 70px;
    width: 240px;
    border-radius: 35px;
    font-size: 20px;
  }
}
