/* credits to https://codepen.io/Wandersonsc/pen/RMerRy */

@font-face {
  font-family: 'Comic Neue';
  src: url(ComicNeue.ttf) format('truetype');
}

body {
  font-family: 'Comic Neue', cursive;
  background: linear-gradient(180deg, #2980b9 25%,#2c3e50 75%); 
  width: 100%;
}

.polaroid {
  background: radial-gradient(#fff 85%, #aaa 100%);
  padding: 1rem;
  box-shadow: 0 0.2rem 1.2rem rgba(0,0,0,0.6);
  display: inline-block;
  margin-top: 2rem;
  width: 90% 
}

/* 1-Spaltig auf Handys im Portraet Modus */
@media (min-width:961px) or (orientation : landscape)  {
        .polaroid {width: 45%;}
}

/* 2-Spaltig Landscape + kleine Aufloesung */
@media (min-width:1201px)  {
        .polaroid {width: 30%;}
}

/* Wenn keine Maus vorhanden, funktioniert Hover nicht - daher zumindest Farbe darstellen */
@media (pointer: fine) {
	.polaroid { filter: grayscale(80%); }
}

.polaroid > img{
  max-width: 100%;
  height: auto;
}

.caption {
  font-size: 1.8rem;
  text-align: center;
  margin: 2rem 0rem 1rem;
}

.polaroid:nth-of-type(4n+1) {
  transform: scale(0.8, 0.8) rotate(5deg);
  transition: all 0.35s;
}
.polaroid:nth-of-type(4n+2) {
  transform: scale(0.8, 0.8) rotate(-5deg);
  transition: all 0.35s;
}
.polaroid:nth-of-type(4n+4) {
  transform: scale(0.8, 0.8) rotate(3deg);
  transition: all 0.35s;
}
.polaroid:nth-of-type(4n+3) {
  transform: scale(0.8, 0.8) rotate(-3deg);
  transition: all 0.35s;
}

.polaroid:hover {
  filter: none;
  background: #fff;
  transform: scale(1, 1) rotate(0deg) !important;
  transition: all 0.35s;
}
