master
css 171 lines 2.74 KB
Raw
1 /* General Styles */
2 body {
3 font-family: Arial, sans-serif;
4 background-color: #111111;
5 color: #333;
6 margin: 0;
7 padding: 0;
8 text-align: center;
9 }
10
11 /* Header */
12 header {
13 background: #34191e;
14 color: white;
15 padding: 20px;
16 text-align: center;
17 }
18 h1 {
19 margin: 0;
20 font-size: 2rem;
21 }
22 main label{
23 margin: 0 auto;
24 color: #C1D1B1;
25 padding: 20px;
26 }
27 /* Navigation */
28 nav {
29 display: flex;
30 justify-content: space-between;
31 align-items: center;
32 padding: 10px 20px;
33 background: #64491e;
34 border-radius: 5px;
35 }
36
37 .nav-links {
38 list-style: none;
39 padding: 0;
40 margin: 0;
41 display: flex;
42 }
43 .nav-links li {
44 margin: 0 15px;
45 }
46 .nav-links a {
47 color: white;
48 text-decoration: none;
49 font-size: 1rem;
50 transition: color 0.3s;
51 }
52 .nav-links a:hover {
53 color: #f39c12;
54 }
55
56 /* Forms */
57 .actions {
58 display: flex;
59 gap: 15px;
60 }
61 form {
62 display: inline-block;
63 }
64 input, select {
65 padding: 8px;
66 margin: 5px;
67 border-radius: 5px;
68 border: 1px solid #ccc;
69 }
70 input[type="submit"], .delete-btn, button {
71 background: #e74c3c;
72 color: white;
73 border: none;
74 padding: 8px 12px;
75 cursor: pointer;
76 transition: 0.3s;
77 border-radius: 5px;
78 }
79 input[type="submit"]:hover, .delete-btn:hover, button:hover {
80 background: #c0392b;
81 }
82
83 /* Books Section */
84 .books {
85 padding: 20px;
86 }
87
88 /* Book Grid */
89 .book-grid {
90 display: grid;
91 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
92 gap: 20px;
93 margin-top: 20px;
94 padding: 0 20px;
95 }
96
97 /* Book Cards */
98 .book-card, .book-card2 {
99 background: white;
100 padding: 15px;
101 border-radius: 8px;
102 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
103 transition: 0.3s;
104 }
105 .book-card2 {
106 margin: 0 auto;
107 align-items: center;
108 text-align: center;
109 display: flex;
110 flex-direction: column;
111 justify-content: center;
112 width: 70%
113 }
114 .book-card:hover {
115 transform: scale(1.05);
116 }
117
118 .book-card h3 {
119 font-size: 1.2rem;
120 color: #2c3e50;
121 }
122 .book-card h3 span {
123 font-size: 0.9rem;
124 color: #7f8c8d;
125 }
126 .author-link span:hover {
127 color: black;
128 transition: 0.4s;
129 }
130 .book-card img {
131 width: 100px;
132 margin: 10px auto;
133 display: block;
134 }
135 .book-card p {
136 font-size: 0.9rem;
137 }
138 .book-link:hover {
139 color: #f39c12;
140 transition: 0.2s;
141 }
142 .author-link:hover {
143 color: black;
144 transition: 0.2s;
145 }
146 img:hover {
147 transform: rotate(2160deg);
148 transition: 1.6s;
149 }
150
151 /* Error Messages */
152 .error {
153 color: #e74c3c;
154 }
155 .success {
156 color: #2ecc71;
157 }
158
159 /* Responsive */
160 @media (max-width: 768px) {
161 nav {
162 flex-direction: column;
163 text-align: center;
164 }
165 .actions {
166 flex-direction: column;
167 }
168 .book-grid {
169 grid-template-columns: 1fr;
170 }
171 }