body { display: flex; flex-direction: column; align-items: center; margin: 0; height: 100vh; padding: 20px; color: blue; background: linear-gradient(270deg, #000000, #05052f); background-size: 400% 400%; animation: animateBackground 10s ease infinite; font-family: Arial, sans-serif; overflow-x: hidden; } @keyframes animateBackground { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } /* Search bar styling */ .search-container { display: flex; gap: 10px; color: blue; width: 100%; max-width: 500px; margin: 20px auto; } .search-input { flex: 1; padding: 10px; font-size: 16px; color: blue; background-color: black; border-radius: 30px; height: 40px; box-shadow: 0 8px 20px rgba(254,254,253,0.994); border: 3px solid #5d49fa; } .search-button { padding: 10px 20px; font-size: 16px; background-color: #08060f; color: #6b6666; border: none; box-shadow: 0 8px 20px rgba(254,254,253,0.994); border: 1px solid #5d49fa; border-radius: 30px; cursor: pointer; } .search-button:hover { padding: 10px 20px; font-size: 16px; background-color: #482ea3; color: #6b6666; border: none; box-shadow: 0 8px 20px rgba(254,254,253,0.994); border: 1px solid #5d49fa; border-radius: 30px; cursor: pointer; } /* Responsive card styling */ #results { width: 100%; max-width: 600px; margin-top: 20px; color: blue; } .result-card { padding: 15px; border: 1px solid #ccc; border-radius: 20px; background-color: #100e0eb5; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); margin-bottom: 15px; display: flex; flex-direction: column; gap: 10px; } .result-card a { color: #0078d4; text-decoration: none; font-weight: bold; font-size: 18px; } .result-card p { margin: 0; color: #f2f0f0; } /* Loading animation for each card */ .loading-card { width: 100%; padding: 15px; border-radius: 5px; background-color: #eaeaea; margin-bottom: 15px; display: flex; flex-direction: column; gap: 10px; animation: loadingAnimation 1s infinite linear; } .loading-line { height: 10px; background-color: #959393; border-radius: 5px; } .loading-line.short { width: 50%; } .loading-line.medium { width: 70%; } .loading-line.long { width: 100%; } @keyframes loadingAnimation { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } } .list-container { position: relative; display: flex; width: 100%; justify-content: center; align-items: center; background-color: #16131388; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 15px rgba(254,254,253,0.994); border: 2px solid #5d49fa; } .list { list-style-type: none; padding: 0; margin: 0; display: flex; } .list-item { padding: 15px 20px; cursor: pointer; transition: color 0.3s ease, background-color 0.3s ease; z-index: 1; position: relative; } .list-item.active { color: white; background-color: #5e03ee; /* Lighter blue for active item */ } .highlight { position: absolute; top: 0; left: 0; height: 100%; background-color: #3490dc; transition: 0.3s ease; opacity: 0; pointer-events: none; }