
@font-face {
    font-family: 'OneStoreMobilePop';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2105_2@1.0/ONE-Mobile-POP.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}


.chracter_carousel {
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 50px 0;
    /* background-color: #f0f0f0; */
    z-index: 1;
}

.character_wrapper {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    width: max-content; /* 중요: 내용물만큼 길어지게 설정 */
}

.character_card {
    flex-shrink: 0;
    width: 13rem; 
    aspect-ratio: 1 / 1; /* 1:1 사이즈 */
    margin: 0 20px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.character_card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.5s ease;
}

/* 애니메이션 설정 */
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.odd { animation: scrollLeft 70s linear infinite; }
.even { animation: scrollRight 70s linear infinite; }

/* 마우스 올리면 멈춤 */
.character_wrapper:hover {
    animation-play-state: paused;
}

.character_card:hover  {
    border: 4px solid #ffdb83;
}

.character_card:hover img {
    transform: scale(1.1);
}


/* pc 버전 상세 설명 팝업 */
@media (min-width:1025px) {
    .modalpop {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40,40,40,0.8);
    z-index: 99;
    }

    .modalpop.active {
        display: block !important; 
    }

    .character_pop {
        position: absolute;
        width: 85%;
        height: 85%;
        background: #81a9cc;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        /* z-index: 99; */
        border-radius: 3rem;
    }

    .closepop {
        position: absolute;
        top: 2.5rem;
        right: 5.5rem;
        cursor: pointer;
    }

    .closepop:before {
        position: absolute;
        width: 6px;
        height:40px;
        background-color: #3c668f;
        content: '';
        transform: rotate(45deg);
    }

    .closepop:after {
        position: absolute;
        width: 6px;
        height: 40px;
        background-color: #3c668f;
        content: '';
        transform: rotate(-45deg);
    }

    .popwrapper {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 85%;
        background-color: #fff;
        border-radius: 0 0 3rem 3rem;
        overflow: hidden;
    }

    .popimg {
        display: block;
        float: left;
        width: 50%;
        height: 100%;
    }

    .popimg div {
        display: flex;
        width: 100%;
        height: 100%;
        position: relative;
        align-items: center;
        justify-content: center;
    }

    .popimg div img {
        width: 70%;
        height: 85%;
        margin: 0 auto;
        object-fit: contain;
    }

    .popcontent {
        display: block;
        float: right;
        width: 50%;
        height: 100%;
        align-content: center;
        padding: 2rem 8rem 2rem 0rem;
    }

    .popcontent h2 {
        font-family: 'OnestoreMobilePop', sans-serif;
        font-size: 3rem;
        color: #81a9cc;
        margin-bottom: 1rem;
    }

    .popcontent p {
        font-family: 'pretendard', sans-serif;
        font-weight: 400;
        font-size: 1.8rem;
        color: #555;
        line-height: 130%;
    }
}

/* 태블릿 버전 상세 설명 팝업 */
@media (max-width:1024px) {
    .modalpop {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40,40,40,0.8);
    z-index: 99;
    }

    .modalpop.active {
        display: block !important; 
    }

    .character_pop {
        position: absolute;
        width: 85%;
        height: 75%;
        background: #81a9cc;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        /* z-index: 99; */
        border-radius: 3rem;
    }

    .closepop {
        position: absolute;
        top: 2.5rem;
        right: 5.5rem;
        cursor: pointer;
    }

    .closepop:before {
        position: absolute;
        width: 6px;
        height:40px;
        background-color: #3c668f;
        content: '';
        transform: rotate(45deg);
    }

    .closepop:after {
        position: absolute;
        width: 6px;
        height: 40px;
        background-color: #3c668f;
        content: '';
        transform: rotate(-45deg);
    }

    .popwrapper {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 90%;
        background-color: #fff;
        border-radius: 0 0 3rem 3rem;
        overflow: hidden;
    }

    .popimg {
        display: block;
        float: left;
        width: 50%;
        height: 90%;
    }

    .popimg div {
        display: flex;
        width: 100%;
        height: 100%;
        position: relative;
        align-items: center;
        justify-content: center;
    }

    .popimg div img {
        width: 70%;
        height: 85%;
        margin: 0 auto;
        object-fit: contain;
    }

    .popcontent {
        display: block;
        float: right;
        width: 50%;
        height: 100%;
        align-content: center;
        padding: 2rem 4rem 2rem 0rem;
    }

    .popcontent h2 {
        font-family: 'OnestoreMobilePop', sans-serif;
        font-size: 2.5rem;
        color: #81a9cc;
        margin-bottom: 1rem;
    }

    .popcontent p {
        font-family: 'pretendard', sans-serif;
        font-weight: 400;
        font-size: 1.8rem;
        color: #555;
        line-height: 130%;
    }
}

/* 모바일 버전 상세 설명 팝업 */
@media (max-width:768px) {
    .modalpop {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40,40,40,0.8);
    z-index: 99;
    }

    .modalpop.active {
        display: block !important; 
    }

    .character_pop {
        position: absolute;
        width: 85%;
        height: 75%;
        background: #81a9cc;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        border-radius: 3rem;
    }

    .closepop {
        position: absolute;
        top: 2rem;
        right: 4rem;
        cursor: pointer;
    }

    .closepop:before {
        position: absolute;
        width: 6px;
        height:40px;
        background-color: #3c668f;
        content: '';
        transform: rotate(45deg);
    }

    .closepop:after {
        position: absolute;
        width: 6px;
        height: 40px;
        background-color: #3c668f;
        content: '';
        transform: rotate(-45deg);
    }

    .popwrapper {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 85%;
        background-color: #fff;
        border-radius: 0 0 3rem 3rem;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .popimg {
        display: block;
        width: 100%;
        height: 60%;
    }

    .popimg div {
        display: flex;
        width: 100%;
        height: 100%;
        position: relative;
        align-items: center;
        justify-content: center;
    }

    .popimg div img {
        width: 70%;
        height: 85%;
        margin: 0 auto;
        object-fit: contain;
    }

    .popcontent {
        display: block;
        width: 100%;
        height: 40%;
        /* align-content: center; */
        padding: 2rem;
    }

    .popcontent h2 {
        font-family: 'OnestoreMobilePop', sans-serif;
        font-size: 2rem;
        color: #81a9cc;
        margin-bottom: 1rem;
    }

    .popcontent p {
        font-family: 'pretendard', sans-serif;
        font-weight: 400;
        font-size: 1.4rem;
        color: #555;
        line-height: 130%;
    }
}