@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Roboto', sans-serif; } .app { min-height: 100vh; background: #000000; color: #FFFFFF; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; } .loading { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #000000; color: #FFFFFF; font-family: 'Roboto', sans-serif; font-size: 16px; } /* Header */ .header { text-align: center; margin-bottom: 48px; animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .header h1 { font-size: 34px; font-weight: 400; margin: 0 0 8px 0; letter-spacing: 0.25px; line-height: 40px; } .vote-count { font-size: 14px; font-weight: 400; margin: 0; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.25px; } .voted-indicator { font-size: 14px; font-weight: 500; margin: 8px 0 0 0; color: #4CAF50; letter-spacing: 0.25px; } /* Error Message */ .error-message { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); background: #CF6679; color: #FFFFFF; padding: 16px 24px; border-radius: 8px; font-size: 14px; font-weight: 500; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1000; max-width: 90%; text-align: center; } @keyframes slideDown { from { transform: translateX(-50%) translateY(-100%); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } } /* Cats Grid */ .cats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 800px; width: 100%; margin-bottom: 48px; } /* Cat Button */ .cat-button { background: #1E1E1E; border: none; border-radius: 16px; padding: 0; cursor: pointer; overflow: hidden; position: relative; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both; } .cat-button:nth-child(1) { animation-delay: 0.1s; } .cat-button:nth-child(2) { animation-delay: 0.2s; } .cat-button:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1); } .cat-button:active { transform: translateY(-2px); } .cat-button.disabled { opacity: 0.6; cursor: not-allowed; } .cat-button.disabled:hover { transform: none; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); } .cat-button:disabled { pointer-events: none; } /* Ripple Effect */ .ripple { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); transform: translate(-50%, -50%); animation: ripple 0.6s ease-out; pointer-events: none; } @keyframes ripple { to { transform: translate(-50%, -50%) scale(4); opacity: 0; } } /* Cat Image */ .cat-image-wrapper { width: 100%; aspect-ratio: 1; overflow: hidden; } .cat-image { width: 100%; height: 100%; object-fit: cover; display: block; } .cat-label { padding: 16px; text-align: left; } .cat-label p { font-size: 16px; font-weight: 500; margin: 0; color: #FFFFFF; letter-spacing: 0.15px; } /* Results */ .results { width: 100%; max-width: 800px; background: #1E1E1E; border-radius: 16px; padding: 24px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both; } .results h2 { font-size: 22px; font-weight: 400; margin: 0 0 24px 0; letter-spacing: 0px; line-height: 28px; } /* Result Item */ .result-item { margin-bottom: 24px; } .result-item:last-child { margin-bottom: 0; } .result-header { display: flex; justify-content: space-between; margin-bottom: 8px; } .result-name { font-size: 14px; font-weight: 500; color: #FFFFFF; letter-spacing: 0.1px; } .result-percentage { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.1px; } /* Progress Bar */ .progress-bar { width: 100%; height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; } .progress-fill { height: 100%; background: #FFFFFF; border-radius: 4px; animation: progressBar 0.6s cubic-bezier(0.4, 0, 0.2, 1); transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); } /* Animations */ @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } @keyframes progressBar { from { width: 0; } } /* Responsive */ @media (max-width: 640px) { .app { padding: 16px; } .header h1 { font-size: 28px; line-height: 36px; } .cats-grid { grid-template-columns: 1fr; } }