master
css 231 lines 3.94 KB
Raw
1 /* General reset */
2 body {
3 background-color: black;
4 color: darkgreen;
5 font-family: Arial, sans-serif;
6 margin: 10px;
7 padding: 20px;
8 }
9
10 /* Navigation */
11 .topnav {
12 background-color: black;
13 display: flex;
14 gap: 15px;
15 padding: 12px 20px;
16 border-bottom: 2px solid darkred;
17 justify-content: center;
18 }
19
20 .topnav a {
21 color: darkgreen;
22 text-decoration: none;
23 padding: 8px 14px;
24 border-radius: 8px;
25 transition: background-color 0.3s ease, color 0.3s ease;
26 }
27
28 .topnav a.active,
29 .topnav a:hover {
30 background-color: darkgreen;
31 color: darkred;
32 }
33
34 /* Title styling */
35 h1.title {
36 text-align: center;
37 margin: 20px 0;
38 color: darkgreen;
39 }
40
41 /* Status message */
42 .status-message p {
43 text-align: center;
44 font-weight: bold;
45 color: darkgreen;
46 margin-bottom: 20px;
47 }
48
49 /* Carousel container with horizontal scroll */
50 .css-carousel {
51 display: flex;
52 overflow-x: auto;
53 scroll-snap-type: x mandatory;
54 -webkit-overflow-scrolling: touch;
55 padding-bottom: 12px;
56 scrollbar-width: thin;
57 scrollbar-color: darkred black;
58 border-bottom: 2px solid darkred;
59 scroll-behavior: smooth;
60 color: darkgreen;
61 max-width: 100%;
62 }
63
64 /* Scrollbar styling */
65 .css-carousel::-webkit-scrollbar {
66 height: 8px;
67 }
68
69 .css-carousel::-webkit-scrollbar-track {
70 background: black;
71 }
72
73 .css-carousel::-webkit-scrollbar-thumb {
74 background-color: darkred;
75 border-radius: 10px;
76 border: 2px solid black;
77 }
78
79 /* Scroll instruction text */
80 .scroll-instruction {
81 color: darkgreen;
82 font-size: 0.9rem;
83 text-align: center;
84 margin-top: 6px;
85 font-style: italic;
86 user-select: none;
87 }
88
89 /* Individual movie card */
90 .carousel-item {
91 flex: 0 0 auto;
92 scroll-snap-align: center;
93 background-color: #111;
94 border: 1px solid darkgreen;
95 border-radius: 12px;
96 margin: 0 10px;
97 padding: 15px;
98 max-width: 250px;
99 color: darkgreen;
100 box-sizing: border-box;
101 display: flex;
102 flex-direction: column;
103 align-items: center;
104 transition: transform 0.3s ease;
105 }
106
107 /* Slight scale on hover */
108 .carousel-item:hover {
109 transform: scale(1.05);
110 border-color: darkred;
111 }
112
113 /* Movie image */
114 .carousel-item img {
115 border-radius: 10px;
116 max-width: 100%;
117 height: auto;
118 margin-bottom: 10px;
119 object-fit: cover;
120 }
121
122 /* Movie info list */
123 .carousel-item ul {
124 list-style: none;
125 padding-left: 0;
126 width: 100%;
127 margin: 0;
128 color: darkgreen;
129 }
130
131 .carousel-item ul li {
132 margin: 5px 0;
133 font-size: 0.9rem;
134 color: darkgreen;
135 }
136
137 .carousel-item ul li a {
138 color: darkgreen;
139 text-decoration: none;
140 transition: color 0.3s ease;
141 }
142
143 .carousel-item ul li a:hover {
144 color: darkred;
145 }
146
147
148
149 /* Delete button styling */
150 button,
151 .back_button a{
152 background-color: darkred;
153 color: darkgreen;
154 border: none;
155 border-radius: 8px;
156 padding: 8px 12px;
157 cursor: pointer;
158 font-size: 1rem;
159 transition: background-color 0.3s ease, color 0.3s ease;
160 }
161
162 button:hover,
163 .back_button a:hover {
164 background-color: darkgreen;
165 color: darkred;
166 }
167
168 .actions {
169 display: flex;
170 flex-wrap: wrap;
171 gap: 20px; /* space between forms */
172 justify-content: center;
173 margin-bottom: 20px;
174 }
175
176 .action-form {
177 background-color: #1a0000; /* very dark red background */
178 padding: 15px;
179 border-radius: 12px;
180 display: flex;
181 flex-direction: column;
182 align-items: center;
183 min-width: 220px;
184 box-sizing: border-box;
185 }
186
187 .action-form label {
188 margin-bottom: 8px;
189 color: darkgreen;
190 }
191
192 .action-form input[type="text"] {
193 padding: 8px;
194 border-radius: 10px;
195 border: none;
196 margin-bottom: 12px;
197 width: 100%;
198 max-width: 200px;
199 }
200
201 .action-form button {
202 background-color: darkred;
203 color: darkgreen;
204 border: none;
205 padding: 10px 16px;
206 border-radius: 12px;
207 cursor: pointer;
208 transition: background-color 0.3s ease;
209 width: 100%;
210 max-width: 200px;
211 }
212
213 .action-form button:hover {
214 background-color: darkgreen;
215 color: black;
216 }
217
218
219 /* Responsive tweaks */
220 @media (max-width: 600px) {
221 .carousel-item {
222 max-width: 180px;
223 padding: 10px;
224 }
225 }
226
227 @media (max-width: 400px) {
228 .carousel-item {
229 max-width: 150px;
230 }
231 }