.pcan-mask {

  position: relative;
  width: 375px;
  min-height: 498px;
  height: 540px;

  overflow: hidden;
  margin: auto;

  border: 1px solid rgb(234,234,234);
  -webkit-user-select: none;
  user-select: none;

  background-color: white;

  font-family: 'Pill Gothic 600mg Light', sans-serif;

}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  color: white;
  font-size: 24px;
  text-align: left;
  line-height: 400px;
  padding-left: 220px;
}

.pcan-canvas {

  position: absolute;

  background-color: white;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;

  top: 10px;
  left: 10px;
  width: 355px;
  height: 443px;
  opacity: 0;
  transition-timing-function: ease-in;

  -webkit-user-select: none;
  user-select: none;

  filter: blur(8px);
  -webkit-filter: blur(8px);

  transition-duration: 2s;
/*  margin-bottom: 10px;*/

}

.pcan-stats {
  position: absolute;
  width: 100%;
  height: 33px;
  bottom: 0px;

}

.pcan-footer {
  position: absolute;
  width: 100%;
  top: 453px;
  height: 58px;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;
}


.pcan-canvas.loaded {
  opacity: 1;
  -webkit-filter: blur(0px);
  filter: blur(0px);
}


.pcan-scratch {
  position: absolute;
  top: 0px;
  left: 600px;
  width: 180px;
  height: 2250px;

  -webkit-user-select: none;
  user-select: none;
/*  display: none;*/
}

canvas {

  width: 720px;
  height: 900px;

}

.lut-canvas {

  position: absolute;
  top: 10px;
  left: 550px;
  width: 512px;
  height: 512px;
  display: none;

}

.base-video {

  position: relative;
  margin-top: 50px;
  width: 200px;
  display: none;

}

.pcan-loader {

  width: 60px;
  height: 1px;
  background-color: blue;
  position: absolute;
  top: 224px;
  left: 150px;

  z-index: 100;

  pointer-events: none;
  animation: loader-loop 3s infinite ease-in-out both;
  animation-delay: 2s;
}
body.has-device-motion .pcan-loader {
  animation-delay: 4s;
}

.pcan-loader.loaded {
  display: none;
}

@keyframes loader-loop {
  0% {
    transform: rotate(0);
    background-color: blue;
    opacity: 0;
  }
  0.0001% {
    transform: rotate(0);
    background-color: blue;
    opacity: 1;
  }

  33% {
    transform: rotate(720deg);
    background-color: green;
  }

  66% {
    transform: rotate(1440deg);
    background-color: red;
  }

  100% {
    transform: rotate(2160deg);
    background-color: blue;
  }
}


.p-caption {

  font-family: 'Pill Gothic 600mg Regular', monospace;
  position: relative;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  font-size: 18px;
  color: #202020;
  text-align: center;
  letter-spacing: 0px;
  user-select: text;
  overflow : hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  padding-left: 20px;
  padding-right: 20px;
  max-height: 50px;
}

.p-caption:empty {
  margin-top: 0;
}

.p-caption a {
  color: #202020;
  text-decoration: none;
}

.p-username {

  position: absolute;
  left: 10px;
  width: 50%;
  bottom: 9px;
  opacity: 0.5;

  text-align: left;

  margin-top: 38px;

  font-size: 13px;
  color: #202020;
  letter-spacing: 0.5px;
  line-height: 13px;
  text-transform: uppercase;
  user-select: text;

}

.p-username a {
  color: #202020;
  text-decoration: none;
}

.p-pulse {

  position: relative;
  display: inline-block;
  float: right;

  margin-top: 10px;
  margin-right: 0px;
  font-size: 13px;
  color: #202020;

  line-height: 13px;

  text-align: left;

}

.p-pulse-count {
  opacity: 0.5;
  display: inline-block;
  float: left;
  margin-right: 3px;
  text-align: left;
  user-select: text;

}

.p-pulse-icon {
  position: relative;
  display: inline-block;
  float: left;
  top: -3px
}

.p-like {
  position: relative;
  display: inline-block;
  float: right;
  margin-top: 10px;
  margin-right: 15px;
  font-size: 13px;
  color: #202020;
  line-height: 13px;
  text-align: left;
}

.p-like-count {
  opacity: 0.5;
  display: inline-block;
  float: left;
  margin-right: 7px;
  text-align: left;
}

.p-like-icon {
  position: relative;
  display: inline-block;
  float: left;
  width: 13px;
  height: 13px;
  background: url(../assets/Like@2x.png) top left no-repeat;
  background-size: contain;

}

.p-menu {
  position: relative;
  display: inline-block;
  float: right;
  margin-left: 16px;
  width: 40px;
  height: 100%;
  opacity: 0.6;
  font-size: 13px;
  color: #202020;
  cursor: pointer;
  text-align: right;
}

  .p-menu:active {
    opacity: .8;
  }
  .p-menu img {
    margin-right: 10px;
    margin-top: 13px;
    vertical-align: top;
  }


.p-share-menu {

  position: absolute;
  bottom: -100px;
  left: 0;
  width: 100%;
  height: 90px;
  background: white;
  -webkit-transform: translate3d(0, 0px, 0);
  transform: translate3d(0, 0px, 0);

  -webkit-transition-duration: 400ms;
  transition-duration: 400ms;

  -webkit-transition-timing-function: cubic-bezier(0.685, 0.020, 0.265, 1.250);
  transition-timing-function: cubic-bezier(0.685, 0.020, 0.265, 1.250);

  border-top: 1px solid rgb(234,234,234);

}

.p-share-menu.is-visible {

  -webkit-transform: translate3d(0, -50px, 0);
  transform: translate3d(0, -50px, 0);

}

.p-share-close {

  position: absolute;
  top: 0px;
  right: 4px;
  width: 30px;
  height: 40px;
  background: url('../assets/Close@2x.png') center no-repeat;
  background-size: 14px;
  cursor: pointer;

}

.p-share-link {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100px;
  height: 40px;
/*  background: url('../assets/Copy%20Link%20-%20Dark@2x.png') top left no-repeat;*/
/*  background-size: contain;*/
  color: #3d3d3d;
  text-transform: uppercase;
  text-align: center;
  line-height: 43px;
  border-right: 1px solid rgb(234,234,234);
  cursor: pointer;
  font-size: 14px;

}

body.mobile .p-share-link {
  display: none;
}

.p-link-copy-text {

  position: absolute;
  top: 1000px;

}

.p-share-twitter {
  position: absolute;
  top: 0px;
  left: 100px;
  width: 47px;
  height: 40px;
  background: url('../assets/Twitter@2x.png') center no-repeat;
  background-size: 15px 12px;
  border-right: 1px solid rgb(234,234,234);
  cursor: pointer;
}

body.mobile .p-share-twitter {
  left: 0;
}

.p-share-facebook {
  position: absolute;
  top: 0px;
  left: 150px;
  width: 47px;
  height: 40px;
  background: url('../assets/Facebook@2x.png') center no-repeat;
  background-size: 7px 14px;
  border-right: 1px solid rgb(234,234,234);
  cursor: pointer;
}

body.mobile .p-share-facebook {
  left: 50px;
}


.p-share-addressbook {
  position: absolute;
  top: 15px;
  left: 325px;
  width: 35px;
  height: 35px;
  background: url('../assets/Contacts%20-%20Dark@2x.png') top left no-repeat;
  background-size: contain;
}


.pld-footer {
  position: absolute;
  bottom: -20px;
  height: 20px;
  background: rgba(0,0,0,0.9);

  width: 100%;

}
.pld-logo-cta {
  background: url(../assets/Polaroid@2x.png) center no-repeat;
  background-size: contain;
  width: 100px;
  height: 20px;
  float: left;
  margin-left: 12px;
}


.p-app-store-cta {

  position: absolute;
  z-index: 100;
  right: 5vw;
  bottom: 21vw;
  opacity: 1;
  width: 30vw;

}


.polaroid-tips {
  position: absolute;
  background-color: rgba(0,0,0,0.8);
  /*z-index 101 to be above loader animation: */
  z-index: 101;
  overflow: hidden;
  text-align: center;
  pointer-events: none;
  /*size/position of canvas*/
  top: 10px;
  left: 10px;
  width: 355px;
  height: 443px;
  display: none;
  animation: tip-fade-out 4s both;
}

body.first-visit polaroid-object.loaded .polaroid-tips {
  display: block;
}

body.has-device-motion .polaroid-tips {
  animation: tip-fade-out-mobile 4s both;
}

  .polaroid-tips .tip-holder {
    width: 84px;
    height: 108px;
    margin: 179px auto;
    display: inline-block;
    position: relative;

  }

    .polaroid-tips .tip-holder div {
      position: absolute;
    }

    .polaroid-tips .tip-holder .tip {
      text-align: center;
      width: 100%;
      height: 100%;

    }
    .polaroid-tips .tip-holder .tip.slide {
      animation: tip-fade-in-out-slide 4s both;
    }
    .polaroid-tips .tip-holder .tip.tilt {
      animation: tip-fade-in-out-tilt 4s both;
      perspective: 100px;
      display: none;
    }
    body.has-device-motion .polaroid-tips .tip-holder .tip.tilt {
      display: block;
    }


    .polaroid-tips .tip-holder .tip .icon {
      background-size: contain;
      width: 84px;
      height: 84px;

    }
      .polaroid-tips .tip-holder .tip.slide .icon {
        background-image: url('../assets/tip_icon_slide@2x.png');
        animation: tip-slide-icon 4s linear both;
      }
      .polaroid-tips .tip-holder .tip.tilt .icon {
        background-image: url('../assets/tip_icon_tilt@2x.png');
        animation: tip-tilt-icon 4s both;
      }
    .polaroid-tips .tip-holder .tip .arrow {
      background-size: contain;
      width: 84px;
      height: 84px;
    }
      .polaroid-tips .tip-holder .tip.slide .arrow {
        background-image: url('../assets/tip_arrow_slide@2x.png');
        animation: tip-slide-icon 4s linear both;

      }
      .polaroid-tips .tip-holder .tip.tilt .arrow {
        background-image: url('../assets/tip_arrow_tilt@2x.png');
        animation: tip-tilt-arrow 4s both;

      }

    .polaroid-tips .tip-holder .tip .tip-label {
      font-size: 18px;
      color: #fff;
      bottom: 0px;
      letter-spacing: 1.8px;
      font-family: 'Pill Gothic 600mg Regular';
      width: 100%;
      text-align: center;
    }


/*Tip animations are all on a 4s timeline because of aimation-delay glitches*/
@keyframes tip-fade-out {
  0%, 50% {
    opacity: 1;
  }
  55%, 100% {
    opacity: 0;
  }
}

@keyframes tip-fade-out-mobile {
  0%, 95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}


@keyframes tip-fade-in-out-slide {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  45% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}
@keyframes tip-fade-in-out-tilt {
  0%, 50% {
    opacity: 0;
  }
  55% {
    opacity: 1;
  }
  95% {
    opacity: 1
  }
  100% {
    opacity: 0;
  }
}


@keyframes tip-tilt-icon {
  0%, 50% {
    transform: rotate3d(0,1,0,0deg);
  }
  62.5% {
    transform: rotate3d(0,1,0,-40deg);
  }
  87.5% {
    transform: rotate3d(0,1,0,40deg);
  }
  100% {
    transform: rotate3d(0,1,0,0deg);
  }
}


@keyframes tip-slide-icon {
  0% {
    transform: translate3d(0,0,0);
  }
  12.5% {
    transform: translate3d(-20px,0,0);
  }
  37.5% {
    transform: translate3d(20px,0,0);
  }
  50%, 100% {
    transform: translate3d(0,0,0);
  }
}

@keyframes p-pulsing {
  0% {
    opacity: 0.5;
  }
  15% {
    opacity: 0.9;
  }
  30% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.5;
  }
}
