﻿.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;
    padding-inline-start: 50px;
}

.square {
    cursor: pointer;
    font-family: 'AlmaraiRegular';
    width: calc(100%-100px);
    height: 60px;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    border: 1px solid #e2e2e2;
    position: relative;
}

.diamondSvg {
    z-index: 9;
    position: absolute;
    height: 70px;
    width: 70px;
    display: block;
    float: right;
    right:-50px;
    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%) rotateZ(45deg);
    -webkit-transform: translateY(-50%) rotateZ(45deg);
    -moz-transform: translateY(-50%) rotateZ(45deg);
    -ms-transform: translateY(-50%) rotateZ(45deg);
    -o-transform: translateY(-50%) rotateZ(45deg);
    border:3px solid  #fff;
}

.square.after_green1::after,
.Green-1{
    background-color:  #1E6E48 ;
}
.CardItem:hover .square.after_green1{
    border-color: #1E6E48;
}
.square.after_green2::after,
.Green-2{
    background-color:  #92AD6C ;
}
.CardItem:hover .square.after_green2{
    border-color: #92AD6C;
}
.square.after_gray1::after,
.Gray-1 {
    background-color:  #4F4C4C ;
}
.CardItem:hover .square.after_gray1{
    border-color: #4F4C4C;
}

.square.after_brown1::after,
.Brown-1{
    background-color:  #A27A41 ;
}
.CardItem:hover .square.after_brown1{
    border-color: #A27A41;
}
.square.after_brown2::after,
.Brown-2 {
    background-color: #C5AA84;
}
.CardItem:hover .square.after_brown2{
    border-color: #C5AA84;
}
.square.after_gold1::after,
.Gold-1 {
    background-color: #DDC05F;
}
.CardItem:hover .square.after_gold1{
    border-color: #DDC05F;
}
.diamond-icon {
    color: #fff;
    text-align: center;
    transition: all 1s ease;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: center;
    transform: rotateZ(-45deg);
}

.diamond-icon svg, .diamond-icon img{
    fill:#fff;
    width: 50%;
    /* margin-top: -8%; */
}


.square::after{
    content:'';
    position: absolute;
    right: 0;
    width: 0%;
    height: 100%;
    z-index: 8;
    top: 0;
    transition: all 1s ease;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
}

.CardItem:hover>.square::after{
    width: 100%;
    transition: all 1s ease;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
}


.diamondtext {
    padding-right: 50px;
    color: #4F4C4C;
    top: 50%;
    width: 50%;
    text-align: center;
    z-index: 1;
    position: absolute;
    font-size: 16px;
    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%);
    top: 50%;
  width: 100%;
  z-index: 9;
}

.CardItem:hover>.square>.diamondtext{
    color: #fff;
    transition: all 1s ease;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
}


.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;
    /* z-index: 99; */
}

.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;
    }
    .details {
        width: 96vw;
        height: 95vh;
        top: 3vh;
    }
    .showDetails{
        left: calc(50vw - 48vw) !important;
    }
}

