forked from Anushkabh/krishiconnect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
130 lines (108 loc) · 2.44 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
124
125
126
127
128
129
130
.media img {
width: 80%;
max-width: 150px; /* Adjust as needed */
height: auto;
}
.big-btn {
padding: 10px 20px;
font-size: 18px;
width: 200px;
margin-left: 80px;
background-color: rgb(17, 17, 17);
color: rgb(235, 223, 223);
border: 1px solid black;
}
.btn-black {
background-color: black;
color: white;
border: 1px solid black;
}
.btn-black:hover {
background-color: #333; /* Slightly lighter black for hover effect */
border-color: #333;
}
.card {
text-align: center;
border: none;
border-radius: 5px;
-webkit-box-shadow: 12px 14px 22px 2px rgba(0,0,0,0.75);
-moz-box-shadow: 12px 14px 22px 2px rgba(0,0,0,0.75);
box-shadow: 12px 14px 22px 2px rgba(0,0,0,0.75);
margin-bottom: 100px;
}
/* Star Rating Section */
.star-rating {
display: flex;
align-items: center;
flex-wrap: wrap;
}
.star-rating i {
font-size: 1.5rem;
color: #f39c12;
}
.rating-text {
font-size: 1rem;
margin-left: 10px;
}
/* Media Queries for Responsiveness */
/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
.card {
margin-bottom: 50px;
box-shadow: 6px 7px 11px 1px rgba(0,0,0,0.75);
}
.star-rating {
flex-direction: column;
align-items: flex-start;
}
.star-rating i {
font-size: 1.25rem;
}
.rating-text {
font-size: 0.875rem;
margin-left: 0;
margin-top: 5px;
}
}
/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
.card {
margin-bottom: 75px;
box-shadow: 9px 10px 16px 1.5px rgba(0,0,0,0.75);
}
.star-rating i {
font-size: 1.25rem;
}
.rating-text {
font-size: 12px;
margin-left: 0px;
}
}
/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
.card {
margin-bottom: 80px;
box-shadow: 10px 12px 18px 1.75px rgba(0,0,0,0.75);
}
.star-rating i {
font-size: 1.4rem;
}
.rating-text {
font-size: 0.95rem;
margin-left: 8px;
}
}
/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
.card {
margin-bottom: 90px;
box-shadow: 11px 13px 20px 2px rgba(0,0,0,0.75);
}
.star-rating i {
font-size: 1.5rem;
}
.rating-text {
font-size: 1rem;
margin-left: 10px;
}
}