/* Overlay CSS - Designed for OBS Browser Source */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: transparent; /* Transparent for OBS */ color: #fff; overflow: hidden; font-size: 14px; } .overlay-container { padding: 20px; width: 100vw; height: 100vh; display: flex; flex-direction: column; gap: 15px; } /* Connection Status */ .connection-status { position: absolute; top: 10px; right: 10px; padding: 8px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; text-transform: uppercase; animation: pulse 2s infinite; } .connection-status.connecting { background: rgba(255, 193, 7, 0.9); color: #333; } .connection-status.connected { background: rgba(40, 167, 69, 0.9); color: white; animation: none; } .connection-status.disconnected { background: rgba(220, 53, 69, 0.9); color: white; } @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } } /* Waiting for Activity Display */ .waiting-display { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(30, 60, 114, 0.9); padding: 40px; border-radius: 12px; text-align: center; border: 2px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); width: 80%; max-width: 450px; } .waiting-display h2 { margin-bottom: 15px; font-size: 1.5em; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); } .waiting-display p { opacity: 0.8; line-height: 1.5; } /* Current Game */ .current-game { background: linear-gradient(135deg, rgba(30, 60, 114, 0.9), rgba(42, 82, 152, 0.9)); padding: 20px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); } .game-header { display: flex; align-items: center; gap: 15px; } .game-icon { width: 64px; height: 64px; border-radius: 8px; border: 2px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); } .game-info h2 { font-size: 1.8em; margin-bottom: 5px; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); } .console-name { opacity: 0.8; font-size: 1.1em; } /* Game Progress Bar */ .game-progress { margin-top: 15px; } .progress-stats { display: flex; justify-content: space-between; align-items: center; font-size: 1em; margin-bottom: 8px; opacity: 0.9; font-weight: bold; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); } .progress-bar-container { background: rgba(0, 0, 0, 0.3); border-radius: 20px; height: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4); } .progress-bar-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #1e90ff, #00bfff); border-radius: 20px; transition: width 0.5s ease-in-out; } /* Achievements Container */ .achievements-container { flex: 1; background: linear-gradient(135deg, rgba(40, 167, 69, 0.9), rgba(32, 134, 55, 0.9)); padding: 20px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); overflow: hidden; } .achievements-container h3 { font-size: 1.4em; margin-bottom: 15px; text-align: center; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); border-bottom: 2px solid rgba(255, 255, 255, 0.3); padding-bottom: 10px; } .achievements-list { display: flex; flex-direction: column; gap: 12px; max-height: 400px; /* Adjust as needed */ overflow-y: auto; padding-right: 10px; list-style-type: none; } /* Custom Scrollbar */ .achievements-list::-webkit-scrollbar { width: 6px; } .achievements-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 3px; } .achievements-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 3px; } .achievements-list::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); } /* Achievement Item */ .achievement-item { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.1); padding: 15px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(5px); transition: all 0.3s ease; animation: slideIn 0.5s ease-out; } .achievement-item:hover { transform: translateX(5px); background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.4); } @keyframes slideIn { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } } .achievement-badge { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); flex-shrink: 0; } .achievement-details { flex: 1; overflow: hidden; } .achievement-title { font-weight: bold; font-size: 1.1em; margin-bottom: 3px; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .achievement-description { opacity: 0.8; font-size: 0.9em; margin-bottom: 5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .achievement-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.8em; opacity: 0.7; } .achievement-points { background: rgba(255, 215, 0, 0.2); color: #FFD700; padding: 2px 6px; border-radius: 10px; border: 1px solid rgba(255, 215, 0, 0.3); } .achievement-date { font-style: italic; } /* Error Display */ .error-display { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(220, 53, 69, 0.95); padding: 30px; border-radius: 12px; text-align: center; border: 2px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(10px); } .error-content h3 { margin-bottom: 10px; font-size: 1.3em; } .error-content p { margin-bottom: 20px; opacity: 0.9; } .error-content button { background: rgba(255, 255, 255, 0.2); color: white; border: 1px solid rgba(255, 255, 255, 0.3); padding: 10px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s; } .error-content button:hover { background: rgba(255, 255, 255, 0.3); } /* Utility Classes */ .hidden { display: none !important; } /* Responsive Design for Different OBS Sizes */ @media (max-width: 500px) { .overlay-container { padding: 10px; } .game-header { flex-direction: column; text-align: center; } .achievement-item { flex-direction: column; text-align: center; } }