/* CSS for Sticker Albums */

/* STORE LIST */
.albumGrid {
  display: grid;
  width: 96%;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-gap: 2%;
}

/* PREVIEW */
.albumPreview {
  display: flex;
  flex-direction: row;
  min-width: 0;
  width: 100%;
}
.albumPreview .stickerImg {
  width: 38%;
  min-width: 200px;
  height: 100%;
  background-size: cover;
  background-position: center center;
  margin: 10px;
}
.albumPreview .creator {
  text-align: center;
  width: 100%;
  font-size: 0.8em;
  margin-top: -15px;
  font-style:italic;
}
.albumPreviewInfo {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.albumPreview .albumContents .title {
  font-size: 1em;
  min-width: 0;
}
.preview.btns {
  padding-top: 20px;
}
.albumInfo .btns {
  justify-content: flex-end;
}
.paymentBlock {
  text-align: center;
  width: 100%;
}

/* slightly larger screens get two columns */
@media only screen and (min-width: 480px) {
  .albumGrid { grid-template-columns: 1fr 1fr; }
  .albumGrid { width: 90% }
  .stickerAlbumHeader { grid-template-columns: 1fr; }  
}
@media only screen and (min-width: 660px) {
  .albumGrid { grid-template-columns: 1fr 1fr; }  
  .stickerAlbumHeader { grid-template-columns: 1fr 1fr; }  
}
@media only screen and (min-width: 768px) {
  .albumGrid { grid-template-columns: 1fr 1fr; }  
  .stickerAlbumHeader { grid-template-columns: 1fr 1fr; }  
}
@media only screen and (min-width: 990px) {
  .albumGrid { grid-template-columns: 1fr 1fr 1fr; }  
  .stickerAlbumHeader { grid-template-columns: 1fr 1fr 1fr; }  
}
@media only screen and (min-width: 1320px) {
  .albumGrid { grid-template-columns: 1fr 1fr 1fr 1fr; }  
  .stickerAlbumHeader { grid-template-columns: 1fr 1fr 1fr; }  
}
@media only screen and (min-width: 1650px) {
  .albumGrid { grid-template-columns: 1fr 1fr 1fr 1fr; }  
  .stickerAlbumHeader { grid-template-columns: 1fr 1fr 1fr; }  
}

.albumCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  background: white;
  text-decoration: none;
  color: #444;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 1em;
  min-height: 100%;
  position: relative;
  top: 0;
  transition: all .1s ease-in;
}

.albumCard:hover {
  top: -2px;
  box-shadow: 0 4px 5px rgba(0,0,0,0.2);
}

.albumCard .title {
  padding: 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.albumCard .info {
  padding: 20px;
}

.albumCard .stickerImg {
  padding-bottom: 100%;
  background-size: cover;
  background-position: center center;
  width: 100%;
}

/* USER STICKER ALBUM */

.stickerAlbumWrapper {}

.stickerAlbumHeader {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.stickerAlbumHeader .albumImg {
  width: 25%;
  background-size: cover;
  background-position: center center;
  position: relative;
}

.stickerAlbumHeader .albumInfo {
  margin: 20px;
  flex: 1;
}
.stickerAlbumHeader .albumContents {
  margin-right: 20px;
}

.stickerAlbumHeader .contents {
  display: flex;
  flex-direction: column;
}

.stickerAlbumBody {
  perspective: 1100px;
  border-top: 1px solid #555;
}

.page {
  width: 90%;
  padding: 2% 5% 2% 5%;
  background-size: cover;
  background-position: center center;
  background-color:#ccc;
  background-blend-mode: screen;
}

/* Each page has it's own flex grid */
.pageGrid {
  display: grid;
  width: 100%;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-gap: 20px;
}


/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  .stickerCard .title { font-size: 0.8em;}
  .pageGrid { grid-template-columns: 1fr 1fr; }  
}
@media only screen and (min-width: 660px) {
  .pageGrid { grid-template-columns: 1fr 1fr; }  
}
@media only screen and (min-width: 768px) {
  .pageGrid { grid-template-columns: 1fr 1fr; }  
}
@media only screen and (min-width: 990px) {
  .pageGrid { grid-template-columns: 1fr 1fr 1fr; }  
}
@media only screen and (min-width: 1320px) {
  .pageGrid { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; }  
}
@media only screen and (min-width: 1650px) {
  .pageGrid { grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; }  
}

.stickerCard {
  flex: 1;
  background: white;
  text-decoration: none;
  color: #444;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 1em;
  position: relative;
  transition: all 1s ease-in;
  min-height: 100%;
  text-align: center;
  perspective: 1000px;
}

.stickerCard .face {
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1; /* grow to fill as much space as is available */
  justify-content: space-between;

  transition: 0.2s;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}

.stickerCard .face a {
  margin: 0px 2px 0px 2px;
}

.stickerCard p {
  flex: 1; /* make p grow to fill available space*/
}

.stickerCard .front {

}

.stickerCard .back {
  display:none;
  transform: rotateY(270deg);
}

.stickerCard .face.front.rotate {
  transition-timing-function: ease-in;
  transform: rotateY(90deg);
}

.stickerCard .back.rotate {
  transition-timing-function: ease-out;
  transform: rotateY(360deg);
}

.stickerCard:hover {
  top: -2px;
  box-shadow: 0 4px 5px rgba(0,0,0,0.2);
}

.stickerCard.intro:hover, .stickerCard.new:hover {
  top: 0px;
  box-shadow: none;
}

.stickerCard .title {
  /* background-image: url(/i/softbg.png); */
}
.stickerCard .info {
  padding: 20px;
}

.stickerCard .stickerImg {
  padding-bottom: 100%;
  background-size: cover;
  background-position: center center;
  font-style: bold;
  padding-top: 22px;
  font-size: 1.4em;
}

.stickerCard .stickerImg.blank {
  background-image: url(/i/stickers/blank-sticker.png)
}

.stickerCard .back .stickerImg {
  font-size: 1em;
}

.stickerCard .info {
}

.stickerCard .title {
  width: auto;
}

.draftContainer {
  position: absolute;
  width: 100%;
  height: 20%;
  top: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  background-color: white;
  font-size: clamp(1rem, 3vw, 1.2rem)
}

.draftContainer h3,p {
  margin: 0;
}

.draftContainer h3 {
  font-size: clamp(0.8rem, 2vw, 1.2rem);
}

.draftContainer p {
  font-size: clamp(0.5rem, 1vw, 0.9rem);
  color: #7f8c8d;
}

.draftMsg {

}

body.stickerAlbumStore footer {
  margin-top: 50px;
}

/* EDIT MODE */
.stickerImg .uploadBtn {
  bottom: 75px;
}