@charset "utf-8";
@import url(../../../adm/css/jquery.minicolors.css);

@font-face {
  font-family: "PyeongChangPeace-Bold";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2206-02@1.0/PyeongChangPeace-Bold.woff2")
    format("woff2");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "PyeongChangPeace-Light";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2206-02@1.0/PyeongChangPeace-Light.woff2")
    format("woff2");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "S-CoreDream";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-3Light.woff")
    format("woff");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "S-CoreDream";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-6Bold.woff")
    format("woff");
  font-weight: 600;
  font-style: normal;
}
/********************************************
* 레이아웃
*********************************************/
#body > .fix-layout {
  width: 85% !important;
  max-width: 1500px;
}
#body > .fix-layout > .mid-layout {
  padding: 80px 0 !important;
  padding-bottom: 0 !important;
}

a,
p,
span,
div,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "S-CoreDream", sans-serif;
}

a,
button {
  border-radius: 2px !important;
}

#pair_background {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: -1;
}
.bo_fx {
  text-align: center !important;
}
/********************************************
* Pair List
********************************************/
.pair-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  text-align: center;
  margin-top: 30px;
  position: relative;
  z-index: 100;
}
/* chara-item */
.chara-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.chara-item img {
  z-index: 10;
}
.chara-item .btn_modify {
  align-self: flex-end;
  z-index: 11;
  margin-bottom: 10px;
}
.chara-item .btn_modify a {
  background: #000;
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

.chara-item {
  position: relative;
  width: 100%;
}
.chara-item .chara-img {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 20px;
  top: 0;
}

.chara-item .chara-head-wrapper {
  position: relative;
  background: #fff;
  border: 1px solid #000;
  padding: 20px;
  padding-bottom: 60px;
  box-sizing: border-box;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.9);
  transform: rotate(-5deg) translateY(-50%);
  top: 60%;
}
.chara-item .chara-head-wrapper .chara-head-source {
  position: absolute;
  left: 20px;
  bottom: 40px;
  font-size: 10px;
}

.chara-item .chara-head {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border: 1px solid #000;
  box-sizing: border-box;
  background: #ddd;
}
.chara-item .chara-body-wrapper {
  position: relative;
  max-height: 100vh;
  width: 30vw;
  position: absolute;
  overflow: hidden;
}
.chara-item.chara-left .chara-body-wrapper {
  left: -40%;
}
.chara-item.chara-right .chara-body-wrapper {
  right: -40%;
}
.chara-item .chara-body {
  width: 100%;
  max-width: max-content;
  filter: drop-shadow(10px 10px 0 rgba(0, 0, 0, 0.6));
}

.chara-item .chara-body-source {
  font-size: 10px;
  width: max-content;
  text-align: center;
  z-index: 10;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.chara-item.chara-left .chara-body-source {
  right: 0;
}
.chara-item.chara-right .chara-body-source {
  left: 0;
  align-self: flex-end;
}

.chara-item.chara-left .chara-head,
.chara-item.chara-left .chara-body,
.chara-item.chara-left .chara-head-source {
  animation: CharafadeInDown 0.8s ease-out forwards; /* 애니메이션 실행 */
}
.chara-item.chara-right .chara-head,
.chara-item.chara-right .chara-body,
.chara-item.chara-right .chara-head-source {
  animation: CharafadeInUp 0.8s ease-out forwards; /* 애니메이션 실행 */
}

@keyframes CharafadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px); /* 위에서 시작 */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* 원래 위치로 */
  }
}

@keyframes CharafadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px); /* 아래에서 시작 */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* 원래 위치로 */
  }
}

.chara-footer {
  display: flex;
  position: absolute;
  bottom: 0;
  z-index: 11;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.chara-footer.chara-left {
  left: 0;
  text-align: left;
}
.chara-footer.chara-right {
  right: 0;
  text-align: right;
}

.chara-img .chara-name {
  font-size: 30px;
  font-style: italic;
  box-sizing: border-box;
  color: #fff;
  text-shadow: 2px 2px 6px #000;
  line-height: 1.1;
  font-family: "PyeongChangPeace-Light", sans-serif;
}

.chara-color {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
}
.chara-right .chara-color {
  align-self: flex-end;
}
/*pair-info*/
.pair-info {
  flex: 2;
  display: flex;
  flex-direction: column;
}
.pair-info .pair-info-header {
  align-self: center;
  display: flex;
  width: fit-content;
  flex-direction: column;
  position: relative;
  align-items: center;
}

.pair-info .pair-name {
  font-size: 40px;
  line-height: 1.1;
  font-weight: bold;
  font-family: "PyeongChangPeace-Bold", sans-serif;
  letter-spacing: -2px;
  box-sizing: border-box;
  width: fit-content;
  color: #fff;
  text-shadow: 4px 4px 1px rgba(0, 0, 0, 0.5);
  animation: CharafadeInDown 0.8s ease-out forwards;
}
.pair-info-header .pair-logo {
  width: 100%;
  max-width: 400px;
  object-fit: cover;
  overflow: hidden;
  margin: 20px auto;
  margin-top: 0;
  filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.5));
}

.pair-info-header .pair-logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: -1;
  transform: rotate(-15deg);
}

.pair-info .pair-tags {
  font-size: 20px;
  font-family: "PyeongChangPeace-Light", sans-serif;
  font-weight: 300;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  padding-top: 20px;
  margin-top: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: CharafadeInUp 0.8s ease-out forwards;
}

.pair-info .pair-desc-wrapper {
  margin: auto;
  max-width: 80%;
  font-size: 14px;
  font-weight: 300;
  font-family: "S-CoreDream", sans-serif;
  color: #333;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pair-desc-wrapper .pair-desc,
.pair-desc-wrapper .pair-chara-wrapper .pair-chara-desc {
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  line-height: 1.5;
  overflow-y: auto;
  padding: 20px;
  max-height: 40vh;
  flex: 1;
  /*스크롤바 안보이게*/
  -ms-overflow-style: none;
  scrollbar-width: none;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.pair-desc > div,
.pair-desc-wrapper .pair-chara-wrapper .pair-chara-desc > div {
  box-sizing: border-box;
}

.pair-desc-wrapper .pair-chara-wrapper {
  display: flex;
  gap: 10px;
}

.line-box-design {
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.line-box-design::after,
.line-box-design::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border: 1px solid #000;
  transform: translate(-50%, -50%);
}

.line-box-design::before {
  left: auto;
  right: 0;
  top: auto;
  bottom: 0;
  transform: translate(50%, 50%);
}

.pair-info {
  text-align: center;
}

/********************************************
* Media Queries : container / chara-item
********************************************/
@media (max-width: 768px) {
  .pair-container {
    flex-direction: column;
  }
  .chara-item {
    width: 100%;
  }
  .chara-item .chara-body {
    position: static;
    transform: none;
  }
  .chara-item .chara-body-wrapper {
    width: 100%;
    position: static;
    max-height: none;
  }
  .chara-item .chara-head-wrapper {
    top: auto !important;
    bottom: 0 !important;
    right: auto !important;
    left: 50% !important;
    transform: rotate(5deg) translateX(-50%) !important;
  }

  .pair-info {
    min-height: 0 !important;
  }
}

/********************************************
* Pair Manage
********************************************/
/* 전체 컨테이너 */
#pair_manage {
  padding: 50px 30px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #000;
  border-radius: 2px;
  box-sizing: border-box;
  max-width: 800px;
  margin: 0 auto;
}

/* 제목 */
#pair_manage h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

/* 폼 입력 필드 */
#pair_manage input[type="text"]:not(.colorpicker),
#pair_manage textarea,
#pair_manage input[type="file"] {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  font-size: 14px;
  height: auto;
}
#pair_manage .minicolors {
  display: block !important;
  width: 100% !important;
  margin: 10px 0;
}

#pair_manage:not(.pair_chara) label,
#pair_manage:not(.pair_chara) th {
  color: #333;
}

/* 텍스트 입력 필드 */
#pair_manage textarea {
  height: 240px;
  resize: vertical;
}

/* 버튼 컨테이너 */
.btn_confirm {
  text-align: center;
  margin-top: 20px;
  padding: 0 !important;
}

/* 테이블 스타일 (호칭 목록) */
.pair-nicknames table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.pair-nicknames th,
.pair-nicknames td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}

.pair-nicknames th {
  background: #f0f0f0;
  font-weight: bold;
}

/* 반응형 스타일 */
@media screen and (max-width: 1160px) {
  #body > .fix-layout {
    width: 95% !important;
  }
}
@media screen and (max-width: 600px) {
  #pair_manage {
    max-width: 100%;
    padding: 15px;
  }

  .btn_confirm .ui-btn {
    width: 100%;
    display: block;
    margin-bottom: 10px;
  }
}

/********************************************
* Pair Comment 
********************************************/
.chara-comment {
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  box-sizing: border-box;
  color: #333;
  border-radius: 10px;
  min-width: 80%;
  font-family: "S-CoreDream";
  box-sizing: border-box;
  margin-bottom: 20px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.9);
}
/* .chara-comment의 after, 말풍선의 꼬리 부분으로 사용 */
.chara-comment::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom: 10px solid transparent;
  border-top: 10px solid transparent;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.8);
}

/********************************************
* Pair Nicknames
********************************************/
.pair-nicknames {
  margin: 40px 0;
}
.pair-nicknames .pair-arrow {
  box-sizing: border-box;
  position: relative;
  padding: 10px;
  max-width: 60%;
  font-size: 14px;
  font-family: "PyeongChangPeace-Light";
  letter-spacing: 1px;
  color: #fff;
}
.pair-nicknames .left-to-right {
  border-bottom: 1px solid #fff;
  margin: 0 auto;
  margin-bottom: 30px;
  text-shadow: 2px 2px rgba(0, 0, 0, 0.5);
}

.pair-nicknames .left-to-right::before {
  content: "";
  position: absolute;
  bottom: 0px;
  right: 3px;
  content: "chevron_right";
  font-family: "Material Symbols Outlined";
  transform: translate(50%, 50%);
  font-size: 40px;
  display: inline-block;
  vertical-align: middle;
  font-weight: 100;
  color: #fff;
}
.pair-nicknames .right-to-left {
  border-top: 1px solid #fff;
  margin: 0 auto;
  margin-top: 30px;
  text-shadow: 2px 2px rgba(0, 0, 0, 0.5);
}
.pair-nicknames .right-to-left::before {
  content: "";
  position: absolute;
  top: 0px;
  left: 3px;
  content: "chevron_left";
  font-family: "Material Symbols Outlined";
  transform: translate(-50%, -50%);
  font-size: 40px;
  display: inline-block;
  vertical-align: middle;
  font-weight: 100;
  color: #fff;
}

/********************************************
* Navigation (All)
********************************************/
.all-list.board-category ul {
  display: flex;
  flex-wrap: wrap; /* 줄바꿈 허용 */
  justify-content: start; /* 왼쪽 정렬 */
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
  gap: 10px;
}

.all-list.board-category ul li {
  width: calc(100% / 3 - 10px);
  text-align: center;
  border: 1px solid #aaa;
  overflow: hidden;
  border-radius: 10px;
}
.all-list.board-category ul li.header {
  width: 100%;
  border: 0px;
  border-radius: 0;
}

.all-list.board-category ul li a {
  height: 100%;
  line-height: 1.1;
  border: 0px;
  text-align: left;
  width: 100%;
  color: #333;
  padding: 0 !important;
  background-color: rgba(255, 255, 255, 0.8);
  position: relative;
}

.all-list.board-category ul li:not(.header) a {
  min-height: 100px;
}

.all-list.board-category ul li a img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}
.all-list.board-category ul li a.point {
  background: none;
  font-family: "PyeongChangPeace-Light";
  font-size: 20px;
  padding-bottom: 10px !important;
}

.all-list.board-category ul li a.point:hover {
  background: none;
  color: #333;
}

.all-list.board-category ul li a p {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  padding: 10px;
  font-family: "PyeongChangPeace-Light";
  font-size: 13px;
  color: #fff;
  width: 100%;
  text-align: center;
  transition: all ease-in-out 0.1s;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}
.all-list.board-category ul li a:hover p {
  transform: translate(-50%, 0);
}

.all-list.board-category ul li:first-child {
  border-bottom: 2px solid #333;
  font-size: 20px;
}

/********************************************
* Media Queries : Navigation (All)
********************************************/
@media (max-width: 768px) {
  .all-list.board-category ul li {
    width: calc(100% / 2 - 10px);
  }
  .btn_fullscreen {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .all-list.board-category ul li {
    width: 100%;
    min-height: 200px;
  }
}
/********************************************
* 전체화면
********************************************/
.fullscreen-mode {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}
.fullscreen-mode .pair-container {
  width: 100%;
  height: 75vh;
}

.fullscreen-mode .pair-info .pair-desc-wrapper {
  max-width: 70%;
}
.fullscreen-mode .pair-container .chara-body-wrapper {
  width: 40vw;
  max-height: 100vh !important;
}

.fullscreen-mode .pair-container .chara-img {
  position: relative;
}
.fullscreen-mode .pair-container .chara-comment {
  margin: 0 20px;
  margin-bottom: 30px;
}

.fullscreen-mode .chara-footer {
  position: fixed;
  bottom: 30px;
  width: 25vw;
}

.fullscreen-mode .chara-left .chara-footer {
  left: 30px;
}
.fullscreen-mode .chara-right .chara-footer {
  right: 30px;
}
.fullscreen-mode .btn_modify,
.fullscreen-mode .bo_fx,
.fullscreen-mode .btn_fullscreen {
  display: none;
}

.fullscreen-mode .pair-nicknames .pair-arrow {
  max-width: 200px;
}
