@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@800&family=Poppins&family=Roboto&family=Ubuntu&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open Sans');

h1 {
  font-size: 3.5rem;
  font-family: Poppins;
  font-weight: bold;
  color: rgb(250, 138, 87);
  text-align: center;
  margin-top: 8%;
  margin-bottom: 2%;
}

.club {
  width: 100%;
  margin: 0 auto;
  max-width: 90rem;
}

.clubsBody {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.clubcard {
  width: calc(33% - 0.2rem);
  /*     margin: 30px 40px; */
  cursor: pointer;
  padding: 50px 40px;
}

.clubinfo {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

.clubfront,
.clubback {
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  background-position: center;
  -webkit-transition: -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  -o-transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1),
    -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  text-align: center;
  /*     min-height: 300px; */
  height: 360px;
  color: #fff;
  /*     font-size: 1rem; */
}

.clubback {
  background: #cedce7;
  background: -webkit-linear-gradient(45deg, #00cdac 0%, #8ddad5 100%);
  background: -o-linear-gradient(45deg, #00cdac 0%, #8ddad5 100%);
  background: linear-gradient(45deg, #00cdac 0%, #8ddad5 100%);
}

.clubfront:after {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  content: "";
  display: block;
  opacity: 0.01;
  background-color: #000;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
}

.clubinfo:hover .clubfront,
.clubinfo:hover .clubback {
  -webkit-transition: -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  -o-transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1),
    -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.clubback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.clubinner {
  -webkit-transform: translateY(-50%) translateZ(60px) scale(0.94);
  transform: translateY(-50%) translateZ(60px) scale(0.94);
  top: 50%;
  position: absolute;
  left: 0;
  width: 100%;
  padding: 1rem;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  outline: 1px solid transparent;
  -webkit-perspective: inherit;
  perspective: inherit;
  z-index: 2;
  text-align: justify;
}

.clubinfo .clubback {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.clubinfo .clubfront {
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.clubinfo:hover .clubback {
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.clubinfo:hover .clubfront {
  -webkit-transform: rotateY(-180deg);
  transform: rotateY(-180deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.clubinner p {
  font-size: 1rem;
  font-family: 'Open Sans';
  margin-bottom: 0px;
  position: relative;
  padding: 0px 30px;
}

.clubfront .clubinner p:after {
  content: "";
  width: 4rem;
  height: 2px;
  position: absolute;
  background: #fafbfc;
  display: block;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: -0.75rem;
}

.clubinner h2 {
  color: black;
  font-size: 30px;
  font-family: 'Open Sans';
  font-weight: 600;
  margin: 5px 0px;
  text-align: center;
}

.c-s-logo {
  text-align: center;
}

.fab {
  color: black;
  font-size: 30px;
  padding: 5px 20px;
}

.fab:hover {
  transform: scale(1.1);
}


@media screen and (max-width: 1200px) {
  .clubcard {
    width: calc(50% - 2rem);
  }
}

@media screen and (max-width: 840px) {
  .clubcard {
    width: calc(50% - 1rem);
    padding: 20px;
  }

  h1 {
    margin-top: 13%;
  }
}

@media screen and (max-width: 700px) {
  h1 {
    font-size: 3rem;
    margin-top: 15%;
  }

  .clubcard {
    width: calc(70% - -1rem);

  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
    margin-top: 23%;
    padding-bottom: 16px;
  }

  .clubcard {
    width: calc(50% - -8rem);
    margin: 0 0 5rem 0;
    padding: 5px 7px;
  }

  .clubinner p {
    padding: 0 10px;
  }
}

@media screen and (max-width: 380px) {
  h1 {
    font-size: 2rem;
    margin-top: 24%;
  }

  .clubcard {
    width: 90%;
    margin: 0 0 0rem 0;
    padding: 30px 10px;
    margin-left: 39px;
    margin-right: 39px;
  }

  .clubfront {
    height: 340px;
  }

  .clubback {
    height: 340px;
  }
}

/* Custom Scrollbar */

.scrollable {
  overflow-y: auto;
  max-height: 250px;
}

::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #d6dee1;
  border-radius: 20px;
  border: 6px solid transparent;
  background-clip: content-box;
}