.dp-directory .uk-grid.uk-grid-small {
    margin-top: 0px !important;
}

body {
    direction: rtl;
    font-family: "IranSans";
}
.dp-directory {

    padding-bottom: 0px !important;
}
.p-15 {
    padding: 15px;
}
.mr-15 {
    margin-right: 15px;
}

.dp-directory img {
    /*width: 100%;*/
}
.dp-margin-bottom{
    margin-bottom:10px !important;
}
.dp-groupContainer img {
    max-width: 100%;
    max-height: 100%;
}
.dp-groupContainer>div:first-child {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dp-groupContainer {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 10px !important;
    text-align: center;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

    .dp-groupContainer .dp-overly {
        position: absolute;
        background-color: rgba(34, 46, 49, 0.7);
        top: auto;
        z-index: 1;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height:18%;
        transition: all 0.3s ease-in;
    }

        .dp-groupContainer .dp-overly .dp-overly-text {
            color: #ffffff;
            text-align: right;
            margin: 5px;
            overflow: hidden;
        }

        .dp-groupContainer .dp-overly > hr {
            border: 1px solid #FEBC08;
            margin: 0px;
        }

.dp-overly-icons {
    display: flex;
    justify-content: space-around;
    position: relative;
}

    .dp-overly-icons .dp-icon-item {
        color: #ffffff;
        padding-top: 5px;
    }

.dp-groupContainer:hover .dp-overly {

    height:50%;
    max-height: 500px;
   
}


.dp-pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

    .dp-pagination .item {
        padding: 5px 9px;
        margin: 5px;
        font-size: 18px;
        cursor: pointer;
        color: #777;
    }

        .dp-pagination .item.active {
            box-shadow: 3px 6px 6px rgba(20, 146, 230, 0.2);
            color: #1492e6;
        }

        .dp-pagination .item.dp-goToPage {
            color: #1492e6;
            background-color: rgba(20, 146, 230, 0.2);
            line-height: normal;
            font-size: 25px;
        }

    .dp-pagination .dp-morePoint {
        line-height: 20px;
        font-size: 40px;
        color: #777;
    }

.dp-itemRoot {
    position: relative;
    margin-top: 20px;
    text-align: center;
    margin-bottom: 30px !important;
}

    .dp-itemRoot .dp-itemRoot-border {
        border: 1px solid #ccc;
    }

    table tr td .dp-itemRoot .dp-itemRootTitle{
        font-family:'IranSans';
    }
    .dp-itemRoot .dp-itemRootTitle {
        position: absolute;
        top: -10px;
        left:50%;
        font-size: 22px;
        background-color: #ffffff;
        padding: 0px 35px;
        text-align: center;
        transform: translateX(-50%);
    }

.dp-iconChangeListGrid {
    display: flex;
    justify-content: flex-end;
}

    .dp-iconChangeListGrid i {
        color: #CCC;
        cursor: pointer;
    }

.dp-topButtons .topBtn {
    padding: 4px 8px;
    cursor: pointer;
}

.dp-topButtons span.active {
    border: 1px solid #ccc;
    padding: 4px 8px;
    border-radius: 8px;
    background-color: #eee;
}
/*****************************************
****************** Items  *****************
*****************************************/

.dp-itemContainer {
    padding-bottom: 10px;
}

.backButtonContainer {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    margin-left: 15px;
}

.dp-backButton {
    text-decoration: none !important;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 6px;
    color: #aaa;
}

    .dp-backButton::after {
        content: '\f060';
        font-family: "Font Awesome 5 Pro";
    }

.dp-titleDirectory span {
    font-family: "IranSans";
}
/*****************************************
****************** List  *****************
*****************************************/
.list .dp-margin-bottom{
    margin-bottom:0px !important;
}
.list .dp-groupContainer {
    display: flex;
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    margin-bottom: 0 !important;
    padding: 10px;
}
    /* #group.list ~ .dp-groupContainer:first-child{
     border-bottom: 1px solid #000; 
} */
    .list .dp-groupContainer img {
      /* width: 20%; */
    }

    .list .dp-groupContainer .dp-overly {
        position: static;
        background-color: transparent;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        padding: 35px 15px;
    }

        .list .dp-groupContainer .dp-overly .dp-overly-icons {
            justify-content: space-between;
        }

            .list .dp-groupContainer .dp-overly .dp-overly-icons .dp-icon-item:first-child {
                margin-right: 40px;
            }

            .list .dp-groupContainer .dp-overly .dp-overly-icons .dp-icon-item:last-child {
                margin-left: 40px;
            }

            .list .dp-groupContainer .dp-overly .dp-overly-icons .dp-icon-item {
                color: #777;
            }

        .list .dp-groupContainer .dp-overly .dp-overly-text {
            color: #777;
            font-size: 18px;
        }


@media only screen and (max-width: 767px) {
    .dp-itemRoot {
        margin-bottom: 58px !important;
    }
}
