@import "/assets/css/_lib";

.profile_edit {
  padding: 83px 0 80px;
  box-sizing: border-box;
  .title {
    padding-left: 16px;
    font-size: 24px;
    font-weight: normal;
  }
  .contents_area {
    padding: 0 16px;
    @include pc {
      width: 343px;
      margin: 0 auto;
    }
  }
  .file_area {
    margin-top: 23px;
    text-align: center;
    .cover_area {
      overflow: hidden;
      position: relative;
      height: 200px;
      background-color: #eee;
      @include pc {
        height: 260px;
        width:100%;
      }
      img {
        // position: absolute;
        // top: -50%;
        // right: -50%;
        // bottom: -50%;
        // left: -50%;
        // width: 100%;
        // margin: auto;
        width: 100%;
        object-fit: cover;
      }
    }
    .image_area {
      overflow: hidden;
      position: relative;
      z-index: 1;
      width: 100px;
      height: 100px;
      margin: -50px auto 0;
      background-color: #eee;
      border: 3px solid #fff;
      border-radius: 100%;
      img {
        width: 100%;
      }
    }
    .file_info {
      margin-top: 18px;
      font-size: 14px;
      line-height: 20px;
      color: #888;
    }
    .file_info_cover {
      margin-top: 5px;
      font-size: 14px;
      line-height: 20px;
      color: #888;
    }
  }
  .file_select_area {
    margin-top: 16px;
  }
  .profile_input {
    margin-top: 37px;
    .input_container {
      display: flex;
      &.duplicate {
        .input {
          border-color: #f00;
        }
        .duplicate_icon {
          display: block;
        }
      }
      &.checked {
        .checked_icon {
          display: block;
        }
      }
      .input {
        padding-right: 30px;
      }
      .input_wrapper {
        position: relative;
        flex-grow: 1;
      }
      .icon {
        display: none;
        position: absolute;
        top: 26px;
        right: 9px;
      }
      .duplicate_check {
        height: 42px;
        margin: 15px 0 0 8px;
        padding: 7px 14px;
        border-radius: 20px;
        border: 1px solid #ddd;
        vertical-align: top;
        font-weight: bold;
        font-size: 14px;
        white-space: nowrap;
      }
    }
    .input_title {
      display: block;
      font-size: 16px;
    }
    .optional {
      margin-left: 6px;
      font-size: 14px;
      color: #888;
      font-weight: normal;
    }
    .input {
      width: 100%;
      height: 42px;
      padding: 0 16px;
      margin-top: 15px;
      border-radius: 20px;
      border: 1px solid #ddd;
      font-size: 14px;
      box-sizing: border-box;
    }
    .textarea {
      overflow: hidden;
      width: 100%;
      padding: 12px 16px;
      margin-top: 15px;
      border-radius: 20px;
      border: 1px solid #ddd;
      box-sizing: border-box;
      resize: none;
      font-size: 14px;
      line-height: 18px;
      &::placeholder {
          color: #888;
      }
    }
    .author_btn {
      display: block;
      height: 37px;
      line-height: 37px;
      margin-top: 15px;
      background-image: linear-gradient(to right, rgba(249, 72, 160, 1) 0%, rgba(22, 220, 207, 1));
      font-size: 14px;
      color: #fff;
      border-radius: 18px;;
      text-align: center;
    }
  }
  .btn_area {
    margin-top: 30px;
    text-align: center;
    .update_btn {
      padding: 10px 38px;
      border: 1px solid #16dccf;
      border-radius: 18px;
      font-size: 14px;
      color: #16dccf;
    }
  }
}
