Changed around line 1
- :root {
- --primary-color: #4a90e2;
- --secondary-color: #333;
- --background-color: #f9f9f9;
- --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
- }
-
+ /* General Styles */
- font-family: var(--font-family);
+ font-family: Arial, sans-serif;
+ background-color: #f4f4f9;
- padding: 20px;
- background-color: var(--background-color);
- color: var(--secondary-color);
- line-height: 1.6;
+ padding: 0;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 100vh;
+ animation: fadeIn 1s ease-in-out;
- header {
+ .container {
+ background: white;
+ padding: 2rem;
+ border-radius: 8px;
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ width: 100%;
+ max-width: 500px;
- margin-bottom: 40px;
+ animation: slideIn 0.5s ease-in-out;
- color: var(--primary-color);
- font-size: 2.5rem;
- }
-
- p {
- font-size: 1.1rem;
+ color: #333;
+ margin-bottom: 1.5rem;
+ animation: fadeIn 1.5s ease-in-out;
- form {
- max-width: 600px;
- margin: 0 auto 40px;
+ #searchForm {
- gap: 10px;
+ justify-content: center;
+ gap: 0.5rem;
+ animation: fadeIn 2s ease-in-out;
- input[type="text"] {
- flex: 1;
- padding: 10px;
+ #brandName {
+ padding: 0.75rem;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ width: 70%;
- border: 2px solid var(--primary-color);
- border-radius: 5px;
+ transition:
+ border-color 0.3s ease,
+ box-shadow 0.3s ease;
+ }
+
+ #brandName:focus {
+ border-color: #007bff;
+ box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
- padding: 10px 20px;
- font-size: 1rem;
- background-color: var(--primary-color);
+ padding: 0.75rem 1.5rem;
+ background-color: #007bff;
- border-radius: 5px;
+ border-radius: 4px;
+ font-size: 1rem;
+ transition:
+ background-color 0.3s ease,
+ transform 0.2s ease;
- background-color: darken(var(--primary-color), 10%);
+ background-color: #0056b3;
+ transform: scale(1.05);
+ }
+
+ button:active {
+ transform: scale(0.95);
- max-width: 600px;
- margin: 0 auto;
- padding: 20px;
- background-color: white;
- border-radius: 5px;
- box-shadow: 0 2px 5px rgba(0,0,0,0.1);
+ margin-top: 1.5rem;
+ text-align: left;
+ animation: fadeIn 1s ease-in-out;
- footer {
- text-align: center;
- margin-top: 40px;
- font-size: 0.9rem;
+ .loading {
+ color: #007bff;
+ font-style: italic;
+ animation: pulse 1.5s infinite;
+ }
+
+ .error {
+ color: #dc3545;
+ animation: shake 0.5s ease-in-out;
+ }
+
+ .result-item {
+ background: #f9f9f9;
+ padding: 1rem;
+ border-radius: 4px;
+ margin-bottom: 0.5rem;
+ border: 1px solid #eee;
+ animation: slideUp 0.5s ease-in-out;
+ }
+
+ .result-item a {
+ color: #007bff;
+ text-decoration: none;
+ transition: color 0.3s ease;
+ }
+
+ .result-item a:hover {
+ color: #0056b3;
+ text-decoration: underline;
- @media (max-width: 600px) {
- form {
- flex-direction: column;
+ /* Animations */
+ @keyframes fadeIn {
+ from {
+ opacity: 0;
+ to {
+ opacity: 1;
+ }
+ }
+
+ @keyframes slideIn {
+ from {
+ transform: translateY(-20px);
+ opacity: 0;
+ }
+ to {
+ transform: translateY(0);
+ opacity: 1;
+ }
+ }
+
+ @keyframes slideUp {
+ from {
+ transform: translateY(20px);
+ opacity: 0;
+ }
+ to {
+ transform: translateY(0);
+ opacity: 1;
+ }
+ }
- button {
- width: 100%;
+ @keyframes pulse {
+ 0% {
+ opacity: 0.6;
- }
+ 50% {
+ opacity: 1;
+ }
+ 100% {
+ opacity: 0.6;
+ }
+ }
+
+ @keyframes shake {
+ 0% {
+ transform: translateX(0);
+ }
+ 25% {
+ transform: translateX(-5px);
+ }
+ 50% {
+ transform: translateX(5px);
+ }
+ 75% {
+ transform: translateX(-5px);
+ }
+ 100% {
+ transform: translateX(0);
+ }
+ }