-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.css
154 lines (131 loc) · 3.16 KB
/
home.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/* General Styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-image: url(''); /* أضف مسار صورة الخلفية هنا */
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
/* Header */
header {
background-color: rgb(255, 183, 0);
color: #fff;
padding: 1.25rem; /* 20px equivalent */
text-align: center;
}
/* Main Section */
#section {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding: 1.25rem; /* 20px equivalent */
gap: 1.25rem; /* 20px equivalent */
}
/* Card Styles */
.card {
--font-color: #323232;
--font-color-sub: #666;
--bg-color: #fff;
--main-color: #323232;
--main-focus: #2d8cf0;
width:30%;
margin-left: auto;
margin-right: auto;
background: var(--bg-color);
border: 0.125rem solid var(--main-color); /* 2px equivalent */
box-shadow: 0.25rem 0.25rem var(--main-color); /* 4px 4px equivalent */
border-radius: 0.3125rem; /* 5px equivalent */
display: flex;
flex-direction: column;
justify-content: flex-start;
padding: 1.25rem; /* 20px equivalent */
box-sizing: border-box; /* Ensures padding is included in the total width/height */
}
/* Image styling */
.img {
display: flex;
justify-content: center;
align-items: center;
}
.card-img img {
max-width: 100%;
height: auto;
}
/* Text styling */
.card-title {
font-size: 1.25rem; /* 20px equivalent */
font-weight: 500;
text-align: center;
color: var(--font-color);
}
.card-subtitle {
font-size: 0.875rem; /* 14px equivalent */
font-weight: 400;
color: var(--font-color-sub);
}
/* Divider styling */
.card-divider {
width: 50%;
border: 0.0625rem solid var(--main-color); /* 1px equivalent */
border-radius: 50px;
}
/* Footer styling */
.card-footer {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.card-price {
font-size: 1.25rem; /* 20px equivalent */
font-weight: 500;
color: var(--font-color);
}
.card-price span {
font-size: 1.25rem; /* 20px equivalent */
font-weight: 500;
color: var(--font-color-sub);
}
.card-btn {
height: 2.1875rem; /* 35px equivalent */
background: var(--bg-color);
border: 0.125rem solid var(--main-color); /* 2px equivalent */
border-radius: 0.3125rem; /* 5px equivalent */
padding: 0 0.9375rem; /* 15px equivalent */
transition: all 0.3s;
}
.card-btn:hover {
border: 0.125rem solid var(--main-focus); /* 2px equivalent */
}
.card-btn:active {
transform: translateY(0.1875rem); /* 3px equivalent */
}
/* Footer */
footer {
background-color: rgb(173, 199, 111);
padding: 0.625rem; /* 10px equivalent */
text-align: center;
width: 100%;
}
.footer-info {
width: 50rem; /* 800px equivalent */
margin: 0 auto;
}
.footer-info h3 {
color: #ffdcdc;
}
.footer-info p {
color: #ffffff;
margin-bottom: 0;
}
/* Media Queries for Responsiveness */
@media (max-width: 768px) {
.card {
width: calc(100% - 2.5rem); /* Full width minus the padding */
}
.footer-info {
width: 90%;
}
}