.grandiflora-one-regular {
  font-family: "Grandiflora One", cursive;
  font-weight: 400;
  font-style: normal;
}
.hahmlet-regular {
  font-family: "Hahmlet", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.stai-heading {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
}

.stai-subheading {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
}

.stai-body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.position-absolute{
  position:absolute !important
}
.badge {
  line-height: 1.0;
}
.badge.badge-pill {
  padding-right: 1.25em;
  padding-left: 1.25em; 
  padding-top: 0.8em;
  padding-bottom: 0.8em; 
}

.badge-round {
  border-radius: 2px 2px 2px 2px;
}
.badge-pending {
  background-color: #c820b6; }

.badge-info {
  background-color: #f89b09; }


.badge-danger {
  background-color: #f02d33; }

.badge-mineral {
  background-color: #fc9604; }

.badge-absent {
  background-color: #f30765; }
.badge-white {
  background-color: #ffffff; 
  color: #7623dc;
}
.badge-white-outline {
  background-color: #ffffff; 
  color: #7623dc;
  border : #7b4ad4;
}
.badge-green {
  background: #26b53a; 
}

.badge-pending,
.badge-danger,
.badge-warning,
.badge-mineral,
.badge-absent,
.badge-green,
.badge-info {
  color: #fff; }

.badge.badge-top-left-10 {
  top: 20px;
  left: 10px; 
}
.badge.badge-bottom-right-10 {
  bottom: 20px;
  right: 10px; 
}
@media only screen and (min-width: 992px) and (max-width: 1200px) {
  .badge.badge-top-left-10 {
  top: 20px;
  left: 10px;
  } 
}
.badge.badge-top-left-5 {
  left: 90px; 
}
@media (max-width: 767px) {
  .badge.badge-top-left-10 {
    top: 10px;
		left: 10px; 
  } 
  .badge.badge-top-left-5 {
    left: 100px; 
  }
}



.nav-selected a:after {
  transform-origin: left;
  transform: scaleX(100);
}

.nav-selected a:hover:after {
  transform-origin: left;
}
.paperClipSingle {
  position: absolute;
  z-index: 30;
  left: 5px; /* Adjust as needed */
  top: 20px;
  padding: 5px;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  .paperClipSingle {
    z-index: 30;
    left: 80px; /* Adjust as needed */
    top: 10px;
    padding: 5px;
    justify-content: center;
  }
}

.paperClipMain {
  position: absolute;
  width: 150px;
  height: 200px;
  z-index: 30;
  left: 0px; /* Adjust as needed */
  top: 100px;
  padding: 5px;
  justify-content: center;
}
.clipImage{
  position: relative;
  top: 0px;
  right: 0px;
  width: 45px;
  height: 45px;
  border: 1px solid #fff;
  border-right: none;
  box-shadow: 1px 1px #d3d3d3, -1px 1px #d3d3d3, -1px -1px #d3d3d3, 1px -1px #d3d3d3;
  font-family: 'PT Sans', sans-serif;
  -webkit-transition: right 0.5s ease;
  -moz-transition: right 0.5s ease;
  -o-transition: right 0.5s ease;
  transition: right 0.5s ease;

  /* Center the content both vertically and horizontally */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 32;
}
.clipImage .clipImg {
  width: 25px;
  height: 25px;
}
.clipClicked {
  transform: rotate(45deg);
  transition: transform 0.5s ease-in-out;
}

.thumbImageContainer {
  display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    position: absolute; /* Absolute positioning to align relative to parent */
    top: 100%; /* Position below the icon */
    left: 0; /* Align to the left edge of the parent */
    z-index: 100;
    background-color: white; /* Optional: Set a background color */
    padding: 10px; /* Optional: Add some padding */
    border: 1px solid #ddd; /* Optional: Add a border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a box shadow */
    margin-right:20px;
}

.thumbImage{
  position: relative;
  top: 0px;
  z-index: 31;
}

.button-container {
  position: relative;
}

.thumbImage .thumbImg {
  width: 100px;
  height: auto;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 10px; /* Adjust the border radius as needed */
  z-index: 50;
}

.thumbImage button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px;
  background-color: #ff3d54;
  transition: background-color 0.3s ease-in-out;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 60;
}

.addArtButton {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 60;
}


.thumbImage button:hover {
  background-color: #ddd;
}

.thumbImage a:hover {
  background-color: #ddd;
}

.thumbImage button img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}


@media only screen and (max-width: 767px) {
  .paperClipMain {
    left: 0px;
    top: 70px;
  }
  .paperClipMain .thumbImage .thumbImg {
    width: 80px;
  }
}

.drawingButton{
  position: fixed;
  width: 45px;
  height: 45px;
	z-index: 100000;
  right: 5px;
  bottom: 200px;
  padding: 5px;
  border: 1px solid #fff;
	border-right: none;
	box-shadow: 1px 1px #d3d3d3, -1px 1px #d3d3d3, -1px -1px #d3d3d3, 1px -1px #d3d3d3;
	font-family: 'PT Sans', sans-serif;
	text-shadow: 0 1px 0 #f4f4f4;
	/*	position transition for slide*/
	-webkit-transition: right 0.5s ease;
	-moz-transition: right 0.5s ease;
	-o-transition: right 0.5s ease;
	transition: right 0.5s ease;
} 

.book-items {
  position: relative;
  cursor: default;
  padding: 16px;
  margin: 0;
  display: grid;
  break-inside: avoid;
}

.main-book-wrap {
  position: relative;
}

.book-cover {
  position: relative;
}

.book-cover .book-inside {
  position: absolute;
  width: 90%;
  height: 96%;
  top: 1%;
  left: 16px;
  border: 1px solid grey;
  border-radius: 2px 6px 6px 2px;
  background: white;
  box-shadow: 
      10px 40px 40px -10px #00000030, 
      inset -2px 0 0 grey,
      inset -3px 0 0 #dbdbdb, 
      inset -4px 0 0 white, 
      inset -5px 0 0 #dbdbdb;
}

.book-cover .book-image {
  line-height: 0;
  position: relative;
  border-radius: 2px 6px 6px 2px;
  box-shadow: 
      6px 6px 18px -2px rgba(0, 0, 0, 0.2),
      24px 28px 40px -6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  transform: perspective(2000px) rotateY(-15deg) translateX(-10px) scaleX(0.94);
  cursor: pointer;
}

.book-image img {
  width: 100%;
  border-radius: 2px 6px 6px 2px;
  object-fit: cover;
}

.book-image:hover {
  transform: perspective(2000px) rotateY(0deg) translateX(0px) scaleX(1);
  transform-style: preserve-3d;
  box-shadow: 
      6px 6px 12px -1px rgba(0, 0, 0, 0.1),
      20px 14px 16px -6px rgba(0, 0, 0, 0.1);
}

.book-image:hover .effect {
  margin-left: 14px;
}

.book-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align flag and title to the left */
  text-align: left;
  border-radius: 0 0 2px 2px;
}

.book-details-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 6px;
  display: flex;
  align-items: center; /* Align items vertically in the center */
  justify-content: flex-start; /* Align items to the left */
}

.book-details figure {
  margin: 0; /* Reset default margin */
}

.like-indicator {
  margin-left: auto; /* Pushes it to the far right */
}

.book-details-top h3 {
  flex-grow: 1; /* Allow the h3 to take available space */
}

.book-head {
  margin: 0;
  border-radius: 2px 2px 2px 2px;
}

.book-title {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.effect {
  position: absolute;
  width: 20px;
  height: 100%;
  margin-left: 16px;
  top: 0;
  border-left: 2px solid #00000010;
  background-image: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0) 100%
  );
  transition: all 0.5s ease;
  z-index: 5;
}

.light {
  width: 90%;
  height: 100%;
  position: absolute;
  border-radius: 3px;
  background-image: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.2) 100%
  );
  top: 0;
  right: 0;
  opacity: 0.1;
  transition: all 0.5s ease;
  z-index: 4;
}

.author-profile {
  flex-shrink: 0; /* Prevent the profile from shrinking */
  margin-right: 8px; /* Add spacing */
}

.author-profile img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

@media only screen and (max-width: 767px) {
  .book-wrapper {
      width: 100%;
      column-count: 3;
      column-gap: 0;
  }

  .book-items {
      padding: 8px;
  }
}
  /* SWIPER */

.goods-swiper {
    width: 250px;
    height: 580px;
    padding: 50px 0;
  }

  
  .goods-swiper .swiper-slide {
    position: relative;
    /*box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);*/
    /*border-radius: 10px;*/
  }
  
  .goods-swiper .swiper-slide .biz-span {
    position: absolute;
    top: 0;
    right: 0;
    padding: 7px 18px;
    margin: 10px;
    border-radius: 20px;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    backdrop-filter: blur(74px);
  }
  
  .goods-swiper .swiper-slide .biz-title {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex; /* Use flexbox */
    align-items: center; /* Align items vertically */
    color: #fff;
    font-weight: 600;
    font-size: 0.7rem;
    line-height: 1.2;
    background-color: #ff3d54;
    padding: 8px;
    margin: 0 0 20px 20px;
    border-radius: 5px;
  }

  .goods-swiper .swiper-slide .biz-title .biz-title-content {
    display: flex;
    align-items: center; /* Align items vertically */
    gap: 10px; /* Add gap between figure and span */
  }

  .art-swiper {
    width: 250px;
    height: 450px;
    padding: 50px 0;
  }
  
  .art-swiper .swiper-slide {
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background-color: #ffffff;
    overflow: hidden; 
  }
  .art-swiper .swiper-slide .art-card {
    box-sizing: border-box;
    padding: 10px;
    position: relative;
    border-radius: 20px;
    height: 100%;
    overflow: hidden;
    border: 10px solid #fff; 
}
.art-swiper .swiper-slide .art-card .card-body {
    height: 27%;
    color: hsl(215, 51%, 70%);
    font-size: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid hsl(215, 32%, 27%);
}
.art-card .card-body h4 {
    color: hsl(0, 0%, 100%);
    margin-bottom: 0;
    font-size: 18px;
    cursor: pointer;
    font-weight: 400;
}
.art-card .card-body p {
    font-weight: 300;
}
.art-card .card-body h4:hover {
    color:hsl(353, 100%, 50%)
}
.art-card .card-body-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}
.art-card .card-body-header div {
    position: relative;
    padding-left: 5px;
}
.art-card .card-body-header div:nth-child(1) {
    color: hsl(353, 100%, 50%);
}
.art-card .card-body-header div:nth-child(2) {
    padding-left: 22px;
}
.art-card .card-body-header div::before, .card-body-footer div::before {
    content: url(https://artkery.com/assets/img/icon-love.svg);
    position:absolute;
    top: 50%;
    left: 0;
    transform: translate(0%, -50%);
    line-height: 0px;
}
.art-card .card-body-headerheader div:nth-child(2):before {
    content: url(https://rvs-nft-preview-card.netlify.app/images/icon-clock.svg);
}
.art-card .card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    column-gap: 15px;
    border-top: 1px solid hsl(215, 32%, 27%);
}
.art-card .card-footer img {
    width: 25px;
    height: 25px;
    border: 1px solid hsl(0, 0%, 100%);
    border-radius: 50%;
}
.art-card .card-footer p {
    font-size: 12px;
    color: hsl(215, 51%, 70%);
    font-weight: 300;
}
.art-card .card-footer span {
    margin-left: 5px;
    color: hsl(0, 0%, 100%);
    cursor: pointer;
}
.art-card .card-footer span:hover {
    color:hsl(178, 100%, 50%)
}


/* The Modal (background) */

.c-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 999999; /* Sit on top */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: #3b3958; /* Fallback color */
    
  }
  
  .view-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    padding: 0px; /* Location of the box */
    left: 0;
    top: 0;
    overscroll-behavior: contain;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(255, 255,255); /* Fallback color */
    background-color: rgba(255,255,255,1); /* Black w/ opacity */
  }
  /* Modal Content */
  .c-modal-content {
    display: none; /* Hidden by default */
    margin: auto;
    color: #FFFFFF;
    position: relative;
    top: 50%;
    left: 50%;
    height: 100%;
    width: 100%;
    z-index: 9999;
  }
  .c-modal-content-active{
    z-index: 9999; /* Sit on top */
    display:inline-block;
    position: relative;
  }
  /* The Close Button */
  .c-close {
    color: #000000;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .c-close:hover,
  .c-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  

  .blog-slider {
    width: 95%;
    position: relative;
    max-width: 800px;
    margin: auto;
    background: #fff;
    box-shadow: 0px 14px 80px rgba(34, 35, 58, 0.2);
    padding: 25px;
    border-radius: 25px;
    height: 400px;
    transition: all 0.3s;
  }
  
  @media screen and (max-width: 992px) {
    .blog-slider {
      max-width: 680px;
      height: 400px;
    }
  }
  
  @media screen and (max-width: 768px) {
    .blog-slider {
      min-height: 500px;
      height: auto;
      margin: 180px auto;
    }
  }
  
  @media screen and (max-height: 500px) and (min-width: 992px) {
    .blog-slider {
      height: 350px;
    }
  }
  
  .blog-slider__item {
    display: flex;
    align-items: center;
  }
  
  @media screen and (max-width: 768px) {
    .blog-slider__item {
      flex-direction: column;
    }
  }
  
  .blog-slider__item.swiper-slide-active .blog-slider__img img {
    opacity: 1;
    transition-delay: 0.3s;
  }
  
  .blog-slider__item.swiper-slide-active .blog-slider__content > * {
    opacity: 1;
    transform: none;
  }
  
  .blog-slider__item.swiper-slide-active .blog-slider__content > *:nth-child(1) {
    transition-delay: 0.3s;
  }
  /* Repeat the above block for other children, adjusting the nth-child accordingly */
  
  .blog-slider__img {
    width: 300px;
    flex-shrink: 0;
    height: 300px;
    box-shadow: 4px 13px 30px 1px rgba(238, 51, 100, 0.2);
    border-radius: 20px;
    transform: translateX(-80px);
    overflow: hidden;
  }
  
  .blog-slider__img:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    opacity: 0.8;
  }
  
  .blog-slider__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    border-radius: 20px;
    transition: all 0.3s;
  }
  
  @media screen and (max-width: 992px) {
    .blog-slider__img {
      width: 45%;
    }
  }
  
  @media screen and (max-width: 768px) {
    .blog-slider__img {
      transform: translateY(-50%);
      width: 90%;
    }
  }
  
  @media screen and (max-width: 576px) {
    .blog-slider__img {
      width: 95%;
    }
  }
  
  @media screen and (max-height: 500px) and (min-width: 992px) {
    .blog-slider__img {
      height: 270px;
    }
  }
  
  .blog-slider__content {
    padding-right: 25px;
  }
  
  @media screen and (max-width: 768px) {
    .blog-slider__content {
      margin-top: -80px;
      text-align: center;
      padding: 0 30px;
    }
  }
  
  @media screen and (max-width: 576px) {
    .blog-slider__content {
      padding: 0;
    }
  }
  
  .blog-slider__content > * {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.4s;
  }
  
  .blog-slider__code {
    color: #7b7992;
    margin-bottom: 15px;
    display: block;
    font-weight: 500;
  }
  
  .blog-slider__title {
    font-size: 24px;
    font-weight: 700;
    color: #0d0925;
    margin-bottom: 20px;
  }
  
  .blog-slider__text {
    color: #4e4a67;
    margin-bottom: 30px;
    line-height: 1.5em;
  }
  
  .blog-slider__button {
    display: inline-flex;
    background-image: linear-gradient(147deg, #f64a77 0%, #ee3364 74%);
    padding: 15px 35px;
    border-radius: 50px;
    color: #fff;
    box-shadow: 0px 14px 80px rgba(252, 56, 56, 0.4);
    text-decoration: none;
    font-weight: 500;
    justify-content: center;
    text-align: center;
    letter-spacing: 1px;
  }
  
  
  .swiper-container-horizontal > .swiper-pagination-bullets,
  .swiper-pagination-custom,
  .swiper-pagination-fraction {
    bottom: 10px;
    left: 0;
    width: 100%;
  }
  
  .blog-slider__pagination {
    position: absolute;
    z-index: 21;
    right: 20px;
    width: 11px !important;
    text-align: center;
    left: auto !important;
    top: 50%;
    bottom: auto !important;
    transform: translateY(-50%);
  }
  
  @media screen and (max-width: 768px) {
    .blog-slider__pagination {
      transform: translateX(-50%);
      left: 50% !important;
      top: 205px;
      width: 100% !important;
      padding: 3px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
  
  .blog-slider__pagination.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 8px 3px;
  }
  
  .blog-slider__pagination .swiper-pagination-bullet {
    width: 11px;
    height: 11px;
    margin: 3px;
    display: block;
    border-radius: 10px;
    background: #062744;
  }
  

  /* BOOK POP UP */

  .share-button {
	display: none; /* Initially hide share items */
    position: absolute ;
    align-items: center ;
    top: 0px;
    left: 50%;
    transform: translate(-50%, 0);
	height: 44px;
	width: 340px;
	--tw-bg-opacity: 1;
	background: #ff3d54;
	border-radius: 20px;
	overflow: hidden;
	line-height: 36px;
	user-select: none;
	cursor: pointer;
    border-radius: 0em 0em 2.5em 2.5em ;
    padding-right: 5px;
    padding-left: 5px;
    z-index: 100;
  }

  .share-button.visible {
	display: flex; /* Show share items when the 'visible' class is added */
	/* Add any other styling you need */
  }
  
  .share-items-wrapper {
	position: relative;
	height: 100%;
    margin-top: 5px;
	width: 90%;
    left: 50%;
    transform: translate(-50%);
  }
  
  .share-items {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3px 0;
  }
  
  .share-item {
	display: block;
	color: #FFFFFF;
	text-decoration: none;
	height: 30px;
	width: 30px;
	text-align: center;
	line-height: 30px;
  }
  
  .share-item:active {
	background: #eb4c89;
	transition: 50ms ease all;
  }
  
  .share-item.active {
    color: #eb4c89;
    transition: 50ms ease all;
	}

  .book-frame {
    background-color:#ddc;
    border:solid 5vmin #eee;
    border-bottom-color:#fff;
    border-left-color:#eee;
    border-radius:2px;
    border-right-color:#eee;
    border-top-color:#ddd;
    box-shadow:0 0 5px 0 rgba(0,0,0,.25) inset, 0 5px 10px 5px rgba(0,0,0,.25);
    box-sizing:border-box;
    display:inline-block;
    padding:4vmin;
    position:relative;
    text-align:center;
  }

@media screen and (max-width: 768px) {
    .book-frame {
      padding:4vmin;
    }
}

.book-frame .book-frame-image {
  border-bottom-color:#ffe;
  border-left-color:#eed;
  border-right-color:#eed;
  border-top-color:#ccb;
}

   .heart {
    z-index: 1000;
        position: fixed;
        visibility: hidden;
        &:nth-child(1) svg {
          opacity: 0;
          -webkit-animation: heartUp 1.4s infinite ease-in;
          animation: heartUp 1.4s infinite ease-in;
        }
        &:nth-child(2) svg {
          position: absolute;
          left: 1rem;
          opacity: 0;
          -webkit-animation: heartUp 1.4s 0.3s infinite ease-in;
          animation: heartUp 1.4s 0.3s infinite ease-in;
        }
        &:nth-child(3) svg {
          position: absolute;
          left: 0.5rem;
          opacity: 0;
          -webkit-animation: heartUp 1.4s 0.6s infinite ease-in;
          animation: heartUp 1.4s 0.6s infinite ease-in;
        }
    }

    @-webkit-keyframes heartUp {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 0, 0) rotate(10deg);
    transform: translate3d(0, 0, 0) rotate(10deg);
  }

  50% {
    opacity: 1;
  }

  65% {
    opacity: 1;
  }

  90% {
    opacity: 0;
    -webkit-transform: translate3d(0, -35vh, 0) scale(1.2) rotate(-10deg);
    transform: translate3d(0, -35vh, 0) scale(1.2) rotate(-10deg);
  }

  100% {
    opacity: 0;
  }
}

.show-hearts .heart {
    visibility: visible;
}
.red-heart svg {
    fill: red; /* Set the fill color to red for red hearts */
}

#main-box-img{
    width: 177;
    height: 98px;
}

@media screen and (max-width: 768px) {
    #main-box-img{
        width: 177px;
        height: 98px;
    }
}

.show-modal-slide .modal-slide {
    visibility: visible;
}

.modal-slide {
    visibility: hidden;
}


.more-menu {
  position: absolute;
  top: 100%;
  z-index: 900;
  padding: 10px 0;
  margin-top: 9px;
  background-color: #fff;
  border: 1px solid #ccd8e0;
  border-radius: 4px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(15px) scale(0.95);
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

/* More Button / Dropdown Menu */

.more-btn,
.more-menu-btn {
  background: none;
  border: 0 none;
  line-height: normal;
  overflow: visible;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  width: 100%;
  text-align: left;
  outline: none;
  cursor: pointer;
}

.more-dot {
  background-color: #aab8c2;
  margin: 0 auto;
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 1px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.more-menu {
  position: absolute;
  top: 100%;
  z-index: 900;
  float: left;
  padding: 10px 0;
  margin-top: 9px;
  background-color: #fff;
  border: 1px solid #ccd8e0;
  border-radius: 4px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translate(0, 15px) scale(.95);
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
  pointer-events: none;
}

.more-menu-caret {
  position: absolute;
  top: -10px;
  left: 12px;
  width: 18px;
  height: 10px;
  float: left;
  overflow: hidden;
}

.more-menu-caret-outer,
.more-menu-caret-inner {
  position: absolute;
  display: inline-block;
  margin-left: -1px;
  font-size: 0;
  line-height: 1;
}

.more-menu-caret-outer {
  border-bottom: 10px solid #c1d0da;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  height: auto;
  left: 0;
  top: 0;
  width: auto;    
}

.more-menu-caret-inner {
  top: 1px;
  left: 1px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #fff;
}

.more-menu-items {
  margin: 0;
  list-style: none;
  padding: 0;
}

.more-menu-item {
  display: block;
}

.more-menu-btn {
  min-width: 100%;
  color: #66757f;
  cursor: pointer;
  display: block;
  font-size: 13px;
  line-height: 18px;
  padding: 5px 20px;
  position: relative;
  white-space: nowrap;
}

.more-menu-item:hover {
  background-color: #489fe5;
}

.more-menu-item:hover .more-menu-btn {
  color: #fff;
}

.more-btn:hover .more-dot,
.show-more-menu .more-dot {
  background-color: #516471;
}



/* CUSTOM pnotify */
.custom-pnotify-style {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #000 !important; /* Set text color to black or your preferred color */
    border: 1px solid #ccc !important; /* Optional: Set border color */
}

.success-pnotify-style {
  background-color: rgba(237, 28, 36, 0.873) !important;
  color: #fff !important; /* Set text color to black or your preferred color */
  border: 1px solid #ccc !important; /* Optional: Set border color */
}

.lens-img{
    position: absolute;
    top: 10px;
    left: 20px;
}

@media screen and (max-width: 768px) {
    .lens-img{
        top: -50px;
        right: 20px;
        width: 100px;
        height: 100px;
    }
}


@media screen and (max-width: 768px) {
  .main-slide-img{
    position: absolute;
    top: 150px;  
    width: 300px;
    height: auto;
  }
}
.font-yunpil{
  font-family: "source-han-sans-korean", sans-serif;
}

.align-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.align-center-text{
  display: block;
  text-align: center;
}


#canvas-buttons button {
  margin-left: auto;
  background-color: transparent;
}

.canvas-page{
  margin-bottom:30px;
  position: relative;
  width: 780px;
  padding: 2em;
  overflow: hidden; /* Ensures content doesn't spill out */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow for depth */
  border-radius: 5px; /* Optional: round the corners slightly */
}

@media screen and (max-width: 768px) {
  .canvas-page {
    margin-top: 20px;
    margin-bottom: 40px;
    width: 100%;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  .canvas-page h3.page-number {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }


  .canvas-page .page-edit {
    margin-bottom: 1rem; /* Add margin without changing layout */
  }

  .canvas-page .page-edit img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

.canvas-page-cover{
  position: relative;
  margin-bottom:30px;
  width: 780px;
  padding-bottom: 30px;
  border-bottom: 1px dashed #000; /* Adjust color as needed */
}
@media screen and (max-width: 768px) {
  .canvas-page-cover{
    margin-bottom:40px;
    width: 100%;
  }
}

.add-line-top{
  margin-top: 20px;
  border-top: 1px dashed #000; /* Adjust color as needed */
  padding-top: 40px;
}
.add-page-container{
  padding-bottom: 30px;
  border-bottom: 1px dashed #000; /* Adjust color as needed */
}
.add-page-container-up{
  margin-top: 20px;
  padding-top: 50px;
  border-top: 1px dashed #000; /* Adjust color as needed */
}
.add-page-container-down{
  margin-bottom: 20px;
  padding-bottom: 50px;
  border-bottom: 1px dashed #000; /* Adjust color as needed */
}
.canvas-button{
  margin-right: 5px;
  margin-left: 5px;
  margin-top: 15px;
}

.canvas-button svg{
  background-color: transparent; /* Set background color to transparent */
  fill: none; /* Set fill to none */
}

/* General style for .canvas-container (applies to all except #canvas-container-1) 
.canvas-container-cover {
  box-sizing: border-box;
  font-family: "Black Han Sans", sans-serif;
  font-size: 26px;
  border: 1px solid grey;
  border-radius: 2px 6px 6px 2px;
  box-shadow: 10px 40px 40px -10px #00000030, inset -2px 0 0 grey,
    inset -3px 0 0 #dbdbdb, inset -4px 0 0 white, inset -5px 0 0 #dbdbdb,
    inset -6px 0 0 white, inset -7px 0 0 #dbdbdb, inset -8px 0 0 white,
    inset -9px 0 0 #dbdbdb;
  background: #ffffff;
  background-size: 100% 1.2rem;
  line-height: 1.2rem;
  margin-bottom: 50px;
  align-items: center;
  justify-content: center;
}

.canvas-container img {
  padding-right: 8px;
  border-radius: 0px 13px 13px 0px;
}
*/
.canvas-container  {
  background-color: #ddc;
  border: solid 20px #eee;  /* Default border size */
  border-bottom-color: #fff;
  border-left-color: #eee;
  border-radius: 2px;
  border-right-color: #eee;
  border-top-color: #ddd;
  box-shadow: 0 0 5px 0 rgba(0,0,0,.25) inset, 0 5px 10px 5px rgba(0,0,0,.25);
  box-sizing: border-box;
  display: inline-block;
  padding: 15px; /* Default padding */
  position: relative;
  text-align: center;
}

/* For larger screens (desktop) */
@media (min-width: 1200px) {
  .canvas-container {
      border-width: 20px;
      padding: 10px;
  }
}

/* For medium screens (tablets) */
@media (max-width: 1199px) and (min-width: 768px) {
  .canvas-container {
      border-width: 15px;
      padding: 12px;
  }
}

/* For smaller screens (phones) */
@media (max-width: 767px) {
  .canvas-container {
      border-width: 12px;
      padding: 10px;
  }
}

/* For extra small screens */
@media (max-width: 480px) {
  .canvas-container {
      border-width: 8px;
      padding: 8px;
  }
}




.canvas-container img {
  width: 100%; /* Make the image fill its container */
  height: 100%;
}


.canvas-edit-container  {
  background-color: #ddc;
  border: solid 20px #eee;  /* Default border size */
  border-bottom-color: #fff;
  border-left-color: #eee;
  border-radius: 2px;
  border-right-color: #eee;
  border-top-color: #ddd;
  box-shadow: 0 0 5px 0 rgba(0,0,0,.25) inset, 0 5px 10px 5px rgba(0,0,0,.25);
  box-sizing: border-box;
  display: inline-block;
  padding: 15px; /* Default padding */
  position: relative;
  text-align: center;
}

/* For larger screens (desktop) */
@media (min-width: 1200px) {
  .canvas-edit-container {
      border-width: 20px;
      padding: 10px;
  }
}

/* For medium screens (tablets) */
@media (max-width: 1199px) and (min-width: 768px) {
  .canvas-edit-container {
      border-width: 15px;
      padding: 12px;
  }
}

/* For smaller screens (phones) */
@media (max-width: 767px) {
  .canvas-edit-container {
      border-width: 12px;
      padding: 10px;
  }
}

/* For extra small screens */
@media (max-width: 480px) {
  .canvas-edit-container {
      border-width: 8px;
      padding: 8px;
  }
}

/* Default (for larger screens) */
.mockup-container {
  background-color: #ddc;
  border: solid 8px transparent; /* Set initial transparent border */
  border-bottom-color: #fff;
  padding: 4px;
  border-left-color: #eee;
  border-right-color: #eee;
  border-top-color: #ddd;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25) inset, 0 5px 10px 5px rgba(0, 0, 0, .25);
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  text-align: center;
  /* Preserve the shading effect for left and right borders */
  background-image: linear-gradient(to right, #ddd, #eee);
}

.mockup-container[data-border-color] {
  /* Dynamically apply the border color using a CSS custom property */
  border-left-color: var(--dynamic-border-color);
  border-right-color: var(--dynamic-border-color);
}

.mockup-over-container {
  background-color: #ffffff;
  border: solid 8px transparent; /* Set initial transparent border */
  padding: 3px;
  border-color: #fff;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25) inset, 0 5px 10px 5px rgba(0, 0, 0, .25);
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  text-align: center;
  /* Preserve the shading effect for left and right borders */
  
}

.mockup-over-container[data-border-color] {
  /* Dynamically apply the border color using a CSS custom property */
  border-left-color: var(--dynamic-border-color);
  border-right-color: var(--dynamic-border-color);
}


.mockup-poster-container {
  background-color: #ddc;
  padding: 5px;
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  text-align: center;
  /* Preserve the shading effect for left and right borders */
  background-image: linear-gradient(to right, #ddd, #eee);
  
}



.mockup-print-container {
  background-color: #ffffff;
  border: solid 0px transparent; /* Set initial transparent border */
  padding: 0px;
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adding shadow effect */
}


@media screen and (max-width: 992px) {
  .mockup-container {
    border: solid 5px #ffffff; /* Adjust border width for smaller screens */
    border-left-color: #eee;
    border-right-color: #eee;
    border-top-color: #ddd;
  }
  .mockup-over-container {
    border: solid 5px #ffffff; /* Adjust border width for smaller screens */
    padding: 2px;
    border-color: #ffffff;
  }
  .mockup-print-container {
    border: solid 0px #ffffff; /* Adjust border width for smaller screens */
    padding: 0px; /* Adjust padding for smaller screens */
    
  }
  .mockup-poster-container {
    padding: 4px; /* Adjust padding for smaller screens */
  }
}

/* For screens with a max-width of 768px */
@media screen and (max-width: 768px) {
  .mockup-container {
    border: solid 6px #eee; /* Adjust border width for smaller screens */
    border-left-color: #eee;
    padding: 2px;
    border-right-color: #eee;
    border-top-color: #ddd;
  }
  .mockup-over-container {
    border: solid 5px #ffffff; /* Adjust border width for smaller screens */
    padding: 2px;
    border-color: #ffffff;
  }
  .mockup-print-container {
    border: solid 0px #eee; /* Adjust border width for smaller screens */
    padding: 0px; /* Adjust padding for smaller screens */
  }
  .mockup-poster-container {
    padding: 2px; /* Adjust padding for smaller screens */
  }
}

/* For screens with a max-width of 480px */
@media screen and (max-width: 480px) {
  .mockup-container {
    border: solid 4px #ddd; /* Adjust border width for very small screens */
    padding: 2px;
    border-bottom-color: #fff;
    border-left-color: #eee;
    border-right-color: #eee;
    border-top-color: #ddd;
  }
  .mockup-over-container {
    border: solid 5px #ffffff; /* Adjust border width for smaller screens */
    padding: 2px;
    border-color: #ffffff;
  }
  .mockup-print-container {
    border: solid 0px #ddd; /* Adjust border width for very small screens */
    padding: 0px; /* Adjust padding for very small screens */
  }
  .mockup-poster-container {
    padding: 2px; /* Adjust padding for smaller screens */
  }
}

.mockup-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-bottom-color: #ffe;
  border-left-color: #eed;
  border-right-color: #eed;
  border-top-color: #ccb;
}

.mockup-over-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, .25); 
}

.mockup-print-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.mockup-poster-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.mockup-canvas-container {
  background-color: #ddc;
  border: solid 0px rgba(238, 238, 238, 0.1);
  padding: 0px;
  border-bottom-color: #fff;
  border-left-color: #eee;
  border-right-color: #eee;
  border-top-color: #ddd;
  background-image: 
    url('./../img/canvas-background.jpg'), /* Background image */
    url('./../img/canvas-background.jpg'); /* Semi-transparent canvas texture */
  background-size: cover, cover;
  background-position: center, center;
  background-blend-mode: overlay; /* Use overlay blend mode for a subtle texture effect */
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25) inset, 0 5px 10px 5px rgba(0, 0, 0, .25);
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  text-align: center;
}


.mockup-canvas-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-bottom-color: #ffe;
  border-left-color: #eed;
  border-right-color: #eed;
  border-top-color: #ccb;
}


.smartContractButton {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Style for square aspect ratio */
.canvas-container.square {
  width: 600px;
  height: 600px;
}
/* Style for portrait aspect ratio */
.canvas-container.portrait {
  width: 600px;
  height: 900px;
}
/* Style for landscape aspect ratio */
.canvas-container.landscape {
  width: 600px;
  height: 400px;
}

.canvas-edit-container {
  width: 100%;
  height: 100%;
}

/* Style for square aspect ratio */
.canvas-edit-container.square {
  width: 600px;
  height: 600px;
}
/* Style for portrait aspect ratio */
.canvas-edit-container.portrait {
  width: 600px;
  height: 900px;
}
/* Style for landscape aspect ratio */
.canvas-edit-container.landscape {
  width: 600px;
  height: 400px;
}

.canvas-edit-container {
  width: 100%;
  height: 100%;
}

.canvas-container-writing {
  position: relative;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  margin-bottom: 10px;
}

.memo-textarea {
  width: 100%;
  height: 200px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  background-color: #f9f9f9;
  line-height: 1.5;
  resize: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.12), inset 0 1px 2px rgba(0,0,0,0.24);
}

.object-cover img {
  object-fit: cover;
}

.object-contain img {
  object-fit: contain;
}

/* Additional styling for mobile screens */
@media screen and (max-width: 768px) {
  .canvas-container.square {
    width: 300px;
    height: 300px;
  }
  .canvas-container.portrait{
    width: 300px;
    height: 450px;
  }
  .canvas-container.landscape {
      width: 300px;
      height: 200px;
  }
  .canvas-edit-container.square {
    width: 300px;
    height: 300px;
  }
  .canvas-edit-container.portrait{
    width: 300px;
    height: 450px;
  }
  .canvas-edit-container.landscape {
      width: 300px;
      height: 200px;
  }
}

/* coloris */
.clr-field button {
  width: 30px;
  height: 30px;
  border-radius: 5px;
}
.main-coloris-0 {
  margin-left: 10px;
  width: 30px;
  border: none;
  outline: none; 
  background: transparent;
}

.main-coloris-0:focus {
  outline: none;
  border: none;
}
.main-coloris {
  margin-left: 10px;
  width: 30px;
  border: none;
  outline: none; 
  background: transparent;
}

.main-coloris:focus {
  outline: none;
  border: none;
}

.canvas-title-fancy {
  position: relative;
  white-space: nowrap;
  &:after {
    --deco-height: 0.3125em;
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--deco-height) * -0.625);
    height: var(--deco-height);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='64' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath d='M-17 30.5C-1 22 72-4 54 13 37.9 28.2-2.5 57.5 16 55.5s72-29 104-40' stroke='%23ff3d54' stroke-width='10'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h100v64H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
    background-size: auto 100%;
    background-repeat: round;
    background-position: 0em;
  }
}

.loading-spinner {
  border: 4px solid rgba(255, 61, 84, 0.3); /* Light color for the main border */
  border-top: 4px solid rgb(255, 61, 84); /* Contrasting color for the visible part */
  border-radius: 50%; /* Make it a circle */
  width: 24px; /* Set the width of the spinner */
  height: 24px; /* Set the height of the spinner */
  animation: spin 1s linear infinite; /* Apply the spin animation */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.view-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.view-button svg {
  margin-bottom: 4px; /* Adjust the margin as needed */
}

/* Default styles for larger screens */
.frame-button-div{
  position: absolute;
  bottom: 0;
  right: 0;
}
.frame-button-container {
  aspect-ratio: 1;
  width: 60px;
  transform: scale(0.9);
}


.view-button-container {
  width: 160px;
  transform: scale(0.9);
}

.frame-button-container-left {
  aspect-ratio: 1;
  transform: scale(0.9);
}


.frame-button-container .frame-button, .frame-button-container-left .frame-button{
  aspect-ratio: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition-all: duration-300;
}

.frame-button-container .frame-button:hover {
  scale: 1.0;
  opacity: 1.0;
}

/* Media query for smaller screens */
@media (max-width: 767px) {
  .frame-button-container .smaller, .frame-button-container-left .smaller{
      width: 40px; /* Adjust the width for smaller screens */
  }
}


input.qty2 {
  text-align: center;
  left: 50%;
  background: none;
}
input.qty2:focus {
  outline: none;
  box-shadow: none;
}

.inc {
  right: 0;
  top: 0;
}

.button_inc {
  cursor: pointer;
  position: absolute;
  width: 33px;
  height: 40px;
  line-height: 38px;
  text-align: center;
  z-index: 2;
  font-size: 26px;
  font-size: 1.625rem;
  font-weight: 300 !important;
  color: #999;
}
.button_inc:hover {
  color: #004dda;
}
.dec {
  left: 0;
  top: 0;
}

.art_image{
  position:absolute !important;
  left: 40px;
  bottom: 0px;
}

/* The Modal (background) */
.c-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 999999; /* Sit on top */
  padding: 0px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.deleteIcon {
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  color: #ff3d54; /* Adjust the color as needed */
  font-size: 30px;
  z-index: 2;
}
#itemArtThumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px; /* Optional spacing between items */
}

.item-art-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.item-art-preview {
  object-fit: cover;
  border-radius: 5px;
}

.item-org-preview {
  width: 180px;
  height: auto;
  object-fit: cover;
  border: 1px solid #ddd; /* Add a border for better visibility */
  border-radius: 5px; /* Add border-radius for rounded corners */
}


@media (max-width: 767px) {
  .item-org-preview {
    width: 120px;
    height: auto;
    object-fit: cover;
    border: 1px solid #ddd; /* Add a border for better visibility */
    border-radius: 5px; /* Add border-radius for rounded corners */
  }
}
.additionalPrice {
  display: block;
  font-size: 10px;
  font-weight: bold;
  color: #ff3d54;
  margin-top: 4px;
  position: absolute;
  bottom: 0; /* Position it at the bottom of the item-art-container */
  left: 0; /* Align it to the left of the item-art-container */
  padding: 3px; /* Optional: Add padding for better visibility */
  z-index: 10;
}

@media (max-width: 767px) {
  .mobile-img img {
      width: 60%; /* 50% width on smaller screens */
  }
}

.font-white-shadow {
  text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.8), -2px -2px 8px rgba(255, 255, 255, 0.8);
}

.font-clashGrotesk {
  font-family: ClashGrotesk, sans-serif;
}

.text-container {
  background-color: rgba(255, 255, 255, 0.4); /* Adjust opacity as needed */
  padding: 15px; /* Add some padding for better readability */
  border-radius: 15px; /* Optional: round the corners */
}



.profile-container {
  display: flex;
  align-items: center; /* Align items vertically */
}

.profile-info {
  margin-left: 10px; /* Adjust the margin as needed */
}

.profile-info span {
  display: block; /* Each span on a new line */
}

#heartIcon {
  cursor: pointer;
  transition: fill 0.3s;
}

.filled {
  fill: red;
}

.scrollable-content {
  height: 200px; /* Fixed height for scrollable content */
  overflow-y: auto;
}

@media (max-width: 767px) {
  .scrollable-content {
    height: 130px; /* Fixed height for scrollable content */
    overflow-y: auto;
  }
}

.scrollable-content-term {
  height: 400px; /* Fixed height for scrollable content */
  overflow-y: auto;
}

@media (max-width: 767px) {
  .scrollable-content-term {
    height: 330px; /* Fixed height for scrollable content */
    overflow-y: auto;
  }
}

.term-ul {
  list-style-type: disc; /* Use disc for filled circle bullets */
  padding-left: 1.5rem; /* Adjust the padding to control the space between the bullet and the text */
}

.term-ul li {
  margin-bottom: 0.5rem; /* Adjust the margin to control the space between list items */
}
.input-group-addon {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: #555;
  text-align: center;
  background-color: #eee;
  border: 1px solid #ccc;
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
  display: table-cell;
}
.suffix input {
  border-radius: 4px 0px 0px 4px;
}
.suffix .input-group-addon {
  border-left: 0;
  border-radius: 0px 4px 4px 0px;
}
.prefix input {
  border-radius: 0px 4px 4px 0px;
}
.prefix .input-group-addon {
  border-right: 0;
  border-radius: 4px 0px 0px 4px;
}
.presuffix input {
  border-radius: 0px;
}
.input-group-addon.prefix {
  border-radius: 4px 0px 0px 4px;
  border-right: 0;
}
.input-group-addon.suffix {
  border-radius: 0px 4px 4px 0px;
  border-left: 0;
}
.image-container {
  position: relative;
  display: inline-block;
}
.prevent-save-image {
  display: block;
  width: 100%;
  height: auto;
}
.prevent-save-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allows click events to pass through */
}


.modal-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* This makes the container take up the full viewport height */
  width: 100vw; /* This makes the container take up the full viewport width */
  position: fixed; /* Position fixed to make it overlay any content */
  top: 0;
  left: 0;
  z-index: 1000; /* Ensure it sits above other content; adjust z-index as necessary */
  backdrop-filter: blur(5px); /* Optional: blur effect for the area outside the modal */
}

/****** Style Star Rating Widget *****/

.rating { 
  border: none;
  float: left;
  display: block; /* Force block layout for small screens */
  width: 100%; /* Ensure they take full width */
}

.rating > input { display: none; } 
.rating > label:before { 
  margin: 5px;
  font-size: 1.25em;
  font-family: FontAwesome;
  display: inline-block;
  content: "\f005";
}

.rating > .half:before { 
  content: "\f089";
  position: absolute;
}

.rating > label { 
  color: #ddd; 
 float: right; 
}

/***** CSS Magic to Highlight Stars on Hover *****/

.rating > input:checked ~ label, /* show gold star when clicked */
.rating:not(:checked) > label:hover, /* hover current star */
.rating:not(:checked) > label:hover ~ label { color: #f90618;  } /* hover previous stars in list */

.rating > input:checked + label:hover, /* hover current star when changing rating */
.rating > input:checked ~ label:hover,
.rating > label:hover ~ input:checked ~ label, /* lighten current selection */
.rating > input:checked ~ label:hover ~ label { color: #f90618;  } 


#searchBox {
  display: none;
}


.del-spacing {
  display: block; /* Makes it a block-level element, effectively causing a line break */
  margin-top: 0.2em; /* Adds space above the element */
}
.fixed-width-icon {
  flex-shrink: 0;  /* prevents the icon from shrinking */
  width: 20px;
}

.ul-disc li{
  list-style-type: disc; /* Specifies disc bullets */
}

/* Form Select Switches */
.switch {
  margin: 1px 0;
  position: relative;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 28px;
  border-radius: 28px;
  background-color: #f9f9f9;
  border: 1px solid #dddddd;
  -webkit-transition: background-color 0.35s;
  transition: background-color 0.35s;
}

.switch span:after {
  content: "";
  position: absolute;
  left: 2px;
  top: 1px;
  bottom: 1px;
  width: 24px;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 50%;
  -webkit-box-shadow: 1px 0 3px rgba(0, 0, 0, 0.05);
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.05);
  -webkit-transition: all 0.15s ease-out;
  transition: all 0.15s ease-out;
}

.switch input:checked + span:after {
  left: 26px;
  border: none;
  -webkit-box-shadow: -2px 0 3px rgba(0, 0, 0, 0.1);
  box-shadow: -2px 0 3px rgba(0, 0, 0, 0.1);
}

.switch input:checked + span {
  background-color: #eeeeee;
}

.switch-default span {
  border-color: #dbe1e8;
}

.switch-default input:checked + span {
  background-color: #3080e8;
}

.switch-primary span {
  border-color: #1bbae1;
}

.switch-primary input:checked + span {
  background-color: #1bbae1;
}

.switch-info span {
  border-color: #7abce7;
}

.switch-info input:checked + span {
  background-color: #7abce7;
}

.switch-success span {
  border-color: #aad178;
}

.switch-success input:checked + span {
  background-color: #aad178;
}

.switch-warning span {
  border-color: #f7be64;
}

.switch-warning input:checked + span {
  background-color: #f7be64;
}

.switch-danger span {
  border-color: #ef8a80;
}

.switch-danger input:checked + span {
  background-color: #ef8a80;
}

.figure-icon .relative {
  position: relative;
  width: 100px;
  height: 100px;
}
.figure-icon .relative label {
  position: absolute;
  bottom: 0;  
  left: 0;
  width: 100%;
  height: auto;  
  display: flex;
  align-items: end;  
  justify-content: center;  
}
.figure-icon .relative label span {
  padding: 4px;  
  margin-bottom: 8px;  
  background-color: rgba(255, 255, 255, 0.7);  
  border-radius: 50%;  
}

.bookIconSet {
  width: 42px;
  height: 42px;
}

/* Responsive styles for smaller screens (Mobile) */
@media (max-width: 768px) {
  .bookIconSet {
      width: 32px;
      height: 32px;
  }
}

#content-canvas {
  width: 100%; /* Ensures it takes the width of the parent */
  overflow: hidden; /* Prevents overflow issues */
  position: relative; /* For positioning internal elements */
}

.storyBackground {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  background-color: rgba(0, 0, 0, 0.1);
  overflow: hidden; /* ensures content doesn't spill out */
}

#storyBackground .crease-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px; /* Adjust the width of the crease line as needed */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0)); /* Gradient effect */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Shadow effect */
  transform: translateX(-50%);
  z-index: 50; /* Ensure it appears above the background */
  pointer-events: none; /* Allow clicks to pass through */
}

.page-edit {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  background-color: #fff; /* Change background to white for a page-like appearance */
  overflow: hidden; /* Ensures content doesn't spill out */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow for depth */
  margin-bottom: 5em;
  transition: transform 0.2s ease-in-out;
}

.page-edit.even {
  background: linear-gradient(to left, #eee 95%, #b3b3b3 100%); /* Using #b3b3b3 as darkened color */
  border-left: 1px solid #a6a6a6; /* Using #a6a6a6 as darker color */
  z-index: 51;
}

.page-edit.odd {
  background: linear-gradient(to right, #eee 95%, #b3b3b3 100%); /* Using #b3b3b3 as darkened color */
  z-index: 51;
}

#backgroundImageContainer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1; /* Ensure it stays behind other content */
}



.activeVideo {
  border: 2px solid blue;
  /* Add any other styles to indicate the active state */
}

.itemStoryThumb {
  position: absolute;
  z-index: 10;
  overflow: hidden;
  width: auto; /* Maintain aspect ratio */
  height: auto; /* Maintain aspect ratio */
}

/* Active Selected State */
.activeElement {
  outline: 1px dashed #ff3d55; /* Soft pink highlight */
  outline-offset: 2px;
}

/* Optional: Different color for active Text */
.activeText {
  outline: 1px dashed #cdcdcd; /* Blue highlight */
  outline-offset: 2px;
}

/* Optional: Different color for active Image */
.activeImage {
  outline: 1px dashed #ff3d55; /* Pink like image */
  outline-offset: 2px;
}



input[type="range"] {
  display: block;
  -webkit-appearance: none;
  background-color: #bdc3c7;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  margin: 0 auto;
  outline: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  background-color: rgb(255 61 84 / var(--tw-bg-opacity));
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid white;
  cursor: pointer;
  transition: .3s ease-in-out;
}
  input[type="range"]::-webkit-slider-thumb:hover {
    background-color: white;
    background-color: rgb(255 61 84 / var(--tw-bg-opacity));
  }
  input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.6);
  }


  .input-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 110px;
    background: white;
    position: relative;
    margin-left: 20px;
  }


  .input-select option {
    background: white;
  }

  .input-select::after {
    content: '';
    display: block;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
  }

  .color-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 1px;
    height: 32px;
    border: 1px solid #121111;
    border-radius: 4px;
    width: 80px;
    background: white;
    position: relative;
  }

  .color-select option {
    background: white;
  }

  .color-select option[data-color] {
    background: none;
  }

  .color-option {
    display: flex;
    align-items: center;
  }

  .color-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
  }

  .color-select::after {
    content: '';
    display: block;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
  }

/* page Edit*/
.accordion-question-wrapper.is-active .accordion-question,
        .accordion-question-wrapper.is-active .accordion-question:hover {
            cursor: pointer;
            color: white;
            background-color: #6EBAE7;
        }

        .accordion-question-wrapper.is-active .accordion-question svg,
        .accordion-question-wrapper.is-active .accordion-question:hover svg {
            stroke: white;
        }

        .accordion-question-wrapper.is-active .accordion-question svg {
            transform: rotatex(180deg);
        }

        .accordion-answer {
            background-color: #F2F8FC;
            margin-top: 8px;
        }

.book {
  position: relative;
  width: 160px; 
  height: 220px;
  margin-bottom: 40px; /* Smaller bottom margin for larger screens */
  -webkit-perspective: 1000px;
  -moz-perspective: 1000px;
  perspective: 1000px;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

/*
  2. background & color
*/

/* HARDCOVER FRONT */
.hardcover_front li:first-child {
  background-color: #eee;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* reverse */
.hardcover_front li:last-child {
  background: #fffbec;
}

/* HARDCOVER BACK */
.hardcover_back li:first-child {
  background: #fffbec;
}

/* reverse */
.hardcover_back li:last-child {
  background: #fffbec;
}

.book_spine li:first-child {
  background: #eee;
}
.book_spine li:last-child {
  background: #333;
}

/* thickness of cover */

.hardcover_front li:first-child:after,
.hardcover_front li:first-child:before,
.hardcover_front li:last-child:after,
.hardcover_front li:last-child:before,
.hardcover_back li:first-child:after,
.hardcover_back li:first-child:before,
.hardcover_back li:last-child:after,
.hardcover_back li:last-child:before,
.book_spine li:first-child:after,
.book_spine li:first-child:before,
.book_spine li:last-child:after,
.book_spine li:last-child:before {
  background: #999;
}

/* page */

.page > li {
  background: -webkit-linear-gradient(left, #e1ddd8 0%, #fffbf6 100%);
  background: -moz-linear-gradient(left, #e1ddd8 0%, #fffbf6 100%);
  background: -ms-linear-gradient(left, #e1ddd8 0%, #fffbf6 100%);
  background: linear-gradient(left, #e1ddd8 0%, #fffbf6 100%);
  box-shadow: inset 0px -1px 2px rgba(50, 50, 50, 0.1), inset -1px 0px 1px rgba(150, 150, 150, 0.2);
  border-radius: 0px 5px 5px 0px;
}

/*
  3. opening cover, back cover and pages
*/

.hardcover_front {
  -webkit-transform: rotateY(-34deg) translateZ(8px);
  -moz-transform: rotateY(-34deg) translateZ(8px);
  transform: rotateY(-34deg) translateZ(8px);
  z-index: 100;
}

.hardcover_back {
  -webkit-transform: rotateY(-15deg) translateZ(-8px);
  -moz-transform: rotateY(-15deg) translateZ(-8px);
  transform: rotateY(-15deg) translateZ(-8px);
}

.page li:nth-child(1) {
  -webkit-transform: rotateY(-28deg);
  -moz-transform: rotateY(-28deg);
  transform: rotateY(-28deg);
}

.page li:nth-child(2) {
  -webkit-transform: rotateY(-30deg);
  -moz-transform: rotateY(-30deg);
  transform: rotateY(-30deg);
}

.page li:nth-child(3) {
  -webkit-transform: rotateY(-32deg);
  -moz-transform: rotateY(-32deg);
  transform: rotateY(-32deg);
}

.page li:nth-child(4) {
  -webkit-transform: rotateY(-34deg);
  -moz-transform: rotateY(-34deg);
  transform: rotateY(-34deg);
}

.page li:nth-child(5) {
  -webkit-transform: rotateY(-36deg);
  -moz-transform: rotateY(-36deg);
  transform: rotateY(-36deg);
}

/*
  4. position, transform & transition
*/

.hardcover_front,
.hardcover_back,
.book_spine,
.hardcover_front li,
.hardcover_back li,
.book_spine li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.hardcover_front,
.hardcover_back {
  -webkit-transform-origin: 0% 100%;
  -moz-transform-origin: 0% 100%;
  transform-origin: 0% 100%;
}

.hardcover_front {
  -webkit-transition: all 0.8s ease, z-index 0.6s;
  -moz-transition: all 0.8s ease, z-index 0.6s;
  transition: all 0.8s ease, z-index 0.6s;
}

/* HARDCOVER front */
.hardcover_front li:first-child {
  cursor: default;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-transform: translateZ(2px);
  -moz-transform: translateZ(2px);
  transform: translateZ(2px);
}

.hardcover_front li:last-child {
  -webkit-transform: rotateY(180deg) translateZ(2px);
  -moz-transform: rotateY(180deg) translateZ(2px);
  transform: rotateY(180deg) translateZ(2px);
}

/* HARDCOVER back */
.hardcover_back li:first-child {
  -webkit-transform: translateZ(2px);
  -moz-transform: translateZ(2px);
  transform: translateZ(2px);
}

.hardcover_back li:last-child {
  -webkit-transform: translateZ(-2px);
  -moz-transform: translateZ(-2px);
  transform: translateZ(-2px);
}

/* thickness of cover */
.hardcover_front li:first-child:after,
.hardcover_front li:first-child:before,
.hardcover_front li:last-child:after,
.hardcover_front li:last-child:before,
.hardcover_back li:first-child:after,
.hardcover_back li:first-child:before,
.hardcover_back li:last-child:after,
.hardcover_back li:last-child:before,
.book_spine li:first-child:after,
.book_spine li:first-child:before,
.book_spine li:last-child:after,
.book_spine li:last-child:before {
  position: absolute;
  top: 0;
  left: 0;
}

/* HARDCOVER front */
.hardcover_front li:first-child:after,
.hardcover_front li:first-child:before {
  width: 4px;
  height: 100%;
}

.hardcover_front li:first-child:after {
  -webkit-transform: rotateY(90deg) translateZ(-2px) translateX(2px);
  -moz-transform: rotateY(90deg) translateZ(-2px) translateX(2px);
  transform: rotateY(90deg) translateZ(-2px) translateX(2px);
}

.hardcover_front li:first-child:before {
  -webkit-transform: rotateY(90deg) translateZ(158px) translateX(2px);
  -moz-transform: rotateY(90deg) translateZ(158px) translateX(2px);
  transform: rotateY(90deg) translateZ(158px) translateX(2px);
}

.hardcover_front li:last-child:after,
.hardcover_front li:last-child:before {
  width: 4px;
  height: 160px;
}

.hardcover_front li:last-child:after {
  -webkit-transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(-2px) translateY(-78px);
  -moz-transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(-2px) translateY(-78px);
  transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(-2px) translateY(-78px);
}
.hardcover_front li:last-child:before {
  box-shadow: 0px 0px 30px 5px #333;
  -webkit-transform: rotateX(90deg) rotateZ(90deg) translateZ(-140px) translateX(-2px) translateY(-78px);
  -moz-transform: rotateX(90deg) rotateZ(90deg) translateZ(-140px) translateX(-2px) translateY(-78px);
  transform: rotateX(90deg) rotateZ(90deg) translateZ(-140px) translateX(-2px) translateY(-78px);
}

/* thickness of cover */

.hardcover_back li:first-child:after,
.hardcover_back li:first-child:before {
  width: 4px;
  height: 100%;
}

.hardcover_back li:first-child:after {
  -webkit-transform: rotateY(90deg) translateZ(-2px) translateX(2px);
  -moz-transform: rotateY(90deg) translateZ(-2px) translateX(2px);
  transform: rotateY(90deg) translateZ(-2px) translateX(2px);
}
.hardcover_back li:first-child:before {
  -webkit-transform: rotateY(90deg) translateZ(158px) translateX(2px);
  -moz-transform: rotateY(90deg) translateZ(158px) translateX(2px);
  transform: rotateY(90deg) translateZ(158px) translateX(2px);
}

.hardcover_back li:last-child:after,
.hardcover_back li:last-child:before {
  width: 4px;
  height: 160px;
}

.hardcover_back li:last-child:after {
  -webkit-transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(2px) translateY(-78px);
  -moz-transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(2px) translateY(-78px);
  transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(2px) translateY(-78px);
}

.hardcover_back li:last-child:before {
  box-shadow: 10px -1px 80px 20px #666;
  -webkit-transform: rotateX(90deg) rotateZ(90deg) translateZ(-140px) translateX(2px) translateY(-78px);
  -moz-transform: rotateX(90deg) rotateZ(90deg) translateZ(-140px) translateX(2px) translateY(-78px);
  transform: rotateX(90deg) rotateZ(90deg) translateZ(-140px) translateX(2px) translateY(-78px);
}

/* BOOK SPINE */
.book_spine {
  -webkit-transform: rotateY(60deg) translateX(-5px) translateZ(-12px);
  -moz-transform: rotateY(60deg) translateX(-5px) translateZ(-12px);
  transform: rotateY(60deg) translateX(-5px) translateZ(-12px);
  width: 16px;
  z-index: 0;
}

.book_spine li:first-child {
  -webkit-transform: translateZ(2px);
  -moz-transform: translateZ(2px);
  transform: translateZ(2px);
}

.book_spine li:last-child {
  -webkit-transform: translateZ(-2px);
  -moz-transform: translateZ(-2px);
  transform: translateZ(-2px);
}

/* thickness of book spine */
.book_spine li:first-child:after,
.book_spine li:first-child:before {
  width: 4px;
  height: 100%;
}

.book_spine li:first-child:after {
  -webkit-transform: rotateY(90deg) translateZ(-2px) translateX(2px);
  -moz-transform: rotateY(90deg) translateZ(-2px) translateX(2px);
  transform: rotateY(90deg) translateZ(-2px) translateX(2px);
}

.book_spine li:first-child:before {
  -webkit-transform: rotateY(-90deg) translateZ(-12px);
  -moz-transform: rotateY(-90deg) translateZ(-12px);
  transform: rotateY(-90deg) translateZ(-12px);
}

.book_spine li:last-child:after,
.book_spine li:last-child:before {
  width: 4px;
  height: 16px;
}

.book_spine li:last-child:after {
  -webkit-transform: rotateX(90deg) rotateZ(90deg) translateZ(8px) translateX(2px) translateY(-6px);
  -moz-transform: rotateX(90deg) rotateZ(90deg) translateZ(8px) translateX(2px) translateY(-6px);
  transform: rotateX(90deg) rotateZ(90deg) translateZ(8px) translateX(2px) translateY(-6px);
}

.book_spine li:last-child:before {
  box-shadow: 5px -1px 100px 40px rgba(0, 0, 0, 0.2);
  -webkit-transform: rotateX(90deg) rotateZ(90deg) translateZ(-210px) translateX(2px) translateY(-6px);
  -moz-transform: rotateX(90deg) rotateZ(90deg) translateZ(-210px) translateX(2px) translateY(-6px);
  transform: rotateX(90deg) rotateZ(90deg) translateZ(-210px) translateX(2px) translateY(-6px);
}

.page,
.page > li {
  position: absolute;
  top: 0;
  left: 0;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.page {
  width: 100%;
  height: 98%;
  top: 1%;
  left: 3%;
  z-index: 10;
}

.page > li {
  width: 100%;
  height: 100%;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  transform-origin: left center;
  -webkit-transition-property: transform;
  -moz-transition-property: transform;
  transition-property: transform;
  -webkit-transition-timing-function: ease;
  -moz-transition-timing-function: ease;
  transition-timing-function: ease;
}

.page > li:nth-child(1) {
  -webkit-transition-duration: 0.6s;
  -moz-transition-duration: 0.6s;
  transition-duration: 0.6s;
}

.page > li:nth-child(2) {
  -webkit-transition-duration: 0.6s;
  -moz-transition-duration: 0.6s;
  transition-duration: 0.6s;
}

.page > li:nth-child(3) {
  -webkit-transition-duration: 0.4s;
  -moz-transition-duration: 0.4s;
  transition-duration: 0.4s;
}

.page > li:nth-child(4) {
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  transition-duration: 0.5s;
}

.page > li:nth-child(5) {
  -webkit-transition-duration: 0.6s;
  -moz-transition-duration: 0.6s;
  transition-duration: 0.6s;
}

/*
  5. events
*/

.book:hover > .hardcover_front {
  -webkit-transform: rotateY(-145deg) translateZ(0);
  -moz-transform: rotateY(-145deg) translateZ(0);
  transform: rotateY(-145deg) translateZ(0);
  z-index: 0;
}

.book:hover > .page li:nth-child(1) {
  -webkit-transform: rotateY(-30deg);
  -moz-transform: rotateY(-30deg);
  transform: rotateY(-30deg);
  -webkit-transition-duration: 1.5s;
  -moz-transition-duration: 1.5s;
  transition-duration: 1.5s;
}

.book:hover > .page li:nth-child(2) {
  -webkit-transform: rotateY(-35deg);
  -moz-transform: rotateY(-35deg);
  transform: rotateY(-35deg);
  -webkit-transition-duration: 1.8s;
  -moz-transition-duration: 1.8s;
  transition-duration: 1.8s;
}

.book:hover > .page li:nth-child(3) {
  -webkit-transform: rotateY(-118deg);
  -moz-transform: rotateY(-118deg);
  transform: rotateY(-118deg);
  -webkit-transition-duration: 1.6s;
  -moz-transition-duration: 1.6s;
  transition-duration: 1.6s;
}

.book:hover > .page li:nth-child(4) {
  -webkit-transform: rotateY(-130deg);
  -moz-transform: rotateY(-130deg);
  transform: rotateY(-130deg);
  -webkit-transition-duration: 1.4s;
  -moz-transition-duration: 1.4s;
  transition-duration: 1.4s;
}

.book:hover > .page li:nth-child(5) {
  -webkit-transform: rotateY(-140deg);
  -moz-transform: rotateY(-140deg);
  transform: rotateY(-140deg);
  -webkit-transition-duration: 1.2s;
  -moz-transition-duration: 1.2s;
  transition-duration: 1.2s;
}

/*
  6. Bonus
*/

/* cover CSS */

.coverDesign {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
}

.coverDesign::after {
  background-image: -webkit-linear-gradient( -135deg, rgba(255, 255, 255, 0.45) 0%, transparent 100%);
  background-image: -moz-linear-gradient( -135deg, rgba(255, 255, 255, 0.45) 0%, transparent 100%);
  background-image: linear-gradient( -135deg, rgba(255, 255, 255, 0.45) 0%, transparent 100%);
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.coverDesign h1 {
  color: #fff;
  font-size: 2.2em;
  letter-spacing: 0.05em;
  text-align: center;
  margin: 54% 0 0 0;
  text-shadow: -1px -1px 0 rgba(0,0,0,0.1);
}

.coverDesign p {
  color: #f8f8f8;
  font-size: 1em;
  text-align: center;
  text-shadow: -1px -1px 0 rgba(0,0,0,0.1);
}

.yellow {
  background-color: #f1c40f;
  background-image: -webkit-linear-gradient(top, #f1c40f 58%, #e7ba07 0%);
  background-image: -moz-linear-gradient(top, #f1c40f 58%, #e7ba07 0%);
  background-image: linear-gradient(top, #f1c40f 58%, #e7ba07 0%);
}

.blue {
  background-color: #3498db;
  background-image: -webkit-linear-gradient(top, #3498db 58%, #2a90d4 0%);
  background-image: -moz-linear-gradient(top, #3498db 58%, #2a90d4 0%);
  background-image: linear-gradient(top, #3498db 58%, #2a90d4 0%);
}

.grey {
  background-color: #f8e9d1;
  background-image: -webkit-linear-gradient(top, #f8e9d1 58%, #e7d5b7 0%);
  background-image: -moz-linear-gradient(top, #f8e9d1 58%, #e7d5b7 0%);
  background-image: linear-gradient(top, #f8e9d1 58%, #e7d5b7 0%);
}

/* Basic ribbon */

.ribbon {
  color: #fff;
  display: block;
  font-size: 0.7em;
  position: absolute;
  top: 11px;
  right: 1px;
  width: 40px;
  height: 20px;
  line-height: 20px;
  letter-spacing: 0.15em; 
  text-align: center;
  -webkit-transform: rotateZ(45deg) translateZ(1px);
  -moz-transform: rotateZ(45deg) translateZ(1px);
  transform: rotateZ(45deg) translateZ(1px);
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
  z-index: 10;
&.new{
  background: #63c930;
  &:before,
  &:after{
    border-bottom: 20px solid #63c930;
  }
}
&.bestseller{
  background: #c0392b;
  &:before,
  &:after{
    border-bottom: 20px solid #c0392b;
  }
}
  
}

.ribbon::before,
.ribbon::after{
  position: absolute;
  top: -20px;
  width: 0;
  height: 0;
  
  border-top: 20px solid transparent;
}

.ribbon::before{
  left: -20px;
  border-left: 20px solid transparent;
}

.ribbon::after{
  right: -20px;
  border-right: 20px solid transparent;
}

/* figcaption */

figcaption {
  padding-left: 40px;
  text-align: left;
  position: absolute;
  top: 0;
  left: 150px;
  width: 140px;
  margin-right: 10px;
}

figcaption h1 {
  margin: 0;
}

figcaption span {
  color: #16a085;
  padding: 0.6em 0 1em 0;
  display: block;
}

figcaption p {
  color: #63707d;
  line-height: 1.3;
}

/* Media Queries */
@media screen and (max-width: 37.8125em) {
  .align > li {
    width: 100%;
    min-height: 440px;
    height: auto;
    padding: 0;
    margin: 0 0 30px 0;
  }

  .book {
    margin: 0 auto 100px auto; /* Larger bottom margin for mobile devices */
  }

  figcaption {
    text-align: center;
    width: 100%;
    top: auto;
    bottom: -240px; /* Ensure figcaption is fully visible */
    padding-left: 0;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    margin-top: 20px; /* Ensure space between book and figcaption */
    margin-bottom: 40px;
  }
}


.book-wrapper-render {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.book-container {
  flex: 1 1 calc(33.333% - 40px); /* Adjust the flex basis and margin to fit your layout */
  max-width: calc(33.333% - 40px);
  box-sizing: border-box;
  margin: 10px; /* Add margin here for spacing */
}

@media (min-width: 769px) and (max-width: 1023px) {
  .book-container {
    flex: 1 1 calc(50% - 20px); /* Two columns for tablet landscape or smaller laptops */
    max-width: calc(50% - 20px);
    margin: 10px; /* Add margin here for spacing */
  }
}

@media (max-width: 768px) {
  .book-container {
    flex: 1 1 calc(50% - 20px); /* Two columns on smaller screens */
    max-width: calc(50% - 20px);
    margin: 10px; /* Add margin here for spacing */
  }
}

@media (max-width: 480px) {
  .book-container {
    flex: 1 1 100%; /* One column on mobile */
    max-width: 100%;
    margin: 10px; /* Add margin here for spacing */
    height: 450px;
  }
}




#cover-container {
  display: flex;
  flex-direction: column; /* or flex-wrap if side-by-side */
  align-items: center;
  justify-content: flex-start;
  height: auto; /* 🔥 important */
}
.cover-main-wrapper {
  width: auto;
  height: auto;
  display: flex;
  justify-content: center;
}
.single-book {
  width: 18.5em; /* Set a fixed width */
  height: 23.0991em; /* Set a fixed height */
  position: relative;
}

.single-book-front {
  width: 18.5em; /* Set a fixed width */
  height: 23.0991em; /* Set a fixed height */
  position: relative;
  box-shadow:10px 20px 50px rgba(0,0,0,0.25);
	
	&::after {
		content:"";
		position:absolute;
		top:0;
		left:0;
		height:100%;
		width:7px;
		border-right:1px solid #000;
		background-color:rgba(0,0,0,0.15);
		border-radius:7px 0 0 7px;
		filter:blur(0.1em)
	}
	
	&__image {
		float:left;
		border-radius:7px 0 0 7px;
	}
}


.single-book img, .single-book-front img {
  border-top-right-radius: 0.4em;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the entire element */
}

.single-book {
  margin-top: -4.4em;
  transform: perspective(60em) rotateX(58deg) rotateZ(-34deg) skewY(-7deg);
  box-shadow: -1.4em 1.7em 0.3em -0.3em rgba(0,0,0,0.8), -1.6em 1.8em 0.9em -0.2em rgba(0,0,0,0.5), 0.3em 1.9em 1.3em rgba(0,0,0,0.3);
  border-top-right-radius: 0.4em;
}

.single-book:before,
.single-book:after {
  content: '';
  position: absolute;
  top: 0;
}

.single-book:before {
  width: 105%;
  height: 105%;
  left: -5%;
  z-index: -1;
  background-repeat: no-repeat;
  background-image: linear-gradient(115deg, transparent 2.8%, #3f3f3f 3%, #3f3f3f 16%, transparent 16%), linear-gradient(125deg, transparent 10%, #3f3f3f 10%, #3f3f3f 17%, #222 46.8%, transparent 47%), linear-gradient(125deg, transparent 46%, rgba(0,0,0,0.5) 46.5%, rgba(0,0,0,0.25) 49%, transparent 53%), linear-gradient(to right, #444, #666), linear-gradient(#444, #444), linear-gradient(140deg, transparent 45%, #eee 45%, #ccc 96.8%, rgba(170,170,170,0) 97%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 0.4em, 94% 0.2em, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 0 95.8%, 0 100%, 0 0;
}

.single-book:after {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-image: linear-gradient(to right, transparent 2%, rgba(0,0,0,0.1) 3%, rgba(0,0,0,0.1) 4%, transparent 5%), linear-gradient(-50deg, rgba(0,0,0,0.1) 20%, transparent 100%), linear-gradient(-50deg, rgba(0,0,0,0.2) 20%, transparent 100%), linear-gradient(to bottom, rgba(0,0,0,0.1) 20%, transparent 100%), linear-gradient(to bottom, rgba(0,0,0,0.1) 20%, transparent 100%);
  background-size: 100% 100%, 2% 20%, 1% 20%, 2% 20%, 1% 20%;
  background-position: 0 0, 2.2% 100%, 3% 100%, 2.2% 0, 3% 0;
}




/* Media Queries */
@media (max-width: 768px) {
  #cover-container {
    flex-direction: column;
    align-items: center;
  }

  .single-book-front {
    width: 180px; /* Adjust as needed */
    height: 20px; /* Adjust as needed */
    margin-top: -20px; /* Overlap adjustment */
  }
}

@media (max-width: 480px) {
  .single-book-front {
    width: 140px; /* Adjust as needed */
    height: 140px; /* Adjust as needed */
    margin-top: -20px; /* Overlap adjustment */
  }
}

.visited-tab {
  color: rgb(255, 61, 84);
}

.tab-content > div {
  display: none;
}

.tab-content > .active {
  display: block;
}


.standard-tab-content {
  display: none;
}

.standard-tab-content.active {
  display: block;
}

.custom-tab-content > div {
  display: none;
}

.custom-tab-content.active > div {
  display: block;
}

.nav-tabs li.active a, .nav-tabs li.active a:hover, .nav-tabs li.active a:focus {
  color: rgb(255, 61, 84);
}

.nav-tabs li.visited-tab a, .nav-tabs li.visited-tab a:hover, .nav-tabs li.visited-tab a:focus {
  color: rgb(255, 61, 84);
}

.nav-tabs li a {
  color: inherit;
  text-decoration: none;
}

.process-model {
  list-style: none;
  padding: 0;
  position: relative;
  margin: 10px auto 16px;
  border: none;
  z-index: 0;
  display: flex;
  justify-content: space-between;
}

.process-model li::before, .process-model li::after {
  content: "";
  position: absolute;
  top: 20px;
  height: 4px;
  background: #e5e5e5;
  z-index: -1;
}

.process-model li::before {
  left: 0;
  width: 50%;
}

.process-model li::after {
  right: 0;
  width: 50%;
}

.process-model li:first-child::before {
  display: none;
}

.process-model li:last-child::after {
  display: none;
}

.process-model li.active ~ li::before,
.process-model li.active ~ li::after,
.process-model li.visited ~ li::before,
.process-model li.visited ~ li::after {
  background: #e5e5e5;
}


.process-model li.active::before,
.process-model li.active::after,
.process-model li.visited::before,
.process-model li.visited::after {
  background: rgb(255, 61, 84);  
}

.process-model li.active ~ li svg,
.process-model li.visited ~ li svg {
  background: #f5f6f7;
  border-color: #e5e5e5;
  fill: #e5e5e5;
}

.process-model li {
  flex: 1;
  text-align: center;
  position: relative;
}

.process-model li svg {
  display: block;
  height: 40px;
  width: 40px;
  text-align: center;
  margin: 0 auto;
  background: #f5f6f7;
  border: 2px solid #e5e5e5;
  padding: 5px;
  border-radius: 50%;
}

.process-model li.active svg, .process-model li.visited svg {
  background: #fff;
  border-color: rgb(255, 61, 84);
  fill: rgb(255, 61, 84);
}

.process-model li p {
  font-size: 14px;
  margin-top: 8px;
}

@media screen and (max-width: 560px) {
  .more-icon-preocess.process-model li svg {
    font-size: 20px;
    height: 40px;
    width: 40px;
  }
  .more-icon-preocess.process-model li::before,
  .more-icon-preocess.process-model li::after {
    top: 20px;
  }
}

@media screen and (max-width: 380px) {
  .process-model.more-icon-preocess li {
    width: 20%;
  }
  .more-icon-preocess.process-model li svg {
    font-size: 18px;
    height: 35px;
    line-height: 32px;
    width: 35px;
  }
  .more-icon-preocess.process-model li p {
    font-size: 12px;
  }
  .more-icon-preocess.process-model li::before,
  .more-icon-preocess.process-model li::after {
    top: 18px;
  }
}
.glow {
  box-shadow: 0 0 5px rgb(255, 61, 84), 0 0 10px rgb(255, 61, 84), 0 0 15px rgb(255, 61, 84), 0 0 20px rgb(255, 61, 84), 0 0 25px rgb(255, 61, 84);
  animation: glow-animation 0.5s infinite alternate;
}

@keyframes glow-animation {
  from {
    box-shadow: 0 0 5px rgb(255, 61, 84), 0 0 10px rgb(255, 61, 84), 0 0 15px rgb(255, 61, 84), 0 0 20px rgb(255, 61, 84), 0 0 25px rgb(255, 61, 84);
  }
  to {
    box-shadow: 0 0 10px rgb(255, 61, 84), 0 0 20px rgb(255, 61, 84), 0 0 30px rgb(255, 61, 84), 0 0 40px rgb(255, 61, 84), 0 0 50px rgb(255, 61, 84);
  }
}


.loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.svg-loader {
  width: 50px;
  height: 50px;
}

.video-item {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
}


.spinner-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
  z-index: 1000; /* Ensure it appears above other elements */
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid #3498db; /* Blue color for the spinner */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

.spinner-border {
  border: 4px solid transparent;
  border-top: 4px solid white;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.skeleton {
  display: block;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.image-skeleton {
  width: 100%;
  height: 200px; /* Adjust height as needed */
  border-radius: 4px;
}
.skeleton-text {
  width: 100%;
  height: 20px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.skeleton-heading {
  width: 50%;
  height: 30px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.skeleton-button {
  width: 30%;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.story-quote {
  font-size: 16px;
  padding-top: 30px;
  padding-right: 10px;
  padding-left: 10px;
  margin-bottom: 20px;
}

.story-quote blockquote {
  /* Negate theme styles */
  border: 0;
  margin: 0;
  padding: 0;
  background: none;
  color: gray;
  margin: 0;
  position: relative;
  z-index: 600;
}

.story-quote blockquote * {
  box-sizing: border-box; 
}

.story-quote blockquote p {
  color: #75808a; 
  line-height: 1.4 !important;
}

.story-quote blockquote p:first-child:before {
  content: '\201C';
  color: #81bedb;
  font-size: 7.5em;
  font-weight: 700;
  opacity: .3;
  position: absolute;
  top: -.4em;
  left: -.2em;    
  text-shadow: none;
  z-index: -300;
}

.story-quote img {
  border: 3px solid #9CC1D3;
  border-radius: 50%;
  display: block;
  width: 120px;
  height: 120px;
  position: absolute;
  top: -.2em; 
  left: 0;    
}

.story-quote cite {
  color: gray;
  display: block;
  font-size: .8em; 
}

.story-quote cite span {
  color: #5e5e5e;
  font-size: 1em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 1px white; 
}

.story-quote {
  position: relative; 
}

.story-quote .quote-container {
  padding-left: 20px; 
}

.story-quote.right .quote-container {
  padding-left: 0;
  padding-right: 20px; 
}

.story-quote.right img {
  left: auto;
  right: 0;
}

.story-quote.right cite {
  text-align: right; 
}

/* Media Queries */
@media (max-width: 768px) {
  .story-quote {
    font-size: 14px;
  }
  .story-quote blockquote {
    font-size: 1.2em;
    font-style: italic;
    line-height: 1.1 !important;
    margin: 0;
    position: relative;
    text-shadow: 0 1px white;
    z-index: 600;
  }
}
.button-class{
  z-index: 99999;
}

#uploadEditionImage {
  display: none; /* Hide button by default */
  
}
.swiper.loading {
  visibility: hidden;
}

.swiper.ready {
  visibility: visible;
}
.top-right-icon {
  position: absolute;
  top: 10px; /* Adjust as needed */
  right: 10px; /* Adjust as needed */
}

.inspired-by {
  display: block;
  position: relative;
  margin-bottom: 15px;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

.wrapper {
  position: relative;
  overflow-x: hidden;
  width: 100%;
  height: 100%;
}

.card-item {
  display: block;
  position: absolute;
  top: 25px;
  margin: 0 auto;
  width: 350px;



  transform: translateX(-50%);
  transition: left 0.5s ease-out;
  will-change: left;

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.card--19 {
  left: 50%;
}

.card--solstice,
.card--huarache {
  left: 150%;
}

.card__header {
  position: relative;
  height: 170px;
  padding: 30px 30px 300px;
  color: #fff;
}

.card__header--19 {
  background-color: #F72648;
  background-image: linear-gradient(#F72648, #FCCB3C);

  background: #F72648;
  background: linear-gradient(#F72648, #FCCB3C);
}

.card__header--solstice {
  background-color: #3CA3FC;
  background-image: linear-gradient(#3CA3FC, #FFD300);

  background: #3CA3FC;
  background: linear-gradient(#3CA3FC, #FFD300);
}

.card__header--huarache {
  background-color: #26C9F7;
  background-image: linear-gradient(#26C9F7, #DFFC3C);

  background: #26C9F7;
  background: linear-gradient(#26C9F7, #DFFC3C);
}

.card__watermark {
  overflow: hidden;
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
}

.card__watermark::after {
  content: attr(data-watermark);
  position: relative;
  left: -20px;
  color: rgba(0, 0, 0, .3);
  font-size: 240px;
  font-weight: 700;
  text-transform: uppercase;
}

.card__logo {
  width: 100px;
  height: auto;
}

.card__title-price-container {
  display: flex;
  justify-content: space-between; /* Positions child elements at both ends */
  align-items: flex-start; /* Aligns them vertically to the top */
}

.card__title {
  font-size: 15px; /* Adjust the font size as needed */
  line-height: 1.1em;
}

.card__price {
  font-size: 16px;
  font-weight: 300;
  text-align: right;
}


.card__subtitle {
  display: block;
  font-size: 13px;
  font-weight: 300;
}

.card__body {
  position: relative;
  padding: 40px 30px 20px;
}

.card__image {
  z-index: 1;
  position: absolute;
  top: -240px;
  left: -50px;
  width: 125%;

  user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.card__wish-list {
  display: block;
  width: 50%;
  margin: 0 auto 15px;
  padding: 15px;
  border: 2px solid #fff;
  border-radius: 20px;
  text-align: center;
  text-transform: uppercase;
  font-size: 14px;
}

.card__wish-list--19 {
  color: #8850FF;
  border-color: #8850FF;
}

.card__wish-list--solstice {
  color: #FFBA00;
  border-color: #FFBA00;
}

.card__wish-list--huarache {
  color: #26C9F7;
  border-color: #26C9F7;
}

.card__category {
  display: block;
  text-align: center;
}

.card__will-animate {
  will-change: transform;
}

.cards-placeholder {
  display: block;
  position: relative;
  margin-bottom: 15px;
  text-align: center;
}

.cards-placeholder__item {
  opacity: 0.3;
  display: inline-block;
  margin-right: 10px;
  background-color: #fff;
  width: 30px;
  height: 5px;
  border-radius: 5px;

  transition: opacity 0.2s;
  will-change: opacity;
}

.cards-placeholder__item--active {
  opacity: 1;
}

.has-overlay {
  position: relative;
}

.has-overlay::before {
  content: '';
  position: absolute;
  inset: 0; /* Fills the entire slide */
  background: rgba(0, 0, 0, 0.4); /* Adjust the color and opacity */
  border-radius: inherit; /* Ensures the overlay respects rounded corners */
  z-index: 1;
}

.has-overlay > * {
  position: relative;
  z-index: 2; /* Ensures content is above the overlay */
}

.loader {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-color: rgb(255 61 84 / 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  animation: loading 2.5s 2 forwards ease-in-out;
  animation-timing-function: cubic-bezier(0.63, 0, 0.42, 1.01);
  z-index: 99999999;
}

.mini-loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #ff3d55;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  display: inline-block;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: #fff;
  font-size: 2.5em;
  z-index: 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes slideUp {
  to {
    transform: translateY(-100%); /* Slides the element up off the screen */
  }
}
.fill-accent-600 {
  fill: #D02E41;
}

/* Add this CSS to your stylesheet */
.connected-wallet {
  background-color: rgb(255 61 84 / var(--tw-bg-opacity));
  border-color: transparent;
  animation: pulse 2s infinite;
}

.connected-wallet svg {
  fill: #ffffff; /* Change the icon color to white */
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(175, 30, 49, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(30, 64, 175, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(30, 64, 175, 0);
  }
}
.animate-spin {
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(-360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}
#backgroundColor{
  border: 1px solid black;
}

.list-wrapper {
  overflow-x: auto; /* Enables horizontal scrolling */
  overflow-y: hidden; /* Prevents vertical scrolling */
  white-space: nowrap; /* Keeps the list items in a single line */
  -webkit-overflow-scrolling: touch; /* Allows inertial scrolling on mobile devices */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer and Edge */
}
.list-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, and Edge */
}

.list-wrapper ol {
  display: flex; /* Keeps list items inline and lets them grow as needed */
}

.list-wrapper ol li {
  display: inline-block; /* Ensures that list items are treated as inline blocks */
}

.outline-none {
  outline: none !important;
}

.swiper-artbook {
  width: 100%;
  padding: 16px 0 20px;
  margin-bottom: 50px;
}

@media (min-width: 1024px) {
  .swiper-slide-artbook {
    position: relative;
    width: 600px;
  }
}

.swiper-slide-artbook-img {
  border-radius: 20px;
  height: 300px;
  object-fit: cover;
}

.hero-slider-container .swiper-button-prev,
.hero-slider-container .swiper-button-next {
  width: 60px;
  height: 60px;
  border-radius: 1px;
}

.hero-slider-container .swiper-button-prev {
  transform: var(--x-30);
}

.hero-slider-container .swiper-button-next {
  transform: var(--x--30);
}

.hero-slider-container:hover .swiper-button-prev {
  transform: var(--x-10);
}

.hero-slider-container:hover .swiper-button-next {
  transform: var(--x--10);
}

.hero-slider2 .swiper-button-prev,
.hero-slider2 .swiper-button-next {
  width: 30px;
  height: 30px;
  line-height: 30px;
  color: var(--paragraph-color);
  background-color: var(--section-bg-1);
  font-size: 14px;
  transform: translate(0);
  opacity: 1;
  visibility: visible;
  border: none;
  transition: all 0.3s;
  position: relative;
}

.hero-slider2 .swiper-button-next {
  right: 0;
}

[dir="rtl"] .hero-slider2 .swiper-button-next {
  left: 0;
}

.hero-slider2:hover .swiper-button-prev,
.hero-slider2:hover .swiper-button-next {
  transform: translate(0);
}

.hero-slider2 .swiper-button-prev:hover,
.hero-slider2 .swiper-button-next:hover {
  background: var(--section-bg-1);
  color: var(--secondary-color);
}
.bg-section-bg-1{
  --tw-bg-opacity: 1;
  background-color: rgb(242 246 247 / var(--tw-bg-opacity));
}
/*============= swiper slider  =============*/

.swiper-container .swiper-button-prev::after,
.swiper-container .swiper-button-next::after {
  display: none;
}

.swiper-container .swiper-button-prev,
.swiper-container .swiper-button-next {
  width: 50px;
  height: 50px;
  border-radius: 100%;
  text-align: center;
  z-index: 9999 !important;
  border: 1px solid var(--border-color-1);
  color: var(--primary-color);
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.swiper-container .swiper-button-prev {
  transform: translateX(0);
}

.swiper-container .swiper-button-next {
  transform: translateX(0);
}

.swiper-container:hover .swiper-button-prev {
  transform: var(--x-6);
}

.swiper-container:hover .swiper-button-next {
  transform: var(--x--6);
}

.swiper-container:hover .swiper-button-prev,
.swiper-container:hover .swiper-button-next {
  opacity: 100;
  visibility: visible;
}

.swiper-container .swiper-button-prev:hover,
.swiper-container .swiper-button-next:hover {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

/* Container for the zoom slider */
.zoom-slider-container {
  width: 100%;
  margin-top: 15px;
  text-align: center;
}

/* The zoom slider itself */
.zoom-slider {
  -webkit-appearance: none; /* For removing default styling in webkit browsers */
  width: 80%;
  height: 8px;
  background: #ddd;
  outline: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  cursor: pointer;
}

/* Styling for the thumb (handle) */
.zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3498db; /* Customize the color for the thumb */
  cursor: pointer;
  transition: background 0.3s ease;
}

.zoom-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3498db;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* Hover effects for the slider thumb */
.zoom-slider:hover::-webkit-slider-thumb {
  background: #2980b9;
}

.zoom-slider:hover::-moz-range-thumb {
  background: #2980b9;
}

/* Change background color when interacting with the slider */
.zoom-slider:active {
  background: #bdc3c7;
}

/* Additional styling for better appearance */
.zoom-slider:focus {
  outline: none;
  background: #95a5a6;
}


.countdown-clock {
  display: inline-block;
  padding: 2px 5px;
  font-family: 'Courier New', Courier, monospace; /* Digital clock font style */
  color: white;
  background-color: rgba(0, 0, 0, 0.5); /* Black background with 0.5 opacity */
  border-radius: 2px; /* Rounded corners */
  text-align: center;
}

.groupDetails {
  background-color: #f8f9fa; /* Light gray background */
  padding: 15px;
  border: 1px solid #e0e0e0; /* Light border */
  border-radius: 8px; /* Rounded corners */
  max-width: 600px; /* Limit width for better readability */
  margin: 0 auto; /* Center the element */
}


#countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; /* Spacing between time blocks */
  background-color: #ff3d55; /* Accent background color */
  padding: 15px 20px;
  border-radius: 8px; /* Rounded corners */
  font-family: 'Arial', sans-serif;
  color: #fff; /* White text for labels */
}

#countdown .time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px; /* Minimum width for each block */
}

#countdown .time-block .value {
  font-size: 1.5rem; /* Base font size for small screens */
  font-weight: bold;
  color: #fff; /* White text for countdown numbers */
  margin-bottom: 5px; /* Space between numbers and labels */
}

#countdown .time-block .label {
  font-size: 0.85rem; /* Smaller font size for labels */
  text-transform: uppercase; /* Optional: Make labels uppercase */
  color: #fff; /* White text for labels */
  opacity: 0.8; /* Slightly lighter for a subtle effect */
}

/* Adjustments for larger screens */
@media (min-width: 768px) {
  #countdown .time-block .value {
      font-size: 2rem; /* Larger font size for medium screens */
  }
}

#avatarList span {
  font-size: 0.75rem; /* Font size for initials and +N */
  text-transform: uppercase; /* Ensure initials are uppercase */
  background-color: #e0e0e0; /* Gray background for +N */
  color: #333; /* Darker text for +N */
  font-weight: bold; /* Bold text for visibility */
}


.circle-countdown {
  width: 100%; /* Full width of parent container */
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.3rem;
  white-space: nowrap; /* Prevent wrapping */
  justify-content: start; /* Align to the left */
  max-width: 100%; /* Prevent overflow */
  overflow: hidden; /* Hide any extra content */
}

.circle-countdown > .part {
  display: grid;
}

.circle-countdown > .part > .number {
  width: min(3rem, 12vw); /* Maintain responsive sizing */
  aspect-ratio: 1; /* Keep the circle perfectly round */
  display: grid;
  place-items: center;
  border-radius: 50%; /* Makes the element circular */
  border: 2px solid hsl(0 0% 50% / 0.5); /* Border color */
  font-size: clamp(0.8rem, 1.5vw, 1.2rem); /* Adjust font size for smaller screens */
  position: relative;
  color: #fff; /* Ensure text is readable */
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8); /* Add shadow for readability */
}

.circle-countdown > .part.days {
  --num: 365; /* Number of days */
}

.circle-countdown > .part.hours {
  --num: 24; /* Number of hours */
}

.circle-countdown > .part:where(.minutes, .seconds) {
  --num: 60; /* Number of minutes and seconds */
}

.circle-countdown > .part > .number::after {
  content: "";
  position: absolute;
  inset: calc(var(--border-size) * -0.5); /* Adjust based on border size */
  border-radius: inherit; /* Matches parent border radius */
  --degree: calc(360deg / var(--num) * (var(--num) - var(--value, 0)));
  background-image: conic-gradient(var(--accent), transparent calc(var(--degree) + 0.1deg));
  --border-size: 3px;
  --mask-image: radial-gradient(100% 100%, transparent calc(50% - var(--border-size)), black calc(50% - var(--border-size) + 1px));
  -webkit-mask-image: var(--mask-image);
  mask-image: var(--mask-image);
}

@media (max-width: 600px) {
  .circle-countdown {
    gap: 0.2rem; /* Reduce gap on small screens */
  }

  .circle-countdown > .part > .number {
    width: min(2.5rem, 10vw); /* Smaller circles for mobile */
  }
}

.swiper-button-prev,
.swiper-button-next {
    color: red; /* Set the button color to white */
    background-color: transparent; /* Optional: Ensure no background color interferes */
    border: none; /* Optional: Remove any border */
}

/* Optional: Add hover effect for better UX */
.swiper-button-prev:hover,
.swiper-button-next:hover {
    color: #f0f0f0; /* Slightly lighter white on hover */
}

.castoro-titling-regular {
  font-family: "Castoro Titling", serif;
  font-weight: 400;
  font-style: normal;
}
.text-standout {
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8); /* Shadow to enhance readability */
}

.horizontal-slide-from-right-to-left {
  animation: horizontal-slide-from-right-to-left linear 10s infinite;
}

@keyframes horizontal-slide-from-right-to-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.horizontal-slide-from-left-to-right {
  animation: horizontal-slide-from-left-to-right linear 10s infinite;
}

@keyframes horizontal-slide-from-left-to-right {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(50%);
  }
}

.animation-duration-2s {
  animation-duration: 2s;
}
.animation-duration-5s {
  animation-duration: 5s;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }

  100% {
    opacity: 1;
    transform: translateZ(0);
  }
}
/* Section Space */

.section-space {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 992px) {
  .section-space {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

@media (min-width: 1200px) {
  .section-space {
    padding-top: 130px;
    padding-bottom: 130px;
  }
}

.section-space-top {
  padding-top: 5rem;
}

@media (min-width: 992px) {
  .section-space-top {
    padding-top: 100px;
  }
}

@media (min-width: 1200px) {
  .section-space-top {
    padding-top: 130px;
  }
}

.section-space-bottom {
  padding-bottom: 5rem;
}

@media (min-width: 992px) {
  .section-space-bottom {
    padding-bottom: 100px;
  }
}

@media (min-width: 1200px) {
  .section-space-bottom {
    padding-bottom: 130px;
  }
}

.ticket {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 350px; /* 50% of original width */
  margin: 20px auto;
}

.stub, .check {
  box-sizing: border-box;
}

.stub {
  background: #ef5658;
  height: 125px; /* 50% of original height */
  width: 125px; /* 50% of original width */
  color: white;
  padding: 10px;
  position: relative;
}

.stub::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  border-top: 10px solid #dd3f3e; /* Reduced */
  border-left: 10px solid #ef5658; /* Reduced */
  width: 0;
}

.stub::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  border-bottom: 10px solid #dd3f3e; /* Reduced */
  border-left: 10px solid #ef5658; /* Reduced */
  width: 0;
}

.stub .top {
  display: flex;
  align-items: center;
  height: 20px; /* Reduced */
  text-transform: uppercase;
}

.stub .line {
  display: block;
  background: #fff;
  height: 20px; /* Reduced */
  width: 1.5px; /* Reduced */
  margin: 0 10px; /* Reduced */
}

.stub .num {
  font-size: 5px; /* Reduced */
}

.stub .num span {
  color: #000;
}

.stub .number {
  position: absolute;
  left: 20px; /* Reduced */
}

.stub .invite {
  position: absolute;
  left: 75px; /* Reduced */
  bottom: 22px; /* Reduced */
  color: #000;
  width: 20%;

  /* Adjusted Line */
  border-top: 2px solid #fff;
  margin-bottom: 5px;
}

.check {
  background: #fff;
  height: 125px; /* 50% of original height */
  width: 225px; /* 50% of original width */
  padding: 20px;
  position: relative;
}

.check::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  border-top: 10px solid #dd3f3e; /* Reduced */
  border-right: 10px solid #fff; /* Reduced */
  width: 0;
}

.check::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  border-bottom: 10px solid #dd3f3e; /* Reduced */
  border-right: 10px solid #fff; /* Reduced */
  width: 0;
}

.check .big {
  font-size: 40px; /* Reduced */
  font-weight: 900;
  line-height: 0.8em;
}

.check .number {
  position: absolute;
  top: 25px; /* Reduced */
  right: 25px; /* Reduced */
  color: #ef5658;
  font-size: 20px; /* Reduced */
}

.check .info {
  display: flex;
  justify-content: flex-start;
  font-size: 6px; /* Reduced */
  margin-top: 10px; /* Reduced */
  width: 100%;
}

.check .info section {
  margin-right: 25px; /* Reduced */
}

.check .info section::before {
  content: '';
  background: #ef5658;
  display: block;
  width: 20px; /* Reduced */
  height: 1.5px; /* Reduced */
  margin-bottom: 2.5px; /* Reduced */
}

.check .info .title {
  text-transform: uppercase;
}

.selected-slide {
  border: 2px solid #ff3d55; /* Highlight color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Optional shadow */
  transform: scale(1.03); /* Optional zoom effect */
  transition: all 0.3s ease-in-out;
}

.main-option-slide {
  display: flex;
  flex-direction: column;
  height: auto; /* Allow slides to grow */
  min-height: 100%; /* Ensure it takes the full height */
}


.option-detail {
  display: flex;
  flex-direction: column;
  height: 100%; /* Make sure it fills the parent container */
}

.option-detail .flex {
  margin-top: auto; /* Pushes the button row to the bottom */
  justify-content: space-between;
  align-items: center;
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #ff3d55; /* Your theme color */
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  z-index: 100;
}

.scroll-to-top:hover {
  background-color: #d83248; /* Slightly darker for hover effect */
}

.scroll-to-top.hidden {
  opacity: 0;
  transform: translateY(100px);
  pointer-events: none;
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}




.draggable-text {
  position: absolute;
  font-size: 20px;
  padding: 4px;
  color: #000;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px dashed gray;
  cursor: move;
  min-width: 50px;
  min-height: 30px;
  display: inline-block;
  text-align: center;
  resize: both;
  overflow: hidden;
}

/*.title-text-display {
  position: absolute;
  white-space: nowrap;
  overflow: hidden;
  z-index: 50;
  padding: 10px;
  font-size: 20px;
  padding: 4px;
  color: #000;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px dashed gray;
  align-items: center;
  cursor: text;
}*/

.title-text-display {
  position: absolute;
  color: #000;
  overflow-wrap: break-word; 
  white-space: pre-wrap;
  z-index: 50;
  border: 1px #cdcdcd;
  
  /* ❗ Remove these conflicting defaults */
  /* display: block; */
  /* justify-content: left; */
  /* align-items: flex-start; */
  /* overflow-y: auto; */

  text-align: left;
}
/* Custom scrollbar for Webkit-based browsers */
.title-text-display::-webkit-scrollbar {
width: 6px; /* Make the scrollbar wider */
}

.title-text-display::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.5); /* Change the color of the scrollbar handle */
border-radius: 10px; /* Make the scrollbar handle rounded */
border: 3px solid rgba(255, 255, 255, 0.5); /* Add a border around the scrollbar handle */
}

.title-text-display::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.2); /* Change the background of the scrollbar track */
}

/* Custom scrollbar for Firefox */
.title-text-display {
scrollbar-width: thin; /* Make the scrollbar narrower */
scrollbar-color: rgba(0, 0, 0, 0.5) rgba(255, 255, 255, 0.2); /* Change the color of the scrollbar handle and track */
}

.title-text-display a {
  color: #007bff; /* Bright blue */
  text-decoration: underline;
  cursor: pointer;
}

.title-text-display a:hover {
  color: #0056b3; /* Slightly darker on hover */
}
@media (max-width: 768px) {
.title-text-display {
    font-size: 11px;
    line-height: 1.0;
}
}
.title-text-display:hover .text-grab-handle,
.text-grab-handle:hover {
  opacity: 1;
}



.book-title-text-display {
  position: absolute;
  padding: 10px;
  color: #000;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  z-index: 50;
  font-size: 24px;
  overflow-y: auto;
  min-height: 50px;
  border: none; /* 🔁 Removed dotted border */
  text-align: left;
  background: transparent;
  resize: none !important;
  overflow: auto;
}

/* Hide the resize handle */
.book-title-text-display::-webkit-resizer {
  display: none !important;
  background: transparent !important;
  border: none !important;
}

/* Responsive font size */
@media (max-width: 768px) {
  .book-title-text-display {
    font-size: 20px;
    line-height: 1.2;
  }
}

.resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  cursor: se-resize;
}

.text-controls-menu {
  left: 180px;
  width: 160px;
  display: none;
  z-index: 1100;
  margin-right: 20px;
}

.text-controls-menu select {
  width: 100%;
}

#story-text-display {
  position: absolute;
  padding: 10px;
  overflow-wrap: break-word; /* Ensures long words wrap */
  white-space: pre-wrap; /* PRESERVES line breaks */
  z-index: 50;
  font-size: 16px;
  overflow-y: auto;
  min-height: 50px;
  border: 1px dotted red;
  display: block; /* Enables flexbox layout */
  justify-content: left; /* Aligns text to the left */
  align-items: flex-start; /* Aligns text to the top */
  text-align: left; /* Ensures text alignment is natural */
}
/* Custom scrollbar for Webkit-based browsers */
#story-text-display::-webkit-scrollbar {
width: 6px; /* Make the scrollbar wider */
}

#story-text-display::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.5); /* Change the color of the scrollbar handle */
border-radius: 10px; /* Make the scrollbar handle rounded */
border: 3px solid rgba(255, 255, 255, 0.5); /* Add a border around the scrollbar handle */
}

#story-text-display::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.2); /* Change the background of the scrollbar track */
}

/* Custom scrollbar for Firefox */
#story-text-display {
scrollbar-width: thin; /* Make the scrollbar narrower */
scrollbar-color: rgba(0, 0, 0, 0.5) rgba(255, 255, 255, 0.2); /* Change the color of the scrollbar handle and track */
}


@media (max-width: 768px) {
#story-text-display {
    font-size: 11px;
    line-height: 1.0;
}
}

.editable-placeholder {
  color: #aaa; /* Light gray for placeholder effect */
}

.editable-placeholder:focus {
  color: #000; /* Change text color on focus */
}

.button-front {
  position: relative;
  z-index: 999; /* Bring it to the front */
}

.bg-zinc-950{
  --tw-bg-opacity: 1;
  background-color: rgb(9 9 11 / var(--tw-bg-opacity));
}
.bg-\[url\(\'\.\.\/images\/bg\.png\'\)\]{
  background-image: url('../images/bg.png');
}
.bg-\[url\(\'\.\.\/images\/widgets\/1\.png\'\)\]{
  background-image: url('../images/widgets/1.png');
}

.bg-gradient-to-r{
  background-image: -webkit-gradient(linear, left top, right top, from(var(--tw-gradient-stops)));
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-rose-400{
  --tw-gradient-from: #fb7185 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(251 113 133 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.via-fuchsia-500{
  --tw-gradient-to: rgb(217 70 239 / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), #d946ef var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.to-indigo-500{
  --tw-gradient-to: #6366f1 var(--tw-gradient-to-position);
}
.bg-\[length\:100\%_6px\]{
  background-size: 100% 6px;
}
.break-words {
  overflow-wrap: break-word;
  word-break: break-word;
}

#uploadProgressBar {
  background: linear-gradient(to right, #ff3d55, #ff6f61);
  box-shadow: 0 0 5px rgba(255, 61, 85, 0.7);
  transition: width 0.3s ease-in-out;
}


/* === Revised Layout for Editor UI (Canva-like) === */

/* Left Sidebar for Type Selector */
.element-type-selector {
  position: fixed;
  z-index: 1000;
  border-top: 1px solid #d1d5db;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
  width: 100%;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  padding: 8px 12px;
  gap: 8px;
  scrollbar-width: none;
}

/* Buttons inside type selector */
.element-type-selector button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background-color: transparent;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.element-type-selector button:hover,
.element-type-selector button.active {
  background-color: #e5e7eb;
}

.element-type-selector::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .element-type-selector {
    top: 72px;
    bottom: auto;
    left: 0;
    width: 60px;
    height: 100vh;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    border-top: none;
    border-right: 1px solid #d1d5db;
    padding: 12px 0;
    gap: 12px;
  }
}

/* Design Element Controls beside the selector */
.design-element-controls {
  position: fixed;
  top: 72px;
  left: 60px; /* right next to type selector */
  width: 60px;
  height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;
  gap: 12px;
  z-index: 999;
}

/* Buttons inside design-element-controls */
.design-element-controls button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background-color: transparent;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.design-element-controls button:hover,
.design-element-controls button.active {
  background-color: #dbeafe;
}

/* Vertical stack */
.design-element-controls ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
}

/* List items no padding/margin */
.design-element-controls li {
  list-style: none;
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (max-width: 767px) {
  .design-element-controls {
    position: fixed;
    bottom: 80px;
    top: auto;
    left: 0;
    width: 100%;
    height: 80px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    background-color: #f8f9fa;
    padding: 8px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 999; /* Make sure it's above .element-type-selector */
    gap: 8px;
  }

  .design-element-controls ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .design-element-controls li {
    flex: 0 0 auto; /* Prevent shrinking */
    width: auto;
    min-width: 40px;
    display: flex;
    justify-content: center;
  }

  .design-element-controls::-webkit-scrollbar,
  .design-element-controls ul::-webkit-scrollbar {
    display: none;
  }
}
/* New layout to place form controls to the right side */
.design-form-controls {
  position: absolute;
  top: 80px;
  left: 128px; /* enough spacing from design-element-controls */
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  z-index: 1000;
  width: 220px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Title font inputs inside */
.design-form-controls label {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

.design-form-controls input[type="range"],
.design-form-controls input[type="color"],
.design-form-controls input[type="text"],
.design-form-controls select {
  width: 100%;
}

.design-form-controls .slider-group,
.design-form-controls .input-group,
.design-form-controls .font-style-group,
.design-form-controls .alignment-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.design-form-controls .inline-control {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.design-form-controls .icon-button {
  background: #e2e8f0;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.design-form-controls .icon-button:hover {
  background: #cbd5e1;
}

@media (max-width: 768px) {
  .design-form-controls {
    background: #e2e8f0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px;
    gap: 12px;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
  }
}

.design-form-controls-w {
  position: absolute;
  top: 80px;
  left: 128px; /* enough spacing from design-element-controls */
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  z-index: 1000;
  width: 320px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Title font inputs inside */
.design-form-controls-w label {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

.design-form-controls-w input[type="range"],
.design-form-controls-w input[type="color"],
.design-form-controls-w input[type="text"],
.design-form-controls-w select {
  width: 100%;
}

.design-form-controls-w .input-group,
.design-form-controls-w .font-style-group,
.design-form-controls-w .alignment-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.design-form-controls-w .inline-control {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.design-form-controls-w .icon-button {
  background: #e2e8f0;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.design-form-controls .icon-button:hover {
  background: #cbd5e1;
}

@media (max-width: 768px) {
  .design-form-controls-w {
    background: #e2e8f0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px;
    gap: 12px;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
  }
}

.slider-group .inline-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-group .inline-control span {
  min-width: 16px;
  text-align: right;
  font-size: 12px;
  color: #555;
}

.font-dropdown-container div:hover {
  background-color: #f0f0f0;
  cursor: pointer;
}
.font-option {
  padding: 6px 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.font-option:last-child {
  border-bottom: none;
}

/* Base (mobile) */
.w-80px {
  width: 80px;
}
.h-80px {
  height: 80px;
}

.w-64px {
  width: 64px;
}
.h-90px {
  height: 90px;
}

/* sm: ≥ 640px */
@media (min-width: 640px) {
  .sm\:w-100px {
    width: 100px;
  }
  .sm\:h-100px {
    height: 100px;
  }

  .sm\:w-80px {
    width: 80px;
  }
  .sm\:h-112px {
    height: 112px;
  }
}

#uploadedImageLibrary::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
#uploadedImageLibrary::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

.itemStoryThumb {
  cursor: grab;
}
.itemStoryThumb:active {
  cursor: grabbing;
}





.crease-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(0, 0, 0, 0.2); /* crisp dark center line */
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: none;
}

.crease-line::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40px;
  width: 80px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.07),
    transparent
  );
  z-index: -1;
}

.drag-handle {
  width: 100%;
  height: 24px;
  cursor: grab;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  margin-bottom: 6px;
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}
@media (max-width: 768px) {
  .drag-handle {
    display: none;
  }
}


#bookReviewPanel.show {
  transform: translateY(0%);
  opacity: 1;
  visibility: visible;
}


@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(8px); }
  100% { transform: translateX(0); }
}

.shake-animation {
  animation: shake 0.5s;
}

#frame-style-scroll, #svg-style-scroll {
  scroll-behavior: smooth;
}

.frame-scroll-wrapper {
  position: relative;
}



.frame-scroll-arrow:hover {
  background-color: rgba(200, 200, 200, 0.9);
}

#frame-style-scroll, #svg-style-scroll {
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
}
#bookZoomWrapper {
  transition: transform 0.3s ease;
  transform-origin: top center; /* 🔥 Anchor zoom to top instead of center */
}


#customActionMenu {
  min-width: 120px;
  font-size: 14px;
}

#customActionMenu.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Pulse glowing effect */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0px rgba(255, 255, 255, 0.8);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  }
  100% {
    box-shadow: 0 0 0px rgba(255, 255, 255, 0.8);
  }
}

/* Apply when Magic Write button is ready */
.magic-write-ready {
  animation: fadeIn 0.5s ease-out, pulseGlow 2s infinite;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(20px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(20px); }
}
.animate-fade-in-out {
  animation: fadeInOut 4s ease-in-out forwards;
}

#magic-write-charge-button iconify-icon {
  transition: transform 0.2s ease;
}
#magic-write-charge-button:hover iconify-icon {
  transform: scale(1.2);
}

@keyframes ping-slow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.6;
  }
}

.animate-ping-slow {
  animation: ping-slow 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.magic-ai-block {
  opacity: 0;
}
.magic-ai-block.opacity-100 {
  opacity: 1;
}

.fade-out {
  opacity: 0 !important;
  transition: opacity 0.4s ease;
}

@keyframes magicGlow {
  0%, 100% {
    box-shadow: 0 0 0px rgba(255, 61, 85, 0.2);
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 61, 85, 0.7);
  }
}

.magic-glow {
  animation: magicGlow 1.5s infinite ease-in-out;
}

@keyframes magicGlow {
  0%, 100% {
    box-shadow: 0 0 0px rgba(255, 61, 85, 0.2);
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 61, 85, 0.7);
  }
}

.pit-item:hover {
  animation: magicGlow 1.5s infinite ease-in-out;
}

@keyframes magicGlowSlow {
  0%, 40%, 100% {
    box-shadow: 0 0 0px rgba(255, 61, 85, 0.2);
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 61, 85, 0.7);
  }
}

.magic-glow-slow {
  animation: magicGlowSlow 1.5s infinite ease-in-out;
}

@keyframes magicContainerGlow {
  0%, 100% {
    box-shadow: 0 0 0px rgba(255, 61, 85, 0.1);
  }
  50% {
    box-shadow: 0 0 18px rgba(255, 61, 85, 0.4);
  }
}

.container-glow {
  animation: magicContainerGlow 1.8s infinite ease-in-out;
  border-radius: 1rem; /* in case your container doesn't have one */
  will-change: box-shadow;
}

.magic-form-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  z-index: 1000;
  width: 320px;
  min-height: 320px;
  max-height: 60vh;
  overflow-y: auto;
}

/* Title font inputs inside */
.magic-form-controls label {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}


.magic-form-controls .inline-control {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.magic-form-controls .icon-button {
  background: #e2e8f0;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.magic-form-controls .icon-button:hover {
  background: #cbd5e1;
}

/* Inside areas */
#magic-write-prompt-area {
  overflow-y: auto;
}

/* Optional touch */
.magic-form-controls .drag-handle {
  cursor: move;
  user-select: none;
}

@media (max-width: 768px) {
  .magic-form-controls {
    background: #e2e8f0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px;
    gap: 12px;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    z-index: 30;
  }
}

.magic-fade-in {
  animation: magicFadeIn 0.8s ease-in-out;
}

@keyframes magicFadeIn {
  from { opacity: 0; }
  to { opacity: 0.8; }
}


.magic-refined-text {
  color: #e11d48; /* Tailwind Rose-600 */
  font-weight: 500;
}

#uploadedLibraryWrapper {
  max-height: 600px;
  overflow-y: auto;
}

#clipartLibraryWrapper {
  max-height: 600px;
  overflow-y: auto;
}

.loader-sparkle {
  position: absolute;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
  animation: sparklePulse 2s infinite ease-in-out;
  pointer-events: none;
  opacity: 0.3;
}

@keyframes sparklePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

#magic-question-box {
  transition: max-height 0.4s ease, padding 0.3s ease;
  overflow: hidden;
  
}

.magic-virtual-highlight {
  position: absolute;
  background-color: rgba(255, 230, 0, 0.4);
  z-index: 9999;
  pointer-events: none;
  border-radius: 2px;
}

.magic-selection-highlight {
  background-color: rgba(255, 229, 100, 0.4);
  border-radius: 2px;
}

.refined-flash {
  display: inline;
  background-color: rgba(255, 255, 0, 0.8);
  transition: background-color 3s ease;
}

#uploadedLibraryWrapper {
  max-height: 600px;
  overflow-y: auto;
}

.pit-embed-container {
  position: absolute;
  left: 10%;
  top: 20%;
  width: 80%;
  height: 60%;
  overflow-y: auto;
  z-index: 999;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-animate {
  animation: fadeInUp 0.4s ease-out forwards;
}

/* Optional fade-in class */
.opacity-100 {
  opacity: 1;
}
.opacity-0 {
  opacity: 0;
}
.pointer-events-none {
  pointer-events: none;
}

.w-\[350px\]{
  width: 350px;
}

.group.swiper-slide-active:not(.vv-slide-played) .group-\[\.swiper-slide-active\:not\(\.vv-slide-played\)\]\:translate-x-0 {
  --tw-translate-x: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.group.swiper-slide-active:not(.vv-slide-played) .group-\[\.swiper-slide-active\:not\(\.vv-slide-played\)\]\:translate-y-0 {
  --tw-translate-y: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.group.vv-slide-played .group-\[\.vv-slide-played\]\:translate-x-0 {
  --tw-translate-x: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.group.vv-slide-played .group-\[\.vv-slide-played\]\:translate-y-0 {
  --tw-translate-y: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.group.swiper-slide-active:not(.vv-slide-played) .group-\[\.swiper-slide-active\:not\(\.vv-slide-played\)\]\:scale-100 {
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.group.swiper-slide-active .group-\[\.swiper-slide-active\]\:scale-110 {
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.group.vv-slide-played .group-\[\.vv-slide-played\]\:scale-100 {
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.group.swiper-slide-thumb-active .group-\[\.swiper-slide-thumb-active\]\:border-4 {
  border-width: 4px;
}
.group.active .group-\[\.active\]\:border-accent {
  --tw-border-opacity: 1;
  border-color: rgb(255 61 84 / var(--tw-border-opacity));
}
.group.is-active .group-\[\.is-active\]\:border-white {
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity));
}
.group.is-error .group-\[\.is-error\]\:border-danger {
  --tw-border-opacity: 1;
  border-color: rgb(255 61 84 / var(--tw-border-opacity));
}
.group.swiper-slide-thumb-active .group-\[\.swiper-slide-thumb-active\]\:border-primary {
  --tw-border-opacity: 1;
  border-color: rgb(59 57 88 / var(--tw-border-opacity));
}
.group.is-active .group-\[\.is-active\]\:bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}
.group.is-error .group-\[\.is-error\]\:bg-input-invalid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24px' height='24px'%3E%3Cpath fill-rule='evenodd' fill='white' d='M24 20.188l-8.315-8.209 8.2-8.282-3.697-3.697-8.212 8.318-8.31-8.203-3.666 3.666 8.321 8.24-8.206 8.313 3.666 3.666 8.237-8.318 8.285 8.203z'/%3E%3C/svg%3E%0A"), linear-gradient(0deg, #ff3d54, #ff3d54);
}
.group.is-success .group-\[\.is-success\]\:bg-input-success {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='12px' height='10px'%3E%3Cpath fill-rule='evenodd' fill='white' d='M12.007,2.506 L4.799,10.007 L-0.007,5.007 L2.396,2.506 L4.799,5.007 L9.604,0.006 L12.007,2.506 Z'/%3E%3C/svg%3E%0A"), linear-gradient(0deg, #615dfa, #615dfa);
}
.group.is-invalid .group-\[\.is-invalid\]\:pr-16 {
  padding-right: 4rem;
}
.group.is-success .group-\[\.is-success\]\:pr-16 {
  padding-right: 4rem;
}
.group.is-active .group-\[\.is-active\]\:text-accent {
  --tw-text-opacity: 1;
  color: rgb(255 61 84 / var(--tw-text-opacity));
}
.group.is-active .group-\[\.is-active\]\:text-gray-900 {
  --tw-text-opacity: 1;
  color: rgb(27 27 41 / var(--tw-text-opacity));
}
.group.is-active .group-\[\.is-active\]\:text-primary {
  --tw-text-opacity: 1;
  color: rgb(59 57 88 / var(--tw-text-opacity));
}
.group.is-error .group-\[\.is-error\]\:text-danger {
  --tw-text-opacity: 1;
  color: rgb(255 61 84 / var(--tw-text-opacity));
}
.group.swiper-slide-active:not(.vv-slide-played) .group-\[\.swiper-slide-active\:not\(\.vv-slide-played\)\]\:opacity-100 {
  opacity: 1;
}
.group.swiper-slide-active .group-\[\.swiper-slide-active\]\:opacity-100 {
  opacity: 1;
}
.group.vv-slide-played .group-\[\.vv-slide-played\]\:opacity-100 {
  opacity: 1;
}
.group.active .group-\[\.active\]\:before\:bg-accent::before {
  content: var(--tw-content);
  --tw-bg-opacity: 1;
  background-color: rgb(255 61 84 / var(--tw-bg-opacity));
}
.group.active .group-\[\.active\]\:before\:bg-gray-900::before {
  content: var(--tw-content);
  --tw-bg-opacity: 1;
  background-color: rgb(27 27 41 / var(--tw-bg-opacity));
}
.group.is-active .group-\[\.is-active\]\:before\:text-accent::before {
  content: var(--tw-content);
  --tw-text-opacity: 1;
  color: rgb(255 61 84 / var(--tw-text-opacity));
}
.group.active .group-\[\.active\]\:after\:invisible::after {
  content: var(--tw-content);
  visibility: hidden;
}
.group.swiper-slide-active:not(.vv-slide-played) .group-\[\.swiper-slide-active\:not\(\.vv-slide-played\)\]\:after\:translate-x-full::after {
  content: var(--tw-content);
  --tw-translate-x: 100%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.group.vv-slide-played .group-\[\.vv-slide-played\]\:after\:opacity-0::after {
  content: var(--tw-content);
  opacity: 0;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.25rem; /* adjust to match your design (e.g. Tailwind's leading-5) */
  height: 3.75rem;       /* 3 lines × 1.25rem */
}
.text-accent {
  --tw-text-opacity: 1;
  color: rgb(255 61 84 / var(--tw-text-opacity));
}

.pit-msg img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem; /* optional: adds rounded corners */
  margin-top: 0.5rem;    /* optional: spacing */
}

#taskList li span {
  cursor: grab;
}

.li-drag-handle {
  cursor: grab;
  color: #999;
}
.li-drag-handle:hover {
  color: #555;
}
.tab-button {
  border-radius: 9999px; /* rounded-full */
  background-color: #1b2e4b;
  padding: 0.375rem 1rem; /* py-1.5 px-4 */
  font-size: 0.75rem;     /* text-xs */
  color: white;
  position: relative;
}

.tab-button::before {
  content: '';
  display: inline-block;
  height: 0.375rem; /* 1.5 */
  width: 0.375rem;
  border-radius: 9999px;
  background-color: white;
  margin-right: 0.5rem; /* default for ltr */
}

/* Direction-aware variants */
html[dir='rtl'] .tab-button::before {
  margin-left: 0.5rem;
  margin-right: 0;
}

/* Active tab */
.active-tab {
  background-color: #ff3d55; /* Tailwind's "bg-primary" if #ff3d55 */
}

/* Hide tab panels */
.tab-panel.hidden {
  display: none;
}


/* Cookie banner styles */
.ck-banner {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  background: rgba(17, 24, 39, 0.95); /* slate-900/95 */
  color: #fff; backdrop-filter: saturate(180%) blur(6px);
  padding: 12px 16px;
}
.ck-banner.hidden { display: none; }
.ck-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 16px; align-items: center; }
.ck-text { flex: 1; }
.ck-title { margin: 0 0 4px; font-weight: 700; font-size: 1rem; }
.ck-desc { margin: 0 0 10px; font-size: .875rem; line-height: 1.35; color: #e5e7eb; }
.ck-actions { display: flex; gap: 8px; }
.ck-btn {
  border: 1px solid transparent; border-radius: .5rem; padding: 8px 14px; font-weight: 700; cursor: pointer;
}
.ck-btn-ghost { background: transparent; color: #e5e7eb; border-color: #374151; }
.ck-btn-ghost:hover { background: #1f2937; }
.ck-btn-primary { background: #ef4444; } /* accent-ish */
.ck-btn-primary:hover { filter: brightness(1.05); }

/* Toggle */
.ck-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; }
.ck-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.ck-switch {
  width: 42px; height: 24px; border-radius: 999px; background: #374151; position: relative; transition: background .2s;
}
.ck-switch::after {
  content: ""; width: 18px; height: 18px; border-radius: 999px; background: #fff;
  position: absolute; top: 3px; left: 3px; transition: transform .2s;
}
.ck-toggle input:checked + .ck-switch { background: #10b981; }
.ck-toggle input:checked + .ck-switch::after { transform: translateX(18px); }

@media (max-width: 768px) {
  .ck-inner { flex-direction: column; align-items: stretch; }
  .ck-actions { justify-content: flex-end; }
}

.img-skeleton { position: relative; overflow: hidden; }
.img-skeleton::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.06), transparent);
  animation: stai-shimmer 1.6s infinite;
}
@keyframes stai-shimmer {
  0% { transform: translateX(-100%) }
  100% { transform: translateX(100%) }
}

/* prose tweaks for assistant text inside dark mode */
.prose :where(code):not(:where(pre code)) {
  background: rgba(0,0,0,.05);
  padding: .1rem .35rem; border-radius: .375rem;
}
.dark .prose :where(code):not(:where(pre code)) {
  background: rgba(255,255,255,.08);
}

#stai-feature-row { flex-wrap: wrap; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.max-w-3xl { max-width: 48rem; }   /* 768px */
.max-w-4xl { max-width: 56rem; }   /* 896px */
.max-w-5xl { max-width: 64rem; }   /* 1024px */
.max-w-6xl { max-width: 72rem; }   /* 1152px */

/* keep centering */
.mx-auto { margin-left: auto; margin-right: auto; }