@charset "utf-8";

.cha-flex {
    display: flex;
}

.c {
    flex-direction: column;
}

.flex1 {
    flex: 1;
}

.r {
    justify-content: flex-end;
}

/* 캐릭터 프로필 스타일 */
.character-profile-container {
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    overflow: hidden;
}

.left-con {
    height: 100%;
}

.character-group-info {
    position: fixed;
    left: 0;
    top: 50%;
}

.cha-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    gap: 5px;
    width: 100%;
    padding: 120px 30px 30px 100px;
    line-height: 1.0;
    color: var(--color-text)
}

/* 기본 스타일 */
.cha-title {
    font-size: 70px;
    position: relative;
    font-family: "Playfair Display", serif;
    text-shadow: 0 0 5px #555, 0 0 10px #fff, 0 0 25px #bbb;
}

.cha-title::before {
    content: " ";
    display: inline-block;
    background: var(--p-color);
    height: 50px;
    width: 9px;
    position: absolute;
    left: -10px;
    bottom: 5px;
    z-index: 0;
}

.cha-name {
    font-style: italic;
    color: var(--color-c);
    font-family: 'Chosunilbo_myungjo';
    font-size: 18px;
}

.cha-one-liner {
    font-style: italic;
    color: var(--color-e);
    font-family: 'ChosunSm';
    font-size: 30px;
    width: 100%;
    line-height: 1.0;
    padding-left: 120px;
    -webkit-animation: tracking-in-expand 3s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
    animation: tracking-in-expand 3s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
    text-shadow: 0 0 5px #333, 0 0 15px #fff, 0 0 35px #bbb, 0 0 40px #ffffff;
}

.cha-one-liner::before {
    content: "“";
}
.cha-one-liner::after {
    content: "”";
}

.character-body {
    width: 40%;
    height: 100%;
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.character-body img {
    object-fit: contain;
    height: 100%;
    filter: drop-shadow(35px 10px 0px var(--p-color));
}

.cha-info-flex {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

/* 신분증 스타일 CSS */
.cha-info {
    position: relative;
    width: 350px;
    height: fit-content;
    background: linear-gradient(90deg, rgba(238, 238, 238, 1) 0%, rgba(187, 187, 187, 1) 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 20px 20px 10px 20px;
    border: 1px solid #bbb;
    overflow: hidden;
    transform: rotate3d(2.5, 1.2, 1.5, 320deg);
    filter: brightness(0.8) drop-shadow(5px 10px 2px rgba(0, 0, 0, 0.7));
    transition: 1s;
    bottom: -50px;
}

/* 신분증 상단 배경 패턴 */
.cha-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: repeating-linear-gradient(
    45deg,
    rgb(from var(--p-color) r g b / 0.1),
    rgb(from var(--p-color) r g b / 0.1) 10px,
    rgb(from var(--p-color) r g b / 0.15) 10px,
    rgb(from var(--p-color) r g b / 0.15) 20px
  );
  z-index: 0;
}

/* 신분증 하단 배경 패턴 */
.cha-info::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: repeating-linear-gradient(
    45deg,
    rgb(from var(--p-color) r g b / 0.1),
    rgb(from var(--p-color) r g b / 0.1) 10px,
    rgb(from var(--p-color) r g b / 0.15) 10px,
    rgb(from var(--p-color) r g b / 0.15) 20px
  );
  z-index: 0;
}


/* 신분증 헤더 영역 */
.character-header {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* 사진 영역 */
.character-head {
  width: 100px;
  height: 130px;
  border: 2px solid #888;
  background-color: #fff;
  padding: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-right: 15px;
  position: relative;
}

.character-head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 사진 코너 장식 */
.character-head::before,
.character-head::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #555;
  border-style: solid;
}

.character-head::before {
  top: -2px;
  left: -2px;
  border-width: 2px 0 0 2px;
}

.character-head::after {
  bottom: -2px;
  right: -2px;
  border-width: 0 2px 2px 0;
}

/* 이름 영역 */
.character-name {
    font-size: 24px;
    font-weight: bold;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-family: 'Pretendard-Regular';
}

/* 발급 정보 */
.issue-info {
  font-size: 10px;
  color: #666;
  margin-top: 5px;
  text-align: right;
  font-family: 'Pretendard-Regular';
}

/* 정보 라인 컨테이너 */
.glow-line-container {
  position: relative;
  margin-top: 20px;
  padding: 5px 0;
  z-index: 1;
}

/* 정보 텍스트 */
.line-text {
  font-size: 14px;
  color: #333;
  font-family: 'Pretendard-Regular';
}

.line-text div {
  padding: 5px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px dashed #ccc;
}

.line-text div:last-child {
  border-bottom: none;
}

/* 별표 아이콘 스타일 */
.line-text div::before {
  content: "✶";
  color: var(--p-color);
  margin-right: 10px;
  font-size: 16px;
}

/* 워터마크 */
.cha-info::after {
  content: "OFFICIAL ID";
  position: absolute;
  bottom: 40px;
  right: 20px;
  font-size: 60px;
  opacity: 0.03;
  transform: rotate(-30deg);
  font-weight: bold;
  color: #000;
  pointer-events: none;
}

/* 홀로그램 효과 */
.hologram {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  border-radius: 50%;
  z-index: 2;
}

.hologram::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(120,120,255,0.2), rgba(255,120,120,0.2));
  animation: hologram-rotate 3s infinite linear;
}

@keyframes hologram-rotate {
  0% {
    transform: rotate(0deg);
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: rotate(360deg);
    opacity: 0.5;
  }
}

.character-content {
    padding: 60px 70px;
    width: 100%;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(35deg, rgb(10 10 10 / 95%) 50%, rgba(85, 85, 85, 0.7) 100%);
    border-radius: 25px;
    border: 1px solid rgb(from var(--color-b) r g b / 0.6);
    flex: 1;
    box-sizing: border-box;
    overflow: scroll;
}

.character-details {
    box-sizing: border-box;
    font-size: 1.2em;
    font-family: 'Chosunilbo_myungjo';
    line-height: 1.5;
    height: 100%;
    color: var(--color-text);
    overflow: scroll;
    text-align: justify;
    white-space: pre-line;
    position: relative;
}


.cha-d-s {
    display: flex;
    flex-direction: row;
    margin: 50px 70px 70px 90px;
}

.cha-pro-area {
    display: flex;
    padding: 70px;
    width: 900px;
    border-radius: 20px;
    border: 2px groove #333;
    background: linear-gradient(180deg, rgba(31, 31, 31, 1) 0%, rgba(60, 60, 60, 1) 40%, rgba(90, 90, 90, 1) 100%);
    justify-content: center;
}

.cha-profile {
    display: none; /* 기본적으로 숨김 */
}

.cha-profile.active {
    display: block; /* 활성화된 프로필만 표시 */
}

.cha-d-btn {
	text-align: right;
    margin-bottom: 20px;
}

.cha-d-btn button {
    background-color: #232323;
    position: relative;
    top: 25px;
    color: white;
    padding: 10px 5px;
    cursor: pointer;
    font-size: 15px;
    border-style: groove;
    border-color: #333;
    border-width: 2px 0px 2px 2px;
    border-radius: 5px 0px 0px 5px;
    transition: background 0.3s ease;
}

.cha-profile {
    width: 100%;
    text-align: justify;
    line-height: 1.7;
    white-space: pre-line;
    font-family: 'Chosunilbo_myungjo';
    max-height: 700px;
    overflow-y: auto;
    position: relative;
    top: 0px;
    box-sizing: border-box;
}


.link_home {
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(300deg, rgb(20 20 20) 25%, rgb(133 133 133) 100%);
    filter: brightness(0.7);
    opacity: 0.5;
}

.link_home:hover {
    filter: brightness(1);
    opacity: 1;
}

.link_home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 반응형 스타일 */
@media (max-width: 768px) {
    .character-content {
        flex-direction: column;
    }
    
    .character-images {
        flex: 0 0 auto;
        max-width: 100%;
    }
}

/* 배경 이미지 및 효과 */
.bg-container {
    background: linear-gradient(180deg, rgb(20 20 20) 25%, rgb(from var(--p-color) r g b / 100%) 100%);
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}


/* 한자, 일본어용 스타일 */
.cha-title.cjk-ja {
    font-family: "Zen Antique", serif;
}

/* 중국어용 스타일 */
.cha-title.cjk-zh {
    font-family: "Noto Serif SC", serif;
}
/* ----------------------------------------------
 * Generated by Animista on 2025-3-19 0:46:16
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation tracking-in-expand
 * ----------------------------------------
 */
@-webkit-keyframes tracking-in-expand {
  0% {
    letter-spacing: -0.5em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}
@keyframes tracking-in-expand {
  0% {
    letter-spacing: -0.5em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

.toggle-button {
    display: none;
    position: fixed;
    left: 10px;
    bottom: 50px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    padding: 10px 15px;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.5));
}


/* 반응형 스타일 */
@media (max-width: 768px) {

    .groupa-s {
        display: flex;
        width: 95%;
        height: 50px;
        z-index: 10001;
        position: fixed;
        gap: 0px;
        left: 2.5%;
        top: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .toggle-button {
        display: block;
    }

    .cha-header {
        padding: 0;
        position: relative;
        top: 40px;
        left: 0px;
        z-index: 10;
        transform: scale(0.8);
    }

    .cha-header-width {
        width: 80%;
    }

    .cha-title {
        font-size: 50px;
        white-space: nowrap;
    }
    .cha-title::before {
        height: 30px;
        left: -15px;
    }
    .cha-one-liner {
        padding-left: 0;
        padding: 10px;
        letter-spacing: -0.3px;
        line-height: 1.2;
        position: relative;
        top: 40px;
        left: 30px;
        z-index: 20;
        font-size: 23px;
        word-break: keep-all;
        white-space: pre-wrap;
    }
    .cha-one-liner::before {
        content: "“";
        position: absolute;
        font-size: 45px;
        top: -5px;
        left: -5px;
        opacity: 0.5;
    }
    .cha-one-liner::after {
        content: "";
    }
    .cha-flex {
        flex-direction: column;
    }
    .cha-d-s {
        display: none;
        position: absolute;
        margin: 0;
        padding: 10px;
        top: 5%;
        z-index: 1000;
        height: 95%;
    }
    .cha-d-s.active {
        display: flex;
    }
    .character-body {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 10;
    }
    .character-body img {
        position: absolute;
        max-height: 85%;
        bottom: 0px;
        right: -20px;
    }

    .cha-info-flex {
        position: absolute;
        top: 100px;
        left: -50px;
        transform: scale(1);
    }

    .bg-effect {
        height: 100vh;
    }
    .bg-effect::before {
        content: "";
        position: absolute;
        height: 100%;
        width: 100%;
        z-index: -20;
        background-image: var(--cha-bg);
        background-position: 40% 20%;
        opacity: 0.2;
        filter: saturate(0.5);
    }
    .character-content {
        justify-content: flex-start;
        height: 95%;
        background: linear-gradient(35deg, rgb(10 10 10 / 100%) 50%, rgba(85, 85, 85, 0.7) 100%);
        padding: 20px 25px;
    }

    .character-details {
        line-height: 1.7;
    }
}