/* Tales */

#wizard-card-0 {
  /* position: relative; */
}

#bookContainer {
  /* touch-action: pan-x pan-y; */
}

.ai-form-tales {
  display: flex;
  gap: 12px;
  flex-direction: column;
  text-align: left;
}

.tale-card {
  display: flex;
  gap: 20px;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0px 2px 4px 0px #0000000d;
  background: #fff;
  cursor: pointer;
  animation-timing-function: ease-in-out;
  animation-duration: 500ms;
  position: relative;
  transition: border 600ms ease-in-out, box-shadow 600ms ease-in-out;
}

.tale-card img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
}

.tale-card .text-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.tale-card h3 {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #5c3a92;
  margin: 0;
}

.tale-card .text-content p {
  font-family: "Nunito", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 0%;
  color: #636363;
  margin: 0;
}
.tale-card .text-content p .book-age-fit {
  color: #000;
}

.tale-card.selected-book-theme,
.tale-card.selected-book-theme:hover {
  box-shadow: 0px 2px 4px 0px #0000000d, 0 0 0 2px #ffa253,
    0px 0px 15px 0px #ef842994 inset;
}

@media screen and (min-width: 767px) {
  .tale-card:hover {
    border-color: #f39c12;
    box-shadow: 0 0 6px rgba(243, 156, 18, 0.4);
  }
}

.tale-card-view-btn {
  /* display: none;  */
  display: flex;
  position: absolute;
  bottom: 0;
  left: 0;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 6px;
  padding: 10px;
  height: 42px;
  background: #ffe9d6c7;
  border-radius: 0 0 12px 12px;
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition: opacity 600ms ease-in-out, transform 600ms ease-in-out,
    visibility 600ms ease-in-out;
}

/* TODO: remove it was on for testing: */
/* body.tom-dev .tale-card-view-btn {
  display: flex;
} */

.tale-card.selected-book-theme .tale-card-view-btn {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.tale-card-view-btn span {
  font-family: Inter;
  font-weight: 600;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: -1%;
  text-align: center;
  color: #c6620d;
}

.tale-card-view-btn img {
  width: 18px;
  height: 18px;
}

/* Preview PopUp */

.card-preview-modal-overlay {
  opacity: 0;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}
.card-preview-modal-overlay.show {
  opacity: 1;
  pointer-events: all;
  display: block;
}

.card-preview-box {
  display: none;
  position: fixed;
  width: 98%;
  z-index: 9999;
  left: 50%;
  transform: translate(-50%, 30%); /* Start slightly below center */
  opacity: 0;
  bottom: 0;
  border: 2px solid #f3e6fb;
  text-align: center;
  max-height: 150vw;
  max-width: 632px;
  background: white;
  padding: 14px 14px 0;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
}

.book-example-images-cntr {
  height: 100vw;
  overflow: overlay;
}

.book-example-images-cntr img {
  margin: 2px 0;
}

@media (min-width: 480px) {
  /* Styles for tablets and smaller */
  .card-preview-box {
    max-height: none;
  }
  .book-example-images-cntr {
    height: auto;
    max-height: 65vh;
  }
}

.card-preview-box.show {
  transform: translate(-50%, 0); /* Slide up into place */
  opacity: 1;
  display: block;
}

.card-preview-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.card-preview-box.hide {
  transform: translateY(100%);
  opacity: 0;
}

/* UI Elements */

.card-preview-close-btn {
  font-size: 1.5rem;
  position: absolute;
  background: white;
  border-radius: 132px;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  width: 26px;
  height: 26px;
  top: 11px;
  right: 12px;
  border: 1.5px solid #bbbbbb;
  color: #5c3a92;
  padding: 0;
}

.card-preview-title {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #5c3a92;
  margin: 0;
  margin-bottom: 10px;
}

.card-preview-subtitle {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #5c3a92;
  margin: 0;
}

#card-preview-actions {
  /* position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 0%); */

  position: static;
  background-color: #fff;
  padding-bottom: 14px;
  padding-top: 5px;
  /* display: flex;
  justify-content: center;
  gap: 11px; */
  width: 100%;
}

#btn-confirm-card-preview {
  font-family: Inter;
  font-weight: 500;
  font-size: 15px;
  line-height: 140%;
  background: #ef8429;
  border: none;
  height: 36px;
  border-radius: 8px;
  padding: 8px 10px;
  color: #ffffff;
  width: 100%;
}

.card-preview-close-btn:hover,
.card-preview-close-btn:focus {
  background: #ef8429;
  border: 1.5px solid #ef8429;
}

/* PopUp Navigation */

.card-preview-navigation {
  display: none;
  /* display: flex; */
  justify-content: space-between;
  align-items: center;
  font-family: Inter;
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0%;
  width: 100%;
  margin: 14px 0;
}

.card-preview-label strong {
  font-weight: 600;
}

.card-preview-nav-buttons {
  display: flex;
  gap: 12px;
}

.nav-btn {
  width: 36px;
  height: 36px;
  background-color: #eae2f8;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  padding: 0;
}

.nav-btn:hover,
.nav-btn:focus {
  background-color: #d7c9f0;
}

.nav-btn svg {
  display: block;
}

/* Slider */
.card-preview-wrapper.swiper {
  width: 100%;
  max-width: 600px;
  height: auto;
  overflow: hidden;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* that's the slider container */
/* #bookContainer {
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  box-sizing: border-box;
}

.card-preview-wrapper {
  max-height: calc(100vh - 240px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #a9cce9;
}

.card-preview-wrapper img {
  margin-top: 6px;
} */
