@import "variables.less";

.ageloc-wrap {
  .ion-content {
    background-color: transparent;
  }

  .photo-center-home-image {
    position: relative;
    width: 55%;
    height: auto;
    margin: 5px auto;

    &.photo-center-home-border {
      border: 3px solid blue;
    }

    img {
      height: auto;
      width: 100%;
    }

    .days-ago {
      position: absolute;
      right: 15px;
      bottom: 15px;
      color: white;
      background: rgba(0, 0, 0, 0.3);
      span {
        font-size: 15px;
      }
    }
  }

  .list-center {
    ul {
      margin: 0 auto 20px;
      padding-left: 0;
      max-width: 320px;
      width: 100%;

      li {
        &:first-child {
          border-top: 1px solid @bespokeLightGray;;
        }

        position: relative;
        padding: 12px 0;
        text-align: center;
        border-bottom: 1px solid @bespokeLightGray;
        cursor: pointer;

        @media only screen and (max-width: @break) {
          padding: 12px 0;
        }

        h2 {
          font-weight: normal;
          text-transform: uppercase;
          position: relative;
          margin: 0;
          display: block;
          font-size: 14pt;

          .h2-right {
            float: right;
            padding-right: 20px;
          }
        }
      }
    }
  }

  .select {
    display: inline;
  }

  .photo-gallery {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    position: relative;
    width: 100%;

    .gallery-image, .before-after-gallery-image {
      width: 30%;
      height: 30%;
      overflow: hidden;
      position: relative;
      margin: 5px;

      img {
        width: 100%;
        height: auto;

        /*
        &.selected {
          border-top: 3px solid @photoGalleryBlue;
          border-bottom: 3px solid @photoGalleryBlue;
        }
        */
      }
    }

    .before-after-gallery-image {
      img {
        position: relative;
        width: 100%;
        height: 100%;
      }

      .select-div {
        border-bottom-width: 30px;
      }

      .days-ago {
        position: absolute;
        bottom: 5px;
        width: 100%;

        color: white;
        text-shadow:
          -1px -1px 0 #000,
           1px -1px 0 #000,
          -1px  1px 0 #000,
           1px  1px 0 #000;
      }
    }
  }

  .gallery-subtitle {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 10px;

    h2 {
      &.selected {
        color: @photoGalleryBlue;
      }
    }
  }

  .select-div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    box-sizing: border-box;

    border: 4px solid @photoGalleryBlue;
  }
  .gallery-footer {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    position: relative;
    width: 100%;

    .footer-image {
      width: 50px;
      height: 50px;
      position: relative;

      img {
        width: 100%;
        height: auto;
      }
    }
  }

  .select-photo-image {
    position: relative;
    width: 57%;
    height: auto;
    margin: 5px auto;

    img {
      height: auto;
      width: 100%;
    }
  }

  .select-photo-slider {
    height: auto;
    width: 100%;
    overflow-x: scroll;
    white-space: nowrap;
    transform: translate3d(0,0,0);

    .photo {
      display: inline-block;
      width: 12%;
      margin: 0 3px;

      img {
        height: auto;
        width: 100%;

        &.selected {
          border: 3px solid @photoGalleryBlue;
        }
      }
    }
  }

  .social-share-content{
    display:flex;
    flex-wrap: nowrap;
    position: relative;
    padding-bottom: 10px;

    .social-share-image {
      position: relative;
      width: 40%;
      height: auto;
      margin: 5px;

      img {
        height: auto;
        width: 100%;
      }
    }

    .social-share-caption {
      width: 60%;
      margin: 5px;

      textarea {
        width: 100%;
        height: 100%;
        border: none;
        font-family: inherit;
      }
    }
  }

  .social-share-list {
    ul {
      padding-left: 0;
      width: 100%;
      max-width: 320px;
      border-top: 1px solid @bespokeLightGray;

      li {
        /*
        &:first-child {
          border: 1px 1px solid @bespokeLightGray;;
        }
        */

        position: relative;
        padding: 8px 0;
        border-bottom: 1px solid @bespokeLightGray;
        cursor: pointer;

        @media only screen and (max-width: @break) {
          padding: 12px 0;
        }

        h2 {
          width: 80%;
          font-weight: normal;
          text-transform: uppercase;
          text-align: center;
          position: relative;
          margin: 0;
          display: inline-block;
          font-size: 14pt;
        }
      }
    }

    button {
      margin-top: 12px;
      width: 100%;
      max-width: 320px;
    }
  }

  .photo-split {
    position: relative;
    margin: 5px auto;
    border: 4px solid @beforeAfterHeaderBlue;

    canvas {
      position: relative;

      &#splitLeft {
        padding-right: 1px;
      }

      &#splitRight {
        padding-left: 1px;
      }
    }

    .right-label, .left-label {
      pointer-events: none;
      position: absolute;
      bottom: 15px;
      color: white;
      background: rgba(0, 0, 0, 0.3);
      span {
        font-size: 15px;
      }
    }

    .right-label {
      right: 15px;
    }

    .left-label {
      left: 15px;
    }
  }

  #home-list {
    i.icon {
      &.camera {
        width: 45px;
        background-size: contain;
        margin-left: 5px;
        background: url('@{phonegapImageUrl}photocentericon.svg') no-repeat center;
      }
    }
  }

  .photo-images {
    //display: none;
    padding-top: 1500px;

    &.adjusted {
      height: auto;

      .split {
        width: 60%;
      }

      .side-by-side {
        width: 45%;
      }

      img {
        width: 100%;
      }
    }

    img {
      height: auto;
      width: auto;
    }
  }

  .page-content {
    &.photo-compare {
      overflow: hidden;
    }
  }

  .compare-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;

    .footer-image {
      position: relative;
      padding: 20px;
      //height: auto;

      &.side {
        width: 70px;
      }

      &.split {
        width: 35px;
      }

      &.left, &.right {
        width: 35px;
      }

      img {
        width: 100%;
        height: auto;
      }
    }
  }
}

.take-photo-image {
  width: 200px;
  height: 250px;
  margin: 15px auto;

  &.take-photo-border {
    border: 3px solid blue;
  }

  img {
    height: 250px;
    width: 200px;
  }
}

.take-photo-list {
  ul {
    margin: 0 auto 20px;
    padding-left: 0;
    max-width: 320px;
    width: 100%;

    li {
      &:first-child {
        border-top: 1px solid @bespokeLightGray;;
      }

      position: relative;
      padding: 12px 0;
      text-align: center;
      border-bottom: 1px solid @bespokeLightGray;
      cursor: pointer;

      @media only screen and (max-width: @break) {
        padding: 12px 0;
      }

      h2 {
        font-weight: normal;
        text-transform: uppercase;
        color: #a1a3a6;
        position: relative;
        margin: 0;
        display: block;
        font-size: 14pt;
      }
    }
  }
}

#ageloc-camera-interface {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  font-size:22px;
  text-align:center;
  font-style:normal;
  color:white;
  font-family:Arial, sans-serif;
  background-color: transparent;
  background:url("phonegap-images/overlay.png");
  background-size:100% 100%;
  background-repeat:no-repeat;

  @media only screen and (min-width: @phone-break) {
    background-color: transparent;
    background:url("phonegap-images/overlay_tablet.png");
    background-size:100% 100%;
    background-repeat:no-repeat;
  }

    /* Dashed lines */
  &:before {
    content:' ';
    display:block;
    position:fixed;
    width:20px;
    height:50%;
    border-left:4px rgba(255,255,255,0.4) dashed;
    left:50%;
    top:40%;
    transform:translateY(-50%);
  }

  &:after {
    content:' ';
    display:block;
    position:fixed;
    height:20px;
    width:60vw;
    @media only screen and (min-width: @phone-break) {
      width: 50vw;
    }
    min-width:50px;
    border-top:4px rgba(255,255,255,0.2) dashed;
    top: 35%;
    left:50%;
    transform:translateX(-50%);
  }

  /* Buttons */
  .close, .reverse, .icon-info {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 15px;
    opacity: 0.9;
  }

  .icon-info {
    left: ~"calc(50% - 25px)";
    opacity:0.9;
    border: 1px;
    text-align: center;

    .info-hilite {
      width: 24px;
      height: 24px;
      position: absolute;
      left: ~"calc(50% - 12px)";

      &.hilite {
        left: ~"calc(50% - 15px)";
        color: @photoGalleryBlue;
        border: 6px @photoGalleryBlue solid;
        border-radius: 100%;
      }
    }
  }

  .close {
    right: 15px;
    text-align: right;
  }

  .reverse {
    left: 15px;

    img {
      width: 24px;
      height: 24px;
      float: left;
    }
  }

  .take-photo {
    content:' ';
    position:absolute;
    display:block;
    width:48px;
    height:48px;
    background-color:rgba(255,255,255,0.95);
    left:50%;
    bottom:30px;
    transform:translate(-50%);
    border-radius:100%;
  }

  .take-photo:after {
    content:' ';
    display:block;
    position:absolute;
    width:120%;
    background:transparent;
    height:120%;
    left:50%;
    top:50%;
    transform:translateY(-50%)translateX(-50%);
    border:6px white solid;
    border-radius:100%;
  }

  .new-image {
    position:absolute;
    right:15px;
    bottom:20px;
    width:50px;
    border:solid rgba(255,255,255,0.7) 1px;

    height:auto;
  }

  img {
    &.mirror {
      -webkit-transform: scale(-1, 1);
      transform: scale(-1, 1);
    }
  }

  @keyframes camera-blip {
    0% {
      background-color: transparent;
      transition: background-color .1s linear}
    50% {
      background-color: white;
      transition: background-color .1s linear
    }
    100% {
      background-color: transparent;
      transition: background-color .05s linear
    }
  }

  &.screen-flash {
    animation: camera-blip .25s 1;
  }
}

.popup-wrap {
  .gotham();

  .lighting-info {
    color: black;

    ul, p {
      font-size: 14pt;
    }

    ul {
      list-style: disc outside none;
      padding: 0 0 20px 20px;
      text-align: left;
    }
  }

  .save-image {
    p {
      font-size: 14pt;
    }

    button {
      margin-top: 20px;
    }
  }
}

.photo-center-spinner {
  display: none;
  position: absolute;
  left:50%;
  top:50%;
  transform:translateY(-50%)translateX(-50%);
  width: 10%;
  height: auto;
  text-align: center;
  margin: auto;
  background: transparent;
  z-index: 100;
}

.footer {
  .refresh {
    position: absolute;
    left: 50%;
    top: 10px;
    //top:50%;
    transform: translateX(-50%)/* translateY(-50%)*/;
  }
}