body { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; height: 100vh; /* Full viewport height */ margin: 0; /* Remove default margin */ font-family: Arial, sans-serif; } #mainContent { flex: 1; width: 100%; max-width: 900px; padding: 20px; margin: auto; /* Center the content horizontally */ box-sizing: border-box; } #historyContainer { max-height: 300px; /* Adjust the height as needed */ overflow-y: auto; width: 100%; max-width: 800px; margin: 20px auto; /* Center the history container horizontally */ padding: 10px; box-sizing: border-box; } table { width: 100%; border-collapse: collapse; } th, td { border: 1px solid black; text-align: center; padding: 8px; font-size: 14px; } th { background-color: #f4f4f4; } button { padding: 10px 20px; background-color: #007BFF; color: white; border: none; cursor: pointer; transition: background-color 0.3s ease; font-size: 14px; margin-right: 10px; } button:hover { background-color: #0056b3; } button:disabled { background-color: #cccccc; cursor: default; } .buy { background-color: #d4edda; } .sell { background-color: #f8d7da; } .gap-5 { background-color: yellow; } .negative-gap-5 { background-color: orange; } .error-message { color: red; margin-top: 10px; } #loading { display: none; margin-top: 10px; } @media (max-width: 600px) { table { font-size: 12px; } button { padding: 8px 16px; } th, td { padding: 6px; } #buttonsContainer { flex-direction: column; align-items: flex-start; } #sumContainer { margin-top: 10px; } } .tp-input { width: 100px; padding: 5px; } .sl-output { width: 100px; background-color: #e9ecef; border: none; padding: 5px; } .sl-output[readonly] { background-color: #f8f9fa; } .center { text-align: center; } #buttonsContainer { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; margin: 20px 0; text-align: center; } button { margin: 10px; } #sumContainer { margin-left: 20px; font-size: 16px; } #sumContainer span { font-weight: bold; } .scoreDropdown { padding: 8px 30px 8px 8px; border: 1px solid #ccc; border-radius: 4px; background-color: #fff; appearance: none; background-image: url('data:image/svg+xml;utf8,'); background-repeat: no-repeat; background-position: right 8px center; background-size: 16px; cursor: pointer; } .scoreDropdown:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); } .hidden { display: none; } /* Align the timestamp cells to the left */ .timestamp-cell { text-align: left; } /* Optionally, you can add padding or other styles to the timestamp cells */ .timestamp-cell { padding-left: 10px; } #historySection { display: flex; justify-content: center; gap: 10px; /* Add space between buttons */ margin-top: 20px; } #historySection button { padding: 10px 20px; background-color: #007BFF; color: white; border: none; cursor: pointer; font-size: 14px; transition: background-color 0.3s ease; } #historySection button:hover { background-color: #0056b3; }