diff --git a/styles.css b/styles.css index 70a1fb8..96800f5 100644 --- a/styles.css +++ b/styles.css @@ -1,35 +1,113 @@ -.search-wrapper { +/* Global styles */ +body { + margin: 0; + font-family: Arial, sans-serif; + background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab); + background-size: 400% 400%; + animation: gradientMove 15s ease infinite; +} + +/* Gradient animation */ +@keyframes gradientMove { + 0% { + background-position: 0% 50%; + } + 50% { + background-position: 100% 50%; + } + 100% { + background-position: 0% 50%; + } +} + +/* Container styles */ +#container { display: flex; flex-direction: column; - gap: .25rem; + gap: 20px; + padding: 30px 20px; + max-width: 1000px; + margin: auto; } -input { - font-size: 1rem; +/* Logo styles */ +#logo { + display: block; + margin: 0 auto 20px auto; + max-width: 80px; + height: auto; } -.user-cards { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); - gap: .25rem; - margin-top: 1rem; +/* Search bar */ +#search { + padding: 10px 15px; + font-size: 1em; + border: 1px solid #ccc; + border-radius: 8px; + margin-bottom: 10px; + outline: none; + width: 100%; + box-sizing: border-box; } +/* Card styles */ .card { - border: 1px solid black; - background-color: white; - padding: .5rem; + display: flex; + flex-direction: column; + align-items: flex-start; + text-decoration: none; + background-color: #ffffff; + border: 1px solid #e0e0e0; + border-radius: 12px; + padding: 15px; + transition: box-shadow 0.2s ease, transform 0.2s ease; + color: #333; + gap: 15px; } -.card > .header { - margin-bottom: .25rem; +.card:hover { + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); + transform: translateY(-3px); } -.card > .body { - font-size: .8rem; - color: #777; +/* Image container */ +.card .image-wrapper { + width: 100%; + max-width: 350px; + aspect-ratio: 1 / 1; + overflow: hidden; + border-radius: 8px; + flex-shrink: 0; } -.hide { - display: none; -} \ No newline at end of file +.card img { + width: 100%; + height: 100%; + object-fit: cover; + display: block; + border-radius: 8px; +} + +/* Text inside card */ +.card .text { + font-size: 1.1em; + font-weight: 600; +} + +/* Responsive for desktop/tablets */ +@media (min-width: 768px) { + .card { + flex-direction: row; + align-items: center; + } + + .card .image-wrapper { + width: 200px; + height: 200px; + aspect-ratio: auto; + } + + .card .text { + font-size: 1.2em; + } +}