.body-portfolio {
  width: 98.2rem;
  min-height: 100%;
  margin: 0 auto;
  position: relative;
}
.portfolio-top {
  width:100%;
  height: 8.4rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: #5a371e;
  line-height: 4.4rem;
  text-align: center;
  padding: 2rem 0;
}

.portfolio-top .tab-select {
  display: inline-block;
  background-color: #ffffff;
  border-radius: 2.2rem;  
  padding: 0 3.2rem;
  margin: 0 0.3rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: #5a371e;
}

.portfolio-top .tab-select + .tab-select {
  margin-left: 0.75rem;
}

.portfolio-top .tab-select.selected {
  background-color: #7855ff;
  color:#ffffff;
}

.portfolio-subtop {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 66.6rem;
  height: 6.4rem;
  margin: 0 auto;
}
.portfolio-subtop .date-select {
  width: 30rem;
  height: 4.8rem;
  margin-left: auto;
}
 
.tab-profile-container .name-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tab-profile-container .badge-wrap {
  position:relative;
  width: 6.4rem;
  height: 6.4rem;
}
.tab-profile-container .badge-wrap .photo {
  width: 6.4rem;
  height: 6.4rem;
  border: .2rem solid #482916;
  border-radius: 50%;
  box-sizing: border-box;
  overflow: hidden;
}
.tab-profile-container .badge-wrap p.badge {
  position: absolute;
  bottom: -0.3rem;
  right: -0.5rem;
  width: 3rem;
  height: 3rem;
}

.tab-profile-container img {
  display: inline-block;
  width: 100%;
}

.tab-profile-container .infor-wrap {
  padding-left: 1rem;
}

.tab-profile-container .infor-wrap .inner{
  display: table;
}

.tab-profile-container .nickname {
  display: table-cell;
  font-family: 'littlePrince', sans-serif;
  font-size: 2.6rem;
  font-weight: 400;
  color: #5A371E;
  line-height: 100%;
  vertical-align: middle;
  padding-right: .7rem;
}
.tab-profile-container .level {
  display: table-cell;
  width: 2.6rem;
  height: 4rem;
  vertical-align: middle;
  font-family: 'littlePrince', sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1rem;
  text-align: center;
  background-image: URL('../_images/icon_level_back.png');
  background-repeat: no-repeat;
  background-size: 2.6rem 2.8rem;
  background-position: 50%;
  overflow: hidden;
}

.tab-profile-container .title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #5A371E;
  line-height: 100%;
  margin-top: .2rem;
}

.portfolio-wrap-null {
  max-width: 98rem;
  width: 100%;
  min-height: calc(78.8rem - 27.8rem);
  background-image: URL('../_images/report_null_back.png');
  background-color: #ffffff;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: 50% 100%;
  border-radius: 1.6rem;
  margin: 2rem auto 4rem;
  position: relative;
}

.portfolio-wrap-null .ment-balloon {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 30rem;
  height: 15.4rem;
  color: #5A371E;
  text-align: center;

}

.portfolio-wrap-null .ment-balloon img {
  display: inline-block;
  width: 100%;
}
.portfolio-wrap-null .ment-balloon h3 {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'littlePrince', sans-serif;
  font-size: 2.4rem;
  font-weight: 400;
  color: #7855ff;
}

.portfolio-wrap-null .ment-balloon p {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  width: 25rem;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.5em;
}

.portfolio-wrap-null .gif-animation{
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translateX(-50%);
  width: 21.2rem;
  height: 21.2rem;
}
.portfolio-wrap-null .gif-animation img {
  display: inline-block;
  width: 100%;
}

.full-popup__content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  flex: 1 1 auto;
  width: 98.2rem;
  min-height: 100%;
  margin: 0 auto;
  position: relative;
}

.portfolio-popup-wrap {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow-y: auto;
}

.portfolio-popup-header {
  width: 100%;
  background-color: #ffffff;
  padding: 1.8rem 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position:relative;
}

.portfolio-popup-header .page-title {
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1.6;
  letter-spacing: -0.2px;
  text-align: center;
  vertical-align: middle;
  color: #222222;
}

.portfolio-popup-header .close {
  position: absolute;
  right: .5rem;
  width: 4rem;
  height: 4rem;
  cursor: pointer;
  background-color: #ffffff;
}
.portfolio-popup-header .close img {
  display: inline-block;
  width: 2.4rem;
  height: 2.4rem;
}


/* 포트폴리오 상세 팝업 common */
.portfolio-type-title {
  width: 100%;
  padding: 2rem 4rem;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #5A371E;
  background-color: #EEEAFF;
}
.portfolio-type-body {
  width: 100%;
  padding: 2rem 4rem;
}

.protfolio-type-prompt-box {
  background-color: #EEEEEE;
  padding: 2rem;
  color: #5A371E;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
  border-radius: 1.2rem;
}

.protfolio-type-prompt-box .prompt-title strong {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -0.02em;
  display: inline-block;
  margin-bottom: .7rem;
}
.protfolio-type-prompt-box .prompt-content p {
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
}
.protfolio-type-prompt-box .prompt-date{
  color: #777777;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
  margin-top: .7rem;
}

.portfolio-type-content-box {
  margin-top: 2.4rem;
  padding: 2rem;
  font-size: 1.6rem;
  color: #222222;
  line-height: 1.6;
  letter-spacing: -0.02em;
  outline: 1px solid #5A371E;
  border: 2px solid #E0D7FF;
  border-radius: 1.2rem;
}

.portfolio-content-body {
  margin-top: 1.2rem;
  word-break: keep-all;
  word-wrap: break-word;
}

.portfolio-type-content-box + .portfolio-type-content-box {
  margin-top: 2rem;
}
.portfolio-content-title strong {
  font-weight: 700;
  display: inline-block;
  position:relative;
  z-index:1;
}
.portfolio-content-title strong.highlighting::after {
  content: '';
  left: 0;
  bottom: 0.2rem;
  width: 100%;
  height: 1rem;
  background-color: #A1FFFA;
  z-index: -1;
  position: absolute;
}
.portfolio-sub-title {
  font-size: 1.4rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #555555;
  margin-bottom: .5rem;
  margin-top: 1.6rem;
}
.portfolio-sub-title strong {
  font-weight: 800;
}

.portfolio-info-table {
  width: 100%;
  margin-top: 2.4rem;
}
.portfolio-info-table dl {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  row-gap: 1.2rem;
}
.portfolio-info-table dt,
.portfolio-info-table dd {
  display: inline-block;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #777777;
}
.portfolio-info-table dt {
  font-size: 1.4rem;
  font-weight: 700;
}
.portfolio-info-table dd {
  font-size: 1.6rem;
  font-weight: 400;
}

.btn-remove-character {
  flex: none;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: url("../_images/icon_trash_brown_24.svg") no-repeat center / 24px;
}

/* portfolio-letter */
.portfolio-letter-content .input-field-wrap input {
  max-width: 50%;
}
.portfolio-letter-contents {
  word-break: keep-all;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.portfolio-letter-date {
  font-weight: 700;
  text-align: center;
}
.portfolio-letter-from {
  text-align: right;
  font-weight: 700;
}

/* diary */
.portfolio-diary-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portfolio-diary-title strong {
  display: inline-block;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.portfolio-diary-weather-image {
  display: inline-block;
  width: 4.8rem;
  height: 4.8rem;
  margin-left: auto;
}

.portfolio-diary-weather-image img {
  display: inline-block;
  width: 100%;
}

.portfolio-drawing-content .portfolio-content-body {
  padding: 2rem 0;
  text-align: center;
  width: 98.2rem;
  margin: 0 auto;
}

.portfolio-drawing-content .portfolio-content-body img {
  display: inline-block;
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* portfolio-editor */
.portfolio-edit-edit-box {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.input-field-wrap {
  display: flex;
  width:100%;
  align-items: center;
  gap: 1.6rem;
}

.input-field-wrap strong {
  flex: none;
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #5A371E;
}
.portfolio-edit-contents {
  text-align: center;
}

.portfolio-edit-contents .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.input-field-wrap input {
  width: 100%;
  height: 100%;
  font-size: 1.6rem;
  color: #222222;
  padding: 1.2rem 2rem;
  border-radius: .8rem;
  border: 1px solid #ddd;
  flex: 1 1 auto;
}

.input-field-wrap input::placeholder {
  color : #AAAAAA;
}

.textarea-field-wrap textarea {
  width:100%;
  border-radius: .8rem;
  font-size: 1.6rem;
  line-height: 1.6;
  border: 1px solid #ddd;
  padding: 1rem 1.2rem;
  resize: none;
}

.textarea-length {
  text-align: right;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #AAAAAA;
}

.input-field-wrap input:disabled,
.textarea-field-wrap textarea:disabled {
  background: #f5f5f5;
  color: #aaa;
}

.button-portfolio-card-add {
  border-radius: .8rem;
  padding: 1rem 1.6rem;
  border: 1px solid #bbb;
  display: inline-block;
  color: #777777;
  font-size: 1.6rem;
  line-height: 1.6;
  letter-spacing: -.2px;
  font-weight: 800;
}

.portfolio-edit-edit-box + .portfolio-edit-edit-box {
  padding-top: 2.4rem;
  border-top: 1px dashed #4E2F16;
  margin-top:2.4rem;
}

.portfolio-edit-edit-box:last-child {
  padding-bottom: 2.4rem;
}

.weather-selectbox {
  width: 30rem;
  height: 4.8rem;
  margin-right: auto;
  margin-bottom: 1.6rem;
}

/* image upload */
.portfolio-drawing-content .file-upload-wrap {
  margin-top: 2.4rem;
  text-align: left;
}

.portfolio-drawing-content .file-upload-title {
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.6;
  letter-spacing: -.2px;
  color: #222;
  text-align: left;
}

.file-upload-label {
  border: 1px solid #bbb;
  border-radius: .8rem;
  padding: 1rem 1.6rem;
  display: block;
  margin: 1.6rem 0 .8rem;
  text-align: center;
  color: #777;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -.2px;
  cursor: pointer;
}
.file-upload-label .icon-upload {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  margin-right: .8rem;
  vertical-align: middle;
  background: url("../_images/icon_file_20.svg") no-repeat center / 100%;
}
.file-validation {
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.4;
  letter-spacing: -.2px;
  color: #777;
  display: inline-block;
  position:relative;
  margin-left: 1em;
}
.file-validation::before {
  content: '*';
  font-size: 1.3rem;
  color: #777;
  position: absolute;
  left: 0;
  top: 0;
  transform: translateX(-10px);
}

.selected-file-name {
  background-color: #F3F0FF;
  border-radius: .8rem;
  padding: .8rem .8rem .8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.selected-file-name .file-upload-name {
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.6;
  letter-spacing: -.2px;
  text-align: left;
  color: #5A371E;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.selected-file-name .icon-purple-doc {
  display: inline-block;
  flex: none;
  width: 2rem;
  height: 2rem;
  margin-right: .8rem;
  vertical-align: middle;
  background: url("../_images/icon_purple_file_20.svg") no-repeat center / 100%;
}

.selected-file-name .file-size {
  flex:none;
  font-weight: 400;
  color: #777;
  display: inline-block;
  margin-left: .8rem;
}

.selected-file-name .icon-delete {
  display: inline-block;
  width: 2.4rem;
  height: 2.4rem;
  vertical-align: middle;
  background: url("../_images/icon_file_del_24.svg") no-repeat center / 100%;
  cursor: pointer;
  flex:none;
  margin-left: auto;
}

.image-preview {
  border: 1px solid #e0d7ff;
  padding: 2rem 1.6rem;
  border-radius: .8rem;
}
.image-preview-title {
  margin-bottom: 1.2rem;
  color: #222;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.6;
  letter-spacing: -.2px;
  text-align: left;
}

.image-preview img {
  width: auto;
  height: 100%;
  max-width: 100%;
  display: inline-block;
  object-fit: contain;
}


/* 디지털 문해력 */
.portfolio-tab-list {
  border-bottom: 1px solid #EFEFEF;
}
.portfolio-tab-list .tab-item {
  display: inline-block;
  padding: 1.2rem 2rem;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #777777;
}

.portfolio-tab-list .tab-item.selected {
  font-weight: 800;
  color: #7855ff;
  border-bottom: 2px solid #7855FF;
}

.for-tab-2 .portfolio-edit-contents {
  margin-top : 2.4rem;
}

/*  포트폴리오 목록  */
.portfolio-list-container {
  overflow-y: auto;
  padding: 4rem;
  width: 100%;
  min-height: calc(78.8rem - 27.8rem);
  background-color: #ffffff;
  border-radius: 1.6rem;
  position: relative;
  margin-top: 2rem;
}

.portfolio-list-container.load-list {
  padding-bottom: 8rem;
}

.book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.book-card .sr-only {
 position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.book-card__thumbnail-wrap {
  border-radius: 0.4rem;
  overflow: hidden;
  border: 1px solid #ddd;
}

.book-card__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card__content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.book-card__title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #222;
  line-height: 1.5;
  letter-spacing: -0.2px;

  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.book-card__author {
  font-size: 1.4rem;
  font-weight: 700;
  color: #666;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.portfolio__actions {
  margin-top: auto;
}

.btn-certificate {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  width: content-fit;
  font-size: 1.4rem;
  font-weight: 700;
  color: #555;
  text-align: center;
  letter-spacing: -0.2px;
  border: 1px solid #666;
  background: #FFF;
  cursor: pointer;
  border-radius: 99.9rem;

}

.portfolio__list-wrap .btn-more-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5.6rem;
  border-top: 1px solid #ddd;
}

.portfolio__list-wrap  .portfolio__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.4rem, 16.4rem));
  column-gap:2rem;
  grid-auto-rows: 1fr; 
  row-gap: 4rem;
}
.portfolio__list-wrap  .portfolio__item {
  display: flex;
  flex-direction: column;
  position: relative;
}

.portfolio__list-wrap .btn-more-wrap .btn-list-more {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  cursor: pointer;
  width: 100%;
  height: 100%;
  background-color: #fff;
  cursor: pointer;
}

.portfolio__list-wrap .btn-more-wrap .btn-list-more:before {
  content: '';
  display: inline-block;
  width: 2.4rem;
  height: 2.4rem;
  margin-right: 0.8rem;
  background: url("../_images/icon_arrow_more.svg") no-repeat center;
  background-size: cover;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.portfolio__list-wrap .btn-more-wrap .btn-list-more.is-active:before {
  transform: rotate(180deg);
}

/* 포트폴리오 공통 정의 */
.portfolio-popup-wrap .buttons-wrap {
  max-width: auto;
}

.portfolio-popup-wrap .button {
  display: inline-block;
  width: 24rem;
  height: 5.4rem;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 5.2rem;
  color: #ffffff;
  text-align: center;
  border: .2rem solid rgba(90, 55, 30, 1);
  border-radius: 2.7rem;
  box-sizing: border-box;
  background-image: URL("../_images/btn_light.png");
  background-repeat: no-repeat;
  background-color: #aaaaaa;
  background-size: 1.5rem;
  background-position: .7rem .7rem;
  margin: 0 .8rem;
  position: relative;
}

.portfolio-popup-wrap .button:not(.button-confirm):after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(24rem - .8rem);
  height: calc(100% - .4rem);
  border: .2rem solid rgba(255, 255, 255, .5);
  border-radius: 2.6rem;
  transform: translate(-50%, -50%);
  z-index: 9;
}

.portfolio-popup-wrap .button.button-cancel {
  background-color: #aaaaaa;
}

.portfolio-popup-wrap .button.button-confirm {
  background-color: #7855ff;
  display: inline-flex;
  justify-content: center;
  width: 24rem;
}

/* 인증서 팝업  */
#certificate-full-popup {
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow-y: auto;
}

.certificate-wrap {
  position: relative;
  overflow-y: auto;
  width: 100%;
  height: 100%;
  padding: 2rem 0;
  color: #222;
  background-color: #ffffff;
}

.certificate-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 98.2rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.certificate {
  position: relative;
  width: 56.2rem;
  height: 79.6rem;
  border-radius: 1.2rem;
  background-color: transparent;
  margin: 0 auto;
}

.certificate-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.certificate-contents {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  width: 100%;
  max-width: 56.2rem;
  height: 100%;
  padding: 19.3rem 6rem 7.2rem;
  text-align: center;
}

.certificate-header__title {
  color: #7855ff;
  font-size: 3.2rem;
  font-weight: 800;
}

.certificate-header__book-title {
  display: -webkit-box;
  overflow: hidden;
  max-width: calc(100% - 12rem);
  margin: 0 auto;
  color: #555;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.certificate-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.certificate-info__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
  font-size: 2.2rem;
  font-weight: 700;
}

.certificate-info__title {
  display: flex;
  flex: 0 0 auto;
  flex-shrink: 0;
  flex-direction: row;
  justify-content: space-between;
  min-width: 8.5rem;
  font-size: 2.2rem;
  font-weight: 800;
  white-space: nowrap;
  color: #222;
}

.certificate-statement__desc {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  letter-spacing: -0.02em;
}

.certificate__issue-date {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.certificate-issuer {
  display: inline-block;

  width: 8.4rem;
  height: 3rem;
  margin: 1.2rem auto 0;
}

.certificate-issuer__logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.certificate-wrap .button-group {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.certificate-wrap .button-group .button {
  background-color: #ffffff;
  display: flex;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 1px solid #DDD;
  box-shadow: 0 0.4rem 0.8rem 0 rgb(0 0 0 / 0.16);
}