@charset "utf-8";

hr.padding {
	display: none !important;
}

/* 전체 컨테이너 스타일 */
.all-section {
    display: flex;
    position: fixed;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    backdrop-filter: blur(3px);
	overflow: hidden;
}

.reply-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 50% 50%;
}

/* 그룹 A */
.groupa-s {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
    z-index: 10001;
    position: fixed;
    gap: 75vh;
    left: 0;
    top: 20px;
}

.a-s-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.groupinfo-btn, .upshare_btn {
    color: var(--color-text);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
}

.groupinfo-btn:hover, .linkcopyload_btn:hover {
    color: var(--color-acc);
}

.groupbgm {
    position: fixed;
    bottom: 3%;
}

/* 그룹 B (중앙 영역) */
.groupb-s {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-right: 10px;
    margin-left: 8%;
}

.groupname {
    padding: 40px 30px 30px 75px;
    line-height: 1.0;
    color: var(--color-text)
}

/* 기본 스타일 */
.group.title {
    font-size: 70px;
    font-weight: 600;
    font-family: "Playfair Display", serif;
    text-shadow: 0 0 5px #555, 0 0 10px #fff, 0 0 25px #bbb;
}

/* 한자, 일본어용 스타일 */
.group.title.cjk-ja {
    font-family: "Zen Antique", serif;
}

/* 중국어용 스타일 */
.group.title.cjk-zh {
    font-family: "Noto Serif SC", serif;
}

.groupone {
    margin-top: 5px;
}

.group.one-liner {
    font-style: italic;
    color: var(--color-c);
    font-family: 'Chosunilbo_myungjo';
    font-size: 18px;
}

.groupflex {
    display: flex;
    gap: 10px;
    width: 100%;
    flex: 1;
    max-height: 730px;
}

.groupcomment {
    width: 300px;
    background: linear-gradient(179deg, rgb(from var(--color-1) r g b / 90%) 60%, rgb(from var(--p-color) r g b / 40%) 100%);
    border: solid rgb(from var(--color-border) r g b / 40%);
    border-radius: 5px;
    max-height: 730px;
    height: calc(100% - 15px);
    margin-left: 50px;
    box-sizing: border-box;
    backdrop-filter: blur(3px);
    border-width: 1px 1px 0px 1px;
    transition: all 0.3s ease;
}

.groupcomment .groupcomment-con {
    height: 100%;
}

.groupcomment.comment-expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    padding: 20px;
    margin-left: 0px;
    border: 0;
    background: rgb(from var(--color-1) r g b / 90%);
    max-height: 100%;
}

.comment-expanded .groupcomment-con {
    width: 600px;
    background: linear-gradient(179deg, rgb(from var(--color-1) r g b / 90%) 60%, rgb(from var(--p-color) r g b / 40%) 100%);
    border: solid rgb(from var(--color-border) r g b / 40%);
    border-radius: 5px;
    height: 80%;
    box-sizing: border-box;
    position: relative;
    left: calc(50% - 300px);
    top: 10%;
    backdrop-filter: blur(3px);
    border-width: 1px 1px 0px 1px;
    transition: all 0.3s ease;
}

.groupimg {
    width: calc(100% - 300px);
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
}

.group-thumb {
    width: 100%;
    height: 300px;
    border: 1px solid rgb(from var(--color-border) r g b / 40%);
    background-size: cover;
    background-position: 50% 25%;
    border-radius: 5px;
    display: flex;
    align-items: flex-end;
    padding: 5px 10px;
    box-sizing: border-box;
}

.character-sd img {
    max-height: 130px;
}

/* 캐릭터 카드 점프 애니메이션 */
.character-sd {
    transition: transform 0.2s ease;
    position: relative;
    transform-origin: center bottom;
    padding: 10px;
    margin: -10px;
  }
  
  .character-sd:hover {
    animation: kong-jump 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
    animation-iteration-count: 1;
  }
  
  @keyframes kong-jump {
    0% {
      transform: translateY(0) scale(1);
    }
    30% {
      transform: translateY(-15px) scale(1.05);
    }
    50% {
      transform: translateY(-18px) scale(1.05);
    }
    80% {
      transform: translateY(-5px) scale(0.98);
    }
    100% {
      transform: translateY(0) scale(1);
    }
  }
  

.groupgall {
    width: 100%;
    border-radius: 5px;
    box-sizing: border-box;
    height: 420px;
	overflow: scroll;
}

.groupc-s {
    width: 40%;
    height: 100%;
    display: inline-flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: flex-end;
    position: absolute;
    right: 0;
    justify-content: center;
    margin-right: 5%;
}

/* 캐릭터 이미지 영역 스타일 */
.main-body-image {
    display: inline-flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: flex-end;
    position: relative;
    height: 95%;
}

.character-item {
    position: relative;
    margin-left: -150px;
    height: 100%;
}

.character-item:hover {
    transform: translateY(-5px);
}

.character-image {
    height: 100%;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.character-item:hover .character-image img {
    transform: scale(1.05);
}

.no-character {
    display: none;
}

/* 그룹 E (우측 상단) */
.groupe-s {
    position: absolute;
    top: 50%;
    left: 0;
    border-radius: 5px;
    width: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    flex-direction: column;
    align-items: center;
}

.groupanother {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid var(--color-border);
}

.another {
    display: block;
    width: 100%;
    height: 100%;
}

.reply-head-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* 캐릭터 수정 패널 스타일 */
.character-edit-panel {
    position: fixed;
    right: -250px; /* 초기에는 패널이 숨겨져 있음 */
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    border-radius: 10px 0 0 10px;
    z-index: 1000;
    transition: right 0.3s ease;
}

.character-edit-panel.active {
    right: 0; /* 활성화되면 화면에 표시 */
}

.panel-toggle {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    background: var(--p-color);
    border-radius: 5px 0 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    cursor: pointer;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
}

.panel-toggle i {
    transition: transform 0.3s ease;
}

.character-edit-panel.active .panel-toggle i {
    transform: rotate(180deg);
}

.panel-content {
    height: 100%;
}

.panel-header {
    background: var(--color-bg);
    color: var(--color-text);
    padding: 10px 15px;
    font-family: 'NanumSquare';
}

.panel-header h3 {
    margin: 0;
    font-size: 16px;
}

.panel-body {
    max-height: 500px;
    overflow-y: auto;
    background: var(--color-bg);
}

.character-edit-item {
    display: flex;
    align-items: center;
    padding: 5px;
    transition: background-color 0.2s;
}

.character-edit-item:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.character-face {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.character-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-face {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    font-size: 10px;
    color: #999;
}

.character-info {
    flex: 1;
    display: inline-flex;
    gap: 5px;
}

.character-name {
    font-family: 'NanumSquare';
}

.character-actions {
    display: flex;
    gap: 5px;
    font-family: 'NanumSquare';
}

.edit-btn {
    font-size: 10px;
    text-decoration: none;
}

/* 배경 이미지 및 효과 */
.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;
}

.bg-effect {
    width: 100vw;
    height: 50vh;
    bottom: 0px;
    position: fixed;
    z-index: -1;
}

/* 오디오 플레이어 스타일 */
div#gruop_bgm_con {
    opacity: 0;
}

#gruop_bgm_frame {
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    bottom: 0 !important;
}

.groupbgm {
    position: fixed;
    bottom: 3%;
}

#bgm-player {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

#bgm-player {
    position:absolute;
    width:0;
    height:0;
    overflow:hidden;
}

#play-pause-btn {
    cursor: pointer;
    border-radius: 10px;
    background: #333;
    border: 0;
    width: 30px;
    height: 30px;
    color: white;
    font-size: 15px;
	position: relative;
    left: 35px;
    bottom: 0px;
}

#volume-bar {
    -webkit-appearance: none;
    appearance: none;
    width: 100px; /* 바의 길이 (높이로 나타남) */
    height: 6px;  /* 바의 두께 (세로로 했을 때 너비로 보임) */
    background: #ccc;
    border-radius: 5px;
    cursor: pointer;
    /* 세로로 회전 */
    transform: rotate(-90deg);
    transform-origin: center;
	position: relative;
    top: -50px;
	
}

#volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #555;
    border-radius: 50%;
    cursor: pointer;
}


/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
  }
  
  .write_div {
    margin-bottom: 15px;
  }
  
  .write_div label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }
  
  .frm_input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ddd;
  }
  
  textarea.frm_input {
    height: 150px;
    resize: vertical;
  }

  textarea#wr_content {
    height: 300px;
}
  textarea#wr_content::placeholder {
    color: var(--color-b);
}

  .file_upload_section {
    margin-top: 10px;
  }
  
  .file_upload_item {
    margin-bottom: 10px;
  }
  
  .btn_confirm {
    text-align: center;
    margin-top: 20px;
  }
  
  .btn {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ccc;
    background: #f0f0f0;
    color: #000;
    cursor: pointer;
    text-decoration: none;
    margin: 0 3px;
  }
  
  .btn_submit {
    background: #3498db;
    color: white;
    border-color: #2980b9;
  }
  
  #color_picker {
    vertical-align: middle;
    margin-left: 10px;
  }

  .cha-etc {
    background: linear-gradient(45deg, #171717 65%, transparent);
    padding: 35px 40px 30px;
    border-radius: 10px;
    color: #eee;
    font-family: nanumsquare;
    line-height: 1.7;
    font-size: 13px;
    text-align: justify;
    letter-spacing: -0.5px;	
  }

.deco-etc {
    left: 10px;
    font-size: 25px;
    font-style: italic;
    font-family: 'ROEHOE-CHAN';
    color: #777;
    pointer-events: none;
    position: absolute;
    opacity: 0.4;
}

::-webkit-scrollbar {
    display: none;
}


/* 갤러리 스타일 */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-gap: 5px;
    margin-bottom: 20px;
}

.gallery-item {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    border: 1px solid rgb(from var(--color-border) r g b / 40%);
    box-sizing: border-box;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-loader {
    text-align: center;
    padding: 20px 0;
}

/* 모달 스타일 */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.gallery-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 50%;
    color: var(--color-text);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.gallery-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-modal-image-container {
    height: 80%;
    max-width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-image-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding: 15px;
    user-select: none;
}

.gallery-modal-prev {
    left: 20px;
}

.gallery-modal-next {
    right: 20px;
}

/* 반응형 스타일 */
@media (max-width: 768px) {

    .gallery-modal-close {
        top: 50px;
    }

    .all-section {
    }
    
    .groupa-s {
        display: flex;
        width: 100%;
        height: 50px;
        z-index: 10001;
        position: fixed;
        gap: 0px;
        left: 0;
        top: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
    }
    
    .a-s-option {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .groupbgm {
        position: relative;
        bottom: 0;
    }

    #volume-bar {
        transform: none;
        transform-origin: center;
        position: relative;
        top: 0;
        
    }
    #play-pause-btn {
        left: 0;
    }

    .groupb-s {
        width: 100%;
    }
    
    .groupname {
        position: absolute;
        top: 50px;
        left: 30px;
        z-index: 1;
        padding: 0;
        mix-blend-mode: luminosity;
    }

    .groupflex {
    }
    
    .groupcomment, .groupimg {
    }
    .groupcomment {
        display: none;
    }

    .groupimg {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 5px;
        height: 100%;
    }

    .group-thumb {
        position: absolute;
    }
    
    .groupgall {
        position: absolute;
        width: 100%;
        bottom: 10px;
        border-radius: 5px;
        box-sizing: border-box;
        height: 130px;
        overflow: scroll;
        padding: 10px;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        grid-gap: 2px;
    }

    .groupc-s {
        width: 100%;
        height: 90%;
        display: inline-flex;
        flex-wrap: nowrap;
        flex-direction: row;
        position: absolute;
        right: 0;
        justify-content: flex-end;
        align-items: flex-end;
    }

    .main-body-image {
        display: inline-flex;
        flex-wrap: nowrap;
        flex-direction: row;
        position: relative;
        height: 80%;
        right: -100px;
        align-items: flex-end;
        z-index: 10;
    }
    
    .groupe-s {
    }

    .mobile-comment-toggle {
        display: block;
        margin: 15px 0;
        text-align: center;
        position: fixed;
        bottom: 0;
        left: -5px;
        z-index: 10000;
    }
    
    .mobile-comment-toggle button {
        padding: 8px 15px;
        background: var(--color-bg);
        color: var(--color-text);
        border-radius: 4px;
        font-size: 14px;
    }

    .mobile-comment-toggle button.active {
        color: var(--color-bg);
        background: var(--color-text);
    }
    
    .groupcomment.comment-expanded {
        display: flex;
        justify-content: center;
        flex-direction: row;
        align-items: flex-start;
        height: 100%;
        max-height: 100%;
    }

    .comment-expanded .groupcomment-con {
        left: 0;
        top: 5%;
        width: 100%;
        height: 90%;
    }
}

/* 데스크톱에서는 모바일 토글 버튼 숨기기 */
@media (min-width: 769px) {
    .mobile-comment-toggle {
        display: none;
    }
}
