Changed around line 1
+ :root {
+ --primary-color: #2c3e50;
+ --secondary-color: #34495e;
+ --accent-color: #3498db;
+ --text-color: #ecf0f1;
+ --background-color: #f5f6fa;
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: 'Segoe UI', sans-serif;
+ line-height: 1.6;
+ color: var(--primary-color);
+ background-color: var(--background-color);
+ padding: 20px;
+ }
+
+ header {
+ background: var(--primary-color);
+ color: var(--text-color);
+ padding: 20px 0;
+ text-align: center;
+ margin-bottom: 30px;
+ }
+
+ header h1 {
+ font-size: 2.5rem;
+ margin-bottom: 10px;
+ }
+
+ nav {
+ display: flex;
+ justify-content: center;
+ gap: 20px;
+ }
+
+ nav a {
+ color: var(--text-color);
+ text-decoration: none;
+ font-weight: bold;
+ transition: color 0.3s;
+ }
+
+ nav a:hover {
+ color: var(--accent-color);
+ }
+
+ #search {
+ display: flex;
+ gap: 10px;
+ margin-bottom: 30px;
+ }
+
+ #search-input {
+ flex: 1;
+ padding: 10px;
+ border: 2px solid var(--secondary-color);
+ border-radius: 5px;
+ }
+
+ #search-btn {
+ background: var(--accent-color);
+ color: var(--text-color);
+ border: none;
+ padding: 10px 20px;
+ border-radius: 5px;
+ cursor: pointer;
+ transition: background 0.3s;
+ }
+
+ #search-btn:hover {
+ background: #2980b9;
+ }
+
+ #add-book {
+ background: white;
+ padding: 20px;
+ border-radius: 10px;
+ box-shadow: 0 2px 10px rgba(0,0,0,0.1);
+ margin-bottom: 30px;
+ }
+
+ #book-form {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: 15px;
+ }
+
+ #book-form label {
+ font-weight: bold;
+ }
+
+ #book-form input {
+ padding: 8px;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ }
+
+ #book-form button {
+ grid-column: span 2;
+ background: var(--accent-color);
+ color: var(--text-color);
+ border: none;
+ padding: 10px;
+ border-radius: 5px;
+ cursor: pointer;
+ transition: background 0.3s;
+ }
+
+ #book-form button:hover {
+ background: #2980b9;
+ }
+
+ #collection {
+ background: white;
+ padding: 20px;
+ border-radius: 10px;
+ box-shadow: 0 2px 10px rgba(0,0,0,0.1);
+ }
+
+ #books-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
+ gap: 20px;
+ }
+
+ .book-card {
+ background: var(--background-color);
+ padding: 15px;
+ border-radius: 8px;
+ box-shadow: 0 2px 5px rgba(0,0,0,0.1);
+ transition: transform 0.3s;
+ }
+
+ .book-card:hover {
+ transform: translateY(-5px);
+ }
+
+ .book-cover {
+ width: 100%;
+ height: auto;
+ border-radius: 5px;
+ margin-bottom: 10px;
+ }
+
+ .book-info {
+ font-size: 0.9rem;
+ }
+
+ .book-tags {
+ margin-top: 10px;
+ display: flex;
+ flex-wrap: wrap;
+ gap: 5px;
+ }
+
+ .tag {
+ background: var(--accent-color);
+ color: var(--text-color);
+ padding: 3px 8px;
+ border-radius: 12px;
+ font-size: 0.8rem;
+ }
+
+ footer {
+ text-align: center;
+ margin-top: 30px;
+ padding: 20px;
+ background: var(--primary-color);
+ color: var(--text-color);
+ border-radius: 10px;
+ }
+
+ @media (max-width: 768px) {
+ #book-form {
+ grid-template-columns: 1fr;
+ }
+
+ #books-grid {
+ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
+ }
+ }