.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.z-0 {
  z-index: 0;
}

.mb-4 {
  margin-bottom: 1rem;
}

.flex {
  display: flex;
}

.h-full {
  height: 100%;
}

.w-2\/3 {
  width: 66.666667%;
}

.w-full {
  width: 100%;
}

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

.cursor-pointer {
  cursor: pointer;
}

.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.justify-between {
  justify-content: space-between;
}

.gap-12 {
  gap: 3rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.p-4 {
  padding: 1rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

.\@container\/hoc {
  container-type: inline-size;
  container-name: hoc;
}

.\@container\/trapezoid {
  container-type: inline-size;
  container-name: trapezoid;
}

.safecare-hoc {
  border: 1px solid;
  border-image-source: linear-gradient(to bottom, rgb(24, 129, 195), rgb(79, 200, 231), rgb(113, 181, 68), rgb(235, 25, 88), rgb(171, 29, 55));
  border-image-slice: 1;
  border-width: 25px;
  padding: 25px 25px;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  position: relative;
}

.safecare-hoc:before {
  position: absolute;
  left: 0.875rem;
  top: 0px;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

@container (min-width: 28rem) {
  .safecare-hoc:before {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

.safecare-hoc:before {
  content: "Most Effective";
}

.safecare-hoc:after {
  position: absolute;
  left: 0.875rem;
  bottom: 0px;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

@container (min-width: 28rem) {
  .safecare-hoc:after {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

.safecare-hoc:after {
  content: "Least Effective";
}

.safecare-hoc__level {
  aspect-ratio: 6/1;
  width: 100%;
}

.safecare-hoc__level-content {
  background-color: transparent;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  position: absolute;
  z-index: 50;
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.safecare-hoc__level:hover .safecare-hoc__level-content {
  transform: rotateX(180deg);
}

.safecare-hoc__level:hover .safecare-hoc__level-1, 
.safecare-hoc__level:hover .safecare-hoc__level-2,
.safecare-hoc__level:hover .safecare-hoc__level-3,
.safecare-hoc__level:hover .safecare-hoc__level-4,
.safecare-hoc__level:hover .safecare-hoc__level-5 {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.safecare-hoc__level-content-front, .safecare-hoc__level-content-back {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  text-align: center;
  backface-visibility: hidden;
}

.safecare-hoc__level-content-front {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
  text-shadow: rgba(0,0,0,.6) -1px 1px 5px;
  -webkit-font-smoothing: antialiased;
}

.safecare-hoc__level-content-back {
  transform: rotateX(180deg);
}

.safecare-hoc__level-1 {
  clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
  background-color: rgb(24, 129, 195);
  transition: 0.5s ease;
}

.safecare-hoc__level-content-front-1 {
  padding: 0 0;
}

.safecare-hoc__level-2 {
  clip-path: polygon(10% 0%, 90% 0, 80% 100%, 20% 100%);
  background-color: rgb(79, 200, 231);
  transition: 0.5s ease;
}

.safecare-hoc__level-content-front-2 {
  padding: 0 10%;
}

.safecare-hoc__level-3 {
  clip-path: polygon(20% 0%, 80% 0%, 70% 100%, 30% 100%);
  background-color: rgb(113, 181, 68);
  transition: 0.5s ease;
}

.safecare-hoc__level-content-front-3 {
  padding: 0 20%;
}

.safecare-hoc__level-4 {
  clip-path: polygon(30% 0%, 70% 0%, 60% 100%, 40% 100%);
  background-color: rgb(235, 25, 88);
  transition: 0.5s ease;
}

.safecare-hoc__level-content-front-4 {
  padding: 0 30%;
}

.safecare-hoc__level-5 {
  clip-path: polygon(40% 0%, 60% 0%, 50% 100%, 50% 100%);
  background-color: rgb(171, 29, 55);
  transition: 0.5s ease;
}

.safecare-hoc__level-content-front-5 {
  padding: 0 40%;
}

.safecare-hoc__level-container {
}

.safecare-hoc-content {
  opacity: 0;
  transform: translateY(-10px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease;
}

.safecare-hoc-content.active {
  opacity: 1;
  transform: translateY(0);
  max-height: 1000px;
  /* Arbitrary large value */
}

/* -------------------------

.hoc {
    position: relative;
}

.hoc-flip {
    position: relative;
    background-color: transparent;
    perspective: 1000px;

}

.hoc-container {    
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    width: 100%;
    aspect-ratio: 6/1;

}




.hoc-container:hover {
    transform: rotateX(180deg);
}

.trapezoid {
    @apply text-3xl ;

    aspect-ratio: 6/1;
    width: 100%;

}

.trapezoid-front {
    @apply flex items-center justify-center text-center text-xl;
    aspect-ratio: 6/1;
    width: 100%;
    backface-visibility: hidden;
}

.trapezoid-back {
    transform: rotateX(180deg);
    background-color: orange;
    aspect-ratio: 6/1;
    width: 100%;
}

.trapezoid, .trapezoid-back {
    position: absolute;
    overflow: display;
    backface-visibility: hidden;
    display: flex;
    
    
    
}

 .trapezoid-1:after {
    
    aspect-ratio: 6/1;
    width: 100%;
    height: 25px;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
    background-color: rgb(24, 129, 195);
    text-shadow: 0px 0px 2px rgb(24, 129, 195);
    
 }

 
 .trapezoid-2 {
    clip-path: polygon(10% 0%, 90% 0, 80% 100%, 20% 100%);
    background-color: rgb(79, 200, 231);
    
 }

 .trapezoid-3 {
    clip-path: polygon(20% 0%, 80% 0%, 70% 100%, 30% 100%);
    background-color: rgb(113, 181, 68);
    
 }

 
 .trapezoid-4 {
    clip-path: polygon(30% 0%, 70% 0%, 60% 100%, 40% 100%);
    background-color: rgb(235, 25, 88);
    text-shadow: 1px 2px 2px rgb(235, 25, 88);
    
 }
 .trapezoid-5:after {
    content: "";
    width: 100%;
    aspect-ratio: 6/1;
    clip-path: polygon(40% 0%, 60% 0%, 50% 100%, 50% 100%);
    background-color: rgb(171, 29, 55);
    
 }

 --------------------- */

@container trapezoid (min-width: 28rem) {
  .\@md\/trapezoid\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

@container trapezoid (min-width: 32rem) {
  .\@lg\/trapezoid\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

@container hoc (min-width: 42rem) {
  .\@2xl\/hoc\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .md\:p-0 {
    padding: 0px;
  }
}

 