@import "./input-range.scss";

.uppload-container {
  .active-effect-container {
    flex: 1 0 0;
    text-align: center;
  }

  .effects-continue button.uppload-button {
    display: inline-block;
    margin: 0 1rem;
  }

  footer.effects-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;

    .effects-tabs {
      // This width is updated with JavaScript
      width: 100px;
      display: flex;
      overflow-x: auto;
      flex-wrap: nowrap;
    }

    .effects-tabs-flow {
      display: flex;
      flex-wrap: nowrap;
      white-space: nowrap;
    }

    input[type="radio"] {
      position: absolute;
      opacity: 0;
    }

    label {
      display: block;
      padding: 0.5rem 0;
      text-align: center;
      width: 4.5rem;
      font-size: 120%;
      transition: 0.2s;

      span {
        font-size: 55%;
        display: block;
      }
      svg {
        display: block;
        margin: 0.2rem auto;
        height: 1.25rem;
      }
    }
  }

  .uppload-effect {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.2s;
    .active-effect-container {
      flex: 1 0 0;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      > div:first-child {
        flex: 1 0 0;
      }

      .settings {
        text-align: center;
        padding: 1rem 0;

        button.flip-btn-horizontal,
        button.flip-btn-vertical {
          font: inherit;
          border: none;
          line-height: 1;
          padding: 0.5rem 1rem;
          margin: 0 0.25rem;
          border-radius: 5rem;
        }

        .value {
          display: inline-block;
          vertical-align: middle;
          margin-left: 0.5rem;
        }
      }

      input[type="range"] {
        margin: 0 auto;
        width: 75%;
      }
    }
  }

  .uppload-preview-element {
    text-align: center;
  }

  .uppload-hue-image {
    text-align: center;
  }

  .uppload-actions {
    text-align: center;
    margin-top: 0.5rem;
    label {
      position: relative;
      display: inline-block;
      padding: 0.5rem 1rem;
      margin: 0 -0.25rem;
      &:first-of-type {
        padding-left: 1.5rem;
        border-radius: 2rem 0 0 2rem;
      }
      &:last-of-type {
        padding-right: 1.5rem;
        border-radius: 0 2rem 2rem 0;
      }
    }
    input[type="radio"] {
      opacity: 0;
      position: absolute;
      &:checked + label {
        font-weight: bold;
      }
      &:focus + label {
        z-index: 1;
      }
    }
  }

  .uppload-effect--rotate .cropper-drag-box {
    background-color: transparent;
  }
}
