@import url(http://fonts.googleapis.com/earlyaccess/alefhebrew.css);

*{
	margin:0;
	padding: 0;
}

html, body{
	width: 100%;
}

.grid, section, header, footer {
	display: block; 
}

header, .grid, footer {
  display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox;      /* TWEENER - IE 10 */
  display: -webkit-flex;     /* NEW - Chrome */
  display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
 }
    width: 100%;
}

header, .grid {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.container{
	padding-top: 10px;
	position: relative;
	max-width: 745px;
	margin: auto;
	margin-top: 0.5%;
}

/*grid and structure*/

.grid{
	overflow: hidden;
	max-width: 100%;
	margin-top: 3%;
}

.cube{
	width:48.5%;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	box-sizing: border-box;
	margin-right: 1.5%;
	height: 309px;
	margin-top: 10px;
}
.cube.small{
	width:23.25%;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	box-sizing: border-box;
	margin-right: 1.5%;
	height: 155px;
	/*background-color: pink;*/
	margin-top: 10px;
}

.underline{
	border-bottom: 3px solid black;
	}

.cube.small.underline.deskRow2{
	margin-top: 3.5%;
	padding-bottom: 20.75%;
}

.cube.small.deskCol2.deskRow1{
margin-bottom: -4%;
}

#money{
	margin-top: 2%;
	padding-bottom: 22.2%;
}

#chew, #info{
	height:145px;
}

.cube.img{
	background-repeat: no-repeat;
}

nav.inner{
	height:600px;
	width:190px;
}

/*Header*/

header{
	display: -webkit-box;
	display:-moz-box;
	display:-ms-flexbox;
	-webkit-box-pack: start;
	-moz-box-pack: start;
	-ms-flex-pack:start;
	width: 100%;
}

header > nav{
	position: absolute;
	max-width: 40%;
	height: 20px;
	right: 1%;
}

header nav ul li a{

	font-family: 'Montserrat', sans-serif;
	font-style: bold;
	font-size: 10px;
	font-weight: 700;
}

header > nav > ul{
	list-style-type: none;
	display: -webkit-box;
	display:-moz-box;
	display:-ms-flexbox;
	padding: 0;
}

header nav > ul > li{
	display: inline;
	padding-left: 24px;
	position:relative;
}

header nav ul li:first-child{
	padding: 0;
	margin: 0;
}

li a{
	text-decoration: none;
	color: black;
}
nav li:hover a{
	background-color: yellow;
}

.marker a{
	color:grey;	
}
.marker:hover a{
	background-color: yellow;	
	color: black;
}

nav ul ul {
	display:none;
}

nav li:hover ul {
	display:inline-block;
	margin-left: 30px;
	width:80px;
	position:absolute;
	top:100%;
	left:0px;
	list-style-type:none;
}

nav ul ul li a {
	font-family: 'Montserrat', sans-serif;
	font-style: bold;
	font-size: 10px;
	font-weight: 700;
	background: white !important;
}
/*Typography*/

h1{
	font-family: 'Raleway', sans-serif;
	font-weight: bold;
	font-size: 27px;
	-webkit-box-pack: start;
	-moz-box-pack: start;
	-ms-flex-pack:start;
	width: 25%;
	letter-spacing: 1px;
}

h3{
	font-family: 'Dosis', sans-serif;
	font-weight: 500;
	font-size: 35px; /*33px;*/
	line-height: 39px;
	letter-spacing: -0.5px;
	padding-left: 2%;
	margin-left: 2%;
}

h4{
	font-family: 'Dosis', sans-serif;
	font-weight: 500;
	font-size: 20px;
	line-height: 28px;
	letter-spacing: 0.8px;
}

p{
	font-family:'Alef Hebrew';
	font-size: 12px;
	line-height: 15px;
	padding-top: 2%;
	padding-left: 4%;
	margin: 0 5% 0 2%;
}

div.cube.noUnder{
	margin-top: 1.3%
}

a{
	text-decoration: none;
	color: black;
}

.capitals{
	text-transform:uppercase;
}

.big h3{
	font-size: 50px;
	line-height: 55px;
	padding-left: 0;
	margin-left: 0;
}

.big p{
	font-size: 14px;
	line-height: 17px;
	padding-left: 0;

}
.pZi{
	font-size: 8px;
}

.contact p > a{
	font-size: 13px;
	letter-spacing: 1px;
}

.contact span{
	text-align: center!important;
	padding-left: 50px !important;
	line-height: 30px;
}

.contact h3{
	padding: 12px;
}

.insideWork h3.about{
	width:500px;
	text-align: left;
}

/*hover grid behaviour */
.img:hover *, .wrk:hover *{
	visibility:visible;
}

.img *, .wrk *{
	visibility:hidden;
}

.img:hover, .wrk:hover{
	background-image: none !important;
}

ul > p{
	padding:0;
	margin: 0;
}

/*works specifics*/

#aesthetics, #okBye{
	float:left;
}

#aesthetics{
	margin-top: 27px;
	padding-bottom: 2px;
}

#interctiveDesign h2{

	font-family: 'Dosis', sans-serif;
	font-weight: 500;
	font-size: 0.8em;
	letter-spacing: 3px;
	line-height: 39px;
	color: white;
	margin: 20% 20%;
	-webkit-box-pack: center;
	-webkit-box-align: center;
	-moz-box-pack:center;
	-moz-box-align:center;
	-ms-flex-pack:center;
	-ms-flex-align:center;
}

#interctiveDesign{
	border: 1px solid blue;
	display: -webkit-box;
	display:-moz-box;
	display:-ms-flexbox;
}

#interctiveDesign:after{
	clear:both;	
}

#responsiveShtick{
	content:"";
	display:none;
	position: absolute;
	margin-left: 85%;
	margin-top: 8%;
	z-index: 2;
	width:180px;
	height: 180px;
	background-image:url('../images/misc/star.png');
	background-repeat: no-repeat;
		/*width: 112px;*/
	    -webkit-transform: rotate(-15deg);
       -moz-transform: rotate(15deg);
        -ms-transform: rotate(15deg);
         -o-transform: rotate(15deg); 
}

#responsiveShtick h4{
	text-align: center;
	margin: 35px 35px;
    margin-left: 31px; 
}

#responsiveShtick .before{
	position: absolute;
	left: 30px;
	top:70px;
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-right: 14px solid black;
	border-bottom: 8px solid transparent;
}

#responsiveShtick .after{
	position: absolute;
	left: 130px;
	top:70px;
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-left: 14px solid black;
	border-bottom: 8px solid transparent;
}

#money{
	float:right;
}

#okBye{
	background-image:url('../images/myWork/previews/diamond.jpg');
	margin-top: 7px;
	margin-bottom: -1px;
}

#noga.img{
	background-image:url('../images/myWork/noga.jpg');
	float:right;
	padding-bottom: 45%;
	margin-top: 9px;
}

#objectivity{
	background-image:url('../images/myWork/objectivity.png');
	float: left;
	margin-top: 11px;
	margin-bottom: -1px;
}

#gal{
	background-image:url('../images/myWork/shabat/gal.jpg');
	background-repeat: no-repeat;
	float: left;
}

#athens{
	background-image:url('../images/myWork/athens/helenIndex.jpg');
	background-repeat: no-repeat;
	float: left;
}

.wrkG{
	display: -webkit-box;
	display:-moz-box;
	display:-ms-flexbox;
}

.wrk{
	height: 155px;
}

#cake.wrk{
	background-image:url('../images/myWork/previews/cake-prev.png');
	background-repeat: no-repeat;
}

#coffee.wrk{
	background-image:url('../images/myWork/previews/cof-prev.png');
	background-repeat: no-repeat;
}

#chew.wrk{
	background-image:url('../images/myWork/previews/chew-prev.png');
	background-repeat: no-repeat;
	height: 155px;
}
/* */
#chai.wrk{
	background-image:url('../images/myWork/previews/chai-prev.png');
	background-repeat: no-repeat;
	height: 155px;
}

#gimmick.wrk{
	background-image:url('../images/myWork/previews/gimmick-prev.png');
	background-repeat: no-repeat;
	height: 155px;
}

#haBiluyim.wrk{
	background-image:url('../images/myWork/previews/bilu-prev.png');
	background-repeat: no-repeat;
	height: 155px;
}

#elevator.wrk{
	background-image:url('../images/myWork/previews/digi-prev.png');
	background-repeat: no-repeat;
	height: 155px;
}

#gift.wrk{
	background-image:url('../images/myWork/previews/gift-prev.png');
	background-repeat: no-repeat;
	height: 155px;
}

#info.wrk{
	background-image:url('../images/myWork/previews/infoNet-prev.png');
	background-repeat: no-repeat;
	height: 155px;
}

#movie.wrk{
	background-image:url('../images/myWork/previews/intMov-prev.png');
	background-repeat: no-repeat;
	height: 155px;
}

#okBye.wrk{
	margin-top: 10px;
	background-repeat: no-repeat;
}

#sadna.wrk{
	background-image:url('../images/myWork/previews/sadna-prev.png');
	background-repeat: no-repeat;
	height: 155px;
}

html #noga.wrk{
	background-image:url('../images/myWork/previews/noga-prev.png');
	background-repeat: no-repeat;
	float:left;
}

#coffee, #chew, #info, #chai, #gimmick, #haBiluyim, #elevator, #gift, #gal, #sadna, #okBye, #movie{
	float: left;
}

.cube.small.img{
	background-repeat: no-repeat;
	background-size: 175px;
}

.Show-under-900{	
	display: none;
}

/*elements order in grid*/

#innerGrid{
	display: -webkit-box;
	display: -moz-box;
	display:-ms-flexbox;
}

iframe.chaiVid{
	margin-left: 18px;
	height: 320px;
	width: 571px;
}

iframe.vid{
	margin-left: 18px;
	height: 320px;
	width: 571px;
	margin-top: 10px;
	margin-bottom: 10px;
}

p.mov{
	padding-top: 3%;
	padding-bottom: 1%;
	line-height: 1.2em;
}

/* --------- CSS animation ----------------- */

html #interctiveDesign:hover{
cursor: url("../images/misc/BigPointer2.ico"), default;
background-color: blue;
}

/* ------------- Each Work Page ----------------- */

.insideWork{
	max-width:81%;
}

.insideWork img{
	margin-left: 4%;
	margin-top: 10px;
	width: 95%;
}

.insideWork.bigImg img{
	margin-left: 4%;
	margin-top: 10px;
	width: 160%;
}


.insideWork.iw2 img{
	margin-left: -5%;
	margin-top: 10px;
	width: 150%;
}

.insideWork.iw3 img{
	width: 130%;
}

.insideWork p{
	width: 550px;
	padding-left: 2%;
	letter-spacing: 0.5px;
	line-height: 2em;
	float: left;
	text-align: left;
}

.insideWork h3{
	width: 340px;
	margin-top: 30px;
	float:left;
	font-size: 20px;
	letter-spacing: 1px;
	line-height: 1.4em;
}

.insideWork h3 ~ p{
	margin-top: -2%;
}

.insideWork h4{
	margin-left: 4%;

}

.contInner{
	float: left;
	max-width: 73%;
}

.inner, .insideWork{
	float: left;
}

.inner{
	margin-top: 5%;
}

.inner ul{

	width:200px;
	font-family: 'alefhebrew', sans-serif;
	font-style: bold;
	font-size: 10px;
	font-weight: 700;
	line-height: 3em;
	letter-spacing: 1px;
	float: left;
	}

.inner ul{
	list-style-type: none;
}

.inner li:hover a,.inner .current a{
	background-color: white;
	border-bottom: 2px black solid;
}

html nav > ul{
	padding-bottom: 15px;
}

/* ---------media queries------------ */

/* --- tablet --- */
@media screen and (max-width: 900px){

	header > nav{

		position: static;
	}

	.container{
		width: 600px;
	}

	header{
		display: inline-block;
		width: 100%;
	}

	header nav{
		margin-left: 0;
		display: -webkit-box;
		display:-moz-box;
		display:-ms-flexbox;
	}

	header > h1{
		width: 100%;
		padding-bottom: 3%;
		font-size: 30px;
	}

	header nav ul li a{
		font-size: 14px;
	}

	header nav ul{
		-webkit-box-pack: justify;
		-moz-box-pack: justify;
		-ms-flex-pack:justify;
		width: 380px;
	}

	header nav ul ul li a{
		font-size: 10px;
	}

	h3, p{
		margin-left: 0;
		padding-left: 0;
	}

	.cube{
		width: 63%;
		height: 350px;
		margin-top: 10px;
	}


	.cube.small{
		width:30%;
		padding-bottom: 30%;
	}
	
	#noga.img{
		background-size:contain;
		margin-right: 5.5%;
		margin-top: 9px;
	}

	#objectivity.img{
		background-size:contain;
		padding-top: 10px;
		height: 321px;
		width: 371px;
	}

	#interctiveDesign{
		display: none;
	}

	#interctiveDesign .noDisplay{
		display: none;
	}

	#invisibleCursor{
		display: none;
		url('../images/misc/BigPointer2.ico');
	}

	#okBye{
		padding-bottom: 26.1% !important;
	}

	#coffee, #gal, #chew, #info, #cake.wrk, #noga.wrk{
		padding-bottom: 25.55%;
	}

	#okBye.wrk{
		padding-bottom: 24.45%;
	}

	#responsiveShtick{
		display: none;
	}

	.Show-on-desktop{
		display: none;
	}

	.Show-under-900{
		display: block;
	}

	.insideWork.iw2 img{
		margin-left: 4%;
	}

}


/* --- mobile --- */ 

@media screen and (max-width: 590px){

	.container{
		max-width: 350px;
		width:90%;
		margin:auto;
		height:360px;
	}

	header{
		display: block;	
		margin: auto;
		padding-bottom: 0;
		margin-bottom: 0;	
	}

	footer{
		display:none;
	}

	html nav
	{
		width:95%;
		float:left;
		height:120px;
	}

	html nav > ul > li {
		border: 4px solid black;
		width: 95%;
		display: block;
		text-align: center;
		margin: auto;
		margin-left: 5px;
		margin-top: 7px;
		font-family: 'Montserrat', sans-serif;
		box-shadow: 4px 5px black;
	}

	html nav > ul > li.mousedown{
		box-shadow: 2px 2px black inset;
		margin-left:7px;
		margin-top:10px;
		margin-bottom:-3px;
		margin-right:-2px;	
	}
	.inner li:hover a,.inner .current a{
		border-bottom: none;
	}

	.grid.clearfix{
		height: 100%;
	}

	html h1{
		padding-top: 5px;
		padding-bottom: 0;
		margin-bottom: 0;
		font-size: 22px;
	}

	html h3{
		font-size: 42px;
		max-width: 100%;
		text-align: center;
	}

	html p{
		max-width: 100%;
		font-size: 14px;
		line-height: 19px;
		letter-spacing: 2px;
		text-align: center;
	}

	.indexNav a{
		display: block;
		height:100%;
		width: 100%;
		padding: 20px 0 20px 0;
	}

	#graphicD{
		height: 75px;
		margin-top: 0;
		margin-bottom: 10px;
		max-width: 100%;
	}

	#graphicD.underline{
		border-width: 0;
	}
	
	html .grid .cube{
	display: none;
	}

	html nav li:hover ul {
		display: none;
	}

	html nav li:hover > a{
	background-color: white;
	}

	html .grid .cube#graphicD, html .grid nav{
		display: block !important;
	}

	header nav{
		max-width: 350px;
	}

	header nav ul{
		width: 100%;
	}

	html header nav ul li{
		padding: 0;
	}

	header nav ul li a{
		font-size: 12px;
	}

	header > h1{
		display: block;
		width: 90%;
		padding-bottom: 3%;
	}

	.cube{
		clear: both;
		width: 380px;
		margin-top: 8px;
		margin-left: 0;
		margin-right: auto;
		-webkit-box-align: start;
		-moz-box-align: start;
		-ms-flex-align: start;
	}

	.cube.small{
		width:352px;
		padding-bottom: 10px;
	}
	
	#noga{
		display: none;
		background-size:contain;
		margin-left: 0;
		float: none;
	}

	#graphicD p{
		margin: auto;
	}

	#graphicD {
		height:90px;
	}	

	#graphicD span{
		display: none;
	}

	#cake{
		background-size:contain;
		padding-top: 10px;
		height: 322px;
		width: 371px;
	}

	#interctiveDesign{
		display: none;
	}

	#coffee, #gal, #chew, #info, #movie{
		padding-bottom: 10px;
	}

	#responsiveShtick{
		display: none;
	}

	.Show-on-desktop{
		display: none;
	}

	.Show-under-900{
		display: block;
	}

	/*----------inner----------*/

	html .works nav > ul > li, html .work nav > ul > li {
		border: 0;
		width: 95%;
		height: 15px;
		display: block;
		text-align: left;
		padding-top: 10px;
		margin: auto;
		margin-left: 5px;
		margin-top: 7px;
		font-family: 'Montserrat', sans-serif;
		box-shadow: 0 0;
	}

	html .works header nav, html .work header > nav{
		display: none;
	}

	.insideWork p{
		width: 300px;
		padding-left: 2%;
		letter-spacing: 0.5px;
		line-height: 1.4em !important;
		float: left;
		text-align: left;
	}
	.contInner {
		padding-bottom: 70px;
	}

	html .work nav.inner ul li{
		border: 3px solid black;
		width: 100%;
		height: 20px;
		display: block;
		text-align: center;
		padding-top: 7px !important;
		padding-bottom: 12px;
		margin: auto;
		margin-left: 0px;
		margin-top: 7px;
		font-family: 'Montserrat', sans-serif;
		box-shadow: 3px 3px black;
	}

	.grid{
		overflow: visible !important;
	}
}



/* --------------clearfix -----------------------*/

.clearfix:after {
	content: ".";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}
 
.clearfix {
	display: inline-block;

}
 
html[xmlns] .clearfix {
	display: block;
}
 
* html .clearfix {
	height: 1%;
}

/* ----------- clear ------------- */

.clear {
    width: 100%;
    clear: both !important;
    display: inline-block;
}
.clear:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
* html .clear {
    height: 1%;
}


