﻿.midrow {
    background-repeat: no-repeat;
    background-size: auto;
    height: 300px;
}

.miditem1 {
    height: 150px;
    margin-top: 25px!important;
    background: rgba(255, 255, 255, 0.6);
}
 
.CardItem{
    width: 100%;
    height: auto;
}

.square {
    cursor: pointer;
    font-family: 'AlmaraiRegular';
    width: 250px;
    height: 250px;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    box-shadow: 0px 0px 3px gray;
    position: relative;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.diamondSvg {
    z-index: 0;
    position: absolute;
    height: 66.66%;
    width: 66.66%;
    display: block;
    mask-image:  url('data:image/svg+xml,<svg width="142" height="142" viewBox="0 0 142 142" xmlns="http://www.w3.org/2000/svg"><rect y="71" width="100" height="100" transform="rotate(-45 0 71)" /></svg>');
    -webkit-mask-image: url('data:image/svg+xml,<svg width="142" height="142" viewBox="0 0 142 142" xmlns="http://www.w3.org/2000/svg"><rect y="71" width="100" height="100" transform="rotate(-45 0 71)" /></svg>');
    mask-size: 100%;
    -webkit-mask-size: 100%;
    float: right;
    right: calc(-33% - 1px);
    top: 50%;
    transition: all 1s ease;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
}

.Green-1{
    background-color:  #1E6E48 ;
}


.Green-2{
    background-color:  #92AD6C ;
}


.Gray-1 {
    background-color:  #4F4C4C ;
}


.Brown-1{
    background-color:  #A27A41 ;
}

.Brown-2 {
    background-color: #C5AA84;
}

.Gold-1 {
    background-color: #DDC05F;
}

.diamond-icon {
    color: #fff;
    text-align: center;
    margin-top: 40%;
    transition: all 1s ease;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
}

.diamond-icon svg, .diamond-icon img{
    fill:#fff;
    width: 35%;
    margin-top: -8%; 
}

.CardItem:hover>.square>.diamondSvg>.diamond-icon{
    margin-top: 0%;
    margin-left: -100%;
    opacity: 0;
}

.CardItem:hover>.square>.diamondSvg {
    background-color: #928F8F;
    height: 100% !important;
    width: 100% !important;
    top: 0px !important;
    right: 0;
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
}

.diamondtext {
    color: #4F4C4C;
    top: 50%;
    width: 50%;
    text-align: center;
    z-index: 1;
    position: absolute;
    font-size: 18px;
    left: 5px;
    transition: all 1s ease;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
}

.CardItem:hover>.square>.diamondtext{
    margin-left: 25%;
    color: #fff;
}

.details{
    font-family: 'AlmaraiRegular';
    position: fixed;
    width: 50vw;
    z-index: 999;
    left: -100vw;
    top: 25vh;
    height: 400px;
    background: #fff;
    box-shadow: 0px 0px 3px #4F4C4C;
    transition: all ease 1s;
    -webkit-transition: all ease 1s;
    -moz-transition: all ease 1s;
    -ms-transition: all ease 1s;
    -o-transition: all ease 1s;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.details ul li{
    list-style: circle;
}

.details .body {
    width: 100%;
    height: 350px;
    margin-top: 50px;
    overflow: scroll;
    overflow-x: hidden;
    overflow-y: auto;
}

.details h3{
    color: #1E6E48;
    font-size: 20px;
    margin-right: -20px;
    margin-bottom: 20px;
}

.showDetails{
    left: 25vw !important;
}

.details .detailsText{
    text-align: justify;
    margin: 0px 30px 0 30px;
    direction: rtl;
    line-height: 1.9;
}
.close {
    font-family: 'FontAwesome';
    color: #fff;
}

.details .header div {
    cursor: pointer;
    height: 100%;
    color: #fff;
}

.details .header {
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
    flex-direction: row;
    justify-content: space-between;
    direction: rtl;
    width: 100%;
    height: 50px;
    padding: 10px 20px;
    position: absolute;
    top: -10px;
    border-radius: 8px 8px 0px 0px;
    -webkit-border-radius: 8px 8px 0px 0px;
    -moz-border-radius: 8px 8px 0px 0px;
    -ms-border-radius: 8px 8px 0px 0px;
    -o-border-radius: 8px 8px 0px 0px;
}

.details_over{
    content: '';
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index:-1;
    background-color: #4f4c4c9f;
    left: 0;
    opacity: 0;
    transition: all ease 2s;
    -webkit-transition: all ease 2s;
    -moz-transition: all ease 2s;
    -ms-transition: all ease 2s;
    -o-transition: all ease 2s;
}
.details_over.showDetails_over{
    transition: all ease 1s;
    -webkit-transition: all ease 1s;
    -moz-transition: all ease 1s;
    -ms-transition: all ease 1s;
    -o-transition: all ease 1s;
    z-index:998;
    opacity: 1;
}

@media only screen and (max-width:576px) {
    .diamondtext{
        font-size: 14px;
        padding-right: 40px;
    }
    .square {
        width: 200px;
        height: 200px;
        margin-left: 0;
    }
    .details {
        width: 96vw;
        height: 95vh;
        top: 3vh;
    }
    .showDetails{
        left: calc(50vw - 48vw) !important;
    }

}

