/
brood
/
html-practice-project
Обзор
Документация
Войти
/
brood
/
html-practice-project
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
frontend/style.css
2 635 строк
48 KB
1xskaeuo
final version
19 дек 2025, 11:53
19 дек 2025, 11:53
9a7fa8b
Код
Авторство
О чём код?
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap'); :root { --primary-gradient: linear-gradient(135deg, #320c3a 0%, #28414d 100%); --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); --bg-primary: #ffffff; --bg-secondary: #f8fafc; --bg-card: #ffffff; --bg-glass: rgba(255, 255, 255, 0.8); --text-primary: #1e293b; --text-secondary: #64748b; --text-muted: #94a3b8; --border-light: #e2e8f0; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; } [data-theme="dark"] { --primary-gradient: linear-gradient(135deg, #702080 0%, #22355e 100%); --secondary-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%); --accent-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); --success-gradient: linear-gradient(135deg, #00b894 0%, #00cec9 100%); --bg-primary: #0f172a; --bg-secondary: #1e293b; --bg-card: #1e293b; --bg-glass: rgba(30, 41, 59, 0.8); --text-primary: #f1f5f9; --text-secondary: #cbd5e1; --text-muted: #94a3b8; --border-light: #334155; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3); --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; transition: all 0.3s ease; min-height: 100vh; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; min-height: 100vh; display: flex; flex-direction: column; align-items: center; } h1, h2, h3, h4, h5, h6 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; margin-right: 30px; } h1 { font-size: 3rem; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } h2 { font-size: 2.5rem; color: var(--text-primary); } h3 { font-size: 1.5rem; color: var(--text-primary); } header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border-light); } nav { display: flex; align-items: center; gap: 1rem; } nav button { padding: 0.75rem 1.5rem; border: none; border-radius: var(--radius-md); cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.9rem; margin-right: 10px; transition: all 0.3s ease; background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); } nav button:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--primary-gradient); color: white; border-color: transparent; } #theme-toggle { font-size: 1.2rem; padding: 0.75rem; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; background: var(--primary-gradient); color: white; border: none !important; } #theme-toggle:hover { transform: scale(1.1); box-shadow: var(--shadow-lg); } .main-content { text-align: center; } .hero { margin-bottom: 4rem; padding: 3rem 0; } .hero h2 { font-size: 3.5rem; margin-bottom: 1.5rem; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .hero p { font-size: 1.3rem; color: var(--text-secondary); margin-bottom: 2.5rem; font-weight: 400; } .cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; } .btn-primary, .btn-secondary { padding: 1rem 2rem; font-size: 1.1rem; font-weight: 600; border: none; border-radius: var(--radius-lg); cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'Inter', sans-serif; } .btn-primary { background: var(--primary-gradient); color: white; box-shadow: var(--shadow-lg); } .btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); } .btn-secondary { background: transparent; color: var(--text-primary); border: 2px solid var(--border-light); backdrop-filter: blur(10px); } .btn-secondary:hover { background: var(--bg-secondary); transform: translateY(-2px); box-shadow: var(--shadow-md); } .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 4rem; } .feature-card { background: var(--bg-glass); padding: 2.5rem 2rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); transition: all 0.3s ease; backdrop-filter: blur(10px); border: 1px solid var(--border-light); text-align: center; } .feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); } .feature-card h3 { font-size: 1.4rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; } .feature-card p { color: var(--text-secondary); line-height: 1.6; } .game-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding: 1.5rem 2rem; background: var(--bg-glass); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); border: 1px solid var(--border-light); } .score, .timer { font-size: 1.3rem; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 0.5rem; } #restart { background: var(--secondary-gradient); color: white; border: none; padding: 0.75rem 1.5rem; border-radius: var(--radius-md); cursor: pointer; font-weight: 600; transition: all 0.3s ease; box-shadow: var(--shadow-md); } #restart:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } .game-board { display: grid; gap: 0.8rem; margin: 0 auto; padding: 2rem; background: var(--bg-glass); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); border: 1px solid var(--border-light); justify-content: center; align-items: center; } .card { background: var(--primary-gradient); border-radius: var(--radius-lg); cursor: pointer; display: flex; justify-content: center; align-items: center; transform-style: preserve-3d; transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); position: relative; box-shadow: var(--shadow-md); aspect-ratio: 1; min-width: 60px; min-height: 60px; } .card:hover:not(.matched):not(.flipped) { transform: scale(1.05); box-shadow: var(--shadow-lg); } .card.flipped { transform: rotateY(180deg); } .card.matched { background: var(--success-gradient); cursor: default; transform: rotateY(180deg); box-shadow: 0 0 20px rgba(67, 233, 123, 0.4); } .card .front, .card .back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; justify-content: center; align-items: center; border-radius: var(--radius-lg); font-weight: 600; } .card .back { background: var(--primary-gradient); color: white; } .card .front { background: var(--bg-card); color: var(--text-primary); transform: rotateY(180deg); box-shadow: inset 0 0 0 2px var(--border-light); } @keyframes matchSuccess { 0% { transform: rotateY(180deg) scale(1); } 25% { transform: rotateY(180deg) scale(1.1); box-shadow: 0 0 30px rgba(67, 233, 123, 0.6); } 50% { transform: rotateY(180deg) scale(1.15); box-shadow: 0 0 40px rgba(67, 233, 123, 0.8); } 75% { transform: rotateY(180deg) scale(1.1); box-shadow: 0 0 30px rgba(67, 233, 123, 0.6); } 100% { transform: rotateY(180deg) scale(1); box-shadow: 0 0 20px rgba(67, 233, 123, 0.4); } } .card.flipped { animation: flipCard 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; } @keyframes flipCard { 0% { transform: rotateY(0deg) scale(1); } 50% { transform: rotateY(90deg) scale(1.05); } 100% { transform: rotateY(180deg) scale(1); } } .card:not(.flipped):not(.matched) { animation: flipBack 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; } @keyframes flipBack { 0% { transform: rotateY(180deg) scale(1); } 50% { transform: rotateY(90deg) scale(1.05); } 100% { transform: rotateY(0deg) scale(1); } } .card.flipped, .card.matched { pointer-events: none; } .card:not(.flipped):not(.matched) { pointer-events: auto; } .profile-content { max-width: 900px; margin: 0 auto; padding: 2rem 0; } .username{ margin-right: 20px; margin-top: 5px; } .profile-card, .stats-card, .history-card { background: var(--bg-glass); padding: 2.5rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); margin-bottom: 2rem; backdrop-filter: blur(10px); border: 1px solid var(--border-light); } .user-info p { margin: 1.2rem 0; font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; } .user-info strong { color: var(--text-primary); min-width: 150px; } .stats-grid { display: box; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; } .stat-item { text-align: center; padding: 2rem 1rem; background: var(--bg-secondary); border-radius: var(--radius-lg); transition: all 0.3s ease; border: 1px solid var(--border-light); } .stat-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); } .stat-item h3 { margin-bottom: 1rem; color: var(--text-secondary); font-size: 1rem; font-weight: 500; } .stat-item span { font-size: 2.5rem; font-weight: 700; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .games-history { max-height: 500px; overflow-y: auto; margin-top: 1.5rem; } .game-record { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; margin-bottom: 1rem; background: var(--bg-secondary); border-radius: var(--radius-lg); border-left: 4px solid; border-left-color: #667eea; transition: all 0.3s ease; border: 1px solid var(--border-light); } .game-record:hover { transform: translateX(5px); box-shadow: var(--shadow-md); } .game-record.win { border-left-color: #43e97b; } .game-info { display: flex; gap: 2rem; align-items: center; } .game-stat { text-align: center; } .game-stat .label { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.5rem; } .game-stat .value { font-weight: 600; font-size: 1.2rem; color: var(--text-primary); } @media (max-width: 768px) { .container { padding: 1rem; } h1 { font-size: 2.2rem; } h2 { font-size: 2rem; } .hero h2 { font-size: 2.5rem; } header { flex-direction: column; gap: 1rem; text-align: center; } nav { flex-wrap: wrap; justify-content: center; } .game-board { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; padding: 1rem; } .card { width: 90px; height: 90px; font-size: 2rem; } .features { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .cta-buttons { flex-direction: column; align-items: center; } .btn-primary, .btn-secondary { width: 100%; max-width: 300px; justify-content: center; } .game-info { flex-direction: column; gap: 1rem; text-align: center; } .game-record { flex-direction: column; gap: 1rem; text-align: center; } } @media (max-width: 480px) { .game-board { grid-template-columns: repeat(2, 1fr); } .card { width: 80px; height: 80px; font-size: 1.8rem; } .stats-grid { grid-template-columns: 1fr; } .profile-card, .stats-card, .history-card { padding: 1.5rem; } } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .feature-card, .profile-card, .stats-card, .history-card { animation: fadeIn 0.6s ease-out; } ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: var(--bg-secondary); border-radius: 4px; } ::-webkit-scrollbar-thumb { background: var(--primary-gradient); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--secondary-gradient); } #auth-required { background: var(--bg-glass); padding: 3rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); text-align: center; backdrop-filter: blur(10px); border: 1px solid var(--border-light); animation: fadeIn 0.6s ease-out; } #auth-required h2 { margin-bottom: 1rem; color: var(--text-primary); } #auth-required p { color: var(--text-secondary); margin-bottom: 2rem; } .card.matched .front { background: var(--success-gradient); color: white; box-shadow: none; } button, .card, .feature-card, .profile-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } button:focus, .card:focus { outline: 2px solid #667eea; outline-offset: 2px; } .loading { opacity: 0.7; pointer-events: none; } .success { background: var(--success-gradient) !important; color: white !important; } .error { background: var(--secondary-gradient) !important; color: white !important; } .game-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding: 1.5rem 2rem; background: var(--bg-glass); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); border: 1px solid var(--border-light); gap: 1rem; } .level { font-size: 1.3rem; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 0.5rem; } .game-board { display: grid; gap: 0.8rem; margin: 0 auto; padding: 1.5rem; background: var(--bg-glass); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); border: 1px solid var(--border-light); max-width: 800px; } .card { background: var(--primary-gradient); border-radius: var(--radius-lg); cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 2rem; transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); position: relative; box-shadow: var(--shadow-md); aspect-ratio: 1; } @media (max-width: 768px) { .game-info { flex-wrap: wrap; justify-content: center; text-align: center; } .game-board { gap: 0.6rem; padding: 1rem; } .card { font-size: 1.5rem; } } @media (max-width: 480px) { .game-board { gap: 0.4rem; padding: 0.8rem; } .card { font-size: 1.2rem; } } .game-board[style*="grid-template-columns: repeat(3"] { max-width: 500px; gap: 1rem; padding: 2.5rem; } .game-board[style*="grid-template-columns: repeat(4"] { max-width: 600px; gap: 0.9rem; padding: 2rem; } .game-board[style*="grid-template-columns: repeat(5"] { max-width: 650px; gap: 0.7rem; padding: 1.5rem; } .game-board[style*="grid-template-columns: repeat(6"] { max-width: 700px; gap: 0.6rem; padding: 1.5rem; } @media (max-width: 768px) { .game-info { flex-wrap: wrap; justify-content: center; text-align: center; gap: 0.8rem; } .game-board[style*="grid-template-columns: repeat(3"] { max-width: 400px; gap: 0.8rem; padding: 1.5rem; } .game-board[style*="grid-template-columns: repeat(4"] { max-width: 450px; gap: 0.7rem; padding: 1.2rem; } .game-board[style*="grid-template-columns: repeat(5"] { max-width: 500px; gap: 0.6rem; padding: 1rem; } .game-board[style*="grid-template-columns: repeat(6"] { max-width: 520px; gap: 0.5rem; padding: 1rem; } .card { min-width: 50px; min-height: 50px; } } @media (max-width: 480px) { .game-board[style*="grid-template-columns: repeat(3"] { max-width: 320px; gap: 0.6rem; padding: 1rem; } .game-board[style*="grid-template-columns: repeat(4"] { max-width: 350px; gap: 0.5rem; padding: 0.8rem; } .game-board[style*="grid-template-columns: repeat(5"] { max-width: 380px; gap: 0.4rem; padding: 0.8rem; } .game-board[style*="grid-template-columns: repeat(6"] { max-width: 400px; gap: 0.4rem; padding: 0.8rem; } .card { min-width: 40px; min-height: 40px; } } .leaderboard-card { background: var(--bg-glass); padding: 2.5rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); margin-bottom: 2rem; backdrop-filter: blur(10px); border: 1px solid var(--border-light); } .leaderboard { margin-top: 1.5rem; } .leaderboard-item { display: flex; align-items: center; padding: 1rem 1.5rem; margin-bottom: 0.8rem; background: var(--bg-secondary); border-radius: var(--radius-lg); border: 1px solid var(--border-light); transition: all 0.3s ease; } .leaderboard-item:hover { transform: translateX(5px); box-shadow: var(--shadow-md); } .leaderboard-item.top-three { background: linear-gradient(135deg, var(--bg-secondary), rgba(102, 126, 234, 0.1)); border-left: 4px solid; } .leaderboard-item:nth-child(1) { border-left-color: gold; } .leaderboard-item:nth-child(2) { border-left-color: silver; } .leaderboard-item:nth-child(3) { border-left-color: #cd7f32; } .leaderboard-rank { font-weight: 700; font-size: 1.2rem; min-width: 40px; color: var(--text-primary); } .leaderboard-user { flex: 1; font-weight: 600; color: var(--text-primary); } .leaderboard-score { font-weight: 700; color: var(--text-primary); margin-right: 1rem; } .leaderboard-level { color: var(--text-secondary); font-size: 0.9rem; } .stat-item:nth-child(5) { grid-column: 1 / -1; max-width: 200px; margin: 0 auto; } .chatbot-quick-buttons { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem; margin-top: 5px; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); background: var(--bg-secondary); max-height: 200px; overflow-y: auto; } .chatbot-quick-button:hover { background: var(--primary-gradient); color: white; transform: translateX(5px); border-color: transparent; box-shadow: var(--shadow-md); } .chatbot-quick-button:active { transform: translateX(5px) scale(0.98); } @media (max-width: 768px) { .chatbot-quick-buttons { max-height: 150px; } .chatbot-quick-button { font-size: 0.8rem; padding-bottom: 60px; } } .chatbot-container { height: 550px; } @media (max-width: 768px) { .chatbot-container { height: 65vh; } } .chatbot-container { position: fixed; bottom: 100px; right: 20px; width: 350px; height: 500px; background: var(--bg-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); backdrop-filter: blur(20px); border: 1px solid var(--border-light); display: flex; flex-direction: column; z-index: 1000; transform: translateY(20px) scale(0.9); opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .chatbot-container.active { transform: translateY(0) scale(1); opacity: 1; visibility: visible; } .chatbot-header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; background: var(--primary-gradient); color: white; border-radius: var(--radius-xl) var(--radius-xl) 0 0; } .chatbot-title { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1rem; } .chatbot-icon { font-size: 1.2rem; } .chatbot-close { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background-color 0.3s; } .chatbot-close:hover { background: rgba(255, 255, 255, 0.2); } .chatbot-messages { flex: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.8rem; background: var(--bg-card); } .chatbot-message { max-width: 85%; padding: 0.8rem 1rem; border-radius: var(--radius-lg); animation: messageAppear 0.3s ease-out; opacity: 0; transform: translateY(10px); } .chatbot-message.visible { opacity: 1; transform: translateY(0); } .chatbot-message-user { align-self: flex-end; background: var(--primary-gradient); color: white; border-bottom-right-radius: var(--radius-sm); } .chatbot-message-bot { align-self: flex-start; background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-light); border-bottom-left-radius: var(--radius-sm); } .chatbot-message-content { font-size: 0.9rem; line-height: 1.4; white-space: pre-line; } .chatbot-message-content strong { font-weight: 600; } .chatbot-message-time { font-size: 0.7rem; opacity: 0.7; margin-top: 0.3rem; text-align: right; } .chatbot-message-bot .chatbot-message-time { text-align: left; } .chatbot-quick-buttons { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem; border-top: 1px solid var(--border-light); background: var(--bg-secondary); max-height: 200px; overflow-y: auto; } .chatbot-quick-button { padding: 0.8rem 1rem; background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-light); border-radius: var(--radius-lg); cursor: pointer; font-size: 0.85rem; font-weight: 500; text-align: left; transition: all 0.3s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-bottom: 30px; } .chatbot-quick-button:hover { background: var(--primary-gradient); color: white; transform: translateX(5px); border-color: transparent; box-shadow: var(--shadow-md); } .chatbot-button { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; background: var(--primary-gradient); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow-lg); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999; } .chatbot-button:hover { transform: scale(1.1); box-shadow: var(--shadow-xl); } .chatbot-button.active { transform: scale(0.9); background: var(--secondary-gradient); } /* Анимации */ @keyframes messageAppear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } 60% { transform: translateY(-3px); } } .chatbot-button:not(.active) { animation: bounce 2s infinite; } @media (max-width: 768px) { .chatbot-container { width: calc(100vw - 40px); height: 60vh; right: 20px; left: 20px; bottom: 80px; } .chatbot-button { width: 50px; height: 50px; font-size: 1.3rem; } .chatbot-quick-buttons { max-height: 150px; } } .chatbot-messages::-webkit-scrollbar { width: 6px; } .chatbot-messages::-webkit-scrollbar-track { background: transparent; } .chatbot-messages::-webkit-scrollbar-thumb { background: var(--primary-gradient); border-radius: 3px; } .map-section { margin-top: 4rem; padding: 3rem 0; background: var(--bg-secondary); border-radius: var(--radius-xl); text-align: center; } .map-section h2 { font-size: 2.5rem; margin-bottom: 1rem; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .map-section p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2rem; } .map-container { display: flex; gap: 2rem; max-width: 1200px; margin: 0 auto; padding: 0 1rem; } .location-map { flex: 2; height: 400px; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); border: 2px solid var(--border-light); } .map-info { flex: 1; } .map-info-card { background: var(--bg-glass); padding: 2rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); border: 1px solid var(--border-light); text-align: left; } .map-info-card h3 { margin-bottom: 1.5rem; color: var(--text-primary); font-size: 1.4rem; } .map-info-card p { margin: 0.8rem 0; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; } .map-info-card strong { color: var(--text-primary); font-weight: 600; } @media (max-width: 992px) { .map-container { flex-direction: column; } .location-map { height: 350px; } } @media (max-width: 768px) { .map-section { padding: 2rem 1rem; } .map-section h2 { font-size: 2rem; } .location-map { height: 300px; } .map-info-card { padding: 1.5rem; } } @media (max-width: 480px) { .location-map { height: 250px; } } .arcade-content { max-width: 1200px; margin: 0 auto; padding: 2rem 0; } .arcade-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 3rem; } .mode-card { background: var(--bg-glass); padding: 2.5rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); text-align: center; backdrop-filter: blur(10px); border: 1px solid var(--border-light); transition: all 0.3s ease; cursor: pointer; } .mode-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); background: var(--primary-gradient); color: white; } .mode-card:hover h3, .mode-card:hover p { color: white; } .mode-card h3 { margin-bottom: 1rem; font-size: 1.4rem; color: var(--text-primary); display: flex; align-items: center; justify-content: center; gap: 0.5rem; } .mode-card p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.95rem; } .play-btn { background: var(--primary-gradient); color: white; border: none; padding: 0.8rem 1.5rem; border-radius: var(--radius-lg); cursor: pointer; font-weight: 600; transition: all 0.3s ease; box-shadow: var(--shadow-md); } .play-btn:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); } .arcade-game-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding: 1.5rem 2rem; background: var(--bg-glass); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); border: 1px solid var(--border-light); gap: 1rem; flex-wrap: wrap; } .arcade-timer, .arcade-score, .arcade-moves { font-size: 1.2rem; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 0.5rem; } #arcade-restart { background: var(--secondary-gradient); color: white; border: none; padding: 0.75rem 1.5rem; border-radius: var(--radius-md); cursor: pointer; font-weight: 600; transition: all 0.3s ease; box-shadow: var(--shadow-md); } #arcade-restart:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } .arcade-leaderboard { margin-top: 3rem; background: var(--bg-glass); padding: 2.5rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); border: 1px solid var(--border-light); } .leaderboard-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; } .tab-btn { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-light); padding: 0.6rem 1.2rem; border-radius: var(--radius-md); cursor: pointer; font-weight: 500; transition: all 0.3s ease; } .tab-btn.active { background: var(--primary-gradient); color: white; border-color: transparent; } .tab-btn:hover:not(.active) { background: var(--bg-card); transform: translateY(-2px); } .leaderboard-list { margin-top: 1.5rem; } .leaderboard-item { display: flex; align-items: center; padding: 1rem 1.5rem; margin-bottom: 0.8rem; background: var(--bg-secondary); border-radius: var(--radius-lg); border: 1px solid var(--border-light); transition: all 0.3s ease; } .leaderboard-item:hover { transform: translateX(5px); box-shadow: var(--shadow-md); } .leaderboard-item.top-three { background: linear-gradient(135deg, var(--bg-secondary), rgba(102, 126, 234, 0.1)); border-left: 4px solid; } .leaderboard-item:nth-child(1) { border-left-color: gold; } .leaderboard-item:nth-child(2) { border-left-color: silver; } .leaderboard-item:nth-child(3) { border-left-color: #cd7f32; } .leaderboard-rank { font-weight: 700; font-size: 1.2rem; min-width: 40px; color: var(--text-primary); } .leaderboard-user { flex: 1; font-weight: 600; color: var(--text-primary); } .leaderboard-score { font-weight: 700; color: var(--text-primary); margin-right: 1rem; } .leaderboard-time { color: var(--text-secondary); font-size: 0.9rem; } .arcade-history { margin-top: 3rem; background: var(--bg-glass); padding: 2.5rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); border: 1px solid var(--border-light); } #arcade-history-list { margin-top: 1.5rem; } .arcade-history .game-record { display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 1rem; align-items: center; padding: 1rem; margin-bottom: 0.8rem; background: var(--bg-secondary); border-radius: var(--radius-lg); border: 1px solid var(--border-light); } .game-mode { font-weight: 600; color: var(--text-primary); } .game-score, .game-time, .game-moves { font-weight: 500; color: var(--text-secondary); } .game-date { color: var(--text-muted); font-size: 0.85rem; } .no-data { text-align: center; padding: 2rem; color: var(--text-secondary); font-style: italic; } .hidden { display: none !important; } @media (max-width: 768px) { .arcade-modes { grid-template-columns: 1fr; } .arcade-game-info { flex-direction: column; gap: 1rem; text-align: center; } .arcade-history .game-record { grid-template-columns: 1fr; text-align: center; gap: 0.5rem; } .leaderboard-tabs { justify-content: center; } } /* Play Page Styles */ .play-content { max-width: 1200px; margin: 0 auto; padding: 2rem 0; } .play-header { text-align: center; margin-bottom: 4rem; padding: 3rem; background: var(--bg-glass); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); border: 1px solid var(--border-light); } .play-header h2 { font-size: 2.8rem; margin-bottom: 1rem; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .play-header p { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.6; } /* Game Modes Grid */ .game-modes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); gap: 3rem; margin-bottom: 4rem; } .game-mode-card { background: var(--bg-glass); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); border: 1px solid var(--border-light); overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; } .game-mode-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); } .game-mode-card.classic-mode { border-top: 5px solid #667eea; } .game-mode-card.arcade-mode { border-top: 5px solid #ff6b6b; } .mode-icon { position: absolute; top: -25px; right: 30px; width: 70px; height: 70px; background: var(--primary-gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; box-shadow: var(--shadow-lg); z-index: 2; } .game-mode-card.arcade-mode .mode-icon { background: var(--secondary-gradient); } .mode-content { padding: 3rem; } .mode-content h3 { font-size: 2rem; margin-bottom: 1.2rem; color: var(--text-primary); } .mode-description { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-light); } .mode-features { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; } .feature { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; background: var(--bg-secondary); border-radius: var(--radius-md); border: 1px solid var(--border-light); transition: all 0.3s ease; } .feature:hover { transform: translateX(5px); background: var(--bg-card); } .feature-icon { font-size: 1.2rem; min-width: 30px; } .mode-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 2rem; padding: 1.5rem; background: linear-gradient(135deg, var(--bg-secondary), transparent); border-radius: var(--radius-lg); } .stat { text-align: center; } .stat-label { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.3rem; font-weight: 500; } .stat-value { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); } .play-mode-btn { width: 100%; padding: 1.2rem 2rem; border: none; border-radius: var(--radius-lg); font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 0.8rem; font-family: 'Inter', sans-serif; } .classic-btn { background: var(--primary-gradient); color: white; box-shadow: var(--shadow-lg); } .classic-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); background: linear-gradient(135deg, #320c3a 0%, #22355e 100%); } .arcade-btn { background: var(--secondary-gradient); color: white; box-shadow: var(--shadow-lg); } .arcade-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); background: linear-gradient(135deg, #ff4757 0%, #ff6b6b 100%); } /* Comparison Section */ .comparison-section { background: var(--bg-glass); padding: 3rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); border: 1px solid var(--border-light); margin-bottom: 4rem; } .comparison-section h2 { text-align: center; margin-bottom: 2.5rem; font-size: 2.2rem; color: var(--text-primary); } .comparison-table { max-width: 800px; margin: 0 auto; background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); } .comparison-header { display: grid; grid-template-columns: 2fr 1fr 1fr; background: var(--primary-gradient); color: white; font-weight: 600; } .comparison-cell { padding: 1.5rem; text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.2); } .comparison-cell:last-child { border-right: none; } .comparison-row { display: grid; grid-template-columns: 2fr 1fr 1fr; border-bottom: 1px solid var(--border-light); transition: background-color 0.3s ease; } .comparison-row:hover { background: var(--bg-secondary); } .comparison-row .comparison-cell { padding: 1.2rem 1.5rem; text-align: center; color: var(--text-primary); } .comparison-row .comparison-cell:first-child { text-align: left; font-weight: 500; color: var(--text-secondary); border-right: 1px solid var(--border-light); } /* User Stats Section */ .user-stats-section { margin-top: 2rem; } .user-stats-section h2 { text-align: center; margin-bottom: 2.5rem; font-size: 2.2rem; color: var(--text-primary); } .stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; } .stats-card { background: var(--bg-glass); padding: 2.5rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); border: 1px solid var(--border-light); display: flexbox; align-items: center; text-align: center; gap: 2rem; transition: all 0.3s ease; } .stats-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); } .stats-icon { width: 80px; height: 80px; background: var(--primary-gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; flex-shrink: 0; box-shadow: var(--shadow-md); } .stats-card:nth-child(2) .stats-icon { background: var(--secondary-gradient); } .stats-content { flex: 1; } .stats-content h4 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--text-primary); } .stats-values p { margin: 0.5rem 0; color: var(--text-secondary); font-size: 0.95rem; } .stats-values strong { color: var(--text-primary); font-weight: 600; margin-right: 0.5rem; } /* Responsive Design */ @media (max-width: 1100px) { .game-modes-grid { grid-template-columns: 1fr; max-width: 600px; margin-left: auto; margin-right: auto; } } @media (max-width: 768px) { .play-header { padding: 2rem 1.5rem; } .play-header h2 { font-size: 2.2rem; } .game-modes-grid { max-width: 100%; } .mode-content { padding: 2rem 1.5rem; } .mode-content h3 { font-size: 1.7rem; } .comparison-section { padding: 2rem 1.5rem; overflow-x: auto; } .comparison-table { min-width: 600px; } .stats-cards { grid-template-columns: 1fr; } .stats-card { padding: 2rem; flex-direction: column; text-align: center; } .stats-icon { width: 70px; height: 70px; font-size: 2rem; } } @media (max-width: 480px) { .play-header h2 { font-size: 1.8rem; } .play-mode-btn { padding: 1rem 1.5rem; font-size: 1rem; } .mode-stats { grid-template-columns: 1fr; gap: 1rem; } .feature { flex-direction: column; text-align: center; gap: 0.5rem; } } /* Animation for mode cards */ @keyframes cardAppear { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } .game-mode-card { animation: cardAppear 0.6s ease-out forwards; } .game-mode-card:nth-child(1) { animation-delay: 0.1s; } .game-mode-card:nth-child(2) { animation-delay: 0.2s; } .game-mode-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent); opacity: 0; transition: opacity 0.3s ease; } .game-mode-card:hover::before { opacity: 1; } .game-mode-card.arcade-mode::before { background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.5), transparent); } .achievements-content { max-width: 1200px; margin: 0 auto; padding: 2rem 0; } .achievements-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; } .stat-card { background: var(--bg-glass); padding: 2rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); border: 1px solid var(--border-light); text-align: center; transition: all 0.3s ease; } .stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); } .stat-card h3 { margin-bottom: 1rem; color: var(--text-secondary); font-size: 1rem; font-weight: 500; } .stat-card span { font-size: 2.5rem; font-weight: 700; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; line-height: 1; } .achievements-filters { display: flex; gap: 0.5rem; margin-bottom: 2rem; padding: 1rem; background: var(--bg-glass); border-radius: var(--radius-lg); backdrop-filter: blur(10px); border: 1px solid var(--border-light); flex-wrap: wrap; justify-content: center; } .filter-btn { padding: 0.6rem 1.2rem; background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-light); border-radius: var(--radius-md); cursor: pointer; font-weight: 500; font-size: 0.9rem; transition: all 0.3s ease; } .filter-btn:hover { background: var(--bg-card); transform: translateY(-2px); } .filter-btn.active { background: var(--primary-gradient); color: white; border-color: transparent; box-shadow: var(--shadow-md); } .achievements-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; } .achievement-card { background: var(--bg-glass); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); border: 1px solid var(--border-light); padding: 1.5rem; display: flex; gap: 1.2rem; align-items: center; transition: all 0.3s ease; position: relative; overflow: hidden; } .achievement-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); } .achievement-card.completed { border-left: 4px solid #4CAF50; background: linear-gradient(135deg, var(--bg-glass), rgba(76, 175, 80, 0.1)); } .achievement-card.locked { border-left: 4px solid #ff4757; opacity: 0.7; background: linear-gradient(135deg, var(--bg-glass), rgba(255, 71, 87, 0.05)); } .achievement-card.in-progress { border-left: 4px solid #667eea; background: linear-gradient(135deg, var(--bg-glass), rgba(102, 126, 234, 0.1)); } .achievement-icon { width: 60px; height: 60px; background: var(--primary-gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; box-shadow: var(--shadow-md); } .achievement-card.completed .achievement-icon { background: var(--success-gradient); } .achievement-card.locked .achievement-icon { background: var(--secondary-gradient); opacity: 0.8; } .achievement-card.in-progress .achievement-icon { background: var(--accent-gradient); } .achievement-info { flex: 1; } .achievement-info h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-primary); font-weight: 600; } .achievement-info p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.4; } .achievement-progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.8rem; } .progress-bar { flex: 1; height: 8px; background: var(--bg-secondary); border-radius: 4px; overflow: hidden; border: 1px solid var(--border-light); } .progress-fill { height: 100%; background: var(--primary-gradient); border-radius: 4px; transition: width 0.6s ease; } .achievement-card.completed .progress-fill { background: var(--success-gradient); } .achievement-card.in-progress .progress-fill { background: var(--accent-gradient); } .progress-text { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); min-width: 40px; } .achievement-points { position: absolute; top: 1rem; right: 1rem; background: var(--primary-gradient); color: white; padding: 0.3rem 0.8rem; border-radius: var(--radius-md); font-size: 0.8rem; font-weight: 600; box-shadow: var(--shadow-sm); } .achievement-card.completed .achievement-points { background: var(--success-gradient); } .achievement-date { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border-light); } #new-achievements-alert { position: fixed; top: 100px; right: 20px; width: 350px; background: var(--success-gradient); color: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); padding: 1.5rem; z-index: 1000; animation: slideInRight 0.5s ease-out; border: 1px solid rgba(255, 255, 255, 0.2); } #new-achievements-alert.hidden { display: none; } #new-achievements-alert h3 { color: white; margin-bottom: 1rem; font-size: 1.3rem; display: flex; align-items: center; gap: 0.5rem; } .new-achievement { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem; background: rgba(255, 255, 255, 0.1); border-radius: var(--radius-md); margin-bottom: 0.8rem; backdrop-filter: blur(10px); } .new-achievement:last-child { margin-bottom: 1.5rem; } .new-achievement .achievement-icon { width: 40px; height: 40px; font-size: 1.5rem; background: rgba(255, 255, 255, 0.2); } .new-achievement .achievement-title { flex: 1; font-weight: 500; } .new-achievement .achievement-points { position: static; background: rgba(255, 255, 255, 0.2); padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); font-size: 0.8rem; } #new-achievements-alert button { width: 100%; padding: 0.8rem; background: white; color: #4CAF50; border: none; border-radius: var(--radius-md); cursor: pointer; font-weight: 600; transition: all 0.3s ease; } #new-achievements-alert button:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } @keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } } .achievement-card.completed { animation: pulse 2s infinite; } @keyframes glitch { 0% { transform: translate(0); } 20% { transform: translate(-2px, 2px); } 40% { transform: translate(-2px, -2px); } 60% { transform: translate(2px, 2px); } 80% { transform: translate(2px, -2px); } 100% { transform: translate(0); } } .new-achievement { animation: glitch 0.5s ease; } .no-achievements { text-align: center; padding: 4rem 2rem; background: var(--bg-glass); border-radius: var(--radius-xl); backdrop-filter: blur(10px); border: 1px solid var(--border-light); } .no-achievements h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-primary); } .no-achievements p { color: var(--text-secondary); margin-bottom: 2rem; } @media (max-width: 768px) { .achievements-grid { grid-template-columns: 1fr; } .achievements-stats { grid-template-columns: repeat(2, 1fr); } .achievement-card { padding: 1.2rem; } .achievement-icon { width: 50px; height: 50px; font-size: 1.5rem; } #new-achievements-alert { width: calc(100vw - 40px); right: 20px; left: 20px; } } @media (max-width: 480px) { .achievements-stats { grid-template-columns: 1fr; } .achievements-filters { flex-direction: column; } .filter-btn { width: 100%; } .achievement-card { flex-direction: column; text-align: center; } .achievement-progress { flex-direction: column; align-items: stretch; } .progress-text { text-align: center; } } .achievement-card.completed::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient( 45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70% ); transform: rotate(45deg); animation: shine 3s infinite; } @keyframes shine { 0% { left: -100%; } 100% { left: 100%; } }