diff --git a/index.css b/index.css index 0255f8d..3d65326 100644 --- a/index.css +++ b/index.css @@ -4,21 +4,22 @@ found in the LICENSE file. */ -/* Resetting default styles for HTML and body */ +/* General reset for HTML and body */ html, body { - padding: 0; margin: 0; + padding: 0; width: 100%; height: 100%; font-family: 'Roboto', sans-serif; background-color: #f4f4f4; color: #333; + overflow-x: hidden; /* Prevent horizontal scrolling */ } -/* Styling for reusable icon class */ +/* Reusable icon class */ .icon { - user-select: none; display: inline-block; + user-select: none; } /* Utility class to hide elements */ @@ -32,36 +33,39 @@ html, body { font-size: 1.2em; line-height: 1.5; margin: 0 auto; - max-width: 800px; padding-top: 100px; width: 90%; + max-width: 800px; + text-align: center; } -.offline .runner-container, -.offline .runner-canvas { +.offline .runner-container { + position: relative; height: 120px; + width: 100%; max-width: 800px; + margin: 30px auto 0; overflow: hidden; - position: absolute; - top: 30px; - width: 40px; } .offline .runner-canvas { opacity: 0.9; - overflow: hidden; + height: 100%; + width: 40px; position: absolute; top: 0; + left: 50%; + transform: translateX(-50%); /* Centering the canvas */ z-index: 2; } .offline .controller { - background: rgba(247, 247, 247, 0.2); - height: 100vh; - left: 0; position: absolute; top: 0; + left: 0; width: 100vw; + height: 100vh; + background: rgba(247, 247, 247, 0.2); z-index: 1; } @@ -70,28 +74,47 @@ html, body { display: block; } -/* Responsive styles for small screens */ +/* Snackbar styling for mobile view */ +.snackbar { + position: fixed; + left: 0; + bottom: 10px; + width: 100%; + border-radius: 5px; + background-color: #333; + color: #fff; + padding: 10px; + text-align: center; +} + +/* Responsive styles for mobile screens */ @media (max-width: 480px) { .suggested-left > #control-buttons, .suggested-right > #control-buttons { float: left; } + + .offline .interstitial-wrapper { + padding-top: 50px; + font-size: 1.1em; + } - /* Snackbar styling for mobile view */ - .snackbar { - position: fixed; - left: 0; - bottom: 10px; - width: 100%; - border-radius: 5px; + /* Reducing height for mobile */ + .offline .runner-container { + height: 100px; } } -/* Additional styles for larger screens */ +/* Responsive styles for larger screens */ @media (min-width: 768px) { body { background-color: #fff; } + /* Make interstitial-wrapper text larger for larger screens */ + .offline .interstitial-wrapper { + font-size: 1.4em; + } + /* Add more styles for larger screens as needed */ }