.auto-part-card{
    margin: 20px;
    /**border: 2px dashed black;*/
    border-radius: 1rem;
    padding: 0.7rem;
    font-weight: 450;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    width: 100%;
}

.sns-card{
    background-color: rgba(255, 192, 0, 0.25);
}

.call-to-action-sns{
    text-decoration: none;
    font-weight: 700;
    color: black;
    padding: 0.7em;
   /** border: 1px solid black;*/
    background-color: rgba(250,129,40, 0.6);
    border-radius: 1rem;
}

.engine-card{
   background-color: rgba(85,85,85, 0.3);
}

.braking-card{
    background-color: rgba(250,129,40, 0.3);

}

.auto-part-txt-card{
    width: 80%;
    
    margin: 0.3em;
}

.category-photo{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.photo-credit{
    position: absolute;
    bottom: 2%;
    right: 1%;
    color: white;
}

.category-txt {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(25,25,25, 0.5);
    color: white;
    font-size: 5rem;
    z-index: 1; /* keep under description */
    animation: fadeTxt 1.5s ease-in-out;
}

.back-cat-arrow{
    background: var(--secondary-blue);
    color: white;
    width: 50px;
    text-align: center;
    border-radius: 0.2em;
    margin-top: 20px;
    margin-left: 2%;
}

/* From Uiverse.io by Matilemak */ 
.animated-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 36px;
    border: 4px solid;
    border-color: transparent;
    font-size: 16px;
    background-color: inherit;
    border-radius: 100px;
    font-weight: 600;
    color: #1e1e1e;
    box-shadow: 0 0 0 2px #1e1e1e;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  }
  
  .animated-button svg {
    position: absolute;
    width: 24px;
    fill: #1e1e1e;
    z-index: 9;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  }
  
  .animated-button .arr-1 {
    right: 16px;
  }
  
  .animated-button .arr-2 {
    left: -25%;
  }
  
  .animated-button .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: #fd8a26;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  }
  
  .animated-button .text {
    position: relative;
    z-index: 1;
    transform: translateX(-12px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  }
  
  .animated-button:hover {
    box-shadow: 0 0 0 12px transparent;
    color: #1e1e1e;
    border-radius: 12px;
  }
  
  .animated-button:hover .arr-1 {
    right: -25%;
  }
  
  .animated-button:hover .arr-2 {
    left: 16px;
  }
  
  .animated-button:hover .text {
    transform: translateX(12px);
  }
  
  .animated-button:hover svg {
    fill: var(--secondary-blue);
  }
  
  .animated-button:active {
    scale: 0.95;
    box-shadow: 0 0 0 4px #fd8a26;
  }
  
  .animated-button:hover .circle {
    width: 220px;
    height: 220px;
    opacity: 1;
  }
  

@keyframes fadeTxt{
    from{
        color: transparent
    }
    to{
        color: white;
    }
}

@media (max-width: 500px){

.category-txt{
    font-size: 2rem;
}

}
/* Hidden Description */
.category-desc {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(250, 129, 40, 0.9);
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease-in-out;
    z-index: 2; /* make sure it overlays category text */
}
/* On Hover, show description */
.category-photo:hover .category-desc {
    opacity: 1;
    transform: translateY(0);
}
