@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Kalam&display=swap");

* {
  margin: 0;
  /* padding: 10px; */
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  /* background: #222; */
  background: white;
}

.container {
  overflow: auto;
}

.cards {
  overflow: auto;
  min-height: 440px;
}

.card {
  background: #3a3a3a;
  background: linear-gradient(to right, #474747, #222);
  /* min-width: 300px; */
  width: 170px;
  height: 250px;
  border-radius: 10px;
  box-shadow: -5px 5px 25px #0000009d;
  padding: 20px;
  border: none;
  transition: all 0.3s ease-in-out;
  filter: brightness(0.87);
}

.card .text-grey {
  color: #ccc;
  font-weight: 500;
}

.card .light-grey {
  color: #aaa;
  font-weight: 300;
}

.card .fs-5 {
  font-size: 1.15rem !important;
}

.card a {
  color: #fff;
  text-decoration: none;
}

.card .profile img {
  width: 60px;
  height: 60px;
  box-shadow: 0 5px 15px rgba(26, 25, 25, 0.329);
  object-fit: cover;
  border-radius: 50%;
}

.card:not(:first-child) {
  margin-left: -8rem;
}

.cards::-webkit-scrollbar {
  height: 10px;
}

.cards::-webkit-scrollbar-track {
  background: inherit;
}

/* .cards::-webkit-scrollbar-thumb {
     background-color: #3a3a3a;
     background: linear-gradient(to right, #ff002b, #002fff);
     border-radius: 10px
 } */

.card:hover,
.card:focus-within {
  transform: translateY(-1rem) rotateZ(5deg);
}

.card:hover ~ .card,
.card:focus-within ~ .card {
  transform: translateX(8rem);
}

.card .designation {
  display: inline;
  border-radius: 10px;
  padding: 4px 10px;
  border: 1px solid #ddd;
}

.card.on {
  /* border-style: solid;
  border-color: rgba(204, 0, 0, 0.5); */
  filter: brightness(1.03);
}
/* 카드 돌리기 */

.card__inner {
  /* width: 100%;
  height: 100%; */
  transition: transform 1s;
  transform-style: preserve-3d;
  padding-left: 2rem;
  padding-right: 2rem;
  /* cursor: pointer; */
  /* position: relative; */
}

.card__inner.is-flipped {
  transform: rotateY(180deg);
}

.card__face {
  /* position: absolute; */
  /* width: 100%;
  height: 100%; */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
  /* border-radius: 16px;
  box-shadow: 0px 3px 18px 3px rgba(0, 0, 0, 0.2); */
  padding: 0px;
}

.img-fluid {
  border-radius: 16px;
  /* box-shadow: 0px 3px 18px 3px rgba(0, 0, 0, 0.2); */
}

.card__face--front {
  background-image: linear-gradient(to bottom right, var(--red1), var(--red2));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
}

.card__face--front h2 {
  color: #fff;
  font-size: 32px;
}

.card__face--back {
  background-color: var(--light);
  transform: rotateY(180deg);
}
.img-fluid {
  padding: 0px;
}

.card__content {
  width: 100%;
  height: 100%;
}

/* .card__header {
  position: relative;
  padding: 30px 30px 40px;
}

.card__header:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
    to bottom left,
    var(--primary) 10%,
    var(--secondary) 115%
  );
  z-index: -1;
  border-radius: 0px 0px 50% 0px;
} */

/* .card__header h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
} */

.card__body {
  padding: 30px;
}

.card__body h3 {
  color: var(--dark);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

.maincolor {
  color: #fee6cc;
}

#cardgame {
  padding-bottom: 10rem;
  padding: 2rem 0;
}

#loading {
  padding: 25rem 0;
  padding-bottom: 25rem;
}

@media (min-width: 992px) {
  #loading {
    padding: 35rem 0;
    padding-bottom: 40rem;
  }
}

.small_title_red {
  color: #ff6666;
  padding: 0.5rem;
  line-height: 1rem;
}

.small_title_green {
  color: #00b33c;
  padding: 0.5rem;
  line-height: 1rem;
}

.small_title_blue {
  color: #6666ff;
  padding: 0.5rem;
  line-height: 1rem;
}

.small_title_purple {
  color: #a366ff;
  padding: 0.5rem;
  line-height: 1rem;
}

.speech-bubble-left-red {
  font-size: 1.2rem;
  position: relative;
  background: #ffb3b3;
  border-radius: 1em;
  padding: 1rem;
}

.speech-bubble-left-red:after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 0;
  border: 20px solid transparent;
  border-right-color: #ffb3b3;
  border-left: 0;
  border-bottom: 0;
  margin-top: -10px;
  margin-left: -20px;
}

.speech-bubble-left-green {
  font-size: 1.2rem;
  position: relative;
  background: #b3ffcc;
  border-radius: 1em;
  padding: 1rem;
}

.speech-bubble-left-green:after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 0;
  border: 20px solid transparent;
  border-right-color: #b3ffcc;
  border-left: 0;
  border-bottom: 0;
  margin-top: -10px;
  margin-left: -20px;
}

.speech-bubble-left-blue {
  font-size: 1.2rem;
  position: relative;
  background: #b3b3ff;
  border-radius: 1em;
  padding: 1rem;
}

.speech-bubble-left-blue:after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 0;
  border: 20px solid transparent;
  border-right-color: #b3b3ff;
  border-left: 0;
  border-bottom: 0;
  margin-top: -10px;
  margin-left: -20px;
}

.speech-bubble-left-purple {
  font-size: 1.2rem;
  position: relative;
  background: #d9b3ff;
  border-radius: 1em;
  padding: 1rem;
}

.speech-bubble-left-purple:after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 0;
  border: 20px solid transparent;
  border-right-color: #d9b3ff;
  border-left: 0;
  border-bottom: 0;
  margin-top: -10px;
  margin-left: -20px;
}

.speech-bubble-left-style {
  text-align: left;
  padding: 1rem 10rem 1rem 5rem;
}

.speech-bubble-right {
  font-size: 1.2rem;
  position: relative;
  background: #d9d9d9;

  border-radius: 1rem;
  padding: 1rem;
}

.speech-bubble-right:after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0;
  height: 0;
  border: 20px solid transparent;
  border-left-color: #d9d9d9;
  border-right: 0;
  border-bottom: 0;
  margin-top: -10px;
  margin-right: -20px;
}

.speech-bubble-right-style {
  text-align: left;
  padding: 1rem 5rem 1rem 10rem;
}

@media (max-width: 992px) {
  .speech-bubble-left-style {
    text-align: left;
    padding: 1rem 5rem 1rem 2rem;
  }

  .speech-bubble-right-style {
    text-align: left;
    padding: 1rem 2rem 1rem 5rem;
  }
}
