/* 
Código de Annand Vunnam
https://bbbootstrap.com/snippets/bootstrap-5-flipping-cards-for-catalog-29291738
*/

.container{
    transform-style: preserve-3d;
  }
  
  .container .box{
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px;
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
  }
  
  .container .box .body{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: 0.9s ease;
  }
  
  
  
  .container .box .body .imgContainer{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
  }
  
  .container .box .body .imgContainer img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .container .box .body .content{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    background: linear-gradient(45deg, #A1522C,rgb(225, 135, 0));
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transform: rotateY(180deg);
  }
  
  /* CLASE AGREGADA */
  /* Esta clase da el estilo a la cara frontal de la tarjeta cuando no se utiliza una imagen */
  .container .box .body .content-front{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    background: linear-gradient(45deg, #A1522C,rgb(225, 135, 0));
    backface-visibility: hidden;
    transform-style: preserve-3d;
  }
  
  .container .box:hover .body{
    transform: rotateY(180deg);
  }
  
  .container .box .body .content div{
    transform-style: preserve-3d;
    padding: 20px;
    border-radius: 1rem;
    background: linear-gradient(45deg, #083B8B,rgb(115, 0, 255));
    transform: translateZ(100px);
  }
  
  .container .box .body .content div h3{
    letter-spacing: 1px;
  }
  
  .embed-responsive{
    max-width: 900px;
    justify-content: center;
  }