body { font-family: 'Poppins', sans-serif; background: linear-gradient(to right, #1e3c72, #2a5298); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; margin: 0; } .search-container { width: 400px; background: #ffffff; border-radius: 12px; padding: 20px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); } .search-container h3 { color: #1e3c72; margin-bottom: 15px; } .dropdown-toggle { background: linear-gradient(to right, #4facfe, #00f2fe); border: none; border-radius: 8px; color: #fff; font-weight: bold; padding: 10px 20px; margin-left: 10px; transition: all 0.3s ease-in-out; } .dropdown-toggle:hover { background: linear-gradient(to right, #00f2fe, #4facfe); box-shadow: 0 6px 15px rgba(0, 242, 254, 0.4); } .dropdown-menu { background: #ffffff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); overflow-y: auto; max-height: 150px; } .dropdown-menu a { color: #333; font-weight: bold; padding: 10px 20px; transition: background 0.3s ease; } .dropdown-menu a:hover { background: #4facfe; color: #ffffff; } #search { width: 100%; padding: 12px; border: none; border-radius: 8px; outline: none; font-size: 16px; background: #f4f4f4; color: #333; margin-bottom: 15px; transition: all 0.3s ease-in-out; } #search:focus { border: 2px solid #4facfe; background: #ffffff; box-shadow: 0 6px 15px rgba(79, 172, 254, 0.4); } .suggestions-list { list-style: none; padding: 0; margin: 0; } .suggestions-list li { padding: 10px; cursor: pointer; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid #eee; } .suggestions-list li:hover { background: #4facfe; color: white; } #suggestions { background: #ffffff; border-radius: 8px; overflow-y: auto; max-height: 150px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); color: #333; position: absolute; z-index: 1000; width: 360px; margin-top: 5px; } #myButton { margin-top: 15px; padding: 12px 24px; background: linear-gradient(to right, #4facfe, #00f2fe); color: white; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; transition: all 0.3s ease-in-out; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); } #myButton:hover { background: linear-gradient(to right, #00f2fe, #4facfe); box-shadow: 0 6px 15px rgba(0, 242, 254, 0.4); transform: scale(1.05); } #myButton:active { transform: scale(0.98); } @media (max-width: 480px) { #search, #suggestions { width: 90%; } }