*{
padding: 0;
margin: 0;
box-sizing: border-box;
}

.flex{
height: 100vh;
background-color: gray;
display: flex;
background: url('./img/1049984.jpg') no-repeat center;
position: relative;
background-size: cover;
perspective:9000px;
overflow: hidden;
}


.container{
    height: 600px;
    width: 700px;
    margin: auto;
    position: relative;
    transform-style: preserve-3d;
    transition: all 5s ;
    z-index: 16;

}

.container-front{
    height: 100%;
    width: 100%;
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    backface-visibility: hidden;
    z-index: 15;
    perspective: 100vh;

}


.container-back{
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    z-index: 14;
    color: white;
    transform-style: preserve-3d;

} 

.container-back h2 {
    margin: 50px;
    display: block;
    text-align: center;
    font-size: 70px;
    letter-spacing: 10px;
    text-transform: uppercase;
}

.container-back h3 {
    margin-top: 60px;
    display: block;
    text-align: center;
    font-size: 50px;
    letter-spacing: 5px;
}

.container-back p {
    margin-top: 30px;
    display: block;
    text-align: center;
    font-size: 50px;
    letter-spacing: 5px;
}


.container-back h4{
    display: block;
    text-align: center;
    font-size: 20px;
    letter-spacing: 5px;
    position: absolute;
    bottom: 55px;
    width: 200px;
    left: calc(50% - 100px);
    overflow: hidden;

}


.container-back img {
    
    position: absolute;
    width: 100px;
    height: 100px;
    bottom: 100px;
    left: calc(50% - 50px);
    cursor: pointer;
}



.card{
    position: relative;
    height: calc(33% - 10px) ;
    width: calc(25% - 10px) ;
    border:solid 1px rgba(255, 255, 255, 0.5);
    border-radius: 10%;
    margin: 5px;
    transform-style: preserve-3d;
    transition: transform 1s , box-shadow .5s;
    z-index: 5;
    cursor: pointer;
    box-shadow: 1px 1px  rgba(0, 0, 0, 0.5);
    /* box-shadow: 1px 1px 10px 15px rgba(232, 90, 42, 0.5); */


}

.card:hover {
    box-shadow: 1px 1px 10px 12px rgba(249, 249, 249, 0.23);
    /* transform: scale(1.01); */
}

.card:hover .front{
    /* box-shadow: 1px 1px 10px 12px rgba(249, 249, 249, 0.23); */
    transform: scale(1.01);
}



.card > div {
    height: 100%;
    width: 100%;
    position: absolute;
}


.front {
    background: url("./img/71xzydpsbhb41.jpg") no-repeat center ;
    border-radius: 10%;
    border: none;
    background-size: cover;
    backface-visibility: hidden;
    z-index: 5;
    transition: transform .5s;
}

.back{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 4;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    border-radius: 10%;
}

.flip { 
    transform: rotateY(180deg);
}

.motion{
    height: 100%;
    width: 100%;
    position: absolute;
    opacity: 50%;
    background: url('./img/1049984.jpg') no-repeat center;
    background-size: cover;
    animation: fire 3s linear infinite;
    /* z-index: -1; */
    }

@keyframes fire {
    0% , 100%  {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}






/* cards images */
.one {
    background-image: url('./img/8.jpg');
}
.two {
    background-image: url('./img/9.jpg');
}
.three {
    background-image: url('./img/10.jpg');
}
.four {
    background-image: url('./img/77.png');
}
.five {
    background-image: url('./img/88.png');
}
.six {
    background-image: url('./img/888.png');
}

.how , .howTo{
    height: 100px;
    width: 280px;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    flex-grow: 100%;
    right: 10px;
    top: calc(50% - 150px) ;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    color: white;
    overflow: hidden;
    transition: all 1s ease;
    z-index: 2;
    cursor: pointer;
}

.howTo {
    height: 0px;
    z-index: 1;
    top: calc(50% - 40px) ;
}


.close {
    height: 260px;
}

.rotate {
    transform: scale(1 , -1);
}

.how h2 {
    display: block;
    text-align: center;
    margin: 25px 0 10px 0 ;
}

.howTo li{
    margin: 20px 0;
    margin-left: 25px;
    /* list-style: inside; */
    list-style-position: outside;
    text-indent: inherit;
    letter-spacing: 2px;
}

.readMore {
    position: relative;
    width: 40px;
    height: 40px;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid red;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 1s ease;
}


.social{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: fit-content;
    position: absolute;
    left: 10px;
    top: calc(50% - 150px) ;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
}
.social img {
    height: 50px;
    width: 50px;
    display: block;
    margin: 10px;
    filter: invert();
    cursor: pointer;
    transition: all 1s ease;
}

.social img:hover , .media img:hover {
    transform: scale(.85) ;
}


.media {
    display: flex;
    flex-direction: column;
    width: 70px;
    height: 70px;
    position: absolute;
    left: 10px;
    top: calc(50% + 100px) ;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    transition: all 1s;

}
.media img {
    position: absolute;
    height: calc(100% - 20px) ;
    width: calc(100%- 20px) ;
    filter: invert();
    cursor: pointer;
    transition: all 1s ease;
    margin: 10px;
}
/* .media img .play {

}  */
.media .pause {
    display: none;
} 



/* loading screen ==> */
.loading {
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: black;
    z-index: 100;
    justify-content: center;
    align-items: center;
    transition: all 3s ease-in-out;
}

.fadeOut {
    opacity: 0%;
}

.show{
    display: none;
}

.loading p {
    display: block ;
    color: white;
    font-size: larger;
    font-weight: bold;
    letter-spacing: 10px;
    transform : scale(1.5,2.5) ;
    margin-top: 10px;   
}

.loading img {
    height: 200px;
    width: 200px;
    margin: 20px;
    border-radius: 50%;
}


@media (max-width : 991px) {
    .container{
        height: 900px;
        width: 900px;
        margin-top: 10%;
    }

    .media {
        top: 0;
        left: 0;
    }

    .social {
        top: 0;
        left: 10%;
        flex-direction: row;

    }

    .social , .media {
        transform: scale(1.2);
    } 

    .how {
        top: 0 ;
        right: 0;    
    }
    .howTo{
        top: 10% ;
        right: 0;    
    }
    
}