/* General Styles */ body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f9f9fc; color: #333; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; } /* Main container for both form and matches */ .container { display: flex; justify-content: center; align-items: center; width: 90%; /* Increased width for a more uniform layout */ max-width: 1000px; transition: all 0.6s ease-in-out; } /* Form and Matches Sections */ .form-section, .matches-section { width: 100%; padding: 20px; background-color: white; border-radius: 15px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: all 0.6s ease-in-out; box-sizing: border-box; /* Ensure padding is included in the width */ } /* Ensure both form and matches have the same width */ .form-section { max-width: 400px; } /* Hidden matches section by default */ .matches-section { opacity: 0; height: 0; visibility: hidden; transition: all 0.6s ease-in-out; /* Smooth transition for visibility */ } /* Show matches when class chip is added */ .show-matches .matches-section { opacity: 1; height: auto; visibility: visible; margin-left: 20px; transition: all 0.6s ease-in-out; } /* Smooth fade-in animation for the matches section */ @keyframes fadeIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } } /* Form Section Animation */ .show-matches .form-section { transform: translateX(-50%); transition: all 0.6s ease-in-out; } /* Input fields */ form input[type="text"], form input[type="email"], form input[type="submit"] { width: 100%; padding: 10px; margin-bottom: 15px; border-radius: 8px; border: 1px solid #ddd; font-size: 16px; box-sizing: border-box; } /* Submit button */ form input[type="submit"] { background-color: #007bff; color: white; border: none; cursor: pointer; transition: background-color 0.3s; } form input[type="submit"]:hover { background-color: #0056b3; } /* Tags (Class Chips) Styling */ .tags-input-container { display: flex; flex-wrap: wrap; border: 1px solid #ccc; padding: 8px; border-radius: 8px; min-height: 40px; cursor: text; } .tags-input-container:focus-within { border-color: #007bff; } .tag { display: inline-flex; align-items: center; background-color: #e0e0e0; border-radius: 20px; padding: 4px 8px; margin: 4px; font-size: 14px; } .tag:hover .close { display: inline-block; } .tag .close { margin-left: 8px; cursor: pointer; display: none; font-size: 14px; color: red; } /* Fix for text overflow in input fields */ .tags-input-container input { border: none; outline: none; flex-grow: 1; font-size: 14px; padding: 4px; min-width: 50px; } /* Matches section styling (not a card for the 'No similar classes' text) */ #matches-container p { margin: 0; color: #666; text-align: center; }