-
Notifications
You must be signed in to change notification settings - Fork 0
/
style3.css
177 lines (148 loc) · 3.24 KB
/
style3.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
@import url('https://fonts.googleapis.com/css2?family=Playwrite+DE+Grund:[email protected]&display=swap');
body {
background-image: url("river\ pic.jpg");
background-size: cover;
background-position: center;
}
:root{
--primary-color: #2887ef;
--primary-order-dark: #2476da;
--text-dark: #0a0a0a;
--text-light: #737373;
--extra-light: #f3f4f6;
--white: #ffffff;
--max-width: 1200px;
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.section_container {
max-width: var(--max-width);
margin: auto;
padding: 5rem 1rem;
width: 100%;
}
.section_header {
margin-bottom: 5px;
font-size: 2.5rem;
font-weight: 700;
color: var(--text-dark);
text-align: center;
}
.section_descripiton {
max-width: 600px;
max-inline: auto;
color: var(--text-light);
text-align: center;
}
.destination_card{
max-width: 100%;
max-height: 100%;
}
/*.destination_container :is(.section_header, .section_descripiton) {
text-align: left;
margin-inline-start: unset;
}
*/
.destination_container {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.destination_grid{
display: flex;
margin-top: 4rem;
gap: 2rem 1rem;
object-fit: cover;
flex-wrap: wrap;
}
.destination_card{
position:relative;
object-fit: cover;
border-radius: 20px;
background-color: #f7f7f7;
transition: transform 0.3s ease-in-out;
border-radius: 1.5rem;
}
.destination_card:hover {
transform: translate(-10px);
}
.destination_card img {
border-radius: 1.5rem;
box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}
.destination_card:hover img {
transform: scale(1.05)
}
.destination_card_details {
padding: 1rem;
display: flex;
align-items: center;
gap: 5rem;
}
.destination_card_details h4 {
padding: 1rem;
margin-bottom: 5px;
font-size: 1.2rem;
font-weight: 600;
columns: var(--text-dark);
}
.destination_card_details p {
columns: var(--text-light);
}
.destination_rating {
padding: 5px 10px;
font-size: 0.9rem;
white-space: nowrap;
color: var(--primary-color);
background-color: #f0f0f0;
border-radius: 1rem;
transition: background-color 0.3s;
}
.destination_rating span {
color: gold;
}
.destination_card:hover .destination_rating{
background-color: var(--primary-color);
color: #ffffff;
}
/* Heart icon styling */
.favorite-icon {
position: absolute;
top: 10px;
right: 10px;
font-size: 24px;
color: white;
background-color: rgba(229, 216, 216, 0.5); /* Semi-transparent background */
border-radius: 50%;
padding: 5px;
cursor: pointer;
transition: color 0.3s ease, background-color 0.3s ease;
}
/* Default state of heart (unliked) */
.favorite-icon i {
color: rgb(211, 70, 70);
}
/* Liked state (after click) */
.favorite-icon:hover i {
background-color: red;
color: #ffffff;
border-radius: 50%;
top: 10px;
right: 10px;
font-size: 24px;
padding: 5px;
}
@media (width > 540px) {
.destination_grid {
grid-template-rows: 1fr;
display: flex;
}
}
@media (width > 768px){
.destination_grid {
grid-template-columns: repeat(3, 1fr);
}
}