/* Reset and Base Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; color: #333; line-height: 1.6; overflow-x: hidden; } .container { max-width: 900px; margin: 0 auto; padding: 15px; min-height: 100vh; display: flex; flex-direction: column; width: 100%; } /* Header */ .header { text-align: center; margin-bottom: 2rem; color: white; } .header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.3); } .header p { font-size: 1.1rem; opacity: 0.9; font-weight: 300; } /* Main Content */ .main { flex: 1; display: flex; align-items: center; justify-content: center; } .screen { display: none; width: 100%; max-width: 700px; background: white; border-radius: 20px; padding: 2rem; box-shadow: 0 20px 40px rgba(0,0,0,0.1); animation: fadeIn 0.5s ease-out; margin: 0 auto; } .screen.active { display: block; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Welcome Screen */ .welcome-content { text-align: center; } .mood-icons { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; } .mood-icon { font-size: 3rem; animation: bounce 2s infinite; } .mood-icon:nth-child(2) { animation-delay: 0.2s; } .mood-icon:nth-child(3) { animation-delay: 0.4s; } .mood-icon:nth-child(4) { animation-delay: 0.6s; } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } } .welcome-content h2 { font-size: 2rem; margin-bottom: 1rem; color: #333; } .welcome-content p { font-size: 1.1rem; color: #666; margin-bottom: 2rem; } /* Progress Bar */ .progress-bar { width: 100%; height: 8px; background: #e0e0e0; border-radius: 4px; margin-bottom: 2rem; overflow: hidden; } .progress-fill { height: 100%; background: linear-gradient(90deg, #667eea, #764ba2); border-radius: 4px; transition: width 0.3s ease; width: 0%; } /* Question Content */ .question-content h2 { font-size: 1.5rem; margin-bottom: 2rem; color: #333; text-align: center; } .answer-options { display: grid; gap: 1rem; margin-bottom: 2rem; } .answer-option { padding: 1rem 1.5rem; border: 2px solid #e0e0e0; border-radius: 12px; background: white; cursor: pointer; transition: all 0.3s ease; font-size: 1rem; text-align: center; } .answer-option:hover { border-color: #667eea; background: #f8f9ff; transform: translateY(-2px); } .answer-option.selected { border-color: #667eea; background: #667eea; color: white; } /* Navigation */ .navigation { display: flex; justify-content: space-between; gap: 1rem; } /* Buttons */ .btn { padding: 0.75rem 2rem; border: none; border-radius: 12px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-block; text-align: center; } .btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); color: white; } .btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4); } .btn-secondary { background: #f5f5f5; color: #333; } .btn-secondary:hover:not(:disabled) { background: #e0e0e0; } .btn-outline { background: transparent; color: #667eea; border: 2px solid #667eea; } .btn-outline:hover { background: #667eea; color: white; } .btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; } .btn:disabled { opacity: 0.5; cursor: not-allowed; } /* Result Screen */ .result-content { text-align: center; } .mood-display { margin-bottom: 2rem; } .result-mood-icon { font-size: 5rem; margin-bottom: 1rem; animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } } .mood-display h2 { font-size: 2.5rem; margin-bottom: 1rem; color: #333; } .mood-display p { font-size: 1.1rem; color: #666; line-height: 1.6; } .mood-quote { background: #f0f8ff; padding: 1.5rem; border-radius: 12px; margin-bottom: 2rem; text-align: center; border-left: 4px solid #667eea; } .mood-quote h3 { color: #333; margin-bottom: 1rem; font-size: 1.2rem; } .mood-quote blockquote { font-style: italic; font-size: 1.1rem; color: #555; line-height: 1.6; margin: 0; position: relative; } .mood-quote blockquote:before { content: '"'; font-size: 3rem; color: #667eea; position: absolute; left: -1rem; top: -0.5rem; opacity: 0.3; } .mood-tips { background: #f8f9ff; padding: 1.5rem; border-radius: 12px; margin-bottom: 2rem; text-align: left; } .mood-history { background: #f9f9f9; padding: 1.5rem; border-radius: 12px; margin-bottom: 2rem; text-align: left; } .mood-history h3 { color: #333; margin-bottom: 1rem; font-size: 1.2rem; } .history-item { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem; margin-bottom: 0.5rem; background: white; border-radius: 8px; border-left: 3px solid #667eea; } .history-item:last-child { margin-bottom: 0; } .history-mood { display: flex; align-items: center; gap: 0.75rem; } .history-emoji { font-size: 1.5rem; } .history-details { display: flex; flex-direction: column; } .history-mood-name { font-weight: 500; color: #333; text-transform: capitalize; } .history-method { font-size: 0.85rem; color: #666; } .history-time { font-size: 0.85rem; color: #888; font-style: italic; } .history-empty { text-align: center; color: #666; font-style: italic; padding: 1rem; } .mood-tips h3 { color: #333; margin-bottom: 1rem; } .mood-tips ul { list-style: none; padding: 0; } .mood-tips li { padding: 0.5rem 0; color: #555; } .mood-tips li:before { content: "✨ "; margin-right: 0.5rem; } .result-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; } /* Text Analysis */ .text-content { text-align: center; } .text-content h2 { margin-bottom: 1rem; color: #333; } .text-content p { color: #666; margin-bottom: 1.5rem; } #mood-text { width: 100%; min-height: 120px; padding: 1rem; border: 2px solid #e0e0e0; border-radius: 12px; font-family: inherit; font-size: 1rem; resize: vertical; margin-bottom: 1.5rem; } #mood-text:focus { outline: none; border-color: #667eea; } .text-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; } /* About Section */ .about-section { position: fixed; top: 20px; right: 20px; z-index: 999; } .about-toggle { background: rgba(255, 255, 255, 0.9); color: #667eea; border: 2px solid #667eea; padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(10px); } .about-toggle:hover { background: #667eea; color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); } .about-panel { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); display: none; align-items: center; justify-content: center; z-index: 1001; } .about-panel.active { display: flex; } .about-content { background: white; padding: 2rem; border-radius: 16px; max-width: 400px; width: 90%; text-align: center; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); } .about-content h3 { color: #333; margin-bottom: 1.5rem; font-size: 1.5rem; } .about-content p { color: #666; margin-bottom: 1rem; font-size: 1rem; } .developers-list { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; } .developers-list li { padding: 0.5rem 0; color: #555; font-size: 1rem; border-bottom: 1px solid #f0f0f0; } .developers-list li:last-child { border-bottom: none; } .developers-list li:before { content: "👨‍💻 "; margin-right: 0.5rem; } /* Admin Panel */ .admin-toggle { position: fixed; bottom: 20px; right: 20px; } .admin-panel { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 1000; } .admin-panel.active { display: flex; } .admin-content { background: white; padding: 2rem; border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; } .admin-content h3 { margin-bottom: 1.5rem; color: #333; } .analytics-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem; margin-bottom: 0.5rem; background: #f8f9ff; border-radius: 8px; } .analytics-mood { display: flex; align-items: center; gap: 0.5rem; } .analytics-count { font-weight: 600; color: #667eea; } /* Responsive Design */ /* Large Desktop (1200px and up) */ @media (min-width: 1200px) { .container { max-width: 1000px; padding: 20px; } .screen { max-width: 800px; padding: 3rem; } .header h1 { font-size: 3rem; } .header p { font-size: 1.2rem; } } /* Desktop (992px to 1199px) */ @media (min-width: 992px) and (max-width: 1199px) { .container { max-width: 900px; padding: 20px; } .screen { max-width: 750px; padding: 2.5rem; } } /* Tablet (768px to 991px) */ @media (min-width: 768px) and (max-width: 991px) { .container { padding: 15px; } .screen { max-width: 650px; padding: 2rem; } .header h1 { font-size: 2.2rem; } .mood-icons { gap: 0.8rem; } .mood-icon { font-size: 2.8rem; } .result-mood-icon { font-size: 4.5rem; } .history-item { flex-direction: row; align-items: center; } .history-time { text-align: right; min-width: 80px; } } /* Mobile Large (576px to 767px) */ @media (min-width: 576px) and (max-width: 767px) { .container { padding: 12px; } .header { margin-bottom: 1.5rem; } .header h1 { font-size: 2rem; } .header p { font-size: 1rem; } .screen { padding: 1.5rem; border-radius: 16px; } .mood-icons { gap: 0.6rem; margin-bottom: 1.5rem; } .mood-icon { font-size: 2.5rem; } .result-mood-icon { font-size: 4rem; } .welcome-content h2 { font-size: 1.8rem; } .welcome-content p { font-size: 1rem; } .question-content h2 { font-size: 1.3rem; margin-bottom: 1.5rem; } .answer-option { padding: 0.9rem 1.2rem; font-size: 0.95rem; } .navigation { flex-direction: column; gap: 0.8rem; } .btn { width: 100%; padding: 0.8rem 1.5rem; } .result-actions { flex-direction: column; gap: 0.8rem; } .text-actions { flex-direction: column; gap: 0.8rem; } .mood-display h2 { font-size: 2rem; } .mood-quote, .mood-tips, .mood-history { padding: 1.2rem; margin-bottom: 1.5rem; } .mood-quote blockquote { font-size: 1rem; } .history-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; } .history-time { align-self: flex-end; font-size: 0.8rem; } .about-toggle, .admin-toggle { padding: 0.4rem 0.8rem; font-size: 0.85rem; } } /* Mobile Small (up to 575px) */ @media (max-width: 575px) { .container { padding: 10px; } .header { margin-bottom: 1rem; } .header h1 { font-size: 1.8rem; line-height: 1.2; } .header p { font-size: 0.95rem; } .screen { padding: 1rem; border-radius: 12px; max-width: 100%; } .mood-icons { gap: 0.4rem; margin-bottom: 1.2rem; flex-wrap: wrap; } .mood-icon { font-size: 2.2rem; } .result-mood-icon { font-size: 3.5rem; } .welcome-content h2 { font-size: 1.6rem; line-height: 1.3; } .welcome-content p { font-size: 0.95rem; margin-bottom: 1.5rem; } .question-content h2 { font-size: 1.2rem; margin-bottom: 1.2rem; line-height: 1.4; } .answer-option { padding: 0.8rem 1rem; font-size: 0.9rem; text-align: left; } .navigation { flex-direction: column; gap: 0.6rem; } .btn { width: 100%; padding: 0.75rem 1rem; font-size: 0.95rem; } .btn-small { padding: 0.4rem 0.8rem; font-size: 0.8rem; } .result-actions { flex-direction: column; gap: 0.6rem; } .text-actions { flex-direction: column; gap: 0.6rem; } .mood-display h2 { font-size: 1.8rem; line-height: 1.2; } .mood-display p { font-size: 1rem; } .mood-quote, .mood-tips, .mood-history { padding: 1rem; margin-bottom: 1.2rem; } .mood-quote h3, .mood-tips h3, .mood-history h3 { font-size: 1.1rem; margin-bottom: 0.8rem; } .mood-quote blockquote { font-size: 0.95rem; line-height: 1.5; } .mood-quote blockquote:before { font-size: 2.5rem; left: -0.8rem; top: -0.3rem; } .mood-tips li { padding: 0.4rem 0; font-size: 0.9rem; } .history-item { flex-direction: column; align-items: flex-start; gap: 0.4rem; padding: 0.6rem; } .history-emoji { font-size: 1.3rem; } .history-mood-name { font-size: 0.9rem; } .history-method { font-size: 0.8rem; } .history-time { align-self: flex-end; font-size: 0.75rem; } .about-section { top: 15px; right: 15px; } .admin-toggle { bottom: 15px; right: 15px; } .about-toggle, .admin-toggle { padding: 0.35rem 0.7rem; font-size: 0.8rem; } .about-content, .admin-content { padding: 1.5rem; width: 95%; max-width: 350px; } .about-content h3 { font-size: 1.3rem; } .developers-list li { font-size: 0.9rem; padding: 0.4rem 0; } #mood-text { min-height: 100px; padding: 0.8rem; font-size: 0.95rem; } .text-content h2 { font-size: 1.4rem; } .text-content p { font-size: 0.9rem; } } /* Extra Small Mobile (up to 360px) */ @media (max-width: 360px) { .container { padding: 8px; } .header h1 { font-size: 1.6rem; } .screen { padding: 0.8rem; } .mood-icon { font-size: 2rem; } .result-mood-icon { font-size: 3rem; } .welcome-content h2 { font-size: 1.4rem; } .question-content h2 { font-size: 1.1rem; } .mood-display h2 { font-size: 1.6rem; } .about-content, .admin-content { padding: 1.2rem; } }