/* Define the IBM Plex Mono font */ @font-face { font-family: 'IBM Plex Mono'; src: url('./fonts/IBMPlexMono-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; } body { background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; } /* Base styles for widget containers */ .container { position: absolute; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; z-index: 0; container-type: size; overflow: hidden; padding: 10px; border-radius: 5px; } .aero { background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); } /* Styles for the close button */ .close-button { position: absolute; top: 5px; right: 5px; width: 16px; height: 16px; padding: 0; border: none; border-radius: 50%; background: #ccc; color: #fff; font-size: 12px; line-height: 16px; text-align: center; cursor: pointer; } /* Styles for the settings button */ .settings-button { position: absolute; top: 5px; right: 25px; width: 16px; height: 16px; padding: 0; border: none; border-radius: 50%; background: #ccc; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; } .settings-button:hover { background: #666; } .settings-button:active { background: #333; } .accept-button { margin-top: 10px; padding: 5px 10px; background: #007bff; color: #fff; border: none; border-radius: 4px; cursor: pointer; } .accept-button:hover { background: #0056b3; } .widget-modal-content .seconds-toggle, .widget-modal-content .hours-toggle { text-align: left; color: #333; } .widget-modal-content input[type="checkbox"] { margin-right: 5px; vertical-align: middle; } /* Settings toggle (cogwheel for main settings) */ .settings-toggle { background: rgba(255, 255, 255, 0.2); cursor: pointer; display: flex; align-items: center; justify-content: center; left:0; top:0; width:100%; height:100%; } .settings-toggle:hover { background: rgba(255, 255, 255, 0.4); } /* Main settings modal */ .settings-modal { position: absolute; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal-content { background: rgba(255, 255, 255, 0.9); padding: 20px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); min-width: 400px; max-width: 60vw; text-align: center; } .modal-content h2 { margin-top: 0; color: #333; } .modal-content label { display: block; margin: 15px 0; color: #333; } .modal-content .slider { display: block; margin: 10px auto; } .widget-buttons { margin: 15px 0; } .widget-buttons button { margin: 5px; padding: 5px 10px; background: #007bff; color: #fff; border: none; border-radius: 4px; cursor: pointer; } .widget-buttons button:hover { background: #0056b3; } .close-modal { padding: 5px 10px; background: #ccc; border: none; border-radius: 4px; cursor: pointer; } .close-modal:hover { background: #999; } /* Grid overlay */ .grid-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 500; } .grid-line { position: absolute; background: rgba(255, 255, 255, 0.3); } .grid-line.vertical { width: 1px; height: 100%; } .grid-line.horizontal { width: 100%; height: 1px; }