-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
84 lines (78 loc) · 1.52 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,700&family=Poppins:wght@700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
font-family: 'Bodoni Moda', serif;
font-size: 1.2rem;
}
.container{
min-height: 100vh;
display: flex;
justify-content: space-evenly;
align-items:center;
gap: 20px;
background:linear-gradient(to right,#041308,#0b3317);
}
.left-text{
flex-basis: 30%;
}
.heading{
color: white;
font-size: 3rem;
text-align: center;
}
.subheading{
color: white;
margin-top: 10px;
text-align: center;
}
.gallary{
flex-basis: 50%;
display: grid;
gap: 8px;
grid-template-columns: repeat(3,1fr);
grid-auto-rows: 120px;
}
.box{
background-size: cover;
background-position: top;
color: white;
display: flex;
align-items: center;
justify-content: center;
background-color: #222;
background-blend-mode: multiply;
transition: all 1s ease-in-out;
}
.row-2{
grid-row: span 2;
}
.col-2{
grid-column: span 2;
}
.box:hover{
background-color: #999;
background-position: center;
box-shadow: 0 0 4px #fff;
}
@media (max-width:500px) {
body{
font-size: 0.5rem;
}
.container{
flex-direction: column;
padding-block: 20px;
}
.gallary{
width: 100%;
padding-inline: 12px;
grid-auto-rows: 220px;
}
.box{
grid-row: span 1;
grid-column: span 3;
}
}