-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
123 lines (114 loc) · 2.3 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
@import url(//db.onlinewebfonts.com/c/0141df8c3436a6c3eb8be69855e1ec0d?family=Maiandra+GD);
*{
margin: 0;
padding: 0;
}
body{
display: flex;
justify-content: center;
align-items: center;
background: rgb(16,148,237);
background: linear-gradient(180deg, rgba(16,148,237,1) 28%, rgba(247,233,153,1) 99%);
}
nav{
position: absolute;
top: 20px;
}
center p{
font-family: 'Maiandra GD';
color: rgba(247,233,153,1);
}
h1{
font-size: 50px;
font-family: 'Pangolin', cursive;
color: rgba(250, 242, 200, 0.986);
}
p{
font-size: 20px;
color: rgb(53, 95, 95);
}
.container{
margin-top: 150px;
position: relative;
width: 1100px;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
padding: 30px;
}
.container .card{
position: relative;
max-width: 300px;
height: 200px;
background: rgb(204, 196, 196);
margin: 30px 10px;
padding: 20px 15px;
display: flex;
flex-direction: column;
box-shadow: 0 5px 20px rgba(0,0,0,0.5);
transition: 0.3s ease-in-out;
}
.container .card:hover{
height: 420px;
cursor: pointer;
}
.container .card .imgBx{
position: relative;
width: 260px;
height: 260px;
top: -60px;
left: 20px;
z-index: 1;
box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.container .card .imgBx img{
max-width: 100%;
border-radius: 4px;
height: 200px;
}
.container .card .content{
position: relative;
margin-top: -140px;
padding: 10px 15px;
text-align: center;
color: #111;
visibility: hidden;
opacity: 0;
transition: 0.3s ease-in-out;
}
.container .card:hover .content{
visibility: visible;
opacity: 1;
margin-top: -40px;
transition-delay: 0.3s;
cursor: pointer;
}
.content h2{
font-size: 30px;
font-family: 'Maiandra GD';
padding-bottom: 10px;
}
.content p{
font-size: 15px;
text-align: justify;
font-family: 'Maiandra GD';
}
.btn{
margin: 15px;
display: inline-block;
text-decoration: none;
color: #f44336;
border: 1px solid #f44336;
border-radius: 30px;
padding: 10px 30px;
font-size: 13px;
position: relative;
cursor: pointer;
}
.btn:hover{
border: 1px solid #f44336;
background: #f44336;
transition: 0.5s;
color: #fff;
}