#text_before_tarot > p:first-child {
  margin-top: 0 !important;
}

#order_page_v2, .order {
  padding: 0;
}

#text_before_tarot > p, #text_after_tarot {
  padding: 0 10px;
}

#tarot_question {
  background-color: #ffeace;
}

#tarot_question textarea {
  border: 2px solid;
  border-radius: 15px;
  padding: 10px;
  width: 100%;
}

#tarot_section {
  background-image: url("/assets/medias/ui/tarot2024/tapis.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#tarot_end_section {
  display: none;
  background-image: url(/assets/medias/ui/tarot2024/tapis.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 1rem 0 0.5rem;
}

#tarot_grid {
  /*    display: grid;
      grid-template-columns: 1fr 1fr 1fr 1fr;
      grid-template-rows:  1fr 95%;
      grid-template:  "d d d d" "t t t t";*/
  padding: 0.5rem 0 1rem;
}

#card_grid {
  grid-area: t;
  margin: 2em 10px;
  align-self: start;
}

.tarot_card_b {
  cursor: pointer;
  display: inline-block;
  width: 80px;
  margin-left: -50px;
  height: 120px;
  overflow: hidden;
  border-radius: 0;
  margin-top: 10px;
  position: relative;
  background: url('/assets/medias/ui/tarot2024/card-back.png');
  background-size: 100% 100%;
}

.tarot_card_b:first-child {
  margin-left: 0;
}

@media (max-width: 480px) {
  .tarot_card_result {
    box-shadow: none;
  }
}

@media (max-width: 458px) {
  .tarot_card_b {
    margin-left: -4.45em;
  }
}

#div_order_placement, #text_after_tarot {
  display: none;
}

#card_deck {
  display: block;
  text-align: center;
  min-height: 250px;
  grid-area: d;
  align-self: start;
  position: relative;
  max-width: 800px;
  margin: auto;
}

#inner_card_grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: auto;
  grid-gap: 1em 10px;
  margin: auto;
}

.tarot_card_result {
  width: 80px;
  height: 133px;
  display: inline-block;
  place-self: center;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.8);
}

.tarot_card_result:empty {
  background-color: rgba(255,255,255,0.3);
}

.tarot_card_result img {
  width: 80px;
  height: 133px
}

#preview {
  display: none;
  grid-area: d;
  place-self: auto;
  padding-top: 10px;
  min-height: 250px;
}

#preview p {
  text-align: center;
  font-size: 16px;
  color: #8931AC;
  margin: 5px 0 !important;
  padding: 0 5px;
}

.tarot_card_preview {
  margin: auto;
  width: 120px;
  height: 180px;
}

#tarot_end_section #card_grid {
  padding-bottom: 30px;
}

.card_wrapper {
  display: flex;
  flex-direction: column;
}

#order_page_v2 .card_wrapper p {
  margin: 0;
  font-size: 0.9em;
  text-align: center;
  font-weight: bold;
}


#tarot_end_section .tarot_card_result {
  background: none;
  border: none;
  display: flex;
}

#tarot_end_section #inner_card_grid p {
  color: #8931AC;
  margin: 0;
  text-align: center;
  font-size: 1.25rem;
}

#order_page_v2 > p:first-child {
  margin-top: 0;
}

#card-counter {
  margin-top: 20px;
  color: #234255;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

#text_under_tarot {
  margin-top: 0;
  font-family: 'Aller_Lt', sans-serif;
  padding: 0 10px;
  font-size: 12px;
  color: #AFADB0;
  text-align: center;
}

.cards {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  padding: 0 0.5rem;
  column-gap: 0.5rem;
  row-gap: 0.5rem;
  justify-content: center;
}

.cards > img {
  border: none;
  width: 60px;
  height: 80px;
}

#tarot_result_title {
  text-align: center !important;
  color: #234255 !important;
  font-size: 21px !important;
  padding: 1em 1em 0 !important;
}

#anchor {
  display: none;
  position: relative;
  bottom: 0;
}

#arrow img {
  max-width: 50px;
  margin: 1rem 0;
}

@media (max-width: 990px) {
  #inner_card_grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  #inner_card_grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tarot_card_result, .tarot_card_result img{
    width: 60px;
    height: 100px
  }

  #arrow img {
    max-width: 50px;
  }

  #tarot_result_title {
    padding: 0 1em !important;
  }


  .cards > img {
    width: 50px;
    height: 70px;
  }
}