-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
126 lines (124 loc) · 2.38 KB
/
styles.css
File metadata and controls
126 lines (124 loc) · 2.38 KB
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
:root {
--primary: #205e2e;
--secondary: #F4EBD0;
--accent: #ffa600;
--dark: #2f2f2f;
--light: #FFFFFF;
}
body {
margin: 0;
font-family: 'Open Sans', sans-serif;
background-color: var(--secondary);
color: var(--dark);
}
h1, h2 {
font-family: 'Playfair Display', serif;
}
a {
text-decoration: none;
color: var(--light);
}
header {
background-color: var(--primary);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 1.8rem;
font-weight: 600;
color: var(--accent);
}
nav ul {
list-style: none;
display: flex;
gap: 1.5rem;
margin: 0;
}
nav li {
font-weight: 500;
}
.menu-toggle {
display: none;
}
.hamburger {
display: none;
font-size: 2rem;
cursor: pointer;
color: var(--light);
}
.slogan {
background-image: url('images/red.jpg');
background-size: cover;
background-position: center;
padding: 1.5rem 1rem;
text-align: center;
color: var(--light);
}
.slogan h1 {
background-color: rgba(0, 0, 0, 0.5);
display: inline-block;
padding: 1rem 2rem;
border-radius: 10px;
}
.container {
padding: 1rem 2rem;
max-width: 1100px;
margin: auto;
}
.image-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
}
.image-grid img {
width: 100%;
height: 250px;
object-fit: cover;
border-radius: 20px;
filter: brightness(90%) contrast(110%);
transition: transform 0.3s ease;
}
.image-grid img:hover {
transform: scale(1.05);
filter: brightness(100%)
}
.circle-img {
border-radius: 50%;
width: 200px;
height: 200px;
object-fit: cover;
display: block;
margin: 2rem auto;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}
.about-text, .contact-text {
text-align: center;
max-width: 600px;
margin: auto;
}
footer {
background-color: var(--primary);
color: var(--light);
text-align: center;
padding: 1rem;
}
@media (max-width: 768px) {
nav ul {
position: absolute;
top: 70px;
right: 0;
background-color: var(--primary);
flex-direction: column;
width: 200px;
display: none;
padding: 1rem;
}
.hamburger {
display: block;
}
.menu-toggle:checked + .hamburger + nav ul {
display: flex;
}
}