h1{
    font-family: "Poppins", sans-serif;
    font-weight: 500;

}

.container-fluid{
    height: calc(40vh + 90px);
    max-height: 388px;
    position: relative;
    perspective: 50em;
}

.container-card{
    
    background-image: url("../images/card-default.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: absolute;
    box-shadow: 0px 9px 20px 2px rgba(0,0,0,0.3);
    top:0;
    transition: all 0.6s ease;
}

#mainCard{
    left: calc(50% - 183.5px);
    z-index: 99;
    height: 18.75vw;
    width: 30vw;
    max-height: 230px;
    max-width: 368px;
    margin-top: 80px;
}

#mainCard div{
    width: inherit;
    height: inherit;
    background-color: rgba(0,0,0,0.3);
    border-radius: 10px;
    max-height: 230px;
    max-width: 368px;
    display: none;
}


#leftCard{
    left: calc(50% - 450px);
    z-index: 66;
    transform: rotateY(-20deg);
    height: 15.625vw;
    width: 25vw;
    max-height: 200px;
    max-width: 320px;
    margin-top: 90px;

}

#leftCard div{
    width: inherit;
    height: inherit;
    background-color: rgba(0,0,0,0.3);
    border-radius: 10px;
    max-height: 200px;
    max-width: 320px;
}

#rightCard{
    left: calc(50% + 135px);
    z-index: 66;
    transform: rotateY(20deg);
    height: 15.625vw;
    width: 25vw;
    max-height: 200px;
    max-width: 320px;
    margin-top: 90px;

}

#rightCard div{
    width: inherit;
    height: inherit;
    background-color: rgba(0,0,0,0.3);
    border-radius: 10px;
    max-height: 200px;
    max-width: 320px;
}
/*to left*/
.right-to-middle{
    transform: rotateY(0deg) scale(1.15)!important;
    margin-top: 95px!important;
    left: calc(50% - 159.5px)!important;
    z-index: 99!important;
}

.middle-to-left{
    transform: rotateY(-20deg) scale(0.87)!important;
    margin-top: 75px!important;
    left: calc(50% - 474px)!important;
    z-index: 66!important;
}

.left-to-right{
    transform: rotateY(20deg) !important;
    left: calc(50% + 135px)!important;
}

/*to right*/
.left-to-middle{
    transform: rotateY(0deg) scale(1.15)!important;
    margin-top: 95px!important;
    left: calc(50% - 159.5px)!important;
    z-index: 99!important;
}

.middle-to-right{
    transform: rotateY(20deg) scale(0.87)!important;
    margin-top: 75px!important;
    left: calc(50% + 113px)!important;
    z-index: 66!important;
}

.right-to-left{
    transform: rotateY(-20deg) !important;
    left: calc(50% - 452px)!important;
}

.disable-trans{
    transition: unset;
}


@media only screen and (max-width: 1220px)  {

    #mainCard{
        left: calc(50% - 15vw);
    }
    
    #leftCard{
        left: calc(50% - 36.5vw);
    }
    
    #rightCard{
        left: calc(50% + 11.4vw);
    }
    
    .container-fluid{
        height: calc(30vw + 90px);
    }
    
    /*turn left*/
    .right-to-middle{
        margin-top: 92px!important;
        left: calc(50% - 12.5vw)!important;
        transform: rotateY(0deg) scale(1.2)!important;
    }
    .middle-to-left{
        left: calc(50% - 38.8vw)!important;
        transform: rotateY(-20deg) scale(0.83)!important;
    }
    .left-to-right{
        left: calc(50% + 11.4vw)!important;
    }
    
    /*turn right*/
    .left-to-middle{
        margin-top: 92px!important;
        left: calc(50% - 12.5vw)!important;
        transform: rotateY(0deg) scale(1.2)!important;
    }
    .middle-to-right{
        left: calc(50% + 11.4vw)!important;
        transform: rotateY(+20deg) scale(0.83)!important;
    }
    .right-to-left{
        left: calc(50% - 38.8vw)!important;
    }

            

}


#cardsFade{
    width: 100%;
    margin-top: -42px;
    height: 100%;
    position: absolute;
    z-index: 999;
    display: none;
    background-image: linear-gradient(to right, rgba(242,242,242,0.6) 0%,rgba(249,249,249,0) 20%,rgba(249,249,249,0) 80%,rgba(255,255,255,0.6) 100%);
}

#cardsTitle{
    z-index: 9999;
    position: absolute;
    left: 40px;
    top: 40px;
}