input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } input[type=number] { -moz-appearance: textfield; appearance: textfield; } body { font-family: 'Arial', 'Open Sans', sans-serif; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; } .scoreboard-container { background: linear-gradient(to bottom, #3b1680ef, #141414e8); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 0.5rem; padding: 2rem; max-width: 1400px !important; margin-left: auto; margin-right: auto; width: fit-content; overflow: hidden; display: flex; flex-direction: column; justify-content: center; } .container { background: linear-gradient(to bottom, #3b1680ef, #141414e8); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 0.5rem; padding: 2rem; max-width: 768px !important; margin-left: auto; margin-right: auto; width: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: center; } .logo, .close { position: absolute; top: 1rem; width: 65px; height: 65px; background-size: cover; } .logo, .back { position: absolute; top: 1rem; width: 65px; height: 65px; background-size: cover; } .logo { left: 2rem; background-image: url('assets/logo.png'), url('assets/logo.jpg'), url('assets/logo.jpeg'), url('assets/logo.gif'), url('assets/logo.ico'), url('assets/logo.webp'); background-size: cover; background-position: center; } .close { right: 1rem; font-size: 40px; font-weight: bold; cursor: pointer; color: #141414e8; } .back { right: 1rem; font-size: 40px; font-weight: bold; cursor: pointer; color: #141414e8; } .grid div { position: relative; background-size: cover !important; background-repeat: no-repeat; background-position: center; cursor: pointer; flex-direction: column; text-align: center; padding: 10px; display: flex; justify-content: center; align-items: center; transition: outline 0.3s ease-in-out; outline: 2px solid transparent; outline-offset: -2px; border-radius: 5px; } .grid div img { width: 90%; height: auto; max-width: 100%; max-height: 80px; object-fit: contain; display: block; } .grid div::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(58, 58, 58, 0.65); z-index: 1; transition: opacity 0.3s ease; opacity: 1; border-radius: 5px; } .grid div:hover::after { opacity: 0; } .grid div.selected::after { opacity: 0; } .grid div.selected { outline: 2px solid #8a8a8a7c; outline-offset: -2px; border-radius: 5px; } .grid div span { position: relative; z-index: 2; transition: opacity 0.3s ease; opacity: 1; display: block; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .grid div:hover span { opacity: 0; } .grid div.selected span { opacity: 0; } .buttons { display: flex; justify-content: space-between; margin-top: 10px; } .menu-button { flex: 1; padding: 10px 20px; background-color: rgba(75, 75, 75, 0.8); color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; font-weight: 600; transition: background-color 0.3s; } .menu-button:hover { background-color: rgba(59, 59, 59, 0.63); } .bus-price { font-size: 0.8rem; color: lightgrey; position: absolute; top: 35% !important; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; } .bus-name { font-size: 1.2rem; color: white; margin-top: 5px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: block; white-space: nowrap; } .fa-lock { font-size: 0.8rem; color: #ccccccc5; position: absolute; bottom: 10% !important; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; z-index: 100; } .grid div:hover .fa-lock, .grid div.selected .fa-lock { opacity: 0; } .business-info { background-color: #2a2a2aed; color: white; padding: 15px; border-radius: 5px; cursor: default; pointer-events: none; position: relative; z-index: 10; } .business-info h2, .business-info p { z-index: 20; position: relative; } .business-info h2 { font-size: 18px; color: #ddd; margin-bottom: 5px; font-weight: bold; } .business-info p { font-size: 16px; } .transfer-section { display: flex; justify-content: space-between; align-items: center; background-color: #2a2a2aed; padding: 10px; border-radius: 5px; } .transfer-switch { display: flex; align-items: center; } .transfer-switch i { font-size: 24px; color: white; } .switch { margin: 0 10px; width: 40px; height: 20px; position: relative; appearance: none; -webkit-appearance: none; background: #ccc; outline: none; border-radius: 20px; transition: 0.3s; cursor: pointer; } .switch:checked { background: #5300f5; } .switch:before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; top: 1px; left: 1px; background: white; transition: 0.3s; } .switch:checked:before { transform: translateX(20px); } .input.transfer-input { flex: 1; margin: 0 10px; padding: 5px; border: 3px solid #2e165aef; border-radius: 5px; background-color: #3b1680ef; color: #fff; text-align: center; outline: none; } .button.transfer-button { padding: 5px 10px; background-color: #5300f5; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; font-weight: 600; transition: background-color 0.3s; margin: 0 5px; flex: none; } .button.transfer-button:hover { background-color: #4906cfd7; } .button#decrease-amount, .button#increase-amount { width: auto; } .change-name-section { display: flex; justify-content: space-between; align-items: center; background-color: #2a2a2aed; padding: 10px; border-radius: 5px; } .popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #2a2a2afa; padding: 20px; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); z-index: 1000; display: flex; flex-direction: column; align-items: center; color: white; } .popup-content { text-align: center; width: 100%; } .popup-buttons { display: flex; justify-content: space-between; width: 100%; margin-top: 20px; } .popup-buttons .buy-switch { display: flex; align-items: center; flex: 1; justify-content: center; } .popup-buttons button { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; font-weight: 600; flex: 1; margin: 0 5px; } #confirm-purchase { background-color: #5300f5; color: white; } #cancel-purchase { background-color: #5300f5; color: white; } .hidden { display: none; } #purchase-title { font-size: 1.5rem; font-weight: bold; margin-bottom: 20px; } #purchase-popup { opacity: 0; transition: opacity 0.2s ease-in-out; display: none; } #purchase-popup.show { display: block; opacity: 1; } #confirm-business-purchase { background-color: #5300f5; color: white; } #cancel-business-purchase { background-color: #5300f5; color: white; } #buy-business-popup { opacity: 0; transition: opacity 0.2s ease-in-out; display: none; background-color: #2a2a2aed; } #buy-business-popup.show { display: block; opacity: 1; } #buy-business-title { font-size: 1.5rem; font-weight: bold; margin-bottom: 20px; } .scroll-menu { height: 150px; overflow-y: auto; background: #3a3a3aa9; color: white; padding: 10px; border-radius: 0 0 8px 8px; font-weight: 600; scrollbar-width: none; transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out; opacity: 1; transition: opacity 0.3s ease-in-out; } .scroll-menu.fade-out { opacity: 0; } .scroll-menu.fade-in { opacity: 1; } .scroll-menu::-webkit-scrollbar { width: 0; height: 0; } .menu-item { padding: 10px; margin: 5px 0; background: #4b4b4bcc; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease-in-out, outline 0.3s ease-in-out; outline: 0 solid transparent; display: flex; justify-content: space-between; } .route-name { flex: 1; text-align: left; } .station-count { flex: 1; text-align: center; } .salary-amount { flex: 1; text-align: right; } .scoreboard-table { display: table; width: 100%; color: white; border-collapse: separate; border-spacing: 0; border-radius: 0 0 5px 5px; overflow: hidden; } .scoreboard-header { display: table; width: 100%; background-color: #4b4b4bcc; color: white; border-collapse: separate; border-spacing: 0; border-radius: 5px 5px 0 0; overflow: hidden; } .scoreboard-cell { display: table-cell; padding: 10px; text-align: center; width: 21%; border: 1px solid #b1b1b127; border-top-width: 0; border-bottom-width: 0; } .scoreboard-row { display: table-row; justify-content: center; } .scoreboard-row:nth-child(even) { background-color: #2c2c2cd2; } .scoreboard-row:nth-child(odd) { background-color: #383838d2; } .scoreboard-row.user-row:nth-child(even), .scoreboard-row.user-row:nth-child(odd) { background-color: #352650d2 !important; /* Highlight color for the user's row */ } .user-row { background-color: #352650d2 !important; /* Highlight color for the user's row */ } .header-row { display: flex; justify-content: space-between; padding: 10px; background-color: #4b4b4bcc; color: white; font-weight: bold; border-radius: 5px 5px 0 0; margin-bottom: -1px; } .header-name, .header-station, .header-salary { flex: 1; text-align: center; } .header-name { text-align: left; padding-left: 50px; } .header-salary { text-align: right; padding-right: 50px; } .menu-item:hover { background-color: #5c5c5ccc; } .menu-item.selected { background-color: #5c5c5ccc; color: #ffffff; outline: 4px solid rgba(81, 46, 151, 0.918); outline-offset: -2px; border-radius: 5px; } .no-bus-selected { background: transparent; text-align: center; color: #ffffff; cursor: default; padding: 20px; border-radius: 5px; display: flex; justify-content: center; align-items: center; height: 100%; font-size: 2em; } .no-bus-selected:hover { background-color: transparent; } .no-routes-available { background: transparent; text-align: center; color: #ffffff; cursor: default; padding: 20px; border-radius: 5px; display: flex; justify-content: center; align-items: center; height: 100%; font-size: 2em; } .no-routes-available:hover { background-color: transparent; } html, body { background: transparent !important; } #driving-ui { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background-color: rgba(0, 0, 0, 0.5); color: white; padding: 10px 20px; font-size: 24px; border-radius: 5px; z-index: 1000; } #drive-button { flex: 1; padding: 10px 20px; background-color: rgba(94, 94, 94, 0.8); color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; font-weight: 600; transition: background-color 0.3s; } #drive-button:hover { background-color: rgba(80, 80, 80, 0.63); } .fade-in { animation: fadeIn 0.25s ease-in-out forwards; } .fade-out { animation: fadeOut 0.25s ease-in-out forwards; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }