/* container 3-------------------------------------- */
body{
    display: flex;
    /* flex-direction: ; */
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(to bottom , rgba(0,0,0,0) ,rgba(0,0,0,0.9)),url(./assets/img3.jpg);
    background-size: contain;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    
}
.card {
    position: relative;
    width: 30rem;
    height: 35rem;
    background-color: black;
    box-shadow: 0px 30px 30px rgba(0, 0, 0, 0.5);
  }
  
  .content3 {
    position: absolute;
    bottom: 0px;
    width: 80%;
    height: 10px;
    background: crimson;
    left: 10%;
    text-align: center;
    transition: 0.5s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .card h3 {
    font-size: 30px;
    text-transform: uppercase;
    margin: 25px;
    color: #fff;
  }
  
  .card p {
    width: 80%;
    margin: 10px auto;
    font-size: 18px;
    transition: 0.5s;
    opacity: 0;
    line-height: 25px;
    color: #fff;
  }
  
  .card a {
    text-decoration: none;
    background-color: black;
    color: #fff;
    padding: 10px 15px;
    display: inline-block;
    margin-top: 10px;
    transition: 0.5s;
    opacity: 0;
    line-height: 25px;
    color: #fff;
  }
  
  .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1s;
  }
  
  .card:hover .content {
    height: 100%;
    width: 100%;
    left: 0;
  }
  
  .card:hover p,
  .card:hover a {
    opacity: 1;
    transition-delay: 0.5s;
  }
  
  .img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: 1s;
  }
  
  .card:hover img {
    opacity: 0;
  }
/* container 2-------------------------------------- */

.container2 {
    width: 30rem;
    height: 30rem;
    position: relative;
    overflow: hidden;
  }
  
  .container2 img {
    width: 100%;
    transition: all 0.5s;
  }
  
  .content2 {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 25%;
    width: 100%;
    /* center the content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: all 0.5s;
    background: rgb(23, 23, 23);
    transform: translateY(100%);
  }
  
  .container2:hover .content2 {
    transform: translateY(0);
  }
  
  .container2:hover img {
    transform: translateY(-30%);
  }

/* container 1-------------------------------------- */

.container1 {
    width: 30rem;
    height: 30rem;
    position: relative;
    overflow: hidden;
  }
  
  .container1 img {
    width: 100%;
    transition: all 1s;
  }
  
  .content1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* center the text */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: all 1s;
    background: rgb(23, 23, 23);
    transform: translateX(-100%);
  }
  
  .container1:hover .content1 {
    transform: translateX(0);
  }
  
  .container1:hover img {
    transform: translateX(100%);
  }