-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
144 lines (117 loc) · 1.98 KB
/
styles.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
/* Base styles (for larger screens) */
body {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
color: #333;
background-color: #f4f4f4;
}
header {
background-color: #282c34;
color: white;
padding: 20px;
box-sizing: border-box;
text-align: center;
}
header h1 {
margin: 0;
font-family: 'Merriweather', serif;
}
header nav {
margin-top: 10px;
}
img {
width: 100%;
border-radius: 5px;
}
header nav a {
color: white;
text-decoration: none;
margin: 0 15px;
font-size: 1.1rem;
font-family: 'Open Sans', sans-serif;
}
header nav a:hover {
text-decoration: underline;
}
main {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: white;
}
.intro img {
width: 100%;
height: auto;
}
section {
margin-bottom: 20px;
}
section img {
width: 100%;
height: auto;
}
section h2 {
border-bottom: 2px solid #282c34;
padding-bottom: 5px;
margin-bottom: 10px;
font-family: 'Lora', serif;
}
footer {
background-color: #282c34;
color: white;
text-align: center;
padding: 10px;
box-sizing: border-box;
width: 100%;
}
p {
font-family: 'Source Sans Pro', sans-serif;
line-height: 1.6;
}
a {
font-family: 'Roboto', sans-serif;
text-decoration: none;
color: #0066cc;
}
a:hover {
color: #5e98d3;
}
/* Responsive styles */
@media (max-width: 1024px) {
/* Styles for tablets */
header {
padding: 15px;
}
header h1 {
font-size: 1.5rem;
}
header nav a {
font-size: 1rem;
}
main {
padding: 15px;
}
}
@media (max-width: 768px) {
/* Styles for mobile phones */
header {
padding: 10px;
}
header h1 {
font-size: 1.2rem;
}
header nav a {
font-size: 0.9rem;
margin: 0 10px;
}
main {
padding: 10px;
}
section {
margin-bottom: 15px;
}
footer {
padding: 8px;
}
}