:root {
  --animation-delay: 0.9s;
}

.wrapper-deck {
  position: relative;
  min-height: 420px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  /*margin-bottom: 80px;*/
}

#deck {
  position: relative;
  height: auto;
  width: fit-content;
}
/*Counter*/
.counter {
  padding-top: 25px;
}
.counter-wrapper {
  gap: 15px;
}
.counter-text {
  font-family: var(--second-font-lora);
  font-size: 1.33em;
  font-weight: 500;
  color: var(--primary-color);
}
.dark .counter-text {
  color: var(--primary-color-dark);
}
.counter-number {
  font-family: var(--second-font-lora);
  font-size: 1.77em;
  font-weight: 500;
  color: var(--primary-color);
  width: 73px;
  height: 73px;
  border-radius: 50%;
  border: 1px solid rgba(108, 132, 255, 0.5);
}
.dark .counter-number {
  color: #c2c9ea;
}
.counter-icon {
  padding-top: 10px;
}
.counter-hide {
  display: none !important;
}
.counter-select-card,
.counter-check-result {
  height: 80px;
}
/*END Counter*/

.card-container {
  position: absolute;
  width: 140px;
  height: 228px;
  transform-origin: center bottom;
}

.card-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform var(--animation-delay),
    bottom var(--animation-delay) ease-in-out;
  cursor: pointer;
  position: relative;
  bottom: 0;
}

.card-inner.flipped {
  transform: rotateY(180deg);
  bottom: 30px;
}
.card-result-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
}
.card {
  position: absolute;
  height: 227px;
  width: 140px;
  backface-visibility: hidden;
  background-size: cover;
  /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);*/
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.15));
}
.card-back:hover {
  transform: translate(0, -20px);
}
.card-result {
  gap: 30px;
}
.label {
  font-family: var(--second-font-lora);
  font-size: 1em;
  font-weight: 500;
  line-height: 150%;
  color: var(--primary-color);
}
.dark .label {
  color: #c2c9ea;
}
button {
  border: none;
}
.container-button {
  margin-top: 60px;
}
.cta-button {
  background-color: var(--primary-color);
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-content: center;
  gap: 10px;
  border-radius: 8px;
  color: var(--bg-color);
  font-family: var(--main-font-inter);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.talk-to-advisor {
  background-color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 8px;
  color: var(--bg-color);
  font-family: var(--main-font-inter);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.card-result img {
  transition: opacity 1s ease-in-out;
  /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);*/
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.15));
  height: auto;
  width: 138px;
}

.card-back {
  background-image: url("https://marketing-kasamba.kassrv.com/content/kasamba/mba-gamified/3-card-love-tarot-readings/card_back-ks-2.svg");
}

.card-front {
  transform: rotateY(180deg);
}
.cards-revealed {
  gap: 60px;
}

.cards-revealed img {
  height: auto;
  width: 138px;
}
/*#cta {
  margin-top: 30px;
  font-size: 1.2em;
  padding: 10px 20px;
}*/

.hidden {
  display: none !important;
}
.hidden-deck {
  transition: all var(--animation-delay) ease;
  opacity: 0;
  transform: translateY(-30px);
  display: none;
}
.hidden-result {
  /*opacity: 0;*/
  display: none;
}
.result-visible {
  transition: all var(--animation-delay) ease;
  /*opacity: 1;*/
  transform: translateY(30px);
  display: flex;
}

#cards-revealed.hidden-cards-revealed {
  opacity: 0;
  transform: translateY(-30px);
  pointer-events: none;
  display: none;
}

#cards-revealed {
  opacity: 1;
  display: flex;
  transform: translateY(0);
  transition: opacity var(--animation-delay) ease,
    transform var(--animation-delay) ease;
}
.desc {
  text-align: left;
}
.result-title {
  font-family: var(--second-font-lora);
  font-weight: 500;
  font-size: 1em;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
}
.circle-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
}
.result-description {
  font-family: var(--second-font-lora);
  font-weight: 500;
  line-height: 190%;
  font-size: 0.83em;
  color: var(--text-color);
}
.dark .result-description {
  color: var(--text-color-dark);
}
.arrow {
  display: none;
}

@media (max-width: 768px) {
  .wrapper-deck {
    position: relative;
    min-height: 290px;
    margin-top: 10px;
    margin-bottom: 0;
  }

  .deck-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
  }

  .deck {
    position: absolute;
    top: 335px;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform var(--animation-delay) ease;
  }

  .card-container {
    position: absolute;
    transform-origin: 59% 0%;
    height: 140px;
    width: 87px;
    padding-top: 0;
    transition: transform 0.4s ease;
  }

  .card-inner.flipped {
    top: 30px;
    rotate: 185deg;
  }
  .card {
    height: 145px;
    width: 100%;
  }
  .card-back:hover {
    transform: unset;
  }
  .card-result img {
    /*height: 160px;
    width: fit-content;
    margin: 0 auto;*/

    height: 160px;
    max-width: 100%;
    width: auto;
    display: block;
    margin: 0 auto;
  }

  .arrow {
    display: flex;
    z-index: 2;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 -1px;
  }
  .arrow img {
    height: 30px;
  }
  .arrow-hide {
    display: none;
  }
}
@media (max-width: 600px) {
  .counter-text {
    font-size: 1em;
  }
  .counter-number {
    font-size: 1.33em;
  }

  .label {
    font-size: 0.88em;
  }
  .counter-number {
    width: 50px;
    height: 50px;
  }
  .cards-revealed {
    padding-left: 25px;
    padding-right: 25px;
    text-align: center;
  }
  .container-button {
    margin-top: 45px;
  }
  .cards-revealed {
    gap: 30px;
  }
}
