/* ------------------------------------------------------------------- global */

* {
  margin: 0;
  box-sizing: border-box;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  overflow-y: scroll;
  font-size: 16px;
}

body {
  font-family: Corbel, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, "Verdana Ref", sans-serif;
  overflow-x:hidden;
}

img[src$=".gif"], img[src$=".png"] {
  image-rendering: -webkit-optimize-contrast;
}

/* --------------------------------------------------------- desktop creative */

.jpx-fi-close, .jpx-hi-close {
  display: none !important;
}

.creative-container {
  margin-top: 185px;
  margin-top: 0;
}

.creative {
  width: 100%;
}

.creative .jp-wrapper {
  margin: 0 auto;
  width: 1030px;
  height: 100%;
  padding-right: 4px;
  padding-left: 4px;
}

.creative .jp-wrapper img {
  width: 100%;
}

/*          mobile creative          */





/* .relative {
  position: relative;
  z-index: 10;
} */

/* .zIndex {
  z-index: 1;
} */

/*          nav           */

/*       Main nav         */

header {
  top: 0;
  z-index: 11;
  transition: ease top 0.5s;
  width: 100%;
  background: white;
  /* box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1); */
}

/* ------------------------------------------------------------------ filters */


div.filters-space{
  height: 54px;
}

ul.filters {
  padding: 10px 20px 0px 20px;
  /* min-width: 800px; */
  background: none;
  position: fixed;
  /* position: relative; */
	z-index: 100;
	width:100%;
	background: white;
  display:flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: nowrap;
	white-space: nowrap;
}

ul.filters li {
  position: relative;
  display: block;
  /* margin: 0 10px; */
  margin-right:8px;
  margin-bottom: 18px;
  border-radius: 5px 5px 5px 5px;
  width: 12.5rem;
	min-width: 150px;
	max-width: 225px;
  padding: .7rem .65rem;
  
  background: #f2f2f2;
  cursor: pointer;
  color: #303030;
  z-index: 10;
}

ul.filters li i {
  position: absolute;
  top: 1px;
  right: .4em;
  cursor: pointer;
  font-size: 1.2rem;
  color: #666666;
}

ul.filters li a {
  padding: 5px 0;
  color: #666666;
  user-select: none;
}


ul.filters li:nth-of-type(4){
	/* margin-right: 0; */
}

ul.filters li:hover i {
  transition: transform 0.3s;
  transform: rotate(180deg);
}

ul.filters li:hover:last-child i {
  transition: transform 0.3s;
  transform: rotate(0deg);
}

ul.filters li:hover {
  border-radius: 5px 5px 0 0;
  background: #e5e5e5;
}

ul.filters li.reset-button {
  border-radius: 0;
  background: none;
  font-size: .9rem;
  color: #666666;
  min-width: 100px;
  padding: .1em;
  width:auto;
  min-width: unset;
  white-space: nowrap;
  text-align: center;
  border: #e5e5e5 1px solid;
  border-radius: 5px;
  /* padding-left: 45px; */
	/* margin:0; */
}

ul.filters li.reset-button:hover {
  background: none;
}

ul.filters li.reset-button div.filters-cross{
	width:1.1rem;
  height:1.3rem;
	display: inline-block;
  position:relative;
}

ul.filters li.reset-button div.filters-cross i{
	top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  right:auto;
}
ul.filters li.reset-button div.filters-cross i:nth-of-type(1){
	top:40%;
}
ul.filters li.reset-button div.filters-cross i:nth-of-type(2){
  top:60%;
}

ul.filters li.reset-button span{
  display:block;
  margin-top:-.2em;
}


ul.filters li ul {
  position: absolute;
  top: 95%;
  left: 0;
	width:100%;
  height: 0;
  overflow: hidden;
  background: #e5e5e5;
}
ul.filters li span {
	white-space: nowrap;
	display: inline-block;
  margin-left:0px;
  margin: .1em;
}
ul.filters li ul li {
  display: block;
  margin: 0 0;
  border-radius: 0;
	width: 100%;
  padding: 0;
  background-color: #e5e5e5;
  cursor: pointer;
  line-height: 120%;
}

ul.filters li ul li.device_selected {
  background-color: #aaaaaa;
}

ul.filters li ul li.device_selected:hover {
  background-color: #aaaaaa;
}

ul.filters li ul li.type_selected {
  background-color: #aaaaaa;
}

ul.filters li ul li.type_selected:hover {
  background-color: #aaaaaa;
}

ul.filters li ul li:hover {
  border-radius: 0 0 0 0;
  background: #f2f2f2;
}

ul.filters li ul li:last-child {
  border-radius: 0 0 0 0;
}

ul.filters li:hover>ul {
  /*transition: ease all 0.5s;*/
  border-radius: 0 0 5px 5px;
  height: auto;
}

ul.filters li:hover{
  z-index: 12;
}

ul.filters li ul li span {
  display: block;
  width: 100%;
  height: 100%;
  padding: 6px 6px 6px 12px;
}



/*-------------------------------------------------------------------- thumbs */

.mobile-message {
  width: 100%;
  padding: 0% 1% 5% 1%;
  text-align: center;
  font-family:Cambria;
}
.mobile-message img{
  display: block;
  width:30%;
  max-width: 100px;;
  vertical-align: middle;
  margin:5% auto;
}
.mobile-message h1{
  display: block;
  margin:5%;
  font-style: italic;
  font-weight:bold;
  font-family:CambriaBoldItalic;
  vertical-align: middle;
  white-space: nowrap;
}
@media screen and (orientation:landscape) {
  .mobile-message img, .mobile-message h1{
    display:inline-block;
  }
}
.item-thumbs {
  margin: 0 20px 20px 20px;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

.item-thumb{
  position: relative;
  width:100%;
  /* width: 33.33%; */
	/* flex: 1 33.33%; */
  z-index: 2;
	height: 300px;
  overflow: hidden;
  /* transition: ease all 0.5s; */
  background-position: center;
  /* background-size: cover; */
  background-repeat:no-repeat;
  background-size:180px;
  /* background-image:url(../images/loading.gif); */
}

.item-thumbs > .item-thumb{
  width:33.33%;
}
.item-thumbs-two {
  flex: 1 33.33%;
  height: 300px;
}
.item-thumbs-large {
	flex:2 66.66%;
	height:600px;
	transform:scale(1) !important;
}
.item-thumbs-large .item-thumb{
	height:600px;
}
.item-thumbs-two{
	height:600px;
	transform:scale(1) !important;
}

.item-thumb:before {
  content: "";
  position: absolute;
  top: -550px;
  top: -200%;
  left: -1200px;
  left: -220%;
  left: 0;
  top: 100%;
  top:0;

  /* transform: rotate(35deg); */
  transition: ease all 0.7s;
  width: 800px;
  width: 100%;
  height: 1400px;
  height: 100%;
  background: #69CBD6;
	opacity: 0;
}

.item-thumb a {

  position: absolute;
  flex-direction: column;
  /* justify-content: center;
  align-items: center; */
  /* display: flex; */
  opacity: 0;
  transition: ease all 0.5s;
  width: 100%;
  height: 100%;
  font-size: 50px;
  letter-spacing: -.5px;
  /* font-weight: bold; */
  text-align: center;
  color: white;
  text-decoration: none;
  -webkit-flex-direction: column;
  ;
}
.item-thumb .item-details{
  position: absolute;
  display: flex;
  flex-direction: column-reverse;
  align-items: start;
  /* justify-content: flex-end; */
  left:0;
  bottom:0;
  width:100%;
  height:90%;
  /* background: red; */
  padding: 30px;
  opacity:0;
  /* opacity: .5; */
  bottom: -100px;
  /* bottom:0; */
  transition:opacity .5s, bottom .5s;
  pointer-events: none;
}
.item-thumb .item-details img{
  /* max-width: 100%; */
  /* width:200px; */
  /* transform:scale(.5); */
  /* transform-origin: top left; */
  width:200px;;
  margin-bottom:10px;
  /* opacity: 0; */
}

.item-thumb .item-details h4 {
  font-size: 14px;
  color: white;
  flex-basis: fit-content;
  /* opacity: 0; */
}

.item-thumb:hover:before {
  top: 0px;
  opacity: .8;
}

.item-thumb:hover>.item-details {
  opacity: 1;
  bottom:0;
}

.item-thumb-featured{
	/* width:66.66%;
	height:600px; */
	flex:2 66.66%;
	height:600px;
}
.item-thumb-subflex{
	height:600px;
	flex:1 33.33%;
}
/* .item-thumb:last-child{
  flex-grow:1;
} */
/*         Creative items      */

.jpx-logo {
  position: relative;
  left: 15px;
  height: 25px;
  margin-right:80px;
  /*pointer-events: none;*/
  transform-origin: center left;
  transform:scale(1.5) translateY(5%);
  cursor: pointer;
}

/*------------------------------------------------------ creative preview nav */

.creative-header {
  position: fixed;
  top: 0;
	padding: 10px 5px;
  z-index: 414748461;
  box-shadow: 0 5px 10px -10px rgba(0, 0, 0, 0.6);
}

.creative-header .creative-nav-creative {
  position: relative;
  margin: 0 0;
  box-shadow: none;
  padding: 0;
  list-style: none;
}

.creative-header .creative-nav li a {
  color: #666666;
}

.creative-header .creative-nav li {
  position: relative;
  display: inline-block;
  transition: all 0.5s;
  padding: 0 0;
  margin-right: 20px;
  /*background: red;*/
  color: #303030;
}
.creative-header .creative-name {
  position: absolute !important;
  top: 50%;
  transform: translate(0, -50%);
  pointer-events: none;
}
.creative-header .creative-next img,
.creative-header .creative-prev img,
.creative-header .creative-all img  {
  height:24px;
  display: block;
  position: relative;
  top:2px;

}
.creative-header .creative-next, .creative-header .creative-prev {
  position: relative;
  /*top: 2px;*/
  display: block;
  opacity: 0;
  /* padding: 3px 20px !important; */
  /* font-size: 0; */
}

.creative-header .creative-all {
  /* height: 100%; */
  opacity: 0;
  font-size: 22px;
}


.scroll-down-message {
  position: absolute;
  top: 110vh;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 50px;
  text-align: center;
}

/*           Media Query's          */

@media screen and (max-width:1100px) {
 html {
  font-size: 14px;
}
}

@media screen and (max-width: 1000px) {
  .item-thumbs-two {
    flex: 1 50%;
  }
	.item-thumbs-large {
		flex:1 50%;
		height:300px;
	}
	.item-thumbs-large .item-thumb{
		height:300px;
	}
	.item-thumbs-two{
		height:300px;
	}
  ul.filters li:first-of-type{
    display:none;
  }
  ul.filters li {
		margin-right:14px;
	}

}

/* @media screen and (max-width: 900px) {
	ul.filters li.reset-button span{
		display: none;
	}
} */

@media screen and (max-width: 768px) {
  ul.filters {
    padding: 8px 10px 0px 10px;
  }
  .item-thumbs{
    margin: 0 10px 10px 10px;
  }
  .item-thumbs-large, .item-thumbs-two {
    flex: 1 100%;
  }
	/* ul.filters li {
		margin-right:5px;
	} */
  .item-thumb a {
    opacity: 1;
  }
  .item-thumb a img {
    position: absolute;
    top: 25px;
    left: 5px;
    opacity: 1;
    transition: ease all 0.5s;
    width: 110px;
  }
  .item-thumb a h4 {
    opacity: 1;
    transition: ease all 0.5s;
  }
  .item-thumb:before, .item-thumb:hover:before {
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,1));
    opacity:.6;
    width:100%;
    height:50%;
    top:auto;
    bottom:0;
  }
  .item-thumb>.item-details {
    opacity: 1;
    bottom:0;
  }
}

@media screen and (max-width:600px) {
  .creative-header {
    opacity: 0;
  }
}
