Spaces:
Running
Running
| body { | |
| font-family: Arial, sans-serif; | |
| margin: 0; | |
| padding: 0; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| min-height: 100vh; /* Use min-height for better centering */ | |
| } | |
| .logo-container { | |
| margin-top: 100px; /* Adjust as needed */ | |
| margin-bottom: 20px; /* Space between logo and search bar */ | |
| text-align: center; | |
| } | |
| .logo-container img { | |
| width: auto; /* Maintain aspect ratio */ | |
| height: 92px; /* Google logo height */ | |
| } | |
| .search-container { | |
| /* margin-top: 100px; */ /* Removed, logo container handles top margin */ | |
| position: relative; | |
| } | |
| #search-input { | |
| width: 580px; /* Increased width slightly */ | |
| padding: 13px 20px; /* Adjusted padding */ | |
| font-size: 16px; | |
| border: 1px solid #dfe1e5; /* Softer border color */ | |
| border-radius: 24px; | |
| outline: none; | |
| box-shadow: 0 1px 6px rgb(32 33 36 / 28%); /* Add a subtle shadow */ | |
| transition: box-shadow 0.3s ease-in-out; /* Smooth transition */ | |
| } | |
| #search-input:focus { | |
| border-color: #adadad; /* Slightly darker border on focus */ | |
| box-shadow: 0 1px 6px rgb(32 33 36 / 28%); /* Keep shadow on focus */ | |
| } | |
| #suggestions { | |
| position: absolute; | |
| top: 100%; | |
| left: 0; | |
| width: calc(580px + 40px); /* Match input width + padding */ | |
| background-color: #fff; | |
| border: 1px solid #dfe1e5; | |
| border-top: none; | |
| border-radius: 0 0 8px 8px; | |
| box-shadow: 0 4px 6px rgb(32 33 36 / 10%); /* Softer shadow */ | |
| display: none; | |
| z-index: 1; | |
| } | |
| #suggestions div { | |
| padding: 10px 16px; /* Adjusted padding */ | |
| cursor: pointer; | |
| font-size: 14px; | |
| } | |
| #suggestions div:hover { | |
| background-color: #f0f0f0; | |
| } | |
| #results-container { | |
| margin-top: 40px; /* Increased margin for results */ | |
| width: 600px; /* Adjusted width */ | |
| } | |
| #results-container div { | |
| margin-bottom: 15px; /* Space between results */ | |
| padding: 10px 0; | |
| border-bottom: 1px solid #eee; /* Separator line */ | |
| font-size: 14px; | |
| } | |