@font-face {
    font-family: font;
    src: url(../Vazir/Vazir-Bold-FD.ttf);
}
html,body{
width: 100%;
height: auto;
float: left;
margin: 0;
padding: 0;   
direction: rtl;
font-family: font;
}
.m-category-row{
    width: 91%;
    height: auto;
    float: left;
    margin: 1.5em 4.5%;
    display: flex;
    flex-wrap: wrap;
    transform: translateX(15em);
    opacity: 0;
}
.m-category-ele{
    width: 32.3%;
    height: 30vh;
    float: left;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5em 1%;
    margin:1% 0.5%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    box-shadow: 1px 0px 6px #808080b3;
    position: relative;
    z-index: 1;
}
.m-category-ele::before{
    content: "";
    width: 100%;
    height: 100%;
    float: left;
    position: absolute;
    z-index: -1;
    background-color: rgb(220 220 220 / 31%);
    top: 0;
    left: 0;
}
.m-category-des{
    width: 100%;
    height: auto;
    float: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(50px);
    transition: 0.4s;
}
.m-category-des h3{
color: white;
    font-size: 35px;
    margin-bottom: 25px;
    text-shadow: 0px 5px 10px #4c4c4c;
    text-align: center;
    -webkit-text-stroke: 1.4px #526bae;
}
.m-category-btn{
    text-decoration: none;
    color: #f8f9fa;
    background-color: rgb(62 61 147);
    border-radius: 100px;
    border: none;
    padding: 0.5em 3em;
    opacity: 0;
    transition: 0.2s;
}
.m-category-btn:hover{
    background-color: #AF4BDE;
    transition: 0.4s;
}
.m-category-1{
    background-image: url(image/1.jpg);
}
.m-category-2{
    background-image: url(image/2.jpg);
}
.m-category-3{
    background-image: url(image/3.jpg);
}
.m-category-4{
    background-image: url(image/4.jpg);
}
.m-category-5{
    background-image: url(image/5.jpg);
}
.m-category-ele:hover .m-category-des{
    transform: translateY(0px);
    transition: 0.4s;

}
.m-category-ele:hover .m-category-btn{
    opacity: 1;
    transition: 0.4s;

}
.m-category-sec{
    width: 75%;
    height: auto;
    float: left;
    display: flex;
    flex-direction: column;
    padding-left: 3em;
    box-sizing: border-box;
}
.m-category-box {
    width: 100%;
    height: auto;
    float: left;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
@media only screen and (max-width:1200px){
    .m-category-des{
        transform: translateY(0px);
    }
    .m-category-btn{
        opacity: 1;
    }
    .m-category-des h3 {
        font-size: 30px;
    }
}
@media only screen and (max-width:900px){
    .m-category-ele{
        height: 20vh;
    }
}
@media only screen and (max-width:600px){
    .m-category-ele {
        width: 31.3% !important;
        margin: 1%;
        height: 17vh;
    }
    .m-category-row{
        height: 36.5vh;
        overflow-y: auto;
        box-sizing: border-box;
        padding: 0 0.5em;
    }
    .m-category-des h3 {
        font-size: 20px;
    }
    .m-category-btn {
        font-size: 11px;
    }
}
@media only screen and (max-width:450px){
    .m-category-ele {
        width: 46% !important;
        margin: 2%;
        height: 15vh;
    }
    .m-category-des h3 {
        font-size: 20px;
    }
    .m-category-btn {
        font-size: 11px;
    }
    .m-category-row{
        height: auto;
    }
}