body { font-family: Arial, sans-serif; background-color: #2c2c2c; /* Ciemniejsze tło */ color: #f4f4f9; margin: 0; padding: 0; } header { display: flex; justify-content: space-between; align-items: center; padding: 20px; background-color: #1f1f1f; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); margin-bottom: 20px; animation: slideInDown 0.5s ease-out; } h1 { color: #f4f4f9; margin: 0; } .search-form { display: flex; align-items: center; } .search-form input[type="text"] { padding: 10px; border: none; border-radius: 5px; margin-right: 10px; transition: all 0.3s ease; } .search-form input[type="text"]:focus { box-shadow: 0 0 10px rgba(30, 144, 255, 0.8); } .search-form button { padding: 10px 20px; background-color: #1e90ff; border: none; border-radius: 5px; color: white; cursor: pointer; transition: background-color 0.3s ease; } .search-form button:hover { background-color: #1c86ee; } .container { width: 80%; margin: auto; } .anime-list { display: flex; flex-wrap: wrap; justify-content: space-around; transition: transform 0.5s, opacity 0.5s; } .anime-card { background-color: #3b3b3b; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); margin: 20px; width: 300px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; opacity: 0; animation: fadeIn 0.5s forwards; } .anime-card:hover { transform: scale(1.05); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); } .anime-cover img { width: 100%; height: auto; display: block; } .anime-info { padding: 15px; color: #ddd; } .anime-info h2 { font-size: 24px; margin: 0 0 10px; color: #fff; } .anime-info p { font-size: 14px; line-height: 1.6; margin: 0; max-height: 75px; /* Zmienione z 50px na 75px */ overflow: hidden; text-overflow: ellipsis; transition: max-height 0.3s ease, opacity 0.3s ease; } .anime-info p.expanded { max-height: none; /* Wyświetl cały tekst */ opacity: 1; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideInDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }