body {
  background: #E64CFF url(../images/backdrop-26.jpg) center left no-repeat;
  background-size: contain;
  font-family: Roboto, 'Droid Sans', Ubuntu, 'Open Sans', 'Helvetica Neue', Helvetica, sans-serif;
}

@media only screen and (max-width: 920px)
{
  body { background-size: cover; }
}

main, html, body {
  height: 100%;
  margin: 0;
}

header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: #2c2c2d linear-gradient(#2c2c2d, #1a1a1a 40%);
  box-shadow: inset 0 -1px black, 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 10;
  text-shadow: 0 -1px black;
  font-size: 1.286em;
  color: #F7EBC3;
}

.banners {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  position: absolute;
  width: 960px;
  height: 88px;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.banners > div {
  height: 100%;
  padding: 12px 80px 0;
  margin: 0;
  border-radius: 50px;
  background: rgba(255,255,255,.8);
  border: 2px solid #DA4932;
  backdrop-filter: blur(20px);
}

.banners > div:hover {
  background: rgba(255,255,255,1);
}

.banners > div img {
  height: 80px;
}

@media only screen and (max-width: 920px)
{
  .banners > div img { height: 66px; }
  .banners > div {
  height: 76px;
  padding: 10px 28px 0;
}
}


.placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  margin: 0;
}

header nav {
  display: flex;
  align-items: center;
  width: 960px;
  height: 56px;
  margin: 0 auto;
  padding: 0;
}

h1 {
  flex-grow: 2;
  font-size: 18px;
}

header a {
  display: block;
  padding: 12px;
  margin-left: 24px;
  color: #FEEEE1;
  text-decoration: none;
}
header a:hover { color: #999; }

header a span { font-size: 18px; }



main {
  box-sizing: border-box;
  display: flex;
  width: 960px;
  margin: 0 auto;
  padding-top: 56px;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  outline-color: #2299D4;
  
}

main article {
  box-sizing: border-box;
  padding: 12px 20px;
  outline: 8px solid;
  outline-color: inherit;
  outline-offset: -4px;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: black;
}

article:nth-child(even) { background-color: #2299D4; }

article[v="1"] { height: 120px; }

article[v="2"] { height: 240px; }

article[v="3"] { height: 360px; }

article[h="1"] {
  flex-grow: 1;
  width: 120px;
}

article[h="2"] {
  flex-grow: 2;
  width: 240px;
}

article[h="3"] {
  flex-grow: 3;
  width: 360px;
}

article.logo {
  background: #BA4CFF url(/images/logo-26.png) center no-repeat;
  background-size: 100% auto;
  /*outline-color: rgba(0,0,0,0) !important;*/
  cursor: pointer;
}


@media only screen and (min-width: 969px)
{
  /*[h="3"][v="2"].logo { background-size: 120% auto; }*/
  
  [h="2"][v="1"].logo {
    background-image: url(../images/logo-26.png);
    background-size: 94% auto;
  }

  [h="3"][v="2"].logo {
    background-image: url(../images/logo-26.png);
    background-size: 94% auto;
  }

  
}

article.banner { 
  background-color: none !important;
  background-position: center center;
  background-size: contain;
}

article.visual { 
  background-color: #FEEEE1 !important;
  background-position: center center;
  background-size: contain;
}


article.image { background-position: center center; }

article.image:hover { 
  filter: grayscale(100%);
  cursor: pointer;
}

article.image:hover:before {
  display: block;
  width: 100%;
  height: 20px;
  position: relative;
  left: 0%;
  top: 40%;
  display: inline-block;
  content: "\f00e";
  font-family: FontAwesome;
  color: white;
  font-size: 24px;
  font-weight: normal;
  text-align: center;
  vertical-align: center;
}

.tweet {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1em;
  line-height: 1.25em;
} 

.tweet a {
  text-decoration: none;
  font-weight: bold;
}

article.tweet > a:first-child { 
  font-size: 1.2em;
  padding-bottom: 2px;
}

article.tweet > a:first-child::before {
  font-family: "FontAwesome";
  content: "\f099";
  padding-right: 6px;
  font-size: 0.92em;
}

article.tweet.insta-text > a:first-child::before {
  font-family: "FontAwesome";
  content: "\f16d";
  padding-right: 6px;
  font-size: 0.92em;
}

article[data-user="vlasmarkt"].tweet > a:first-child::before { content: "\f16d"; }

article.tweet span {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

article.tweet i { display: none; }

[v="1"].tweet span { -webkit-line-clamp: 5; }

[h="2"][v="2"].tweet { font-size: 1.2em; }

[h="3"][v="2"].tweet { font-size: 1.4em; }

article.tweet {
  background-color: #DA4932;
  color: #EAE5E5;
} 

article.tweet a {
  color: #FFFA14;
}

article.tweet:nth-child(even) {
  background-color: #040200;
  color: #EAE5E5;
}

article.tweet:nth-child(even) a {
  color: #E64CFF;
}

article.tweet:nth-child(3), article.tweet:nth-child(11) {
  background-color: #862ABF;
  color: white;
}

article.tweet:nth-child(3) a, article.tweet:nth-child(11) a { color: #FFFA14; }





body.modal > main { 
  filter: grayscale(100%);
}

body.modal > overlay { display: flex; }

overlay {
  display: none;
  position: absolute;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.75);
  left: 0px;
  top: 0px;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  z-index: 11;
}

modal {
  box-sizing: border-box;
  padding: 4px;
  outline: 8px solid #2299D4;
  outline-offset: -4px;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: black;
  width: 580px;
}

modal > img {
  min-height: 40px;
  width: 100%;
  max-height: 100%;
  height: auto;
}

modal > footer {
  cursor: pointer;
  color: white;
  position: relative;
  width: 100%;
  height: 44px;
  margin-top: -50px;
  background-color: rgba(0,0,0, 0.5);
  text-align: center;
  line-height: 2.5em;
}

modal > footer span:before {
    font-family: "FontAwesome";
    padding-right: 5px;
}

modal.twimg span:before { content: "\f099"; }
modal.insta span:before { content: "\f16d"; }
modal.store span:before { content: "\f1e2"; }

/*
  Mobile
*/

article.tweet { background-size: 0%; }

@media only screen and (max-width: 968px)
{
  article.tweet > a:first-child { font-size: inherit; }
  article.tweet { line-height: 1.2em; }
}

@media only screen and (max-width: 605px)
{
  h1 {
    flex-grow: 3;
    font-size: 16px;
  }
  header a span { font-size: 16px; }
  header a {
    padding: 10px;
    margin-left: 14px;
  }
  main article { outline-width: 4px; outline-offset: -2px; }
  article.image:hover:before { top: 32%; }

  article.tweet > a:first-child::before { display:none; }
  article.tweet > a:first-child::after {
    font-family: "FontAwesome";
    content: "\f099";
    padding-left: 4px;
  }
}

@media only screen and (min-width: 800px) and (max-width: 968px)
{
  main, header nav { width: 792px; }
  main article { padding: 10px 18px; }

  
  article[h="1"] { width: 99px; }
  article[h="2"] { width: 198px; }
  article[h="3"] { width: 297px; }
}

@media only screen and (min-width: 606px) and (max-width: 799px)
{
  main, header nav { width: 600px; }
  main article { 
    outline-width: 6px;
    outline-offset: -3px;
    padding: 9px 16px;
  }

  article[h="1"] { width: 75px; }
  article[h="2"] { width: 150px; }
  article[h="3"] { width: 225px; }

  article[v="1"] { height: 95px; }
  article[v="2"] { height: 190px; }
  article[v="3"] { height: 285px; }

  article.tweet { font-size: 0.8em; }
  [h="2"][v="2"].tweet { font-size: 1em; }
  [h="3"][v="2"].tweet { font-size: 1.2em; }
}

@media only screen and (min-width: 404px) and (max-width: 605px)
{
  main, header nav { width: 400px; }
  main article { padding: 8px 12px; }

  article[h="1"] { width: 50px; }
  article[h="2"] { width: 100px; }
  article[h="3"] { width: 150px; }

  article[v="1"] { height: 75px; }
  article[v="2"] { height: 150px; }
  article[v="3"] { height: 225px; }

  article.tweet { font-size: 0.6em; }
  [h="2"][v="2"].tweet { font-size: 0.8em; }
  [h="3"][v="2"].tweet { font-size: 1em; }
}

@media only screen and (min-width: 120px) and (max-width: 403px)
{
  main, header nav { width: 384px; }
  main article { padding: 8px 12px; }

  article[h="1"] { width: 48px; }
  article[h="2"] { width: 96px; }
  article[h="3"] { width: 144px; }

  article[v="1"] { height: 74px; }
  article[v="2"] { height: 148px; }
  article[v="3"] { height: 222px; }

  article.tweet { background-size: cover; }
  article.tweet > * { display: none !important; }
}

/*
  DEPRECATED
  Overlay & Detail 
*/
#grid.overlay {
  filter: gray;
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
  transition: 0.4s all ease-in;
  -webkit-transition: 0.4s all ease-in;
  -moz-transition: 0.4s all ease-in;
}
.clickfield {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: rgba(12, 12, 12, 0.8);
  z-index: 8;
}
.clickfield.overlay {
  display: block;
}

#detail {
  max-width: 580px;
  margin: 100px auto;
  background: #333;
  border: 1px solid #222;
  border-radius: 5px;
  box-shadow: 0 2px rgba(0, 0, 0, 0.2), inset 0 0 1px white;
  z-index: 100;
  overflow: visible;
  font-family: 'Droid Sans', sans-serif;
}
#detail h4 {
  font-family: 'Droid Sans', sans-serif;
}
#detail a {
  color: white;
  text-decoration: none;
}
#detail > div {
  height: 61px;
  padding-right: 48px;
  border-top: 1px solid #494949;
  background: no-repeat 532px center;
  box-shadow: 0 -1px rgba(0, 0, 0, 0.72);
  color: #ccc;
  font-weight: 300;
  font-size: 1.12em;
  text-shadow: 0 1px black;
  position: relative;
}
#detail > div:after {
  display: block;
  width: 48px;
  height: 32px;
  position: absolute;
  bottom: 8px;
  right: 0;
  background: transparent;
  z-index: 1;
  content: "\f01a";
  font-family: FontAwesome;
  color: #222;
  font-size: 28px;
  text-shadow: 0 1px #555;
}
#detail.instagram > div:after {
  content: "\f16d";
}
#detail.twitpics > div:after {
  content: "\f099";
}

#detail-content {
  display: block;
  width: 100%;
  height: 500px;
  background: transparent center no-repeat;
  background-size: 112% auto;
  border-radius: 5px 5px 0 0;
  box-shadow: inset 0 1px rgba(172, 172, 172, 0.34);
  z-index: 11;
}
#detail-amount {
  display: block;
  float: left;
  padding: 6px 12px;
  margin: 16px 26px;
  background: #222;
  border-radius: 80px;
  box-shadow: inset 0 1px black;
  border-bottom: 1px solid #4f4f4f;
}
#detail-left {
  width: 24px;
  height: 24px;
  padding: 20px 24px 16px;
  float: left;
  border-left: #222 solid 1px;
  box-shadow: inset 1px 0 #555;
  cursor: pointer;
}
#detail-right {
  width: 24px;
  height: 24px;
  padding: 20px 24px 16px;
  float: right;
  cursor: pointer;
}
#detail-left:hover,
#detail-right:hover {
  opacity: .72;
}
#detail-author {
  padding: 22px 40px;
  text-align: center;
}
.detailed #clickfield,
.detailed #detail {
  display: block;
}

#info-overlay > #detail {
  padding: 40px;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  ms-box-sizing: border-box;
  color: #fff;
  overflow: hidden;
}
#info-overlay > #detail strong,
#info-overlay > #detail h4 {
  color: #fff;
}
#info-overlay > #detail h4 {
  font-weight: bold;
  text-align: center;
}
#info-overlay .social-info {
  float: left;
  width: 33.33%;
  box-sizing: border-box;
  text-align: center;
}
#info-overlay .social-info > i {
  font-size: 50px;
  color: #222;
}
#info-overlay .social-info > div {
  padding: 5px;
}
#info-overlay .privacy-view {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
}
#info-overlay .privacy-view h1,
#info-overlay .privacy-view h2 {
  margin-top: 12px;
  font-family: 'Droid Sans', sans-serif;
}
#detail > .privacy,
#detail > .back-to-info {
  clear: both;
  position: relative;
  top: 50px;
  text-align: center;
  line-height: 40px;
  font-size: 10px;
  opacity: .5;
  padding-right: 0;
}
#detail > .privacy:hover,
#detail > .back-to-info:hover {
  cursor: pointer;
}
#detail > .privacy:after,
#detail > .back-to-info:after {
  content: none;
}
#detail > .privacy-text,
#detail > .back-to-info {
  display: none;
}
#info-overlay.onprivacy > #detail {
  max-height: 400px;
  overflow: auto;
}
#info-overlay.onprivacy #detail > .privacy-text,
#info-overlay.onprivacy #detail > .back-to-info {
  display: block;
}
#info-overlay.onprivacy #detail > .info,
#info-overlay.onprivacy #detail > .privacy {
  display: none;
}