Skip to content

Commit e0fa4de

Browse files
flexbox
1 parent 1e0af68 commit e0fa4de

File tree

1 file changed

+66
-11
lines changed

1 file changed

+66
-11
lines changed

styles.css

Lines changed: 66 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,80 @@
66

77
body {
88
font-family: Arial, sans-serif;
9-
background-color: #f4f4f4;
9+
background-color: #f0f0f0;
1010
color: #333;
1111
}
1212

13+
.container {
14+
text-align: center;
15+
padding: 2rem;
16+
background-color: #fff;
17+
margin: 2rem auto;
18+
width: 80%;
19+
max-width: 1200px;
20+
border-radius: 8px;
21+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
22+
}
23+
24+
.container h1 {
25+
font-size: 2rem;
26+
margin-bottom: 1rem;
27+
}
28+
29+
.container p {
30+
font-size: 1.2rem;
31+
margin-bottom: 2rem;
32+
}
33+
34+
.button {
35+
padding: 0.8rem 1.5rem;
36+
background-color: #3498db;
37+
color: #fff;
38+
text-decoration: none;
39+
border-radius: 5px;
40+
transition: background-color 0.3s ease;
41+
}
42+
43+
.button:hover {
44+
background-color: #2980b9;
45+
}
46+
1347
header {
14-
background-color: #070707;
48+
background-color: #2c3e50;
1549
color: white;
16-
text-align: center;
1750
padding: 1.5rem;
51+
text-align: center;
1852
}
1953

20-
h1 {
54+
header h1 {
2155
font-size: 2.5rem;
56+
margin-bottom: 1rem;
2257
}
2358

2459
.movie-list {
2560
display: flex;
61+
flex-wrap: wrap;
2662
justify-content: space-around;
27-
margin: 2rem 0;
63+
margin: 2rem auto;
2864
padding: 0 1rem;
65+
max-width: 1200px;
2966
}
3067

3168
.movie {
3269
background-color: white;
3370
border-radius: 10px;
3471
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
72+
width: 100%;
73+
max-width: 350px;
74+
margin-bottom: 2rem;
75+
padding: 1.5rem;
3576
text-align: center;
36-
width: 30%;
37-
padding: 1rem;
3877
}
3978

4079
.movie img {
4180
width: 100%;
42-
height: 35%;
4381
border-radius: 10px;
82+
margin-bottom: 1rem;
4483
}
4584

4685
.movie h2 {
@@ -75,14 +114,30 @@ h1 {
75114

76115
.trailer video {
77116
width: 100%;
78-
border-radius: 25px;
117+
border-radius: 10px;
79118
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
80119
}
81120

82121
footer {
83122
text-align: center;
84123
padding: 1rem;
85-
background-color: #0f0f0f;
124+
background-color: #2c3e50;
86125
color: white;
87126
margin-top: 2rem;
88-
}
127+
}
128+
129+
@media (min-width: 768px) {
130+
.movie-list {
131+
justify-content: space-between;
132+
}
133+
134+
.movie {
135+
width: 45%;
136+
}
137+
}
138+
139+
@media (min-width: 1024px) {
140+
.movie {
141+
width: 30%;
142+
}
143+
}

0 commit comments

Comments
 (0)