/* Global Reset */ * { margin: 0; padding: 0; box-sizing: border-box; } body, html { height: 100%; font-family: 'Roboto', sans-serif; background: #fff; color: white; overflow: hidden; } /* Background Image */ #background { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url('https://source.unsplash.com/random'); /* Will change in JS */ background-size: cover; background-position: center; filter: blur(8px); z-index: -1; } /* Content Centering */ #content { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%; z-index: 1; padding: 20px; } /* Time Styling */ #clock { margin-bottom: 30px; } #time { font-size: 60px; font-weight: bold; } #date { font-size: 24px; font-weight: lighter; margin-top: 10px; } /* Search Bar */ #search-bar { margin-bottom: 30px; } #search-input { padding: 15px; font-size: 18px; border: none; border-radius: 25px; outline: none; width: 300px; max-width: 100%; background-color: rgba(200, 200, 200, 1); } #search-input:focus { background-color: rgba(225, 225, 225, 1); } /* Shortcuts */ #shortcuts { display: flex; gap: 20px; margin-bottom: 40px; } .shortcut { display: flex; flex-direction: column; align-items: center; justify-content: center; } .shortcut img { width: 32px; height: 32px; margin-bottom: 8px; } .shortcut a { color: white; text-decoration: none; font-size: 14px; } .shortcut a:hover { text-decoration: underline; } /* Settings Panel */ #settings { position: absolute; top: 20px; right: 20px; z-index: 10; } #settings-btn { background-color: #3498db; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #settings-panel { display: none; background-color: rgba(0, 0, 0, 0.8); position: absolute; top: 50px; right: 0; padding: 20px; border-radius: 8px; width: 250px; color: white; } .setting { margin-bottom: 15px; } input[type="color"], input[type="range"] { width: 100%; } #close-settings { width: 100%; background-color: #e74c3c; border: none; padding: 10px; border-radius: 5px; cursor: pointer; } /* Show settings panel */ #settings-btn:focus + #settings-panel { display: block; }