:root { --primary-color: #3a0570; --primary-light: #6a35a0; --primary-dark: #333333; --accent-color: #b344c7; --text-light: #f0f0f0; --text-dark: #121212; --bg-dark: #121212; --bg-card: #1e1e1e; --bg-card-hover: #2a2a2a; --border-color: #333333; --danger-color: #f44336; --success-color: #4caf50; --info-color: #a621f3; --warning-color: #ff9800; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: monospace; background-color: var(--bg-dark); color: var(--text-light); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; } .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; } header { background-color: var(--primary-dark); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); padding: 1rem 0; } header .container { display: flex; justify-content: space-between; align-items: center; } header h1 { font-size: 1.8rem; display: flex; align-items: center; gap: 0.5rem; color: var(--text-light); } header i { color: var(--primary-light); } nav ul { display: flex; list-style: none; gap: 1.5rem; } nav a { color: var(--text-light); text-decoration: none; font-weight: 600; transition: all 0.2s; padding: 0.5rem 1rem; border-radius: 20px; } nav a:hover { background-color: var(--primary-light); } main { flex: 1; padding: 2rem 0; } h1, h2, h3 { margin-bottom: 1rem; } footer { background-color: var(--primary-dark); padding: 1.5rem 0; text-align: center; margin-top: 2rem; color: var(--text-light); opacity: 0.8; } footer a { color: var(--accent-color); text-decoration: none; } footer .heart { color: var(--danger-color); display: inline-block; animation: heartbeat 1.5s infinite; } /* Flashes */ .flashes { position: fixed; top: 1rem; right: 1rem; max-width: 300px; z-index: 1000; } .flash { padding: 0.8rem; margin-bottom: 0.5rem; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); cursor: pointer; transition: opacity 0.3s; animation: flash-in 0.3s ease-out; } .flash-success { background-color: var(--success-color); color: white; } .flash-error { background-color: var(--danger-color); color: white; } .flash-info { background-color: var(--info-color); color: white; } .flash-warning { background-color: var(--warning-color); color: var(--text-dark); } /* Page header */ .page-header { margin-bottom: 2rem; margin-top: 2rem; text-align: center; } .page-header h1 { font-size: 2.2rem; margin-bottom: 0.2rem; } .subtitle { color: var(--text-light); opacity: 0.7; font-size: 1.1rem; } /* Buttons */ .btn { display: inline-block; padding: 0.6rem 1.2rem; border: none; border-radius: 20px; cursor: pointer; font-weight: 600; transition: all 0.2s; font-size: 0.9rem; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; justify-content: center; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); } .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); } .btn:active { transform: translateY(0); } .btn-primary { background-color: var(--primary-color); color: white; } .btn-primary:hover { background-color: var(--primary-light); } .btn-secondary { background-color: var(--border-color); color: white; } .btn-secondary:hover { background-color: #444; } .btn-danger { background-color: var(--danger-color); color: white; } .btn-danger:hover { background-color: #d32f2f; } /* Game cards */ .game-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; } .game-card { background-color: var(--bg-card); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); transition: all 0.3s; position: relative; } .game-card:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); background-color: var(--bg-card-hover); } /* Horizontal card layout */ .game-card.horizontal { display: flex; align-items: stretch; } .game-cover-side { width: 120px; min-width: 120px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 1rem; } .game-cover-side img { width: 100%; height: auto; object-fit: cover; display: block; border-radius: 8px; } .no-cover-medium { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: rgba(255, 255, 255, 0.5); } .game-info { padding: 1.2rem; flex: 1; } .game-info h2 { font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--text-light); } .game-meta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1rem; font-size: 0.9rem; opacity: 0.8; } .game-meta span { display: flex; align-items: center; gap: 0.3rem; } .game-meta i { font-size: 0.8rem; color: var(--accent-color); } .progress-container { margin: 1rem 0; } .progress-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; } .progress-value { font-weight: bold; font-size: 0.9rem; } .progress-bar { height: 8px; background-color: var(--border-color); border-radius: 4px; overflow: hidden; } .progress-fill { height: 100%; background: linear-gradient(to right, var(--primary-color), var(--accent-color)); border-radius: 4px; transition: width 0.3s ease; } .status-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: bold; } .status-playing { background-color: var(--info-color); color: white; } .status-completed { background-color: var(--success-color); color: white; } .status-on-hold { background-color: var(--warning-color); color: var(--text-dark); } .game-details { margin-top: 1rem; } .game-details summary { cursor: pointer; color: var(--accent-color); font-weight: 600; padding: 0.5rem 0; } .game-details summary:hover { text-decoration: underline; } .update-form { padding: 1rem 0; } .form-group { margin-bottom: 1rem; } .form-group label { display: block; margin-bottom: 0.3rem; font-weight: 600; font-size: 0.9rem; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.6rem; border: 1px solid var(--border-color); border-radius: 4px; background-color: rgba(255, 255, 255, 0.1); color: var(--text-light); } .form-group textarea { resize: vertical; min-height: 60px; } .form-actions { display: flex; justify-content: space-between; margin-top: 1rem; } /* Range slider styling */ .progress-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; background: var(--border-color); border-radius: 4px; outline: none; } .progress-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-color); cursor: pointer; } .progress-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent-color); cursor: pointer; border: none; } .range-value { margin-left: 0.5rem; font-weight: 600; color: var(--accent-color); } /* Empty state */ .empty-state { text-align: center; padding: 3rem 1rem; } .empty-icon { font-size: 4rem; color: var(--accent-color); margin-bottom: 1rem; opacity: 0.7; } .empty-state h2 { font-size: 1.8rem; margin-bottom: 0.5rem; } .empty-state p { margin-bottom: 1.5rem; opacity: 0.8; } .add-more { text-align: center; margin: 2rem 0; } /* Search page styles */ .search-container { margin-bottom: 2rem; } .search-form { max-width: 600px; margin: 0 auto; } .search-input { display: flex; gap: 0.5rem; } .search-input input { flex: 1; padding: 0.8rem 1rem; border: 2px solid var(--border-color); border-radius: 25px; background-color: rgba(255, 255, 255, 0.1); color: var(--text-light); font-size: 1rem; } .search-input input:focus { border-color: var(--primary-color); outline: none; } .results-info { margin-bottom: 1.5rem; text-align: center; } .search-results { display: flex; flex-direction: column; gap: 1.5rem; } .search-result-card { background-color: var(--bg-card); border-radius: 8px; overflow: hidden; display: flex; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); transition: all 0.3s; } .search-result-card:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); background-color: var(--bg-card-hover); } .search-result-card .game-cover { width: 120px; min-width: 120px; height: auto; } .search-result-card .game-info { flex: 1; padding: 1rem; } .search-result-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; } .game-description { margin: 0.8rem 0; font-size: 0.95rem; line-height: 1.5; opacity: 0.85; } .search-actions { display: flex; justify-content: flex-end; margin-top: 1rem; } .empty-search { text-align: center; padding: 3rem 1rem; } .empty-search .empty-icon { color: var(--border-color); } /* Modal */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 1000; align-items: center; justify-content: center; } .modal.active { display: flex; } .modal-content { background-color: var(--bg-card); padding: 1.5rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); width: 90%; max-width: 500px; } .modal h3 { color: var(--danger-color); margin-bottom: 1rem; } .modal p { margin-bottom: 1.5rem; } .modal-actions { display: flex; justify-content: flex-end; gap: 1rem; } /* Animations */ @keyframes heartbeat { 0% { transform: scale(1); } 10% { transform: scale(1.2); } 20% { transform: scale(1); } 30% { transform: scale(1.2); } 40% { transform: scale(1); } } @keyframes flash-in { from { transform: translateX(50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* Admin Styles */ .admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; } .admin-title h1 { margin-bottom: 0.2rem; } .admin-actions { display: flex; gap: 0.5rem; } .admin-games h2 { margin-bottom: 1rem; color: var(--accent-color); } .admin-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; background-color: var(--bg-card); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); } .admin-table th, .admin-table td { padding: 1rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border-color); } .admin-table th { background-color: var(--primary-dark); font-weight: 600; color: var(--text-light); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; } .admin-table tbody tr:hover { background-color: rgba(255, 255, 255, 0.05); } .admin-table tbody tr:last-child td { border-bottom: none; } .game-cover-cell { width: 80px; } .game-cover-cell img { width: 60px; height: 80px; object-fit: cover; border-radius: 4px; } .no-cover-small { width: 60px; height: 80px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: linear-gradient(45deg, var(--primary-dark), var(--primary-light)); color: rgba(255, 255, 255, 0.5); border-radius: 4px; } .game-details-row { display: flex; gap: 1rem; margin-top: 0.3rem; font-size: 0.8rem; opacity: 0.7; } .progress-bar-small { height: 20px; background-color: var(--border-color); border-radius: 10px; overflow: hidden; position: relative; width: 100%; max-width: 120px; } .progress-text { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; color: white; text-shadow: 0 0 2px rgba(0, 0, 0, 0.5); } .action-buttons { display: flex; gap: 0.5rem; } .btn-small { padding: 0.3rem 0.6rem; font-size: 0.8rem; } .edit-row { background-color: rgba(0, 0, 0, 0.2); } .admin-edit-form { padding: 1rem; } .form-group-row { display: flex; gap: 1rem; margin-bottom: 1rem; } .progress-input { display: flex; align-items: center; gap: 0.5rem; } .btn-wide { width: 100%; margin-top: 1rem; } /* Login styles */ .login-container { max-width: 400px; margin: 0 auto; background-color: var(--bg-card); border-radius: 8px; padding: 2rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); } .login-form { margin-bottom: 1.5rem; } .login-footer { text-align: center; padding-top: 1rem; border-top: 1px solid var(--border-color); } .back-link { color: var(--text-light); text-decoration: none; opacity: 0.7; transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.3rem; } .back-link:hover { opacity: 1; color: var(--accent-color); } /* Responsive Adjustments */ @media (max-width: 768px) { header .container { flex-direction: column; gap: 1rem; } .search-result-card { flex-direction: column; } .search-result-card .game-cover { width: 100%; height: 180px; } .form-actions { flex-direction: column; gap: 0.5rem; } .admin-header { flex-direction: column; align-items: flex-start; } .form-group-row { flex-direction: column; } .admin-table { display: block; overflow-x: auto; } }