@import "../../../../responsive";

.general-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;

  @include width-medium {
    position: absolute;
    top: 8.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: calc(100vh - 10.5rem);
    margin: auto;
  }
}

// position: absolute;
//   top: 8.5rem;
//   left: 50%;
//   transform: translateX(-50%);
//   width: 800px;
//   height: calc(100vh - 10.5rem);
//   margin: auto;
//   padding: 2rem 2rem;
//   overflow: auto;
//   border-radius: 10px;
//   border: var(--gold-3);
//   background-image: url("/assets/images/texture-0.jpg");
//   box-shadow: var(--shadow);

.first-row {
  display: flex;
  justify-content: space-between;
}

.image-container {
  width: 24rem;
  height: 24rem;
  position: relative;
  border: var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  background-image: url("/assets/images/texture-0.jpg");
  border-radius: 10px;
  overflow: hidden;

  &:hover {
    .upload-icon {
      opacity: 1;
    }
    .image-icon {
      opacity: 0;
    }
    .portrait {
      filter: brightness(0.8);
    }
  }

  .portrait {
    width: 24rem;
    height: 24rem;
    object-fit: cover;
    transition: all 0.2s ease-in-out;
  }

  .upload-icon {
    position: absolute;
    opacity: 0;
    left: 12rem;
    top: 12rem;
    width: 3rem;
    height: 3rem;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease-in-out;
    background-color: #b7b7b763;
    border-radius: 10px;
  }

  .image-icon {
    position: absolute;
    opacity: 1;
    left: 12rem;
    top: 12rem;
    width: 3rem;
    height: 3rem;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease-in-out;
  }

  .upload-input {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    cursor: pointer;
  }
}

.looks {
  width: 25rem;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;

  .looks-entry {
    display: flex;
    justify-content: space-between;

    .looks-field {
      width: 12.5rem;
      height: 1.75rem;
      background-image: url("/assets/images/texture-0.jpg");
      border-radius: 4px;
      border: var(--gold-1);
      box-shadow: var(--shadow);
      padding-left: 1rem;
    }
  }

  .looks-input {
    width: 12.5rem;
    box-shadow: var(--shadow);
    border-radius: 4px;
    overflow: hidden;
  }

  ::ng-deep .mat-mdc-form-field-infix {
    height: 32px !important;
    min-height: 32px !important;
    padding-top: 4px !important;
    background-image: url("/assets/images/texture-0.jpg");
  }
}

.description {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

  .description-label {
    font-weight: 500;
  }

  .description-input {
    resize: none;
    height: 20rem !important;
    width: 18.75rem;
    background-image: url("/assets/images/texture-0.jpg");
  }

  .description-wrapper {
    height: 100%;
    width: 20rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    border-radius: 4px;
  }
}

.personality {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;

  .personality-box {
    width: 25%;
    height: 20rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;

    @media (height < 930px) {
      height: 15rem;
    }

    .personality-wrapper {
      width: 100%;
      height: 90%;
      box-shadow: var(--shadow);
      overflow: hidden;
      border-radius: 4px;
    }

    .personality-input {
      resize: none;
      height: 15rem;
      @media (height < 930px) {
        height: 10rem;
      }
    }

    .personality-area {
      width: 100%;
      height: 100%;
      border-radius: 10px;
      box-shadow: var(--shadow);
      resize: none;
      padding: 1rem;
    }

    .personality-label {
      font-weight: 500;
    }
  }
}

::ng-deep .mdc-text-field--outlined {
  background-image: url("/assets/images/texture-0.jpg") !important;
}
