/* 배지 컨테이너 스타일 */
.color-badge-container {
    position: relative;
    display: inline-block;
    /*margin: 5px;*/
    cursor: pointer;
}

/* 배지 스타일 */
.color-badge {
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex; /* 중앙 정렬을 위해 flex 사용 */
    align-items: center; /* 수직 중앙 정렬 */
    justify-content: center; /* 수평 중앙 정렬 */
    border-radius: 50%;
    transition: transform 0.2s, border 0.2s;
    position: relative; /* 추가 */
    z-index: 1; /* 추가 */
    font-size: 12px; /* 글자 크기 */
    font-weight: bold;
    text-align: center;
    overflow: hidden;
    color: white; /* 기본 글자색 흰색 */
}
.color-selection {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start; /* 또는 space-between */
    gap: 12.2px; /* 요소 사이 간격 */
}

.color-badge:hover {
    transform: scale(1.05);
}

.color-badge:active {
    transform: scale(0.95);
}

/* 색상 클래스 */
.color-part-series-black { background-color: #000000; }
.color-part-series-grey { background-color: #908989; }
.color-part-series-white {
    background-color: #dbd4d4;
    border: 1px solid #ccc;
    color: black; /* 밝은 배경에는 글자색을 검정으로 */
}
/* 나머지 색상 클래스 추가 */
.color-part-series-red { background-color: #ff0000; }
.color-part-series-orange { background-color: rgb(253, 96, 7); }
.color-part-series-yellow {
    background-color: #ffde06;
    color: black;
}
.color-part-series-lightgreen {
    background-color: #a5f361;
    color: black;
}
.color-part-series-green {
    background-color: #39fd00;
    color: black;
}
.color-part-series-skyblue {
    background-color: #27ffb1;
    color: black;
}
.color-part-series-blue { background-color: #002fff; }
.color-part-series-indigo { background-color: #00148f; }
.color-part-series-purple { background-color: #8400ff; }
.color-part-series-lightpurple {
    background-color: #e031ff;
    color: black;
}
.color-part-series-pink {
    background-color: rgba(255, 79, 195, 0.89);
    color: black;
}
.color-part-series-beige {
    background-color: #f6d5ad;
    color: black;
}
.color-part-series-brown { background-color: #9b584b; }

/* 기본 컨테이너 스타일 */
.color-badge-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /*margin: 6px; /* 마진을 줄여서 더 많은 색상이 한 줄에 들어가게 함 */
    cursor: pointer;
    width: 50px; /* 크기 줄이기 */
    height: 50px;
    border-radius: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 색상 배지 */
.color-badge {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 선택된 배지 스타일 (크기 조정) */
.color-badge-container.selected {
    transform: scale(1.3); /* 1.4 → 1.3으로 줄여서 2줄 방지 */
    box-shadow: 0px 0px 6px rgba(255, 255, 255, 0.8), 0px 0px 10px rgba(0, 0, 0, 0.15);
}

/* 선택된 배지 안에 작은 원 */
.color-badge-container.selected .color-badge::after {
    content: "";
    position: absolute;
    width: 65%; /* 안쪽 원 크기 조정 */
    height: 65%;
    border-radius: 50%;
    border: 3px solid white; /* 테두리 원 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
}

/* 흰색 선택 시 테두리를 검은색으로 변경 */
.color-badge-container[data-color="500017"].selected .color-badge::after {
    border-color: black;
}

/* 기존 스타일 유지 */
.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

/* 기타 Bootstrap 스타일과의 충돌 방지 */
.badge:empty {
    display: inline-block !important;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;

    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
    z-index: 1500;
}

.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important;
}



/*2025-03-13 main css 이동*/
body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    -ms-overflow-style: none;
}
::-webkit-scrollbar {
  display: none;
}

/*특정 부분 스크롤바 없애기*/

.box{
   -ms-overflow-style: none;
}
.box::-webkit-scrollbar{
  display:none;
}


.box-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 26%;
    z-index: 1;
    pointer-events: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 20px;
}
.search-gradient {
    position: absolute;
    bottom: 0; /* 하단에 배치 */
    left: 0;
    width: 100%; /* 너비 100%로 설정 */
    height: auto;
}
.container {
    max-width:1100px;
    min-width:715px;
    height: 100vh;
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.down-icon {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 31px;
    height: 27px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.search-box {
    display: flex;
    width: 100%;
    justify-content: center;
}

.search-button{
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-left: 10px;
}
.logo {
    width: 100%;
    max-width: 600px;
    height: auto;
}
.fursuit_page_logo {
    width: 421px;
    height: 150px;
    margin-left: 100px;
}
.search_name {
    width: 1000px;
    height: 100px;
    font-size: 30px;
    padding: 0 20px;
    border: 10px solid #BDE87D;
    outline: none;
    background-color: transparent;

    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
#search {
    width: 100%;
    display: grid;
}
#search-results {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px; /* 요소 간격 설정 */
    padding: 20px;
    place-items: center;
}
.search-results-item {
    padding: 15px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-size: 18px;
    text-align: center;
    transition: transform 0.2s ease;
}

.search-results-item:hover {
    transform: translateY(-3px);
}
.custom-dropdown {
    border: 5px solid #BDE87D;
    font-size: 20px;
    background-color: transparent;
    appearance: none;
    cursor: pointer;
    width: 50%;
    height: 45px;
    transition: border-color 0.3s ease;
    padding-left: 20px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}
.dropdown-label{
    border: 0px;
    font-size: 20px;
    width: 110px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #BDE87D;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.color-label{
    border: 0px;
    border-radius: 30px;
    font-size: 20px;
    width: 110px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #BDE87D;
}
.dropdown-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0px;
    margin-top: 10px;
}


.custom-box {
    width: 300px;
    height: 450px;
    border-radius: 20px;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.3);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
}

.custom-text {
    padding-bottom: 20px;
    position: absolute;
    color: white;
    z-index: 2;
}

.custom-text .title {
    font-size: clamp(30px, calc(250px * 0.1666), 40px) !important;
    font-weight: bold;
    bottom: 40px;
}

.custom-text .subtitle {
    font-size: 20px;
    font-weight: normal;
    bottom: 15px;
}
.custom-image {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}
.upmove-button {
    position: fixed;
    z-index: 100;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
}

.logo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 10px;
}

.result-count {
    font-size: 20px;
    font-weight: bold;
    color: #555;
    margin-right: 4%
}
/*header css*/

#x_login_user_id {
    margin-left: 4px;
    font-size: 18px;
    font-weight: bold;
}

.logout-btn:hover {
    background-color: #357ABD; /* hover 시 더 진한 파랑 */
}

.fixed-buttons {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;

    display: flex;
    align-items: center;
    height: 100px;
    padding: 0 50px;
    background: #ffffff7c;
    gap: 50px;
    backdrop-filter: blur(3px);
}

.fixed-buttons .user-info {
    /* 왼쪽에 그냥 두면 됨 */
}

.fixed-buttons .icon-button:first-of-type {
    margin-left: auto; /* ✅ 이 버튼부터 오른쪽 정렬 시작 */
}






.vertical-text {
    font-size: 20px;
    color: #3E6142;
    display: inline-block;
    text-align: center;
    text-shadow: 0 0 5px rgb(255 255 255);
}

.icon-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;

    box-shadow: none;                /* ✅ 브라우저 기본 그림자 제거 */
    background: none;
    background-color: transparent;
    border: none;
}





/* ✅ 공통 모달 스타일 */
.modal {
    display: none; /* 기본적으로 숨김 */
    align-items: center;
    justify-content: center;
}
.modal.show {
    display: flex !important; /* 활성화된 상태에서 flex 적용 */
}

/* ✅ 공통 모달 다이얼로그 - 중앙 정렬 */
.modal-dialog {
    max-width: 500px; /* 기본 크기 */
    width: 100%;
    max-height: 80vh;
    margin: auto; /* 수직 정렬 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ✅ 모달 컨텐츠 크기 자동 조절 */
.modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 20px; /* 기존 info-modal의 border-radius 적용 */
    border: 5px solid #BDE87D; /* 기존 info-modal의 테두리 이동 */
    background-color: white;
    overflow: hidden; /* 불필요한 스크롤 제거 */
}


/* ✅ 공통 모달 본문 스타일 */
.modal-body {
    font-size: 18px;
    text-align: center;
    width: 100%;
    padding: 20px;
}

/* ✅ 공통 하단 버튼 스타일 */
.modal-footer {
    width: 100%;
    padding: 12px;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: center;
}

.modal-footer .btn {
    font-size: 18px;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
}

/* ─────────────────────────────────────────── */
/* ✅ 트위터 로그인 모달 스타일 */
/* ─────────────────────────────────────────── */
#twitterLogModal .modal-dialog {
    max-width: 400px; /* 크기 조정 */
    width: 30%;
}

#twitterLogModal .info-modal {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

/* ✅ 트위터 로그인 모달 버튼 */
#twitterLogModal .modal-footer .btn {
    background-color: #BDE87D;
    color: #333;
    border: none;
}

#twitterLogModal .modal-footer .btn:hover {
    background-color: #A0D468;
}



/* ─────────────────────────────────────────── */
/* ✅ 트위터 로그아웃 모달 스타일 */
/* ─────────────────────────────────────────── */
#twitterLogoutModal .modal-dialog {
    max-width: 400px; /* 크기 조정 */
    width: 30%;
}

#twitterLogoutModal .info-modal {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

#twitterLogoutModal .modal-content{
    border: 5px solid #ffc107;
}

/* ✅ 트위터 로그아웃 모달 버튼 */
#twitterLogoutModal .modal-footer .btn {
    background-color: #ffc107;
    color: #333;
    border: none;
}

#twitterLogoutModal .modal-footer .btn:hover {
    background-color: #ffea94;
}

/* ─────────────────────────────────────────── */
/* ✅ 모달 판돌이 캐릭터 */
/* ─────────────────────────────────────────── */

.pandoli-info {
    position: fixed; /* 부모의 속성 무시 */
    bottom: 0;
    left: 0;
    width: auto;
    height: 50vh;
    z-index: 99;
}

/* ─────────────────────────────────────────── */
/* ✅ 공지 안내 모달 (기본 info 모달) */
/* ─────────────────────────────────────────── */
#infoModal .modal-dialog {
    max-width: 450px;
    width: 30%;
}

#infoModal .info-modal {

    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

/* ─────────────────────────────────────────── */
/* ✅ 경고 안내 모달 (에러 모달) */
/* ─────────────────────────────────────────── */
#ErrorModal .modal-dialog {
    max-width: 450px;
    width: 30%;
}

#ErrorModal .error-modal {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

/* ✅ 경고 모달 버튼 */
#ErrorModal .modal-footer .btn {
    background-color: #dc3545;
    color: white;
    border: none;
}

#ErrorModal .modal-footer .btn:hover {
    background-color: #b52b2b;
}


/* ✅ 세션 종료 모달 스타일 */
#login_session_end_modal .modal-dialog {
    max-width: 450px;
    width: 100%;
}

/* ✅ 모달 기본 스타일 */
#login_session_end_modal .modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 20px;
    border: 5px solid #f9ff3c;
    background-color: white;
    overflow: hidden;
    padding: 20px;
    width: 80%;
}

/* ✅ ⚠️ 로그인 필요 - 첫 번째 행 */
#login_session_end_modal .modal-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid #BDE87D;
    padding-bottom: 10px;
}

#login_session_end_modal .session-title {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ✅ ⚠️ 아이콘 */
#login_session_end_modal .session-icon {
    font-size: 40px;
    color: #BDE87D;
}

/* ✅ 안내 문구 (세로 정렬) */
#login_session_end_modal .modal-body {
    width: 100%;
    padding: 20px;
    text-align: center;
}

#login_session_end_modal .session-message {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
}

/* ✅ 버튼 */
#login_session_end_modal .modal-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

#login_session_end_modal .modal-footer .btn {
    background-color: #BDE87D;
    color: #333;
    font-size: 18px;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
}

#login_session_end_modal .modal-footer .btn:hover {
    background-color: #A0D468;
}

/* ─────────────────────────────────────────── */
/* ✅ 등록 성공 모달 스타일 */
/* ─────────────────────────────────────────── */
#success_confirm_modal .modal-dialog {
    max-width: 450px;
    width: 100%;
}

/* ✅ 모달 기본 스타일 */
#success_confirm_modal .modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 20px;
    border: 5px solid #28a745;
    background-color: white;
    overflow: hidden;
    padding: 20px;
    width: 90%;
}

/* ✅ ✔️ 등록 성공 - 첫 번째 행 */
#success_confirm_modal .modal-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid #28a745;
    padding-bottom: 10px;
}

#success_confirm_modal .success-title {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ✅ ✔️ 아이콘 */
#success_confirm_modal .success-icon {
    font-size: 40px;
    color: #28a745;
}

/* ✅ 안내 문구 (세로 정렬) */
#success_confirm_modal .modal-body {
    width: 100%;
    padding: 20px;
    text-align: center;
}

#success_confirm_modal .success-message {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
}

/* ✅ 버튼 */
#success_confirm_modal .modal-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

#success_confirm_modal .modal-footer .btn {
    background-color: #28a745;
    color: white;
    font-size: 18px;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
}

#success_confirm_modal .modal-footer .btn:hover {
    background-color: #1f8734;
}


/* ─────────────────────────────────────────── */
/* ✅ 등록실패 모달 (기본 info 모달) */
/* ─────────────────────────────────────────── */
/* 등록 실패 모달 스타일 */
/* ✅ 모달 크기 조정 */
#fail_confirm_modal .modal-dialog {
    max-width: 450px;
    width: 100%;
}

/* ✅ 모달 기본 스타일 */
#fail_confirm_modal .modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 20px;
    border: 5px solid #dc3545;
    background-color: white;
    overflow: hidden;
    padding: 20px;
    width: 70%;
}

/* ✅ ❌ 등록 실패 - 첫 번째 행 */
#fail_confirm_modal .modal-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 10px;
}

#fail_confirm_modal .fail-title {
    font-size: 28px; /* 크기 키우기 */
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ✅ ❌ 아이콘 */
#fail_confirm_modal .fail-icon {
    font-size: 40px;
    color: #dc3545;
}

/* ✅ 안내 문구 (세로 정렬) */
#fail_confirm_modal .modal-body {
    width: 100%;
    padding: 20px;
    text-align: center;
}

#fail_confirm_modal .fail-message {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
}

/* ✅ 버튼 */
#fail_confirm_modal .modal-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

#fail_confirm_modal .modal-footer .btn {
    background-color: #dc3545;
    color: white;
    font-size: 18px;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
}

#fail_confirm_modal .modal-footer .btn:hover {
    background-color: #b52b2b;
}



/*2025-03-14 상세 모달*/
/* ✅ 퍼슈트 검색 상세보기 모달 스타일 */
#fursuitSearchModal .fursuit-search-modal,
#character_status_modal .fursuit-add-modal {
    border-radius: 50px; /* 둥근 모서리 */
    overflow: hidden;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (min-width: 1000px) {
    #fursuit-search-modal,
    #fursuit-add-modal {
        height: 750px;
    }
}

/* 1000px 미만일 때 */
@media (max-width: 999px) {
    #fursuit-search-modal ,
    #fursuit-add-modal {
        height: 1700px;
    }
}

/* ✅ 모달 중앙 정렬 */
#fursuitSearchModal .modal-dialog,
#character_status_modal .modal-dialog{
    max-width: 70vw;
    max-height: 50vh;
    width: 70%;
    height: 50%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ✅ 모달 내부 구조 정렬 */
#fursuitSearchModal .modal-body,
#character_status_modal .modal-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2px;
}

/* ✅ 이미지 크기 조정 */
#fursuitSearchModal .modal-custom-image,
#character_status_modal .modal-custom-image {
    width: 500px;
    height: 750px;
    object-fit: cover;
}

/* ✅ `.modal-content-text` 최종 정리 */
#fursuitSearchModal .modal-content-text {
    min-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-left: 30px; /* 추가 */
    padding-right: 30px; /* 추가 */
    padding-top: 50px; /* 추가 */
    justify-content: flex-start; /* 내부 요소들을 위쪽으로 배치 */
    gap: 20px; /* 요소들 사이의 간격 */
}

#character_status_modal .modal-content-text {
    min-width: 500px;
    width: 100%;
    max-height: 750px; /* 💡 부모 기준 최대 높이 */
    overflow-y: auto; /* ✅ 내부만 스크롤 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px;
    gap: 20px;
}

/* ✅ 캐릭터 정보 (이름 + 상태) */
#character_status_modal .character-info {
    flex: 0 0 80%; /* 80% 비율 */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
}


#character_status_modal .character-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* 부모가 1000px 이상일 때: width = 100% - 500px */
@media (min-width: 1429px) {
    #fursuitSearchModal .modal-content-text,
    #character_status_modal .modal-content-text {
        width: calc(100% - 500px);
    }
}

#fursuitSearchModal .upper-content {
    display: flex;
    flex-direction: column;
    gap: 15px; /* 요소들 사이의 간격 */
}

#character_status_modal .character-row:hover {
    background-color: #f8f9fa;
    transform: scale(1.02);
    transition: all 0.2s ease-in-out;
}

/* ✅ 선택된 카드 강조 */
#character_status_modal .character-row.selected {
    border: 2px solid #28a745; /* 초록색 테두리 */
    box-shadow: 0px 0px 10px rgba(40, 167, 69, 0.5); /* 약간의 그림자 */
    transition: all 0.2s ease-in-out;
}

#character_status_modal .character-row .action-buttons {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 10px;
}

/* ✅ 버튼 영역 */
#character_status_modal .action-buttons {
    flex: 0 0 20%; /* 20% 비율 */
    display: flex;
    justify-content: flex-end;
}

/* ✅ 수정일 표시 */
#character_status_modal .character-date {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

/* ✅ 거절 사유 스타일 (반려됨 상태일 때만 표시) */
#character_status_modal .character-reason {
    font-size: 14px;
    color: #dc3545;
    margin-top: 5px;
    text-align: left;
    display: block;
}


/* ✅ 캐릭터 정보 텍스트 */
#character_status_modal .character-row strong {
    font-size: 18px;
    color: #333;
}

#character_status_modal .character-row .status-text {
    font-size: 16px;
    font-weight: bold;
}
/* ✅ 캐릭터 리스트 카드 크기 조정 */
#character_status_modal .character-row {
    width: 100%;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
/* ✅ 캐릭터 리스트 (카드 정렬) */
#character_status_modal .character-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 10px;
    overflow-y: auto; /* 리스트 스크롤 */
    height: 100%;
}




/* ✅ 텍스트 요소 공통 */
#fursuitSearchModal .owner,
#fursuitSearchModal .maker,
#fursuitSearchModal .production,
#fursuitSearchModal .animaltype,
#fursuitSearchModal .suitstyle,
#fursuitSearchModal .suittype,
#fursuitSearchModal .color {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 30px;
}

/* ✅ suitname (이름) 스타일 - 한 줄 유지 */
#fursuitSearchModal .suitname {
    font-size: 60px; /* 크기 확대 */
    font-weight: bold;
    text-align: left; /* 왼쪽 정렬 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    color: #3E6142;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
/* ✅ 사용자 정보 아이콘 및 텍스트 정렬 */
#fursuitSearchModal .image-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 왼쪽 정렬 */
}


/* ✅ 최근 행사 목록 */
#fursuitSearchModal .events {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
}

/* ✅ 행사 리스트 - 내부 스크롤 추가 */
#fursuitSearchModal .list-event {
    max-height: 60px; /* 높이 제한 */
    overflow-y: auto; /* 내부 스크롤 적용 */
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-right: 10px;
}

/* ✅ 개별 행사 텍스트 */
#fursuitSearchModal .event-text {
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #BDE87D;
}

/* ✅ 색상 박스 */
#fursuitSearchModal .colorbox {
    width: 25px;
    height: 25px;
    object-fit: cover;
}



/* ✅ 사용자 정보 텍스트 (이미지 내부 좌측 정렬) */
#fursuitSearchModal .text-userinfo {
    font-size: 25px; /* 일반 텍스트 크기 */
    font-weight: bold; /* 일반 글씨 두께 */
    color: #333; /* 일반 텍스트 색상 */
    background: none; /* 배경 제거 */
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
}


/*텍스트추가*/

#fursuitSearchModal .owner {
    display: flex;
    align-items: center;
    justify-content: space-between; /* ✅ 좌우 정렬 */
    width: 100%;
    font-size: 18px;
}

#fursuitSearchModal .user-info-group {
    display: flex;
    align-items: center;
    gap: 5px; /* ✅ '김판돌'과 '(@pandoli365)' 사이 여백 */
}

#fursuitSearchModal .user-text {
    font-size: 18px;
    font-weight: normal;
    color: #333;
    white-space: nowrap; /* ✅ 텍스트 줄바꿈 방지 */
}


/* ✅ 색상 동그라미 스타일 */
#fursuitSearchModal .colorbox {
    width: 24px; /* 동그라미 크기 */
    height: 24px;
    border-radius: 50%; /* 원형으로 만들기 */
    display: inline-block;
    margin-right: 5px; /* 동그라미 간격 */
    border: 1px solid #ccc; /* 기본 테두리 */
    cursor: pointer;
}


/* ✅ 이벤트 제목과 이미지 컨테이너 */
#fursuitSearchModal .title-event {
    display: flex;
    align-items: center;  /* 같은 줄 정렬 */
    justify-content: space-between; /* 양쪽 정렬 */
    width: 100%; /* 부모 크기에 맞춤 */
    padding-bottom: 6px;
}

#fursuitSearchModal .title-text{
    color: #3E6142;
    font-weight: bold;
}

/* ✅ "최근 참여한 행사" 텍스트 */
#fursuitSearchModal .title-text_event {
    font-size: 40px;
    color: #3E6142;
    font-weight: bold;
    text-align: left; /* 텍스트 자체를 왼쪽 정렬 */
}


/* ✅ `.events`가 하단에 고정되도록 설정 */
#fursuitSearchModal .events {
    flex-shrink: 0; /* ✅ 크기가 줄어들지 않도록 설정 */
    margin-top: auto; /* ✅ 위쪽 요소와 자연스럽게 공간 확보 */
    padding-bottom: 10px; /* ✅ 하단 간격 추가 */
}

/* ✅ `.list-event` 내부 스크롤 추가 */
#fursuitSearchModal .list-event {
    max-height: 120px; /* ✅ 충분한 높이 확보 */
    overflow-y: auto; /* ✅ 스크롤 가능 */
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-right: 10px;
}

/* ✅ userinfo (최상단) */
#fursuitSearchModal .userinfo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}


/* ✅ 개별 정보 행 스타일 */
#fursuitSearchModal .owner,
#fursuitSearchModal .maker,
#fursuitSearchModal .production,
#fursuitSearchModal .animaltype,
#fursuitSearchModal .suitstyle,
#fursuitSearchModal .suittype,
#fursuitSearchModal .suitregion,
#fursuitSearchModal .color {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
}

/* ✅ 색상 동그라미 스타일 */
#fursuitSearchModal .colorbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
}

/* ✅ 이벤트 목록을 하단에 고정 */
#fursuitSearchModal .events {
    flex-shrink: 0;
    margin-top: auto;
    padding-bottom: 10px;
    min-height: 100%;
}

/* ✅ 이벤트 리스트 내부 스크롤 */
#fursuitSearchModal .list-event {
    max-height: 120px;
    overflow-y: auto;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-right: 10px;
}


#search-results {
    min-height: 500px; /* 최소 높이 설정 */
    overflow-y: auto;
}


#fursuitSearchModal .events {
    flex-shrink: 0; /* 크기가 줄어들지 않도록 설정 */
    margin-top: auto;
    padding-bottom: 10px;
    max-height: 22%; /* ✅ 필요 시 조정 가능 */
    min-height: 22%;
    overflow: hidden; /* ✅ 내부에서만 스크롤 발생하도록 제한 */
    display: flex;
    flex-direction: column;
}

#fursuitSearchModal .list-event {
    overflow-y: auto; /* ✅ 내부 스크롤 활성화 */
    max-height: 100%; /* ✅ 부모 안에서 크기 자동 조절 */
    font-size: 14px;
    display: flex;
    flex-wrap: wrap; /* ✅ 내부 아이템이 여러 줄이 될 수 있도록 설정 */
    gap: 8px;
    padding-right: 10px;
}



/*더보기 버튼*/

#search_more {
    background-color: #BDE87D;  /* 연한 초록색 */
    color: #3E6142;  /* 글자색 */
    font-weight: bold;
    border: none;
    border-radius: 25px;  /* 둥근 버튼 */
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto; /* 기본 너비 유지 */
    display: block;
    margin: 10px auto 20px; /* 가운데 정렬 및 아래 여백 */
}

#search_more:hover {
    background-color: #A3D967; /* 마우스 오버시 색상 변경 */
}

/*퍼슈트 추가 페이지*/
#suitAdd .suitAdd_view{
    flex: 1;
    color: #3E6142;
    overflow-y: auto;
    min-width: 815px;
}

/* 기본 가로 정렬 */
.suitAdd-layout {
    width: 100%;
    height: 100%;
    padding: 100px 50px 0px 50px;
    display: flex;
    flex-direction: row;
    gap: 30px;
}

/* 1230px 이하일 때 세로 정렬로 전환 */
@media (max-width: 1230px) {
    .suitAdd-layout {
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    #file-upload-container,
    #suitAdd .suitAdd_view {
        width: 100%;
    }

    body.suit-add-page {
        overflow-y: auto;
        height: auto;
    }

    .main_page_view {
        overflow-y: auto;
        height: auto;
    }

    .suitAdd-layout {
        height: auto;
    }
}




#suitAdd .suitAdd_view_header{
    font-weight: bold;
    margin-bottom: 30px;
}

#suitAdd .suitAdd_view_body {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
}

#suitAdd .custom_menu{
    width: 100%;
    display: flex;
    justify-content:
    space-between;
    align-items: center;
}

#suitAdd .complete_text{
    font-size: 30px;
    display: block;
}

/* 반응형 대비 */
#suitAdd .object_size {
    width: 100%;
    max-width: 100%;
    height: 50px;
    border: 1px solid #3E6142;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 25px;
    line-height: 1.2;
    box-sizing: border-box; /* ✅ 크기 계산 일관화 */
    display: block; /* ✅ 일관된 크기 유지 */
    appearance: none;           /* 표준 */
    -webkit-appearance: none;   /* Safari/Chrome */
    -moz-appearance: none;      /* Firefox */
    background: none;           /* 배경도 투명하게 */
    background-image: none;     /* 화살표 이미지 제거 */
}

#suitAdd .main_page_view {
    width: 100%;
    height: 100vh; /* 화면 전체 높이 */
    overflow: hidden; /* 불필요한 스크롤 제거 */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* suit-add-page 클래스가 있는 경우에만 적용 */
body.suit-add-page {
    overflow: hidden;
    height: 100vh;
}

/* 각 필드의 레이아웃 설정 */
#suitAdd .suitAdd_view_body .row {
    display: flex;
    width: 100%;

}

/* ✅ 1줄의 반반 (50%) */
#suitAdd .half-width {
    width: calc(50% - 10px); /* ✅ 반으로 나누되, gap 고려 */
}

/* ✅ 소개글도 동일한 너비 */
#suitAdd .full-width {
    width: calc(100% - 20px); /* ✅ 전체 너비에서 gap만큼 빼기 */
}

#suitAdd .register-btn{
    margin-top: 1%;
    width: 100%;
    height: 75px;
    border-radius: 10px;
    border: 0px solid;
    background-color: #BDE87D;
    color: #3E6142;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


/*툴팁css*/
/* 툴팁 기본 스타일 */
.custom-tooltip {
    position: absolute;
    bottom: 110%; /* ✅ 요소 위에 충분한 거리 확보 */
    left: 10%; /* ✅ 중앙 정렬 */
    transform: translateX(-50%); /* ✅ 정확한 중앙 정렬 */
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 1050;
}

/* 툴팁 아래 삼각형 */
.custom-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

/* ✅ 마우스 오버 시 툴팁 보이기 */
.colorbox:hover .custom-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* ✅ 부모 요소에 relative 추가 */
.colorbox, .color-badge-container {
    position: relative; /* ✅ 툴팁이 정상적으로 위치하도록 부모 기준 설정 */
}
#thumbnail-container #thumbnail{
    object-fit: cover;
}


/*select2*/

/* Select2가 렌더링한 셀렉트 스타일 커스터마이징 */
.select2-container--default .select2-selection--single {
    height: 45px;
    line-height: 25px;
    padding: 0 10px;
    border: 5px solid #BDE87D;
    background-color: transparent;
    font-size: 20px;
    border-radius: 0 30px 30px 0;
    display: flex;
    align-items: center; /* ✅ 수직 정렬 */
}

/* placeholder나 텍스트 영역 스타일 */
.select2-container--default .select2-selection__rendered {
    color: #000;
    line-height: 60px;
}

/* dropdown 화살표 커스터마이징 */
.select2-container--default .select2-selection__arrow {
    height: 60px;
    right: 10px;
}

.select2-container--default .select2-selection__arrow {
    display: none !important;
}

.select2-container--default .select2-selection__clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 20px;
    cursor: pointer;
}
.select2-container--default .select2-selection--single {
    position: relative; /* 부모 기준 위치 */
    padding-right: 30px; /* X버튼 공간 확보 */
}

.select2-container {
    width: 50% !important;
    height: 45px !important;
}

/* 등록페이지만 적용되는 select2 */
/* suit-add-page는 reg mod에만 적용되기 때문에 해당 class를 사용 */

.suit-add-page .select2.select2-container.select2-container--default {
    width: 100% !important;
}

.suit-add-page .select2.select2-container.select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 25px;
}

.suit-add-page #suit_animal_type + .select2-container--default .select2-selection--single {
    border-radius: 10px;
    border: 1px solid #3E6142;
    background-color: transparent;
    padding-left: 10px;
    font-size: 18px;
}

/* loading */
#progress_loading_bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;

    /* ✅ 중앙 정렬을 위한 Flex 설정 */
    display: none;
}

#progress_loading_bar .modal-dialog-loading {
    display: flex;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}