﻿/* =================================================================================== 
        Copyright (c) 2020 Hadar Ribak Studio - www.hadaribak.co.il - all rights reserved.
   =================================================================================== */

:root {
    --gray: #323b41;
    --lightGray: #575a5c;
    --veryLightGray: #e0e0e0;
    --white: #ffffff;
    --magenta: #ED008C;
}

html, body {
    background-color: var(--white);
    margin: 10px;
    font-family: Assistant, 'Open Sans', sans-serif;
}

form {
    max-width: 2000px;
    margin: 0 auto;
}

a {
    cursor: pointer;
}

nav {
    direction: rtl;
    font-size: 1.2em;
}

nav ul {
    padding: 0;
    margin-top: -20px;
}

nav ul, nav div.Menu4MidSmall {
    background: var(--gray);
}

nav ul li, nav div.Menu4MidSmall {
    padding: 10px;
    color: var(--white);
}

nav ul li {
    display: inline-block;
}

nav ul li.whatsapp {
    display: none;
}

nav div.Menu4MidSmall {
    display: none;
}

nav ul li + li {
    border-right: 2px solid var(--white)
}

nav ul li:nth-last-of-type(2) {
    border-right: 0;
}

nav ul li.contact {
    float: left;
    font-size: 1.3em;
}

nav ul li a {
    color: var(--white);
    display: flex;
    align-items: center;
    text-decoration: none;
}

nav ul li a:hover {
    opacity: 0.6;
}

nav ul li.contact a:hover {
    opacity: 1;
}

nav ul li a img {
    width: 25px;
}

nav ul li a span {
    margin-right: 10px;
}

nav ul li.contact a span {
    display: none;
    font-size: 0.77em;
    font-family: 'Roboto', sans-serif;
}

nav ul li.contact a:hover span {
    display: inline;
}

header {
    text-align: center;
    font-size: 2em;
    min-height: 60px;
    /*padding-bottom: 15px;*/
}

header input {
    direction: rtl;
    padding: 5px;
    font-family: FontAwesome, Assistant, 'Open Sans', sans-serif;
    font-size: 0.8em;
    width: 323px;
}

header a img {
    width: 333px;
    float: left;
}

header div.search {
    display: inline-block;
    float: right;
}

.ui-autocomplete {
    direction: rtl;
}

.mainSection {
    flex: 1;
}

.aboveLine {
    direction: rtl;
    color: var(--gray);
    /*margin-bottom: 15px;*/
    font-size: 1.1em;
    display: flex;
    flex-wrap: wrap;
    clear: both;
}

.aboveLine .iconImg {
    width: 29px;
}

.aboveLine .iconImg img {
    height: 30px;
    margin-top: 3px;
}

.aboveLine .title {
    flex: 0 0 220px;
    margin-right: 10px;
}

.aboveLine .title b {
    color: var(--magenta);
}

.aboveLine .freeText {
    flex: 1;
    margin-right: 10px;
    text-align: justify;
}

div.title span.more, desc span.less {
    display: none;
}

.aboveLine h1 {
    line-height: 1;
    padding-bottom: 10px;
    margin: 0;
}

.aboveLine ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.aboveLine ul li {
    display: inline-block;
    background-color: var(--veryLightGray);
    padding: 5px 15px;
    border-radius: 12px 0;
    margin: 5px;
}

.aboveLine ul li a {
    text-decoration: none;
    color: inherit;
}

.aboveLine ul li:hover, .aboveLine ul li.active {
    background-color: var(--lightGray);
    border-radius: 0 12px;
    color: var(--white);
}

.container {
    height: 100%;
    display: flex;
    flex-direction: row-reverse;
    clear: both;
    border-top: 4px solid var(--gray);
}

footer {
    background-color: var(--veryLightGray);
    margin-top: 10px;
    direction: rtl;
    padding: 15px;
}

footer ul {
    list-style: none;
    -webkit-column-count: 6; /* Chrome, Safari, Opera */
    -moz-column-count: 6; /* Firefox */
    column-count: 6;
    padding: 0;
    margin: 0;
}

footer ul li {
    line-height: 2;
}

footer ul a {
    color: var(--gray);
}

footer ul a:hover {
    color: var(--lightGray);
}

.copyright {
    direction: rtl;
    padding: 10px 10px 0 10px;
    font-weight: bold;
}

.detailed {
    background-color: var(--gray);
    width: 630px;
    max-width: 50%;
    margin-left: 10px;
    color: var(--white);
    direction: rtl;
    display: none;
    text-align: justify;
}

.detailed a.close {
    line-height: 0;
    font-size: 2em;
    margin: 10px;
    background-color: #000000;
    padding: 5px;
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.5;
}

.detailed a.close:hover {
    font-size: 2.2em;
    padding: 3px;
}

.detailed div.detailsContainer {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    padding: 20px;
    overflow-y: auto;
    height: 95vh;
}

.bigImg {
    text-align: center;
    line-height: 0;
}

.bigImg img {
    width: 100%;
    max-width: 600px;
}

.bigImg img.vertical {
    max-width: 66%;
}

.bigImg img.client {
    max-width: 200px;
}

.feedback {
    font-style: italic;
    padding: 2em;
    background-color: rgb(0,0,0,0.3);
}

.feedback > div {
    text-align: left;
}

#workPH a, #workPH + a {
    text-decoration: underline;
    color: var(--white);
}

#workPH a:hover, #workPH + a:hover {
    opacity: 0.6;
}

#workPH h1 a i {
    padding-left: 6px;
}

.imgContainer {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    /*grid-template-rows: auto-fit 50px repeat(120px);*/
    grid-auto-rows: 140px;
    grid-auto-flow: dense;
    flex: 1;
    direction: rtl;
}

div.containerHeader {
    direction: rtl;
    margin-bottom: 15px;
    font-size: 1.1em;
    /*line-height: 1em;*/
}

.mainSection h2, div.containerHeader h2, div.containerHeader h3 {
    margin: 5px 0;
    display: flex;
    color: var(--gray);
}

div.containerHeader h2 img {
    margin: auto 0 auto 10px;
}

.imgContainer > a {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: url(../Images/Clients/hadar_logo_200x150_NEW.jpg);
    background-repeat: repeat;
    background-size: 100%;
    border: 1px solid #f8f8f8;
}

.imgContainer > a.selected {
    border: solid 2px var(--gray);
}

.detailsContainer .imgContainer > a.selected {
    border-color: var(--lightGray);
}

.imgContainer > a > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a.horizontal {
    grid-column: span 2;
    background-size: 50% !important;
}

a.vertical {
    grid-row: span 2;
}

.container > .imgContainer a.regular:nth-of-type(5n) {
    grid-column: span 2;
    grid-row: span 2;
}

.detailsContainer .imgContainer a:nth-child(n+25) {
    display: none;
}

.show > .imgContainer > a {
    display: flex !important;
}

a#btnShowHide {
    font-size: 1.5em;
    display: block;
    text-align: center;
    margin: 1em 35%;
}

    a#btnShowHide:hover {
        opacity: 0.6;
    }

.content-overlay {
    background: rgba(0,0,0,0.7);
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    -webkit-transition: all 0.4s ease-in-out 0s;
    -moz-transition: all 0.4s ease-in-out 0s;
    transition: all 0.4s ease-in-out 0s;
}

a:hover .content-overlay {
    opacity: 0.8;
}

.content-details {
    position: absolute;
    text-align: center;
    padding-left: 1em;
    padding-right: 1em;
    width: 100%;
    top: 50%;
    left: 50%;
    opacity: 0;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: all 0.3s ease-in-out 0s;
    -moz-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

a:hover .content-details {
    top: 50%;
    left: 50%;
    opacity: 1;
}

.content-details h3 {
    color: var(--white) !important;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 0.5em;
    font-size: 1em;
    padding: 10px;
    direction: rtl;
}

.fadeIn-top {
    top: 20%;
}

/********** Medium screens (less than 1280px) ******/
@media (max-width: 1280px) {
    nav div.Menu4MidSmall {
        display: inline-block;
        float: right;
    }

    nav div.Menu4MidSmall i {
        display: none;
    }

    nav ul li a span {
        display: none;
    }

    nav ul li a:hover span {
        display: inline;
    }

    .detailed {
        font-size: 1.1em;
    }

    .detailed h1, .detailed h2 {
        font-size: 1.2em;
    }

    footer ul {
        -webkit-column-count: 4; /* Chrome, Safari, Opera */
        -moz-column-count: 4; /* Firefox */
        column-count: 4;
    }
}
/********** not Small screens (bigger than 800px) ******/
@media (min-width: 801px) {
    nav ul {
        margin-bottom: 5px;
    }
}

/********** Small screens (less than 800px) ******/
@media (max-width: 800px) {
    header div.search {
        float: none;
    }

    header a.hadaribakLogo {
        display: none;
    }

    header div.search {
        display: block;
    }

    nav {
        margin-bottom: 15px;
    }

    nav ul {
        clear: both;
        margin-top: 0;
        display: none;
    }

    nav ul.toggle {
        display: block;
    }

    nav ul li {
        display: block;
        border-bottom: 2px solid var(--gray);
        border-right: 0 !important;
        background-color: var(--lightGray);
    }

    nav div.Menu4MidSmall {
        display: block;
        background-color: var(--gray);
        cursor: pointer;
        float: none;
        padding-right: 15px;
        background-image: url(../Images/General/logo-white-45.png);
        background-position-x: left;
        background-repeat: no-repeat;
    }

    nav div.Menu4MidSmall i {
        font-size: 1.2em;
        display: inline;
    }

    nav div.Menu4MidSmall span {
        display: none;
    }

    nav ul li.contact {
        float: none;
        direction: ltr;
    }

    nav ul li.whatsapp {
        display: block;
    }

    nav ul li.contact a span {
        display: inline;
    }

    nav ul li:hover {
        background-color: var(--gray);
        opacity: 0.6;
    }

    nav ul li a:hover {
        opacity: 1;
    }

    nav ul li a span {
        display: inline;
    }

    .imgContainer {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        grid-auto-rows: 75px;
    }

    .aboveLine .title {
        flex: 1;
    }

    .aboveLine .freeText {
        flex: 1 1 100%;
        margin-right: 39px;
    }

    div.title span.more, .aboveLine .freeText desc span.less {
        font-size: 0.7em;
        font-style: italic;
        cursor: pointer;
    }

    div.title span.more {
        display: block;
    }

    .aboveLine .freeText desc span.less {
        display: inline;
    }

    .aboveLine .freeText desc {
        display: none;
    }

    .content-details h3 {
        font-size: 0.8em;
    }

    footer ul {
        -webkit-column-count: 3; /* Chrome, Safari, Opera */
        -moz-column-count: 3; /* Firefox */
        column-count: 3;
    }
}

/********** X-Small screens (less than 500px) ******/
@media (max-width: 500px) {

    .detailed {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .hide {
        display: none;
    }

    footer ul {
        -webkit-column-count: 2; /* Chrome, Safari, Opera */
        -moz-column-count: 2; /* Firefox */
        column-count: 2;
    }
}