fhtml::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  border-radius: 5px;
}

html::-webkit-scrollbar-track {
  background: #f1f1f1;
}

html,
body {
  width: 100%;
  height: 100%;
  /* overflow-x: visible !important; */
}

html::-webkit-scrollbar-thumb {
  background: #888;
}

html::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.subcategory-cards-container {
  /*width: 80%;*/
  width: 60%;
  height: fit-content;
  background-color: white;
  border-radius: 23px;
}

.subcategory-cards-container .container-fluid.w-100 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2em;
  position: relative;
}

.card-preview-popup {
  display: block;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  justify-content: center;
  align-items: center;
}

#pagination-button-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 25%;
  margin: 0 auto;
}

#pagination-button-container span {
  cursor: pointer;
  border-radius: 50%;
  padding: 1.25rem;
  width: 30px;
  display: flex;
  height: 30px;
  justify-content: center;
  align-items: center;
  background: #007663;
  color: white;
  transition: scale 0.2s linear;
  font-weight: 600;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
}

#pagination-button-container span.active-page {
  background: white;
  color: #007663;
}

#pagination-button-container span:hover {
  scale: 1.1;
}

.back-btn {
  margin-top: 2%;
  cursor: pointer;
  border: 1px solid #dbdbdb;
  background: white;
  border-radius: 50%;
  aspect-ratio: 1;
  transition: all 0.2s ease-in-out;
  width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preview-page-container {
  width: 100%;
  display: none;
  justify-content: center;
  align-items: center;
}

.preview-page-container .col-12 {
  position: absolute;
  width: auto;
  left: 1em;
  top: 2em;
  z-index: 5;
}

#loader-container {
  width: 25%;
  margin: 0 auto;
  display: none;
  justify-content: center;
  align-items: center;
}

.gads-container {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  height: 60px;
  margin-bottom: 5%;
}

.footer-section {
  padding-top: 2em;
}

@media (max-width: 768px) {
  /* .jumbotron {
    margin-top: 135px !important;
  } */

  #pagination-button-container {
    width: 70%;
  }

  #loader-container {
    width: 60%;
  }
}

@media screen and (min-width: 580px) {
  .preview-page-card-image-holder {
    width: 100%;
    /* height: 83vh; */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 58% !important;
    animation: transform 1.5s ease;
    animation-fill-mode: forwards;
    /* background-color: aqua; */
  }
  @keyframes transform {
    0% {
      transform: rotateZ(0deg);
    }
    100% {
      transform: rotateZ(-30deg);
    }
  }

  .animation-holder {
    width: 35vh;
    padding: 1.5em;
    z-index: 0;
    transition: 0.3s all;
    animation: trans 2s ease;
    animation-fill-mode: forwards;
  }
  .animation-holder:hover {
    z-index: 1;
    transform: scale(1.2);
  }

  @keyframes trans {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotateZ(30deg);
    }
  }
}

@media screen and (max-width: 580px) {
  .animation-holder {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
    transition: 0.3s all;
    animation: trans 2s ease;
    animation-fill-mode: forwards;
  }

  #card-container.row.w-100 {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 1em;
    gap: 2em !important;
  }
}

.preview-page-card-image-portrait {
  width: 50%;
  height: 80%;
  box-sizing: border-box;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.6);
}

.preview-page-card-image-landscape {
  width: 70%;
  height: 55%;
  box-sizing: border-box;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.6);
}

.preview-page-card-details-container {
  width: 100%;
  /*height: 100%;*/
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.preview-page-card-details {
  width: 100%;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.preview-page-card-name {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.preview-page-card-title {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
}

.preview-page-card-alt {
  font-size: 25px;
  font-style: italic;
  /* font-weight: 500; */
  color: rgb(161, 159, 159);
  text-align: center;
}

.preview-page-card-edit-buttons {
  width: 100%;
  height: 60%;
  padding: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
}

.preview-page-card-edit-buttons > a {
  width: 100%;
}

.preview-page-card-edit-buttons span {
  font-size: 18px;
  padding: 1em 0;
  letter-spacing: 1px;
}

.show-all-categories-btn {
  display: flex;
  flex-direction: column;
  height: fit-content;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0.5em;
  border: #d3d3d3 1px solid;
  transition: box-shadow 0.2s ease-in-out;
}

.show-all-categories-btn:hover {
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
}

/* .show-all-categories-btn:hover {
  border: #d3d3d3 1px solid;
} */

.show-all-categories-btn > img {
  width: 100%;
  height: auto;
  transition: all 0.5s ease-in-out;
  border-radius: 5px;
}

.show-all-categories-btn:hover > img {
  /* transform: scale(1.05) translateZ(10px); */
}

.show-all-categories-btn > span {
  transition: all ease-out 1s;
  font-size: 1.05em;
  text-align: left;
  line-height: 152%;
}

.show-all-categories-btn:hover > span {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: #4e9459;
}

.ecards-category-subcategories {
  width: 70%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 5px;
}

.ecards-category-subcategories > a > img {
  width: 100%;
  height: 80%;
  box-shadow: 0 2px 5px #666;
}

@media (max-width: 991px) {
  .preview-page-container {
    width: 100%;
  }

  .categories-container {
    display: none;
  }

  .showCategories {
    display: flex;
  }

  .categories-header {
    display: flex;
  }

  .preview-page-card-image-portrait {
    width: 70%;
  }

  .preview-page-card-image-landscape {
    width: 100%;
  }

  .subcategory-cards-container {
    width: 90%;
  }
}

@media (max-width: 767px) {
  .preview-page-card-image-portrait {
    width: 50%;
  }

  .preview-page-card-image-landscape {
    width: 80%;
  }
  .preview-page-card-edit-buttons {
    flex-direction: row;
    justify-content: space-around;
  }
  .preview-page-card-details-container {
    height: fit-content;
  }
  .preview-page-card-details {
    height: fit-content;
  }
  /* .show-all-categories-btn{
        font-size: 4vw;
    }

    .show-all-categories-btn> img{
        display: none;
    }

    .show-all-categories-btn:hover> span{
        transform:none;
    } */

  .preview-page-card-edit-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-content: space-around;
  }
  .subcategory-cards-container {
    width: 90%;
    height: 75vh;
  }
  .animation-holder {
    display: none;
  }
}

@media (max-width: 601px) {
  .preview-page-card-image-portrait {
    width: 70%;
  }

  .preview-page-card-image-landscape {
    width: 90%;
  }
}

@media (max-width: 576px) {
  .subcategory-cards-container {
    width: 100%;
    min-height: 100vh;
  }

  .show-all-categories-btn {
    font-size: 3vh;
  }
  .preview-page-card-edit-buttons {
    flex-direction: column;
    justify-content: space-between;
  }

  .show-all-categories-btn {
    display: flex;
    flex-direction: column;
    min-width: 35%;
    padding: 5px 10px;
    height: fit-content;
    padding: 10px;
    border: 3px solid #343a40;
    border-radius: 10px;
    text-align: center;
    font-size: 2vh;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    margin: 12.5px;
  }

  /* .show-all-categories-btn:hover {
    transform: scale(1.05);
    color: white;
    background-color: #343a40;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.5);
  } */

  .show-all-categories-btn > img {
    width: 100%;
    height: auto;
    transition: all 0.5s ease-in-out;
  }
  /* .show-all-categories-btn:hover > img {
    transform: scale(1.05) translateZ(10px);
  } */
  .show-all-categories-btn > span {
    transition: all ease-out 1s;
    white-space: nowrap;
  }

  .show-all-categories-btn:hover > span {
    /* transform: translate(0, 9px); */
  }

  .animation-holder {
    display: none;
  }
}

@media (max-width: 450px) {
  .preview-page-card-image-portrait {
    width: 100%;
  }

  .preview-page-card-image-landscape {
    width: 100%;
  }
}

.glow {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 99;
  cursor: pointer;
}

#card-container.row.w-100 {
  gap: 4em;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  overflow: hidden;
  border-radius: 9px;
  box-shadow: 0px 4px 15.8px 0px #00000040;
}

.card-wrapper > img,
.card-wrapper > canvas {
  object-fit: contain;
  width: 100%;
}

#card-title {
  font-family: Poppins;
  font-weight: 400;
  color: #eefff1e8;
  font-size: 1.9em;
  line-height: 167%;
}

#card-title + p {
  font-family: Roboto;
  font-weight: 400;
  line-height: 131%;
  font-size: 1em;
  color: white;
}

header.jumbotron {
  max-width: 1300px;
  width: 90%;
  margin: 0 auto;
  padding: 1em 0;
  background: url('/greeting-card/assets/img/greeting-category-icons/category-header-image.png') no-repeat center center / cover;
  border-radius: 11px;
  margin-top: 3em;
}

#category-svg {
  height: revert-layer;
}

body::-webkit-scrollbar {
  display: none;
  scroll-behavior: smooth;
}
