@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;
}

.brand_container {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 150vw;
}

.brand_logo {
    position: absolute;
    z-index: 1;
    opacity: 0;
    transform: scale(0.7);
    filter: brightness(0.3);
    cursor: pointer;

    background-color: #fff;
    border-radius: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand_logo.selected_logo {
    z-index: 10;
    opacity: 1;
    filter: brightness(1) drop-shadow(2px 2px 2px rgba(50, 50, 50, 0.5));
    transform: scale(1) translateX(0);
    pointer-events: auto;
}

.brand_logo.prev_logo {
    opacity: 0.4;
    z-index: 5;
    transform: scale(0.75) translateX(-28vw);
}
.brand_logo.next_logo {
    opacity: 0.4;
    z-index: 5;
    transform: scale(0.75) translateX(28vw);
}

.btn_wrapper{
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    margin: 0 1rem;
    color: #81A9CC;
    background: transparent;
    border: 2px solid #81A9CC;
    cursor: pointer;
    position: relative;
}

.brand_detail {
    width: 100vw;
    /* padding: 2vh 3vw; */
    box-sizing: border-box;
    position: relative;
    justify-items: center;
}

.brand_text {
    width: 60%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%, -50%);
    opacity: 0;
    transition: all 0.7s ease-in-out;
    pointer-events: auto;
    text-align: center;
}

.brand_text.selected_detail {
    opacity: 1;
    transform: translate(-50%, 0);
    z-index: 2;
}

.brand_text.prev_detail{
    opacity: 0;
    transform: translate(-70%, 10px);
}
.brand_text.next_detail{
    opacity: 0;
    transform: translate(-30%, 10px);
}

/* 브랜드별 타이틀 색상 지정 */
.brand_text:nth-child(1) .brand_name {
    color: #108740;
}
.brand_text:nth-child(2) .brand_name {
    color: #B26320;
}
.brand_text:nth-child(3) .brand_name {
    color: #e58062;
}

/* pc 버전 */
@media (min-width: 1025px) {
    .brand_container {
        width: 100vw;
        height: 32vw;    
    }

    .brand_logo {
        width: 40vw;
        height: 22vw;
        /* 트랜스폼, 오파시티, 보더에만 트랜지션 적용 다른 변형에는 적용 안됨 */
        transition: transform 0.7s ease-in-out, opacity 0.7s linear, border 0.1s linear; 
    }

    /* 브랜드별 hover시 border 색상 지정 */
    .brand_logo:nth-child(1).selected_logo:hover {
        border: 4px solid #108740;
    }
    .brand_logo:nth-child(2).selected_logo:hover {
        border: 4px solid #B26320;
    }
    .brand_logo:nth-child(3).selected_logo:hover {
        border: 4px solid #e58062;
    }

    .brand_logo img {
        width: 90%;
        height: 90%;
        object-fit: contain;
    }

    .btn_wrapper {    
        width: max-content;
        height: 1.5rem;        
        bottom: 2.5rem;
    }

    .btn {
        width: 5rem;
        height: 3rem;
        border-radius: 1.5rem;
        overflow: hidden;
    }
    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5rem;
        height: 3rem;
        background: #81A9CC;
        clip-path: ellipse(1% 1% at 100% 100%);
        transition: clip-path 0.8s ease-in-out;
        z-index: -1;
    }

    .nextbrand:hover {
        color: #fff;
    }
    .nextbrand:hover::before {
        clip-path: ellipse(140% 120% at 100% 100%);
    }
    .prevbrand:hover {
        color: #fff;
    }
    .prevbrand:hover::before {
        clip-path: ellipse(180% 120% at 100% 100%);
    }

    .brand_detail {
        width: 100vw;
        padding: 2vh 5vw;
    }

    .brand_name {
        font-size: clamp(1.2rem, 4vw, 2.5rem); /* 글자 크기도 화면에 비례 */
        font-family: 'OnestoreMobilePop', sans-serif;
        line-height: 200%;
    }

    .brand_description {
        font-size: clamp(0.8rem,2.5vw,1.4rem);
        font-family: 'Pretendard', sans-serif;
        font-weight: 600;
        color: #888;
    }
}

/* 태블릿 버전 */
@media (max-width: 1024px) {
    .brand_container {
        width: 100vw;
        height: 90vw;    
    }

    .brand_logo {
        width: 50vw;
        height: 60vw;
        /* 트랜스폼, 오파시티에만 트랜지션 적용 다른 변형에는 적용 안됨 */
        transition: transform 0.7s ease-in-out, opacity 0.7s linear; 
    }

    /* 브랜드별 hover시 border 색상 지정 */
    .brand_logo:nth-child(1).selected_logo:active {
        border: 4px solid #108740;
    }
    .brand_logo:nth-child(2).selected_logo:active {
        border: 4px solid #B26320;
    }
    .brand_logo:nth-child(3).selected_logo:active {
        border: 4px solid #e58062;
    }

    .brand_logo img {
        width: 90%;
        height: 90%;
        object-fit: contain;
    }

    .btn_wrapper {    
        width: max-content;
        height: 4rem;        
        bottom: 2.5rem;
    }

    .btn {
        width: 7rem;
        height: 4rem;
        border-radius: 2rem;
    }

    .nextbrand:active {
        color: #fff;
        background-color: #81A9CC;
    }
    .prevbrand:active {
        color: #fff;
        background-color: #81A9CC;
    }

    .brand_detail {
        width: 100vw;
        padding: 2vh 5vw;
    }

    .brand_name {
        font-size: 6vw;
        font-family: 'OnestoreMobilePop', sans-serif;
        line-height: 200%;
    }

    .brand_description {
        font-size: 3vw;
        line-height: 120%;
        font-family: 'Pretendard', sans-serif;
        font-weight: 600;
        color: #888;
    }
}

/* 모바일 버전 */
@media (max-width: 768px) {
    .brand_container {
        width: 100vw;
        height: 130vw;    
    }

    .brand_logo {
        width: 60vw;
        height: 80vw;
        /* 트랜스폼, 오파시티에만 트랜지션 적용 다른 변형에는 적용 안됨 */
        transition: transform 0.7s ease-in-out, opacity 0.7s linear; 
    }

    /* 브랜드별 hover시 border 색상 지정 */
    .brand_logo:nth-child(1).selected_logo:active {
        border: 4px solid #108740;
    }
    .brand_logo:nth-child(2).selected_logo:active {
        border: 4px solid #B26320;
    }
    .brand_logo:nth-child(3).selected_logo:active {
        border: 4px solid #e58062;
    }

    .brand_logo img {
        width: 90%;
        height: 90%;
        object-fit: contain;
    }

    .btn_wrapper {    
        width: max-content;
        height: 4rem;        
        bottom: 0rem;
    }

    .btn {
        width: 7rem;
        height: 4rem;
        border-radius: 2rem;
    }

    .nextbrand:active {
        color: #fff;
        background-color: #81A9CC;
    }
    .prevbrand:active {
        color: #fff;
        background-color: #81A9CC;
    }

    .brand_detail {
        margin-top: 2rem;
    }

    .brand_name {
        font-size: 8vw;
        font-family: 'OnestoreMobilePop', sans-serif;
        line-height: 200%;
    }

    .brand_description {
        font-size: 5vw;
        line-height: 130%;
        font-family: 'Pretendard', sans-serif;
        font-weight: 600;
        color: #888;
    }
}