:root { --button-open: #06d6a0; --button-open-hover: #04b087; --button-close: #ef476f; --button-close-hover: #b40e32; } * { margin: 0; padding: 0; box-sizing: border-box; } /* html, body { height: 100%; }*/ body { font-family: Arial, sans-serif; background-color: #073b4c; display: flex; /*flex-direction: column;*/ /*max-width: 1200px; min-width: 300px;*/ } h1 { text-align: center; padding: 20px 0; color: #ffd166; } .content { flex: 1; /*padding: 10px;*/ } .table-container { display: flex; flex-wrap: wrap; gap: 40px; width: 100%; /* Flexible width relative to the viewport */ max-width: 1200px; /* Limit the maximum width */ min-width: 300px; /* Ensure it's not too small */ margin: 0 auto; /* Center the container */ padding: 30px; /* Add inner spacing */ } .snooker-table { background-color: #118ab2; border-radius: 10px; box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3); width: 350px; padding: 20px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; font-weight: bold; letter-spacing: 1px; display: none; } .snooker-table h3 { font-size: 1.5rem; font-weight: bold; margin-bottom: 15px; color: #ffd166; text-align: center; } .input-group { /*display: flex; flex-direction: column;*/ margin-bottom: 10px; } .input-group label { font-size: 0.9rem; margin-bottom: 5px; color: white; } .input-group input { margin-top: 15px; padding: 10px; font-size: 1rem; border: none; border-radius: 5px; background-color: #e0e0e0; } .labels { display: flex; justify-content: space-between; margin: 8px 0; color: white; } .labels label { font-size: 1.2rem; } .labels span { font-size: 1.2rem; font-weight: bold; } .labels-timer { font-size: 2rem; font-weight: bold; background-color: #06d6a0; padding: 10px 0; border-radius: 10px; margin-bottom: 15px; color: white; } .labels-rate { margin: 8px 0; color: yellow; } .button-group { display: flex; justify-content: space-around; margin-top: 5px; } button { padding: 10px 20px; font-size: 1rem; font-weight: bold; color: #ffffff; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; margin: 5px; } button:disabled { /*background-color: #d44061;*/ /*#7f8c8d;*/ cursor: not-allowed; } .open-button, .pause-button, .cafe-button { background-color: #06d6a0; color: white; } .open-button:hover, .pause-button:hover, .cafe-button:hover { background-color: #04b087; } .close-button, .lp-button, .reset-button { background-color: #ef476f; color: white; } .close-button:hover, .lp-button:hover, .reset-button:hover{ background-color: #b40e32; } .reset-button { margin-bottom: 15px; } .cafe-button, .lp-button { padding: 10px; border-radius: 5px; margin-left: 20px; } .lp-button { margin-right: 20px; margin-bottom: 10px; } #serialConnect{ margin-top: 30px; } .footer { position: fixed; left: 0; bottom: 0; width: 100%; background-color: #022532; color: white; text-align: center; padding: 8px 0; } #ott-1, #ott-2, #ott-3, #ott-4, #ott-5 { font-size: 16px; font-weight: 600; letter-spacing: 0.5px; color: #ffd166; } /* Auto Search START*/ .autocomplete-wrapper { position: relative; width: 100%; } .autocomplete-items { position: absolute; top: 100%; /* Position just below the input */ left: 0; right: 0; max-height: 200px; overflow-y: auto; z-index: 99; border-radius: 8px; margin-bottom: 10px; /* Ensure it's not transparent */ } .autocomplete-items div { padding: 10px; cursor: pointer; background-color: #66ddbd; } /* Auto Search END*/ .animated-button { color: #ffd166; font-size: 24px; background-color: transparent; border: none; cursor: pointer; transition: transform 0.8s ease; } .animated-button:hover { color: #b40e32; } .animated-button:active { transform: scale(2); } .animated-button i { font-size: 24px; animation: none; } .animated-button:active i { animation: bounce 0.5s ease-in-out; } @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } /***********/ /* Media Queries for Different Screen Sizes */ @media (max-width: 1200px) { .table-container { width: 95%; /* Slightly larger width on smaller screens */ } } @media (max-width: 768px) { .table-container { width: 100%; /* Full width on tablets */ padding: 12px; /* Adjust padding */ } } @media (max-width: 480px) { /*.table-container { width: 100%; padding: 8px; border-radius: 4px; }*/ .content, .footer, #serialConnect, #clearCache{ visibility: hidden; } } .menu-btn { position: fixed; left: 10px; top: 10px; background-color: transparent;/*#007bff;*/ color: white; border: none; padding: 10px; cursor: pointer; z-index: 1000; font-size: 21px; }