html,body{
    width: 100%;
    height: 100%;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: "IRANsans";
    src:local("IRANsans"),
    url("../fonts/IRANSans-web.eot") format('eot'),
    url("../fonts/IRANSans-web.ttf") format('ttf'),
    url("../fonts/IRANSans-web.woff") format('woff'),
    url("../fonts/IRANSans-web.woff2") format('woff2');
    font-weight: normal;
}
@font-face {
    font-family: "Dana";
    src:local("Dana"),
    url("../fonts/dana-regular.eot") format('eot'),
    url("../fonts/dana-regular.woff") format('woff'),
    url("../fonts/dana-regular.woff2") format('woff2');
    font-weight: normal;
}

:root {
    --fontFamily1:"IRANsans";
    --fontFamily2:"Dana";
    --themeColor: #009973;
    --backgroundColor: #F5F7F7;
    --btnBackground: #ffffff;

}
#root{
    height: 100%;
}
body{
    font-family: var(--fontFamily1),var(--fontFamily2),"Arial"!important;
    direction: rtl!important;
    background-color: var(--backgroundColor);
}
a,
a:hover,
a:active,
a:link{
    color: #fff;
    list-style-type: none;
    text-decoration: none;
    cursor: pointer;
}
.fa{
    vertical-align: middle;
}
.bi{
    vertical-align: -webkit-baseline-middle;
}
.fa-search:before,
.fa-angle-up:before,
.fa-angle-down:before {
  color: var(--themeColor);
}
/* bootstrap replace css */
.card-img-overlay{
    top: auto;
}



.loading {
    width: 100%;
    height: 100%;
    z-index: 999;
    position: fixed;
    margin: auto;
    top: 0;
    background: #fff;
}
.loading > div {
    height: fit-content!important;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%,-50%);
    z-index: 1;
}
.loading .loading-caption{
    width: 100%;
    height: 100%!important;
    z-index: 0;
}
.loading .loading-caption p{
    position: absolute;
    bottom: 5%;
    left: 50%;
    font-size: large;
    font-weight: bold;
    
    transform: translate(-50%,-5%);
}

.page_not_found{
    width: 100%;
    height: 100%;
    position: relative;
    margin: auto;
    text-align: center;
}
.page_not_found-caption p,
.page_not_found-caption h1{
    margin: 20px;
}
.page_not_found-body img{
    width: 400px;
}
.home-page .webcam-wrapper {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    background-color: white;
    z-index: -1;
    margin: auto;
    display: none;
    text-align: center;
}
.home-page .webcam-wrapper-show{
    z-index: 1;
    display: block;
}
.home-page .webcam-wrapper video{
    width: 100%;
    height: 80%;
    display: block;
    margin: auto;
}
.home-page .webcam-wrapper button{
    margin: auto;
}
/*=============== Home Style ===============*/

/*-------------- start HomePage Style --------------*/
.fiqureCaption{
    color: var(--themeColor);
    font-size: x-large;
    font-weight: bolder;
}
.home-header{
    width: 76%;
    background-color: var(--themeColor);
    border-radius: 12px;
    padding: 1%;
}
.home-header-title{
    width: 100%;
}
.home-header-title-img{
    display: none;
}
.home-header-title-text{
    display: flex;
    justify-content: space-between;
    font-size: small;
}

.home-page-powered {
    background-color: #E6EDEC;
    padding: 10px;
    font-size: small;
}
.home-page-powered a{
    color: #009973!important;
}
.home-page-powered i{
    color: #009973!important;
}
/*-------------- end HomePage Style --------------*/

/*-------------- start UploadImage Style --------------*/
.Home-upload{
    width: 80%;
    border-radius: 5px;
    margin-top: 3%;
}
.Home-upload div{
    display: inline-table;
    margin: 1% 0;
    position: relative;
}
.Home-upload div img {
    width: 90%;
    display: inline-block;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    
}
.upload-mobile{
    display: none;
}
.caption {
    background-color: #8080807a;
    position: absolute;
    bottom: 0;
    left: 5%;
    color: #ffffff;
    width: 90%;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    font-size: larger;
    text-align: right;
}
/*-------------- end UploadImage Style --------------*/

/*=============== Home Style ===============*/

/*=============== Mobile Style ===============*/

/*-------------- start Mobile Style --------------*/
.mobile-container{
    display: none;
}
/*-------------- end Mobile Style --------------*/
/*-------------- start Header Style --------------*/
.header div{
    justify-content: center;
}
.product-download,
.product-buy,
.product-tools{
    padding: 16px 4px 0 4px;
}
.product-download button,
.product-buy button,
.product-tools div{
    border-radius: 12px;
}
.product-download{
    width: 25%;
}
.product-download img{
    width: 22px;
}
.product-buy{
    width: 56%;
}
.product-tools{
    width: 13%;
}

.togglebar-m-header::after {
    display: none;
}
/*-------------- end Header Style --------------*/

/*-------------- start footer Style --------------*/
/* ----------footer------------ */
.footer-container{
    position: fixed;
    width: 100%;
    background-color: #ffffff;
    height: 55px;
    bottom: 0;
    transition: 0.4s ease-in-out;
}
.footer-container-fadein{
    height: 213px;
}
/* ----------header------------ */
.footer-header{
    border-bottom: 1px solid #fff;
    display: flex;
    /* align-items: flex-end; */
    padding-top: 2%;
}
.footer-choice-product,
.footer-tools{
    width: 30%;
    text-align: right;
    margin: 0 2%;
}
.footer-tools{
    margin-left: 15%;
}
.footer-choice-product p,
.footer-tools p{
    display: inline-block;
    margin-top: 6px;
    position: relative;
    color: #86BFB1!important;
    font-size: small;
}
.footer-search,
.footer-close{
    width: 10%;
}
.footer-search button{
    height: 100%;
}
.footer-underline {
    display: none;
    width: 50px;
    height: 3px;
    background-color: var(--themeColor);
    position: absolute;
    bottom: -4px;
    right: 0px;
    animation: footer_underline_animate 0.4s;
    animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
}

.footer-choice-product p:hover,
.footer-tools p:hover{
    color: var(--themeColor)!important;
}
@keyframes footer_underline_animate {
    0% {width: 0;}
    50%  {width: 25px;}
    100% {width: 50px;}
  }
  .active-underline{
    display: inline-block
  }



/* -----------textute---------------- */
.footer-body{
    overflow: hidden;
    direction: ltr;
}
.menu-container{
    display: grid;
    grid-template-columns: 62px auto;
    height: 155px;
}
.texture-wrapper{
    overflow-x: scroll;
    overflow-y: hidden;
    padding: 4px 0 0 0;
}
.texture-element-m{
    position: relative;
    width: 50%;
    text-align: center;
    display: inline-table;
    cursor: pointer;
    margin: 0 5px;
    height: 100%;
    justify-content: center;
}
.img-texture-m{
    width: 125px;
    height: 120px;
    border-radius: 10px;
    object-fit: fill;
    
}
.texture-caption-m{
    font-size: xx-small;
}

/* ----------tools--------------- */
.tools-m-container{
    display: flex;
    direction: rtl;
}

/* ---------sidebar-------------- */
.sidebar{
    position: fixed;
    top: 0;
    right: 0;
    background-color: var(--backgroundColor);
    z-index: 999;
    height: 100%;
    direction: rtl;
    width: 100%;
}

/*-------------- end footer Style --------------*/

/*-------------- start sidebar Style --------------*/
/* Header Sidebar */
.header-sidebar{
    position: relative;
    height: 15%;
    background-color: #ffffff;
    text-align: right;
}
.header-wrapper{
    width: 33%;
    align-self: baseline;
}
.header-wrapper a,
.header-wrapper button{
    font-size: small;
}
.header-wrapper-logo img{
    width: 20%;
    padding: 7px 0;
}
.header-title,
.header-search{
    height: 50%;
}
.sidebar .header-sidebar .header-search form,
.sidebar .header-sidebar .header-search form div,
.sidebar .header-sidebar .header-search form div input{
    height: 100%;
}
.header-title{
    width: 100%;
    padding: 17px;
}
.header-title p{
    font-weight: bold;
    color: var(--themeColor);
}
.header-title a,
.header-title span{
    color: var(--themeColor)!important;
    font-size: large;
}
/* Body Sidebar */
.body-sidebar{
    height: 75%;
    display: inline-block;
}
.accordion-item{
    margin: 5% 3%;
}
.accordion-body{
    background-color: var(--backgroundColor);
}
/* Footer Sidebar*/
.footer-sidebar{
    height: 10%;
    background-color: #ffffff;
}
.footer-sidebar-btn{
    position: relative;
    width: 100%;
    height: 100%;
}
.f-action,
.f-del{
    border-radius: 7px;
    margin: 8px 5px;
}
.f-action{
    background-color: var(--themeColor);
}
.deactive-sidebar{
    display: none;
    transition: all 0.4s ease-in-out;
}
/*texture Sidebar */
.texture-container-sidebar{
    height: 75%;
    overflow-y: scroll;
    overflow-x: hidden;
    direction: ltr;
}
.texture-element-sidebar{
    position: relative;
    width: 50%;
    text-align: center;
    display: inline-table;
    cursor: pointer;
}
.texture-element-sidebar .check-texture{
    right: 20%;
}
.img-texture-sidebar{
    width: 135px;
    height: 120px;
    border-radius: 10px;
    object-fit: fill;
}
.texture-caption-sidebar{
    font-size: small;
}
/*-------------- end sidebar Style --------------*/

/*=============== Mobile Style ===============*/


/*=============== WEB Style ===============*/

/*-------------- start web Style --------------*/
.web-container{
    background-color: var(--backgroundColor);
    height: 100vh;
    position: relative;
}
/*-------------- end web Style --------------*/

/*-------------- start SideLeft Style --------------*/
.web-container .web-side-left{
    position: relative;
    height: 100vh;
}
.web-container .web-side-left .side-left-header{
    position: relative;
    height: 13vh;
}
.web-container .web-side-left .side-left-body{
    position: relative;
    height: 87vh;
}
.web-header{
    background-color: var(--backgroundColor);
    margin-bottom: 10px;
    justify-content: flex-start;

}
.web-header button{
    background-color: var(--btnBackground);
}

.web-header span{
    cursor: pointer;
    background-color: var(--btnBackground);

}
.web-header span img{
    padding: 7px;
}
/* picture */
/* .compare-image-wrapper{
    width: 80%;
    max-height: 510px;
    margin: auto;
} */
.compare-image-wrapper{
    width: 80%;
    max-height: 510px;
    margin: auto;
}
.react-transform-wrapper{
    width: 100%!important;
    height: 100%!important;
    margin: auto!important;
}
.react-transform-component{
    position: relative!important;
    width: 100%!important;
    height: 100%!important;
}
.react-transform-component img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/*-------------- end SideLeft Style --------------*/

/*-------------- Start SideRight Style --------------*/
/* sideright */
.web-side-right{
    height: 98vh;
    display: flex;
}
.search-container{
    position: relative;
    width: 100%;
    height: 100%;
}
.search input{
    font-size: small;
}
.filter-container button{
    font-size: small;
}
.texture{
    height: 67vh;
}
.texture .has-menu{
    display: grid;
    grid-auto-rows: 10% auto;
    height: 100%;
}
.texture .has-menu .back-menu{
    height: max-content;
}


.sc-rt-container{
    display: grid;
    grid-template-columns: 30% 70%;
}
.scale-wrapper{
    display: grid;
    grid-template-columns: 50% 50%;
    grid-column-gap: 3px;
    width: 100%;
    padding: 0 3px;
}
.rotate-wrapper{
    width: 100%;
    padding: 0 3px;
}
.rotate-wrapper button{
    line-height: 27px;
    width: 100%;
    font-size: small;
}
/* filter */
.filter-container button{
    width: 31%;
    padding: 5px!important;
    margin: 5px!important;
}
.btn-filter-icon{
    margin-left: 5px!important;
}
.modal-container{
    width: 100%!important;
    margin: auto!important;
}
.modal-footer button {
    background-color: var(--themeColor);
    color: #ffffff;
    font-size: small;
}
/* texture */
.sidebar-right-container{
    display: grid;
    grid-template-rows: max-content auto max-content;
}
.sidebar-right-container-menu{
    display: grid;
    grid-template-rows: max-content max-content auto max-content;
}


.texture-container{
    display: grid;
    grid-template-columns: 50% 50%;
    grid-auto-rows: max-content!important;
    overflow-y: scroll;
    overflow-x: hidden;
    direction: ltr;
}
.texture-element{
    position: relative;
    width: 100%;
    text-align: center;
    cursor: pointer;
}
.img-texture{
    width: 135px;
    height: 120px;
    border-radius: 10px;
    object-fit: fill;
}
.texture-caption{
    font-size: x-small;
}
.check-texture{
    position: absolute;
    top: 4%;
    right: 13%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--themeColor);
}
.check-texture i{
    color: #ffffff;
    font-size: small;
    vertical-align: middle;
    line-height: 21px;
}

.texture-container::-webkit-scrollbar {
    width: 5px;
}
.texture-container::-webkit-scrollbar-thumb {
background: #86BFB1; 
border-radius: 3px;
}
.texture-container::-webkit-scrollbar-thumb:hover {
background: var(--themeColor); 
}
.back-menu button{
    font-size: small;
}
/*-------------- end SideRight Style --------------*/
.toggle-web-sidebar{
    display: none;
}



/*=============== WEB Style ===============*/







/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    /* body{
        overflow: hidden!important;
    } */
    /* .loading > div{
        transform: translate(-52%, 38%);
    } */
/*-------------- HomePage Style --------------*/
    .home-page-powered{
        background-color: #E6EDEC;
        padding: 10px;
    }
    .home-page-powered a{
        color: #009973!important;
    }
    .home-page-powered i{
        color: #009973!important;
    }

    .fiqureCaption{
        font-size: large;
    }
    .home-header{
        width: 90%;
    }
    .home-header-title{
        display: flex;
    }
    .home-header-title-img{
        display: block;
        padding: 5%;
    }
    .home-header-title-img img{
        width: 57px;
    }
    .home-header-title-text{
        display: block;
        text-align: justify;
        padding: 5% 0 5% 5%;
        line-height: 25px;
        font-size: small;
    }

    /*-------------- UploadImage Style --------------*/
    .Home-upload{
        width: 100%;
    }
    .Home-upload div {
        height: auto;
        display: block;
        cursor: pointer;
        width: 100% !important;
    }
    .upload-mobile{
        display: block;
        background-color: var(--themeColor);
        height: 50px;
        position: fixed;
        z-index: 999;
        bottom: 25px;
        right: 50%;
        border-radius: 25px;
        width: max-content;
        transform:translate(50%, 0);
        font-size: small;
    }
    .upload-mobile label{
        padding: 0 20px;
    }
    .upload-descktop{
        display: none!important;
    }
    .caption{
        left: 5%;
        bottom: 0;
        padding: 10px;
    }
/*-------------- Mobile Style --------------*/

    .mobile-container{
        position: relative;
        display: block;
        background-color: var(--backgroundColor);
        height: 100%;
        overflow-y: hidden;
    }
    .mobile-container .header{
        position: relative;
        height: 10%;
    }
    .mobile-container .body{
        position: relative;
        height: 83%;
    }
    .mobile-container .body .transform-component-module_wrapper__1_Fgj{
        position: relative;
        left: 0;
        top: 50%;
        transform: translate(0,-50%);
        margin: auto;
        height: 100%!important;
    }
    .mobile-container .footer{
        position: relative;
        height: 7%;
    }
/*-------------- Mobile Header Style --------------*/
    .product-download{
        width: 31%;
    }
    .product-buy{
        width: 49%;
    }
    .product-tools{
        width: 15%;
    }

    /*-------------- Mobile Footer Style --------------*/
    .check-texture{
        right: 4%;
    }
    .footer-choice-product, .footer-tools {
        width: 38%;
        margin: 0 0.9%;
        padding-right: 10px;
    }
    .feature-container-mob{
        display: grid;
        grid-template-columns: auto;
    }
    .tools-feature{
        overflow-y: auto;
        height: 160px;
    }
    .back-menu button{
        height: 100%;
        background-color: var(--themeColor);
    }



    /*--------------Responsive WEB --------------*/
    .web-side-right {
        display: none;
    }
    .toggle-web-sidebar{
        display: block;
        background-color: var(--themeColor);
    }
    .web-side-left{
        width: 100%!important;
    }
    .web-header div:nth-child(2){
        padding-left: 0!important;
        text-align: center!important;
    }
    .web-header div:nth-child(2) span{
        margin: 0!important;
    }
    .web-header div:nth-child(1){
        text-align: center;
    }
    .web-header div:nth-child(1) label {
        margin-bottom: 10px;
    }
    .offcanvas-body{
        padding: 0;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {}

/* Extra small devices (smaller phone, 330px and down) */
@media only screen and (max-width: 330px) {
    .home-page .upload-mobile{
        font-size: 70%;
        height: 47px;
    }
    .footer-container-fadein{
        height: 200px;
    }
    .footer-choice-product, .footer-tools {
        padding-right: 2px;
    }
    .footer-choice-product p, .footer-tools p {
        font-size: small;
    }
    .css-nkyeax{
        height: 450px;
    }
    .react-transform-wrapper.transform-component-module_wrapper__1_Fgj {
        height: 360px;
        margin-top: -15%;
    }
    .product-download, .product-buy, .product-tools {
        padding: 6px 4px 0 4px;
    }
    .product-download button,
    .product-buy button {
        font-size: small;
    }
    .product-download {
        width: 32%;
    }
    .home-header-title-text{
        font-size: 60%;
    }
    .caption {
        left: 15.5px;
        bottom: 5.5%;
        padding: 10px;
        font-size: small;
    }
    .sidebar .header-sidebar .header-title{
        padding: 10px;
    }
    .sidebar .header-sidebar .header-title p{
        font-size: x-small;
    }
    .sidebar .header-sidebar .header-search form div input{
        font-size: small;
    }
    .sidebar .body-sidebar .accordion .accordion-item .accordion-header .accordion-button {
        padding: 0.5rem 1.25rem;
        font-size: small;
    }
    .sidebar .body-sidebar .accordion .accordion-item .accordion-header .accordion-button::after{
        background-size: 1rem;
    }
    .sidebar .body-sidebar .accordion .accordion-item .accordion-body{
        font-size: small;
    }
    .sidebar .footer-sidebar .footer-sidebar-btn button{
        font-size: small;
    }

}
/* large devices (large laptops and desktops, 1370px 14inch and up) */
@media only screen and (min-width: 1370px) {
    .img-texture{
        width: 85%;
        height: 85%
    }
    .check-texture i{
        font-size: medium;
        vertical-align: text-top;
    }
}

/* Extra large devices (UltraWidth desktops, 1600px and up) */
@media only screen and (min-width: 1600px) {
    .home-page .home-header,
    .home-page .Home-upload{
        width: 60%;
    }
    .home-page .Home-upload .form-group .upload-descktop label{
        width: 100%;
    }
    .web-side-right .texture .texture-container .texture-element article img{
        width: 250px;
        height: 230px;
    }

}
