-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpage4.css
132 lines (116 loc) · 3.37 KB
/
page4.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Afacad', sans-serif; /* Updated font family */
}
.logo img{
width: 130px;
}
.title{
font-color : black;
}
.header-content {
display: flex; /* Create a flex container */
justify-content: space-between; /* Space between logo and navigation */
align-items: center; /* Vertically center content */
}
header {
background-color: rgba(0, 134, 60, 1);
padding: 10px 10px;
border-bottom-left-radius: 40px;
border-bottom-right-radius: 40px;
position: relative;
z-index: 2; /* Ensure header appears above overlay */
padding: 10px 20px;
color: white; /* Change color as needed */
}
.nav-options {
display: flex; /* Align links in a row */
margin-left: auto; /* Pushes the links to the right */
}
.nav-options a {
margin-left: 150px; /* Spacing between the links */
color: white; /* Link text color */
text-decoration: none; /* Remove underline */
font-size: 20px;
font-weight: bold;
transition: transform 0.3s ease;
padding:30px;
font-family: "Afacad", sans-serif;
}
.nav-options a:hover {
text-decoration: underline; /* Underline when hovered */
transform: scale(1.1);
}
.main-heading {
position: relative; /* Keep it in the normal flow */
z-index: 0; /* Ensure the heading appears above the overlay */
color: white; /* Change color to fit your design */
text-align: center; /* Center the heading */
font-size: 500px; /* Adjust size as needed */
margin-top: 20px; /* Add spacing above the heading */
font-family: Arial, sans-serif; /* Change font as needed */
}
body {
background-color: rgba(217, 217, 217, 1);
color: #fff;
}
.container {
text-align: center;
padding: 50px 20px;
}
.title {
font-size: 3.5rem;
margin-bottom: 30px;
}
.tips-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
column-gap: 30px; /* Horizontal gap */
row-gap: 40px; /* Increased vertical gap */
justify-items: center;
}
.tip-card {
background-color: #fff;
color: #333;
border-radius: 8px;
padding: 15px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Updated shadow for more depth */
text-align: center;
width: 100%;
max-width: 220px; /* Reduced card width */
height: 300px; /* Reduced card height */
display: flex;
flex-direction: column;
justify-content: space-between;
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover */
}
.tip-card:hover {
transform: translateY(-5px); /* Lifts the card slightly on hover */
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
}
.tip-card img {
width: 100%;
height: 140px; /* Set uniform height for all images */
object-fit: cover; /* Ensures images fill the container while keeping aspect ratio */
border-radius: 8px;
}
.tip-card h2 {
font-size: 1.25rem;
margin: 8px 0;
}
.tip-card p {
font-size: 0.9rem;
line-height: 1.4;
}
@media (max-width: 768px) {
.tips-grid {
grid-template-columns: repeat(2, 1fr); /* 2 cards per row for smaller screens */
}
}
@media (max-width: 500px) {
.tips-grid {
grid-template-columns: 1fr; /* 1 card per row for very small screens */
}
}