-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
125 lines (105 loc) · 1.99 KB
/
styles.css
File metadata and controls
125 lines (105 loc) · 1.99 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
/* General layout */
body {
background-color: #fff;
color: #000;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
margin: 0;
padding: 2rem;
}
.container {
max-width: 1000px;
margin: 0 auto;
}
h1 {
font-size: 2.5rem;
margin-bottom: 0.25rem;
}
p, li {
font-size: 1.1rem;
line-height: 1.6;
}
nav {
margin: 2rem 0;
}
nav a {
margin-right: 1rem;
text-decoration: none;
color: #000;
transition: color 0.2s ease;
}
nav a:hover {
color: #888;
}
footer {
text-align: center;
margin-top: 4rem;
padding-top: 1rem;
border-top: 1px solid #ccc;
font-size: 0.9rem;
color: #777;
}
/* Project Grid */
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 1.5rem;
margin-top: 2rem;
}
.card {
background-color: #f4f4f4;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
transition: transform 0.2s ease, box-shadow 0.2s ease;
cursor: pointer;
display: flex;
flex-direction: column;
}
.card:hover {
transform: translateY(-6px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.card img {
width: 100%;
height: auto;
display: block;
}
.card h3 {
margin: 1rem;
font-size: 1.2rem;
color: #000;
}
.card p {
margin: 0 1rem 1rem;
color: #333;
}
#project-content {
margin-top: 3rem;
}
@media screen and (max-width: 600px) {
body {
padding: 1rem;
}
h1 {
font-size: 2rem;
}
.grid {
grid-template-columns: 1fr;
}
}
figure {
text-align: center;
margin: 2rem 0;
}
figure img {
max-width: 100%;
height: auto;
}
figcaption {
font-size: 0.95rem;
color: #555;
margin-top: 0.5rem;
}
figure img {
width: 60%; /* or any percentage */
}