@charset "UTF-8";

@import url("https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700");

/*노토산스*/
@font-face{
    font-family:'NotoSansKR';
    src:url('/assets/fonts/NotoSansKR-Black-Hestia.eot');
    src:url('/assets/fonts/NotoSansKR-Black-Hestia.woff') format('woff'),
    url('/assets/fonts/NotoSansKR-Black-Hestia.otf') format('opentype');
    font-weight:700;
    font-style:normal;
}
/*@font-face{*/
/*    font-family:'NotoSansKR';*/
/*    src:url('/assets/fonts/Roboto-Black-Hestia.eot');*/
/*    src:url('/assets/fonts/Roboto-Black-Hestia.woff') format('woff'),*/
/*    url('/assets/fonts/Roboto-Black-Hestia.ttf') format('ttf');*/
/*    font-weight:700;*/
/*    font-style:normal;*/
/*}Roboto-Black-Hestia.woff*/

@font-face{
    font-family:'NotoSansKR';
    src:url('/assets/fonts/NotoSansKR-Bold-Hestia.eot');
    src:url('/assets/fonts/NotoSansKR-Bold-Hestia.woff') format('woff'),
    url('/assets/fonts/NotoSansKR-Bold-Hestia.otf') format('ttf');
    font-weight:600;
    font-style:normal;
}
@font-face{
    font-family:'NotoSansKR';
    src:url('/assets/fonts/Roboto-Bold.eot');
    src:url('/assets/fonts/Roboto-Bold.woff') format('woff'),
    url('/assets/fonts/Roboto-Bold.otf') format('ttf');
    unicode-range: U+0030-0039;
    font-weight:600;
    font-style:normal;
}

@font-face{
    font-family:'NotoSansKR';
    src:url('/assets/fonts/NotoSansKR-Medium-Hestia.eot');
    src:url('/assets/fonts/NotoSansKR-Medium-Hestia.woff') format('woff'),
    url('/assets/fonts/NotoSansKR-Medium-Hestia.otf') format('opentype');
    font-weight:500;
    font-style:normal;
}
@font-face{
    font-family:'NotoSansKR';
    src:url('/assets/fonts/Roboto-Medium.eot');
    src:url('/assets/fonts/Roboto-Medium.woff') format('woff'),
    url('/assets/fonts/Roboto-Medium.otf') format('ttf');
    unicode-range: U+0030-0039;
    font-weight:500;
    font-style:normal;
}

@font-face{
    font-family:'NotoSansKR';
    src:url('/assets/fonts/NotoSansKR-Regular-Hestia.eot');
    src:url('/assets/fonts/NotoSansKR-Regular-Hestia.woff') format('woff'),
    url('/assets/fonts/NotoSansKR-Regular-Hestia.otf') format('opentype');
    font-weight:400;
    font-style:normal;
}
@font-face{
    font-family:'NotoSansKR';
    src:url('/assets/fonts/Roboto-Regular.eot');
    src:url('/assets/fonts/Roboto-Regular.woff') format('woff'),
    url('/assets/fonts/Roboto-Regular.otf') format('ttf');
    unicode-range: U+0030-0039;
    font-weight:400;
    font-style:normal;
}

@font-face{
    font-family:'NotoSansKR';
    src:url('/assets/fonts/NotoSansKR-DemiLight-Hestia.eot');
    src:url('/assets/fonts/NotoSansKR-DemiLight-Hestia.woff') format('woff'),
    url('/assets/fonts/NotoSansKR-DemiLight-Hestia.otf') format('opentype');
    font-weight:300;
    font-style:normal;
}
@font-face{
    font-family:'NotoSansKR';
    src:url('/assets/fonts/Roboto-DemiLight.eot');
    src:url('/assets/fonts/Roboto-DemiLight.woff') format('woff'),
    url('/assets/fonts/Roboto-DemiLight.ttf') format('ttf');
    unicode-range: U+0030-0039;
    font-weight:300;
    font-style:normal;
}

@font-face{
    font-family:'NotoSansKR';
    src:url('/assets/fonts/NotoSansKR-Light-Hestia.eot');
    src:url('/assets/fonts/NotoSansKR-Light-Hestia.woff') format('woff'),
    url('/assets/fonts/NotoSansKR-Light-Hestia.otf') format('opentype');
    font-weight:200;
    font-style:normal;
}
@font-face{
    font-family:'NotoSansKR';
    src:url('/assets/fonts/Roboto-Light.eot');
    src:url('/assets/fonts/Roboto-Light.woff') format('woff'),
    url('/assets/fonts/Roboto-Light.otf') format('ttf');
    unicode-range: U+0030-0039;
    font-weight:200;
    font-style:normal;
}

@font-face{
    font-family:'NotoSansKR';
    src:url('/assets/fonts/NotoSansKR-Thin-Hestia.eot');
    src:url('/assets/fonts/NotoSansKR-Thin-Hestia.woff') format('woff'),
    url('/assets/fonts/NotoSansKR-Thin-Hestia.otf') format('opentype');
    font-weight:100;
    font-style:normal;
}
@font-face{
    font-family:'NotoSansKR';
    src:url('/assets/fonts/Roboto-Thin.eot');
    src:url('/assets/fonts/Roboto-Thin.woff') format('woff'),
    url('/assets/fonts/Roboto-Thin.otf') format('ttf');
    unicode-range: U+0030-0039;
    font-weight:100;
    font-style:normal;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, div,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video, hr {
    margin: 0;
    padding: 0;
    border: 0;
    /*font-size: 100%;*/
    /*font: inherit;*/
    /*vertical-align: middle;*/
    outline: none;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 공통 스타일 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif; /* 기본 폰트 */
}

.app-container {
    max-width: 450px; /* 최대 너비 */
    width: 100%;
    margin: 0 auto; /* 중앙 정렬 */
    background: #262626;
    min-height: 100vh; /* 전체 화면 높이 */
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    overflow: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

img, span {
    display: block;
}

/* Header */
.header {
    width: 100%;
    max-width: 390px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin: 0 auto;
    background: #262626;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Header content container */
.header--cnt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo section */
.header--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
    text-align: center;
    flex-grow: 1;
}

/* Icon buttons */
.header--icon {
    display: flex;
    align-items: center;
}

.header--icon .icon-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: transform 0.2s ease;
}

.header--icon .icon-button:hover {
    transform: scale(1.1);
}

/* Icon styling (e.g., SVG or custom images) */
.icon-button span {
    display: block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}

.header--logo-img {
    max-width: 150px;     /* 이미지 최대 너비 */
    max-height: 40px;     /* 이미지 최대 높이 (헤더 높이에 맞춤) */
    width: auto;          /* 비율 유지 */
    height: auto;         /* 비율 유지 */
    object-fit: contain;  /* 비율을 유지하며 영역 안에 맞춤 */
}

/* Main Content */

/* Main Content */
.main-content {
    padding: 16px;
    /*margin-top: 15px;*/
}

.header-logo {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.header-logo h2 {
    color: #fff;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 32px;
}

.profile-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.profile-subtitle {
    font-size: 16px;
    color: #cdcccc;
    margin: 8px 0;
    text-align: left;
}

.profile-description {
    font-size: 14px;
    color: #cdcccc;
    margin-bottom: 16px;
    text-align: left;
}

.profile-actions .btn {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 16px;
    margin: 4px;
    cursor: pointer;
}

/* Stats Section */
.stats-section {
    margin-top: 20px;
    text-align: center;
}

.gray-bar-wrapper {
    margin: 0 -16px; /* 부모의 padding 값을 제거 */
}
.gray-bar {
    width: 100%;
    height: 5px;
    background: #484848;
    margin: 16px 0 10px 0;
}

.stats-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

#stats-chart {
    max-width: 100%;
    height: auto;
}

.stats h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

.stats-table th,
.stats-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.stats-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.stats-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.stats-card {
    background-color: #454545;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.stat {
    font-size: 14px;
    text-align: center;
}

/* Popular Section */
.popular-section {
    margin-bottom: 32px;
}


/* 기본 카드 스타일 */
.link-preview {
    display: flex; /* 가로 정렬 */
    position: relative;
    align-items: center;
    justify-content: space-between;
    /*border: 1px solid #e0e0e0; !* 테두리 *!*/
    border-radius: 8px; /* 모서리 둥글게 */
    padding: 5px;
    background-color: #454545;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 그림자 효과 */
    max-width: 600px; /* 최대 너비 */
    margin: 8px auto; /* 가운데 정렬 */
}

/* 왼쪽 컨텐츠 스타일 */
.link-preview-content {
    flex: 1; /* 남은 공간 차지 */
    margin-top: -7px;
    margin-left: 20px;
}

.link-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 150px;
    font-size: 18px;
    font-weight: bold;
    /*margin: 0 0 8px;*/
    color: #cdcccc;
}

.link-description {
    font-size: 12px;
    color: #cdcccc;
    margin: 8px 0 0 0;
}

.link-url {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    word-break: break-word; /* 긴 링크 줄바꿈 */
    max-width: 220px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 5px 0 5px 0;
}

.link-url:hover {
    text-decoration: underline;
}

/* 오른쪽 이미지 스타일 */
.link-preview-thumbnail {
    flex-shrink: 0; /* 크기 축소 금지 */
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden; /* 이미지 크기 초과 숨기기 */
    background-color: #f0f0f0;
}

.link-preview-thumbnail img {
    background: #262626;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지 비율 유지 */
}

/* 제목과 복사 버튼을 감싸는 컨테이너 */
.title-container {
    display: flex; /* 가로로 정렬 */
    align-items: baseline; /* 세로 정렬 가운데 */
    position: relative;
}


/* 복사 버튼 스타일 */
.copy-button, .drag-handle, .update-button {
    background-color: transparent; /* 배경 투명 */
    border: none; /* 테두리 없음 */
    cursor: pointer; /* 마우스 포인터 설정 */
    display: flex; /* 아이콘 가운데 정렬 */
    align-items: center;
    justify-content: center;
    padding: 4px; /* 버튼 내부 여백 */
    border-radius: 4px; /* 모서리 둥글게 */
    transition: background-color 0.3s ease, transform 0.2s ease; /* 부드러운 애니메이션 */
}

.drag-handle {
    position: absolute;
    left: 3px;
    top: 5px;
    /*position: absolute;*/
    /*right: 0;*/
}

.link-preview .drag-handle {
    cursor: grab;
}

.link-preview .drag-handle:active {
    cursor: grabbing;
}

.drag-handle:hover {
    cursor: pointer;
}


.drag-handle {
    /*margin-left: auto;*/
    cursor: grab;
}

.drag-placeholder {
    background: rgba(200,200,200,0.3);
    border: 2px dashed #aaa;
    margin: 5px 0;
}

.link-preview-clone {
    position: absolute;
    pointer-events: none;
    opacity: 0.5;
    z-index: 1000;
}

.copy-button:hover {
    background-color: rgba(0, 0, 0, 0.1); /* hover 시 배경 추가 */
    transform: scale(1.1); /* 살짝 확대 */
}

.copy-button img, .drag-handle img, .update-button img {
    width: 16px; /* 아이콘 크기 */
    height: 16px;
    filter: invert(1);
}


/* 복사 완료 메시지 */
.copy-toast {
    width: 80%;
    position: fixed;
    bottom: -50px; /* 화면 밖으로 숨김 */
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8); /* 반투명 검정색 배경 */
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.4s ease; /* 부드러운 애니메이션 */
    z-index: 999;
}

.copy-toast.show {
    bottom: 20px; /* 화면에 보이도록 이동 */
    opacity: 1;
}

#cnt {
    margin-top: 70px;
    width: 96%;
    padding: 16px;
    max-width: 390px;
    margin-left: auto;
    margin-right: auto;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    display: flex;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-thumbnail {
    width: 100px;
    height: 100px;
    background: #ddd;
    flex-shrink: 0;
}

.card-body {
    padding: 8px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 4px;
}

.card-subtitle {
    font-size: 12px;
    color: #888;
    margin: 0 0 8px;
}

.card-price {
    font-size: 14px;
    color: #007bff;
    font-weight: bold;
    margin: 0;
}

#stats-chart ~ .chartjs-legend li span {
    color: #ffffff !important; /* 강제 흰색 적용 */
}
.chartjs-legend li span {
    color: #ffffff !important;
}
/* Footer */
.footer {
    width: 100%;
    height: 80px;
    max-width: 450px;
    background: #262626;
    padding: 16px 16px;
    box-shadow: 0 -4px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.footer--cnt {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 80px; /* 푸터 아이템 간 간격 */
}

.footer--item a {
    display: flex;
    flex-direction: column; /* 세로 정렬 */
    align-items: center; /* 가로 정렬 */
    justify-content: center; /* 세로 가운데 정렬 */
    text-decoration: none; /* 밑줄 제거 */
    color: inherit; /* 부모의 색상 상속 */
}

.footer--item {
    display: flex;
    flex-direction: column; /* 세로 정렬 */
    align-items: center; /* 가로 가운데 정렬 */
    justify-content: center; /* 세로 가운데 정렬 */
    text-align: center;
    font-size: 11px;
}


.footer--item p {
    margin: 0;
    font-size: 11px;
    color: #ffffff;
}

.footer--content img {
    width: 24px; /* 아이콘 크기 조정 */
    height: 24px;
    margin-bottom: 4px; /* 이미지와 텍스트 간격 */
    object-fit: contain; /* 이미지 비율 유지 */
    filter: invert(93%) sepia(8%) saturate(135%) hue-rotate(180deg) brightness(70%) contrast(100%);
}

.footer-top {
    height: 33px;
}

.footer--item a {
    text-decoration: none;
    color: #cdcccc;
}

.footer--item a.selected {
    background-color: #444444;
    border-radius: 8px;
    color: #FFD700; /* 선택된 텍스트 강조 */
}

.footer--content img.selected {
    filter: invert(1); /* 흰색 이미지로 변환 (검은색 배경에 적합) */
}

.scroll-sentinel {
    height: 20px; /* 감지 용도로 크기 설정 */
}


.floating-button {
    aspect-ratio: 1 / 1;
    width: 30px;
    background-color: #c6c6c6; /* 버튼 배경색 */
    color: black;
    border: none;
    border-radius: 30%; /* 동그란 버튼 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 그림자 */
    font-size: 24px; /* 텍스트 크기 */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999; /* 다른 요소보다 위에 표시 */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover 효과 */
.floating-button:hover {
    background-color: #c6c6c6;
    transform: scale(1.1); /* 버튼 크기 확대 효과 */
}

.popular-header {
    display: flex;
    justify-content: space-between; /* h2와 버튼 사이 공간 확보 */
    align-items: center;
    margin-bottom: 10px;
}
.popular-header > h2 {
    color: #cdcccc;
}

/* 모달 오버레이 (배경) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 반투명 배경 */
    display: none; /* 기본적으로 숨김 */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

form {
    width: 100%; /* form의 너비를 부모 요소에 맞춤 */
    max-width: 400px; /* form의 최대 너비 제한 */
    margin: 0 auto; /* form을 가운데 정렬 */
}

form input {
    width: 100%; /* input의 너비를 form에 맞춤 */
    box-sizing: border-box; /* 패딩과 테두리를 포함한 너비 계산 */
    padding: 10px; /* 입력 필드 내부 여백 */
    margin-bottom: 15px; /* 입력 필드 간 간격 */
    border: 1px solid #ccc; /* 테두리 스타일 */
    border-radius: 4px; /* 둥근 테두리 */
    font-size: 14px; /* 글자 크기 */
}

/* 모달 컨텐츠 */
.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-title {
    margin-top: 0;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

/* 폼 스타일 */
form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* 버튼 스타일 */
.modal-buttons {
    display: flex;
    gap: 5px;
}

.btn {
    padding: 10px 15px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-submit {
    flex: 1;
    background-color: #262626;
    color: white;
}

.btn-submit:hover {
    background-color: #000000;
}

.btn-cancel {
    flex: 1;
    background-color: #c6c6c6;
    color: white;
}

.btn-delete {
    flex: 1;
    background-color: #c82333;
    color: white;
}

.btn-cancel:hover {
    background-color: #c82333;
}

.modal-warning {
    text-align: center;
    font-size: 12px;
    margin-bottom: 8px;
    color: #ea8080;
}

.empty-message {
    color: #cdcccc;
    text-align: center;
}


#color, #update-color {
    height: 50px;
}

.expired-message {
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    margin-top: 300px;
    width: 90%; /* 반응형 */
}

.expired-message h1 {
    font-size: 24px;
    color: #ff4d4d; /* 빨간색 텍스트 */
    margin-bottom: 10px;
}

.expired-message p {
    font-size: 16px;
    color: #555; /* 부드러운 회색 */
    margin-bottom: 20px;
}

.back-home {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #262626; /* 파란색 버튼 */
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.back-home:hover {
    background-color: #0056b3; /* 호버 시 색상 변경 */
}

/* 모달 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media screen and (max-width: 480px) {
    .header, .footer {
        max-width: 100%;
        background: #262626;
    }

    #cnt {
        padding: 8px; /* 콘텐츠 패딩 축소 */
    }

    .card-thumbnail {
        width: 80px; /* 썸네일 크기 조정 */
        height: 80px;
    }

    .card-title {
        font-size: 13px;
    }

    .card-subtitle {
        font-size: 11px;
    }

    .footer--cnt {
        gap: 40px; /* 푸터 아이템 간 간격 */
    }

    .footer--item span {
        font-size: 20px; /* 푸터 아이콘 크기 */
    }

    .footer--item p {
        font-size: 10px; /* 푸터 텍스트 크기 */
    }
    /*.floating-button {
        display: none;
        position: fixed;
        bottom: 90px; !* 푸터 위의 위치 *!
        right: 20px; !* 오른쪽 여백 *!
        width: 50px;
        height: 50px;
        background-color: #c6c6c6; !* 버튼 배경색 *!
        color: black;
        border: 1px solid #262626;
        border-radius: 50%; !* 동그란 버튼 *!
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); !* 그림자 *!
        font-size: 24px; !* 텍스트 크기 *!
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 1000; !* 다른 요소보다 위에 표시 *!
        transition: background-color 0.3s ease, transform 0.2s ease;
    }*/
    .floating-button {
        aspect-ratio: 1 / 1;
        width: 30px;
        background-color: #c6c6c6; /* 버튼 배경색 */
        color: black;
        border: none;
        border-radius: 30%; /* 동그란 버튼 */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 그림자 */
        font-size: 24px; /* 텍스트 크기 */
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 999; /* 다른 요소보다 위에 표시 */
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    /* Hover 효과 */
    .floating-button:hover {
        background-color: #c6c6c6;
        transform: scale(1.1); /* 버튼 크기 확대 효과 */
    }

    .index-footer .footer_infor {
        display: block;
        margin-left: 10px;
    }
}


.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #262626;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    color: white;
}

.splash-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.splash-text {
    font-size: 18px;
    font-weight: bold;
}

.label-description {
    font-size: 12px; /* 글씨 크기 */
    color: gray; /* 글씨 색상 */
}

.toggle-div {
    display: flex;
}
.toggleSwitch {
    width: 50px;
    height: 25px;
    display: block;
    position: relative;
    border-radius: 30px;
    background-color: #fff;
    box-shadow: 0 0 16px 3px rgba(0 0 0 / 15%);
    cursor: pointer;
    border: 1px solid #a3a1a1;
}

.toggleSwitch .toggleButton {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #262626;
}

#toggle:checked ~ .toggleSwitch, #update-toggle:checked ~ .toggleSwitch {
    border: 1px solid #a3a1a1;
    background: #12bb15;
}

#toggle:checked ~ .toggleSwitch .toggleButton, #update-toggle:checked ~ .toggleSwitch .toggleButton {
    left: calc(100% - 22px);
    background: #fff;
}

.toggleSwitch, .toggleButton {
    transition: all 0.2s ease-in;
}


/* 로딩 오버레이 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 반투명 검정색 배경 */
    z-index: 9999; /* 최상위로 표시 */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 숨김 클래스 */
.hidden {
    display: none;
}

/* 로딩 스피너 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3); /* 반투명 흰색 테두리 */
    border-top: 5px solid #fff; /* 흰색 상단 테두리 */
    border-radius: 50%; /* 원형 */
    animation: spin 1s linear infinite; /* 회전 애니메이션 */
}

/* 스피너 애니메이션 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Google */

.google-login {
    margin-top: 30px;
    margin-bottom: 17px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.google-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 300px; /* 버튼 가로 크기 */
    height: 40px; /* 버튼 높이 */
    background-color: #FFFFFF; /* 흰색 배경 */
    border: 1px solid #DADCE0; /* 테두리 */
    border-radius: 4px; /* 라운드 테두리 */
    font-family: 'Roboto', sans-serif; /* 폰트 */
    font-size: 14px; /* 텍스트 크기 */
    color: #757575; /* 텍스트 색상 */
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.google-login-button:hover {
    background-color: #F8F9FA; /* Hover 시 배경 색 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Hover 시 살짝 그림자 */
}

.google-login-button:active {
    background-color: #E8E8E8; /* 클릭 시 배경 색 */
}

.google-login-button .google-icon {
    width: 18px; /* 구글 아이콘 크기 */
    height: 18px;
}

.google-login-button .google-login-text {
    font-weight: 500; /* 텍스트 두께 */
}


/* 마이페이지 컨테이너 */
.mypage-container {
    padding: 20px;
    background-color: #f9f9f9;
    min-height: 100vh;
    box-sizing: border-box;
}

.myprofile-section {
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
}

/* 헤더 */
.mypage-header {
    text-align: center;
    padding: 20px;
}
.readonly {
    background: #ececec;
}

/* 프로필 섹션 */

.profile-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #262626;
}

.profile-info {
    text-align: left;
}


.profile-email {
    font-size: 14px;
    color: #dddddd;
}

.signup-date {
    font-size: 10px;
    color: gray;
}

.logout {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    cursor: pointer;
    color: gray;
    text-decoration: underline;
}

.summary-section {
    padding: 0 20px 20px 20px;
}

.summary-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #535454;
    padding: 20px;
    border-radius: 8px; /* 모서리 둥글게 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* 가벼운 그림자 */
}

.summary-item {
    text-align: center; /* 텍스트 중앙 정렬 */
    flex: 1; /* 아이템을 균등하게 배치 */
    border-right: 1px solid #e6e6e6; /* 우측 구분선 */
}

.summary-item:last-child {
    border-right: none; /* 마지막 아이템 구분선 제거 */
}

.summary-label {
    font-size: 14px; /* 라벨 폰트 크기 */
    color: #efefef; /* 연한 글씨 색 */
    margin-bottom: 8px; /* 라벨과 값 간격 */
}

.summary-value {
    font-size: 20px; /* 값 폰트 크기 */
    font-weight: bold; /* 굵은 글씨 */
    color: #000; /* 검정색 */
}

/* 옵션 섹션 */
.mypage-options, .mypage-help {
    margin-bottom: 20px;
}

.mypage-options h2,
.mypage-help h2 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #a1a1a1;
    margin-left: 20px;
}

.option-item,
.help-item {
    padding: 10px;
    background-color: #262626;
    margin: 0 20px 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #b6b6b6;
    display: flex;
    justify-content: space-between; /* 좌우 끝으로 배치 */
    align-items: center; /* 세로 중앙 정렬 */
    cursor: pointer;
}

.option-label {
    font-size: 16px; /* 라벨 폰트 크기 */
    color: #000; /* 기본 검정색 */
    margin: 0; /* 기본 여백 제거 */
}

footer a {
    display: flex;
    align-items: center;
    justify-content: center;

    /* 링크 터치 영역 확대 */
    width: 250%;
    height: 100%;
    text-decoration: none; /* 기본 스타일 제거 */
}

/* Pull-to-Refresh 영역 */
#pull-to-refresh {
    position: fixed;
    top: -80px; /* 기본적으로 화면 밖에 숨김 */
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #262626;
    z-index: 1000;
    transition: top 0.3s ease-out; /* 부드러운 이동 애니메이션 */
}

/* 새로고침 아이콘 */
#refresh-icon {
    position: fixed;
    top: 20px; /* 화면 상단 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: none; /* 기본적으로 숨김 */
}

/* 스피너 스타일 */
.spinner {
    width: 32px;
    height: 32px;
    border: 4px solid rgba(0, 0, 0, 0.1); /* 바깥 회색 테두리 */
    border-top: 4px solid #555; /* 상단 진한 회색 */
    border-radius: 50%; /* 원형 */
    animation: spin 1s linear infinite; /* 회전 애니메이션 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 살짝 그림자 */
}

/* 회전 애니메이션 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 메달 스타일 */
.medal {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
}

.medal.gold {
    background-image: url('/images/gold-medal.png'); /* 금메달 이미지 경로 */
}

.medal.silver {
    background-image: url('/images/silver-medal.png'); /* 은메달 이미지 경로 */
}

.medal.bronze {
    background-image: url('/images/bronze-medal.png'); /* 동메달 이미지 경로 */
}

/* 전체 화면 어두운 배경 */
.pwa-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 반투명 어두운 배경 */
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    animation: fade-in 0.3s ease-in-out;
}

/* 숨기기 */
.hidden {
    display: none;
}

/* 배너 */
.pwa-banner {
    position: relative;
    width: 100%;
    max-width: 450px;
    background-color: #fff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15), 0 -1px 4px rgba(0, 0, 0, 0.1);
    border-radius: 16px 16px 0 0;
    padding: 24px;
    animation: slide-up 0.3s ease-in-out;
}

/* 배너 슬라이드 애니메이션 */
@keyframes slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 페이드 인 애니메이션 */
@keyframes fade-in {
    from {
        background-color: rgba(0, 0, 0, 0);
    }
    to {
        background-color: rgba(0, 0, 0, 0.5);
    }
}

/* 닫기 버튼 */
.close-button {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
}

.close-button:hover {
    color: #000;
}

/* 타이틀 */
.modal--default--tit h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
}

.modal--default--tit p {
    font-size: 14px;
    color: #555;
    text-align: center;
}

/* 버튼 */
.modal--default--link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.install-button {
    background-color: #262626;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
}

.ios-install-guide {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    text-align: left;
}

.ios-install-guide ol {
    padding-left: 20px;
    margin: 10px 0;
}

.ios-install-guide li {
    margin-bottom: 8px;
}

.legal-links {
    position: absolute;
    bottom: 105px;
    width: 100%;
    text-align: center;
    font-size: 14px;
}

.legal-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px; /* 링크 간 간격 */
}

.legal-links a:hover {
    text-decoration: underline;
}