Spaces:
Runtime error
Runtime error
| /* --- ๐ธ ๋งค์ง ์บก์ ๋ด๋น๊ฒ์ด์ ๋ฐ (Magic Capsule Navbar) --- */ | |
| .navbar-container { | |
| position: fixed; | |
| top: 20px; | |
| left: 0; | |
| width: 100%; | |
| display: flex; | |
| justify-content: center; | |
| z-index: 1000; | |
| } | |
| .navbar { | |
| display: flex; | |
| align-items: center; | |
| gap: 30px; | |
| padding: 8px 15px; | |
| border-radius: 50px; /* ๋ฅ๊ทผ ์บก์ ๋ชจ์ */ | |
| /* ๊ธ๋์ค๋ชจํผ์ฆ (์ ๋ฆฌ ํจ๊ณผ) */ | |
| background: rgba(255, 255, 255, 0.7); | |
| backdrop-filter: blur(15px); | |
| -webkit-backdrop-filter: blur(15px); | |
| box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05); | |
| border: 1px solid rgba(255, 255, 255, 0.8); | |
| } | |
| .navbar-brand { | |
| font-weight: 800; | |
| font-size: 1.1rem; | |
| color: var(--primary-color); | |
| text-decoration: none; | |
| padding: 0 15px; | |
| letter-spacing: -0.5px; | |
| } | |
| /* ๋ฉ๋ด ๋ฆฌ์คํธ */ | |
| .navbar-menu { | |
| position: relative; /* ๋ง์ปค์ ๊ธฐ์ค์ */ | |
| display: flex; | |
| flex-direction: row; /* Added */ | |
| align-items: center; /* Added */ | |
| list-style: none; | |
| margin: 0; | |
| padding: 5px; | |
| background: rgba(0,0,0,0.03); /* ๋ฉ๋ด ๋ค ์ฐํ ํธ๋ */ | |
| border-radius: 30px; | |
| } | |
| .nav-item { | |
| position: relative; | |
| z-index: 2; /* ๋ง์ปค๋ณด๋ค ์์ ์์น */ | |
| } | |
| .nav-item a { | |
| display: block; | |
| padding: 8px 20px; | |
| text-decoration: none; | |
| color: #666; | |
| font-weight: 600; | |
| font-size: 0.9rem; | |
| border-radius: 30px; | |
| transition: color 0.3s; | |
| } | |
| /* ๋ง์ฐ์ค ์ฌ๋ ธ์ ๋ ๊ธ์์ ๋ณ๊ฒฝ */ | |
| .nav-item a:hover { | |
| color: var(--primary-color); | |
| } | |
| /* โจ ์์ง์ด๋ ํ์ด๋ผ์ดํธ (Marker) */ | |
| .nav-marker { | |
| position: absolute; | |
| top: 5px; | |
| left: 5px; | |
| width: 0; /* JS๋ก ์ ์ด */ | |
| height: calc(100% - 10px); | |
| background: white; | |
| border-radius: 25px; | |
| box-shadow: 0 2px 5px rgba(0,0,0,0.05); | |
| transition: all 0.3s cubic-bezier(0.5, 0, 0, 1); /* ๋ถ๋๋ฌ์ด ์ด๋ */ | |
| z-index: 1; | |
| opacity: 0; /* ์ฒ์์ ์จ๊น */ | |
| } | |
| .copyright-dropdown { | |
| position: relative; | |
| margin-left: 1rem; | |
| } | |
| .copyright-toggle { | |
| cursor: pointer; | |
| font-size: 0.9rem; | |
| color: var(--light-text-color); | |
| border: 1px solid #ddd; | |
| padding: 4px 8px; | |
| border-radius: 6px; | |
| transition: background-color 0.2s; | |
| } | |
| .copyright-toggle:hover { | |
| background-color: #f5f5f5; | |
| } | |
| .copyright-content { | |
| display: none; | |
| position: absolute; | |
| top: 120%; | |
| left: 0; | |
| background-color: white; | |
| border-radius: 8px; | |
| box-shadow: 0 4px 12px rgba(0,0,0,0.1); | |
| padding: 1rem; | |
| z-index: 1001; /* Onboarding is 1000 */ | |
| width: 220px; | |
| border: 1px solid #eee; | |
| opacity: 0; | |
| transform: translateY(-10px); | |
| transition: opacity 0.2s, transform 0.2s; | |
| pointer-events: none; | |
| } | |
| .copyright-content p { | |
| margin: 0.5rem 0; | |
| font-size: 0.85rem; | |
| color: #555; | |
| } | |
| .copyright-content p:first-child { | |
| margin-top: 0; | |
| } | |
| .copyright-content p:last-child { | |
| margin-bottom: 0; | |
| } | |
| .copyright-dropdown:hover .copyright-content { | |
| display: block; | |
| opacity: 1; | |
| transform: translateY(0); | |
| pointer-events: auto; | |
| } | |
| /* --- ๋ฉ์ธ ์ฝํ ์ธ ์คํ์ผ --- */ | |
| /* --- ๐ ํผ์ณ์ง ๋ค์ด์ด๋ฆฌ ์คํ์ผ (Book Spread Design) --- */ | |
| /* 1. ๋ฉ์ธ ๋ ์ด์์ */ | |
| .main-content { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| min-height: 80vh; /* ํ๋ฉด ์ค์ ์ ๋ ฌ */ | |
| margin-top: 1.5rem; | |
| padding: 10px; | |
| } | |
| /* 2. ๋ค์ด์ด๋ฆฌ ์ ์ฒด ํ๋ ์ */ | |
| /* --- 1. ๋ค์ด์ด๋ฆฌ ํฌ๊ธฐ ํ๋ (Big Size) --- */ | |
| .diary-book { | |
| display: flex; | |
| width: 70vw; /* ํ๋ฉด ๋๋น์ 70%๊น์ง ์ฌ์ฉ */ | |
| max-width: 1600px; /* ์ต๋ ๋๋น 1600px */ | |
| min-width: 1200px; /* ์ต์ ๋๋น 1200px ๊ฐ์ */ | |
| height: 750px; /* ๋์ด ๊ณ ์ */ | |
| margin-top: 5rem; | |
| background-color: #fdfbf7; | |
| border-radius: 20px; | |
| box-shadow: 0 30px 60px rgba(0,0,0,0.15), 0 0 0 12px #5d4037; | |
| overflow: hidden; | |
| position: relative; | |
| margin: 0 auto; /* ์ํ ์ค์ ์ ๋ ฌ */ | |
| } | |
| /* --- 2. ํ์ด์ง ๋ด๋ถ ์คํฌ๋กค ์ถ๊ฐ (์๋ฆผ ๋ฐฉ์ง) --- */ | |
| .book-page { | |
| flex: 1; | |
| /* ํจ๋ฉ์ ์กฐ๊ธ ๋ ๋๋ ค์ ์์ํ๊ฒ (40px -> 60px) */ | |
| padding: 40px 50px; | |
| display: flex; | |
| flex-direction: column; | |
| position: relative; | |
| background-image: linear-gradient(to right, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0) 5%); | |
| /* ์คํฌ๋กค๋ฐ ์จ๊น ์ ์ง */ | |
| overflow-y: auto; | |
| scrollbar-width: none; | |
| -ms-overflow-style: none; | |
| min-width:0; | |
| } | |
| /* (์ ํ) ์คํฌ๋กค๋ฐ๋ฅผ ์์๊ฒ ๊พธ๋ฏธ๊ธฐ */ | |
| .book-page::-webkit-scrollbar { | |
| display: none; | |
| } | |
| .book-page::-webkit-scrollbar-track { | |
| background: transparent; | |
| } | |
| .book-page::-webkit-scrollbar-thumb { | |
| background-color: #e0e0e0; | |
| border-radius: 4px; | |
| } | |
| .book-page::-webkit-scrollbar-thumb:hover { | |
| background-color: #ccc; | |
| } | |
| .page-header { | |
| margin-bottom: 0.5rem; | |
| } | |
| /* --- 3. ์ ๋ ฅ์ฐฝ ํฌ๊ธฐ ๋์ --- */ | |
| textarea { | |
| flex-grow: 1; | |
| border: none; | |
| background: transparent; | |
| font-size: 1.1rem; | |
| /* [์์ ] ์ค ๋์ด์ ๋ฐฐ๊ฒฝ ํจํด ๊ฐ๊ฒฉ์ ์ค์ฌ์ ๋ ๋ง์ด ์ฐ๊ฒ ํจ */ | |
| line-height: 2rem; /* ์ค ๊ฐ๊ฒฉ (๊ธฐ์กด ์ ์งํ๊ฑฐ๋ 1.8rem์ผ๋ก ์ค์ฌ๋ ๋จ) */ | |
| resize: none; | |
| outline: none; | |
| /* ๋ฐฐ๊ฒฝ ์ค๋ฌด๋ฌ ๊ฐ๊ฒฉ๋ line-height์ ๋๊ฐ์ด ๋ง์ถฐ์ผ ํจ */ | |
| background-image: linear-gradient(transparent 95%, #e0e0e0 95%); | |
| background-size: 100% 2rem; /* 2rem ๊ฐ๊ฒฉ */ | |
| padding: 0 10px; /* ์ข์ฐ ์ฌ๋ฐฑ */ | |
| font-family: inherit; | |
| /* ์คํฌ๋กค๋ฐ ์จ๊น */ | |
| scrollbar-width: none; | |
| } | |
| /* 9. ์ค๋ฅธ์ชฝ ๋น ํ๋ฉด ์ํ */ | |
| .empty-state { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| height: 100%; | |
| color: #aaa; | |
| text-align: center; | |
| font-size: 0.95rem; | |
| } | |
| /* --- ๊ธฐ์กด ๊ธฐ๋ฅ ํธํ์ฑ ์ ์ง --- */ | |
| /* ์ฐข์ด์ง๋ ์ ๋๋ฉ์ด์ ์ฉ ํด๋์ค ์ฌ์กฐ์ */ | |
| #submit-btn { | |
| width: 100%; | |
| background-color: var(--primary-color); | |
| color: white; | |
| padding: 14px; | |
| border-radius: 8px; | |
| border: none; | |
| font-size: 18px; | |
| font-weight: bold; | |
| cursor: pointer; | |
| transition: background-color 0.2s; | |
| } | |
| #submit-btn:hover { | |
| background-color: var(--primary-hover-color); | |
| } | |
| #submit-btn:disabled { | |
| background-color: #cccccc; | |
| cursor: not-allowed; | |
| } | |
| #result { | |
| background: #ffffff; | |
| border-radius: 15px; /* ๋ฅ๊ธ๊ฒ */ | |
| padding: 25px; /* ๋ด๋ถ ์ฌ๋ฐฑ ๋๋ํ๊ฒ */ | |
| margin-top: 15px; /* ํค๋("AI์ ๋ต์ฅ")์ ๊ฐ๊ฒฉ ๋์ฐ๊ธฐ */ | |
| /* ๊ทธ๋ฆผ์ + ํ ๋๋ฆฌ๋ก ์นด๋ ๋๋ ๋ด๊ธฐ */ | |
| box-shadow: 0 4px 15px rgba(0,0,0,0.05); | |
| border: 1px solid #eee; | |
| font-size: 1rem; | |
| color: #444; | |
| line-height: 1.7; | |
| width:100%; | |
| box-sizing: border-box; | |
| } | |
| .rec-tabs { | |
| display: flex; | |
| margin-top: 1.5rem; | |
| margin-bottom: 1rem; | |
| border-bottom: 1px solid #ddd; | |
| } | |
| .rec-tab-btn { | |
| padding: 10px 15px; | |
| cursor: pointer; | |
| border: none; | |
| background-color: transparent; | |
| font-size: 1rem; | |
| color: var(--light-text-color); | |
| border-bottom: 2px solid transparent; | |
| margin-bottom: -1px; | |
| } | |
| .rec-tab-btn.active { | |
| color: var(--primary-color); | |
| border-bottom-color: var(--primary-color); | |
| font-weight: 600; | |
| } | |
| .rec-content { | |
| display: none; | |
| } | |
| .rec-content.active { | |
| display: block; | |
| } | |
| /* --- ์จ๋ณด๋ฉ ์ฌ๋ผ์ด๋ ์คํ์ผ --- */ | |
| .onboarding-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-color: rgba(0, 0, 0, 0.6); | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| z-index: 1000; | |
| opacity: 0; | |
| visibility: hidden; | |
| transition: opacity 0.3s, visibility 0.3s; | |
| } | |
| .onboarding-overlay.active { | |
| opacity: 1; | |
| visibility: visible; | |
| } | |
| .onboarding-modal { | |
| background-color: white; | |
| padding: 30px 40px; | |
| border-radius: 15px; | |
| width: 90%; | |
| max-width: 500px; | |
| box-shadow: 0 5px 20px rgba(0,0,0,0.2); | |
| transform: scale(0.9); | |
| transition: transform 0.3s; | |
| } | |
| .onboarding-overlay.active .onboarding-modal { | |
| transform: scale(1); | |
| } | |
| .onboarding-slide { | |
| display: none; | |
| text-align: center; | |
| } | |
| .onboarding-slide.active { | |
| display: block; | |
| } | |
| .onboarding-slide h2 { | |
| color: var(--primary-color); | |
| margin-bottom: 15px; | |
| } | |
| .onboarding-slide p { | |
| font-size: 1rem; | |
| color: var(--light-text-color); | |
| line-height: 1.6; | |
| } | |
| .onboarding-nav { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-top: 25px; | |
| } | |
| .onboarding-dots { | |
| display: flex; | |
| gap: 8px; | |
| } | |
| .onboarding-dot { | |
| width: 10px; | |
| height: 10px; | |
| background-color: #ccc; | |
| border-radius: 50%; | |
| cursor: pointer; | |
| } | |
| .onboarding-dot.active { | |
| background-color: var(--primary-color); | |
| } | |
| .onboarding-btn { | |
| background-color: var(--primary-color); | |
| color: white; | |
| border: none; | |
| padding: 10px 20px; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| font-weight: 500; | |
| } | |
| .onboarding-btn:hover { | |
| background-color: var(--primary-hover-color); | |
| } | |
| #onboarding-close { | |
| background-color: transparent; | |
| color: var(--light-text-color); | |
| } | |
| /* --- ํ ๋ง ํ๋ ํธ ์คํ์ผ --- */ | |
| .theme-palette { | |
| position: fixed; | |
| bottom: 20px; | |
| right: 20px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 10px; | |
| z-index: 100; | |
| } | |
| .theme-btn { | |
| width: 50px; | |
| height: 50px; | |
| border-radius: 50%; | |
| border: 2px solid white; | |
| cursor: pointer; | |
| font-size: 24px; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| box-shadow: 0 2px 10px rgba(0,0,0,0.2); | |
| transition: transform 0.2s; | |
| } | |
| .theme-btn:hover { | |
| transform: scale(1.1); | |
| } | |
| .theme-option-wrapper { | |
| position: relative; | |
| display: flex; | |
| justify-content: flex-end; | |
| } | |
| .sub-options { | |
| display: none; | |
| position: absolute; | |
| right: 60px; /* theme-btn width + gap */ | |
| top: 50%; | |
| transform: translateY(-50%); | |
| align-items: center; | |
| gap: 10px; | |
| background-color: rgba(255, 255, 255, 0.8); | |
| padding: 8px; | |
| border-radius: 10px; | |
| backdrop-filter: blur(4px); | |
| box-shadow: 0 2px 10px rgba(0,0,0,0.1); | |
| } | |
| .theme-option-wrapper.active .sub-options { | |
| display: flex; | |
| } | |
| .sub-options img, .sub-option-btn { | |
| width: 40px; | |
| height: 40px; | |
| border-radius: 6px; | |
| cursor: pointer; | |
| border: 1px solid rgba(0,0,0,0.05); | |
| box-shadow: 0 1px 4px rgba(0,0,0,0.1); | |
| object-fit: cover; | |
| } | |
| .sub-option-btn { | |
| background-color: white; | |
| font-size: 12px; | |
| padding: 0; | |
| } | |
| .rec-btn { | |
| background-color: #f0f0f0; | |
| border: 1px solid #ddd; | |
| padding: 8px 12px; | |
| border-radius: 6px; | |
| cursor: pointer; | |
| margin-right: 10px; | |
| font-size: 14px; | |
| } | |
| .rec-btn.active { | |
| background-color: var(--primary-color); | |
| color: white; | |
| border-color: var(--primary-color); | |
| } | |
| #result table { | |
| width: 100%; /* ๋ถ๋ชจ ๋ฐ์ค ๋๋น์ ๋ฑ ๋ง์ถค */ | |
| table-layout: fixed; /* [ํต์ฌ] ๋ด์ฉ์ด ๊ธธ์ด๋ ํ ์ด๋ธ์ด ๋์ด๋์ง ์๊ฒ ๊ณ ์ */ | |
| border-collapse: collapse; | |
| margin-top: 15px; | |
| font-size: 0.95rem; | |
| background-color: #fafafa; /* ํ ๋ฐฐ๊ฒฝ์ */ | |
| border-radius: 8px; | |
| overflow: hidden; /* ๋ฅ๊ทผ ๋ชจ์๋ฆฌ ์ ์ฉ */ | |
| } | |
| #result th, #result td { | |
| padding: 12px 15px; | |
| border-bottom: 1px solid #eee; | |
| word-break: keep-all; /* ํ๊ธ ๋จ์ด ์ ๋๊ธฐ๊ฒ */ | |
| vertical-align: middle; /* ์ธ๋ก ์ค์ ์ ๋ ฌ */ | |
| } | |
| /* ์ฒซ ๋ฒ์งธ ์นธ(์ข ๋ฅ) ๋๋น ์ค์ด๊ธฐ */ | |
| #result th:first-child, #result td:first-child { | |
| width: 60px; /* '์ข ๋ฅ' ์นธ์ ์ข๊ฒ */ | |
| text-align: center; | |
| font-weight: bold; | |
| color: var(--primary-color); | |
| background-color: #f0f5ff; /* ํค๋ ๋ฐฐ๊ฒฝ์ */ | |
| } | |
| /* ๋ ๋ฒ์งธ ์นธ(์ถ์ฒ ๋ด์ฉ) */ | |
| #result td:last-child { | |
| text-align: left; | |
| font-size: 0.9rem; | |
| color: #555; | |
| /* [ํต์ฌ] 2์ค ๋์ด๊ฐ๋ฉด ... ์ฒ๋ฆฌ */ | |
| display: -webkit-box; | |
| -webkit-line-clamp: 2; | |
| line-clamp: 2; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| /* ๋ถ๋๋ฌ์ด ์ ํ */ | |
| transition: all 0.3s ease; | |
| cursor: help; /* ๋ง์ฐ์ค ์ฌ๋ฆฌ๋ฉด ๋ฌผ์ํ ์ปค์ */ | |
| } | |
| #result td:last-child:hover { | |
| -webkit-line-clamp: unset; /* ์ค ์ ํ ํด์ */ | |
| line-clamp: unset; | |
| background-color: #fff; /* ์ฝ๊ธฐ ํธํ๊ฒ ๋ฐฐ๊ฒฝ ๋ฐ๊ฒ */ | |
| color: #000; | |
| z-index: 10; | |
| box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* ์ด์ง ๋์ฐ๊ธฐ */ | |
| border-radius: 5px; | |
| position: relative; /* ์๋ก ๋จ๊ฒ ํ๊ธฐ ์ํด */ | |
| } | |
| /* --- ๊ฐ์ ์ ํ UI ์คํ์ผ --- */ | |
| #emotion-choice-container { | |
| background-color: #f0f8ff; | |
| border-radius: 8px; | |
| padding: 20px; | |
| margin-top: 20px; | |
| border: 1px solid #bde0fe; | |
| } | |
| #emotion-chips { | |
| display: flex; | |
| justify-content: center; | |
| gap: 15px; | |
| flex-wrap: wrap; | |
| } | |
| .emotion-chip { | |
| display: flex; | |
| align-items: center; | |
| background-color: #f0f0f0; | |
| border: 1px solid #ddd; | |
| border-radius: 20px; /* ์บก์ ๋ชจ์ */ | |
| padding: 8px 16px; | |
| font-size: 1rem; | |
| cursor: pointer; | |
| transition: background-color 0.2s, border-color 0.2s, transform 0.1s; | |
| user-select: none; | |
| } | |
| .emotion-chip:hover { | |
| background-color: #e0e0e0; | |
| transform: translateY(-2px); | |
| } | |
| .emotion-chip.active { | |
| background-color: var(--primary-color); | |
| color: white; | |
| border-color: var(--primary-hover-color); | |
| font-weight: bold; | |
| } | |
| .score-badge { | |
| margin-left: 8px; | |
| background-color: rgba(0, 0, 0, 0.1); | |
| color: #333; | |
| padding: 3px 6px; | |
| font-size: 0.75rem; | |
| font-weight: bold; | |
| border-radius: 8px; | |
| } | |
| .emotion-chip.active .score-badge { | |
| background-color: rgba(255, 255, 255, 0.2); | |
| color: white; | |
| } | |
| /* --- ์ผ๊ธฐ ์ ์ฅํ๊ธฐ ๋ฒํผ ์์น ์กฐ์ --- */ | |
| #save-action-container { | |
| /* ๋ฒํผ์ด ์ค๋ฅธ์ชฝ ์ ๋ ฌ๋๋๋ก */ | |
| display: flex; | |
| justify-content: flex-end; | |
| margin:0; | |
| } | |
| .save-btn { | |
| /* ๋ฒํผ ๋์์ธ ์กฐ๊ธ ๋ ์์๊ฒ */ | |
| background-color: var(--primary-color); | |
| color: white; | |
| padding: 10px 20px; | |
| border-radius: 50px; | |
| border: none; | |
| font-weight: bold; | |
| box-shadow: 0 4px 10px rgba(101, 152, 229, 0.4); | |
| transition: transform 0.2s; | |
| } | |
| .save-btn:hover { | |
| transform: translateY(-2px); | |
| } | |
| /* --- ๊ฒฐ๊ณผ ํ์ ํค๋ --- */ | |
| .result-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: flex-start; /* Align to the top */ | |
| margin-bottom: 1rem; | |
| padding-bottom: 1rem; | |
| border-bottom: 1px solid #eee; | |
| } | |
| .result-title p { | |
| margin: 0; | |
| } | |
| /* Make the save button container part of the flex layout */ | |
| .result-header .save-button-container { | |
| margin-top: 0; | |
| } | |
| /* --- ๋ก๋ฉ ํ๋ก๊ทธ๋ ์ค ๋ฐ --- */ | |
| .progress-bar-container { | |
| width: 100%; | |
| background-color: #e0e0e0; | |
| border-radius: 4px; | |
| margin: 20px 0; | |
| overflow: hidden; /* Ensures the inner bar stays within the rounded corners */ | |
| } | |
| .progress-bar { | |
| width: 0%; | |
| height: 10px; | |
| background-color: var(--primary-color); | |
| border-radius: 4px; | |
| transition: width 0.2s ease-in-out; | |
| } | |
| .loading-text { | |
| text-align: center; | |
| margin-top: 10px; | |
| color: #555; | |
| font-size: 0.9rem; | |
| } | |