@charset "utf-8";
@import url('https://cdn.rawgit.com/moonspam/NanumSquare/master/nanumsquare.css');
@import url('color.css');

@font-face {
    font-family: 'Cafe24Ohsquare';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/Cafe24Ohsquare.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard-Regular';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Chosunilbo_myungjo';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/Chosunilbo_myungjo.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ChosunSm';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.1/ChosunSm.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ChosunGu';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/ChosunGu.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* =============================== */
/*	bgm	*/
/* =============================== */

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

#volume-control {
    position: fixed;
    bottom: 0px;
    right: 0px;
    background: rgb(from var(--trbg-color) r g b / 80%);
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    width: 100%;
    justify-content: center;
}

#playPauseBtn {
    cursor: pointer;
    border-radius: 50px;
    background: rgb(from var(--trbg-color) r g b / 80%);
    border: 0;
    width: 50px;
    height: 30px;
    color: rgb(from var(--trtxt-color) r g b / 80%);
    font-size: 15px;
}

#bgmVolume {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 6px;
    background: rgb(from var(--trtxt-color) r g b / 80%);
    border-radius: 5px;
    cursor: pointer;
}

/* 슬라이더 trpg 스타일 (Chrome, Edge, Safari) */
#bgmVolume::-webkit-slider-trpg {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: rgb(from var(--trbg-color) r g b / 80%);
    border-radius: 50%;
    cursor: pointer;
}

.trpg-theme-container .cate {
    font-family: 'Pretendard-Regular';
    color: var(--trtxt-color);
    opacity: 0.4;
    margin: 0 auto;
    border-radius: 10px;
    font-size: 10px;
    padding: 0px 6px;
    text-align: center;
    width: fit-content;
}


/* =============================== */
/*	뷰 스킨 배경	*/
/* =============================== */

.trpg-theme-container .background-container {
    background-size: cover;
    background-position: center center;
    left: 0;
    top: 0;
    width: 101vw;
    height: 101vh;
    position: fixed;
    backdrop-filter: blur(3px);
    z-index: -1;
}

.trpg-theme-container .bg-effect {
    width: 101vw;
    height: 50vh;
    bottom: 0;
    left: 0;
    position: fixed;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgb(255 255 255 / 50%) 70%);
}

/* =============================== */
/*	뷰 스킨	*/
/* =============================== */

.trpg-theme-box {
    display: block;
    position: relative;
    padding: 50px;
    box-sizing: border-box;
    background: var(--trbg-color);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    font-family: 'Pretendard-Regular';
    width: 800px;
    margin: 0 auto;
}

.trpg-maintitle {
    font-family: 'Pretendard-Regular';
    font-size: 40px;
    font-weight: 500;
    padding: 10px;
    text-align: center;
    line-height: 50px;
    color: var(--trtxt-color);
}

.trpg-subtitle {
    font-family: 'Pretendard-Regular';
    background: var(--color-ttext);
    color: var(--color-accent);
    width: fit-content;
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 2px 13px;
    border-radius: 10px;
}


.trpg-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-family: 'Pretendard-Regular';
    font-size: 13px;
    font-weight: 300;
    gap: 5px;
}

.content-box {
    font-size: 1em;
    line-height: 1.5;
}

.content_area {
    color: var(--color-con-text);
}

.hr-line {
    display: block;
    border: 0px;
    border-top: 1px solid;
    width: 50%;
    margin: 0 auto;
    margin-top: 50px;
    margin-bottom: 50px;
    border-image: linear-gradient(to right, var(--color-card) 10%, #888888 50%, var(--color-card) 90%);
    border-image-slice: 1;
}

.trpg-theme-box .thumbnail-box {
    display: flex;
    justify-content: center;
}

.trpg-theme-box .thumbnail {
    width: 80%;
    margin: 20px;
    height: 300px;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: 40%;
    border-radius: 10px;
    box-shadow: 1px 2px 2px 3px rgb(56 56 56 / 30%);
}

/* 참여자 섹션 스타일 */
.trpg-theme-box .participants-section {
    margin-bottom: 20px;
}

.trpg-theme-box .participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.trpg-theme-box .participant {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trpg-theme-box .participant-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #ddd;
}

.trpg-theme-box .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trpg-theme-box .participant-name {
    font-weight: bold;
}

/* 완료 표시 스타일 */
.trpg-theme-box .session-complete {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    vertical-align: middle;
}

.trpg-theme-box .session-info {
    width: fit-content;
    margin: 0 auto;
    font-size: 11px;
    opacity: 0.4;
}

.trpg-theme-box .participants-section {
    margin-bottom: 20px;
    display: flex;
    margin-top: 5px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.trpg-theme-box .session-info,
.trpg-theme-box .participants-section {
    font-family: 'Pretendard-Regular';
    font-weight: 400;
    color: var(--trtxt-color);
}

.trpg-theme-box .session-date,
.trpg-theme-box .session-members {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.trpg-theme-box .session-members {
    opacity: 0.6;
}

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

.trpg-theme-box .content-box.mobile {
    padding: 5px;
    font-size: clamp(1rem, 2.5vw, 2rem) !important;
}

/* 개요 섹션 */

.trpg-theme-box .outline-part {
    font-family: 'Pretendard-Regular';
    color: var(--trtxt-color);
    text-align: center;
    line-height: 1.5;
}

/* 목록 버튼 */
.trpg-viewoption-btn {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    padding: 10px;
}

.trpg-theme-container button#handoutToggle,
.trpg-theme-container .trpg-viewoption-btn {
    display: none;
}

/* 핸드아웃 버튼 스타일 */
.trpg-theme-container button#handoutToggle,
.trpg-theme-container .trpg-btn.ui {
    border-radius: 0px 10px 10px 0px;
    background: var(--trbg-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    color: var(--trtxt-color);
    cursor: pointer;
    z-index: 100;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.trpg-theme-container .trpg-btn.ui {
    display: flex;
}

.trpg-theme-container button#handoutToggle:hover,
.trpg-theme-container .trpg-btn.ui:hover {
    transform: scaleX(1.15);
}

.trpg-theme-container button#handoutToggle {
    width: 32px;
    height: 50px;
    font-size: 15px;
}

.trpg-theme-container .trpg-btn.ui {
    width: 25px;
    height: 35px;
    font-size: 12px;
}

/* 핸드아웃 사이드바 스타일 */
.trpg-theme-container .handout-sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: var(--trbg-color);
    color: var(--trtxt-color);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.trpg-theme-container .handout-sidebar.active {
    display: block;
    animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.trpg-theme-container .handout-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trpg-theme-container .handout-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
}

.trpg-theme-container .handout-sidebar-header .close {
    font-size: 24px;
    cursor: pointer;
}

.trpg-theme-container .handout-sidebar-content {
    padding: 15px;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.trpg-theme-container .handout-scroll {
    display: flex;
    gap: 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.trpg-theme-container .handout-item {
    position: relative;
    max-height: 200px;
    object-fit: contain;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
}

.trpg-theme-container .handout-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trpg-theme-container .handout-img:hover {
    transform: scale(1.05);
}

/* 모달 스타일 개선 */
.trpg-theme-container .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.trpg-theme-container .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.trpg-theme-container .modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.trpg-theme-container .modal .close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    color: white;
    cursor: pointer;
    z-index: 2001;
}

.trpg-theme-container .prev,
.trpg-theme-container .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    cursor: pointer;
    padding: 15px;
    z-index: 2001;
}

.trpg-theme-container .prev {
    left: 15px;
}

.trpg-theme-container .next {
    right: 15px;
}


/* 반응형 스타일 */
@media (max-width: 768px) {
    .trpg-theme-box {
        padding: 30px 20px;
        width: 95%;
        margin: 0px;
    }

    .trpg-theme-box .thumbnail {
        height: 250px;
        background-size: cover;
    }

    .trpg-theme-box .trpg-maintitle {
        padding: 0px;
    }
}