-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
154 lines (131 loc) · 2.57 KB
/
style.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
/* MAIN GLOBAL STYLES */
* {
font-family: "Poppins", sans-serif;
}
p {
margin: 10px 5px 15px 20px;
justify-content: center;
text-align: center;
line-height: 1.6;
color: #333;
}
body {
background: #e0e0e0;
background: linear-gradient(135deg, #e0e0e0 0%, #c8c8c8 100%);
}
.page-header {
text-align: center;
margin: 2rem 0;
color: #2d2d2d;
}
.project-header {
text-align: center;
color: #2d2d2d;
}
/* TOP NAV */
.topnav {
overflow: hidden;
margin: 1.5rem 0;
background-color: rgba(255, 255, 255, 0.9);
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.topnav a {
float: left;
text-align: center;
color: #2d2d2d;
font-weight: 600;
padding: 1.5rem 2rem;
margin: 0.25rem;
font-size: 1.1rem;
transition: all 0.3s ease;
text-decoration: none;
}
.topnav a:hover {
background-color: #f0f0f0;
color: #6b46c1;
border-radius: 8px;
transform: translateY(-2px);
}
.topnav a.active {
background-color: #6b46c1;
color: white;
border-radius: 8px;
transform: none;
}
/* CONTACTS */
.contactlinks a {
border: none;
display: inline-block;
height: 40px;
width: 40px;
font-size: 0.9em;
opacity: 0.8;
transition: opacity 0.3s ease, transform 0.3s ease;
}
.contactlinks a:hover {
opacity: 1;
transform: translateY(-2px);
}
.contactlinks a path {
fill: #2d2d2d;
}
/* PROJECTS */
.project-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 20em), 1fr));
gap: 2rem;
padding: 2rem;
width: 100%;
max-width: 1400px;
margin: 0 auto;
}
.project-grid img {
width: 100%;
height: 20em;
object-fit: cover;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-grid img:hover {
transform: translateY(-5px);
box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}
/* Remove the old media query since the grid is now naturally responsive */
@media (max-width: 1200px) {
.project-grid {
padding: 1rem;
}
}
/* Mobile Styles */
@media screen and (max-width: 767px) {
/* Navigation bar styles */
.topnav a {
padding: 12px 16px;
font-size: 18px;
}
/* PDF viewer styles */
.project-media iframe {
width: 95%;
min-height: 600px;
border: none;
border-radius: 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
}
.project-media {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
margin: 2rem 0;
padding: 0;
}
figcaption {
text-align: center;
color: #4a4a4a;
margin-top: 1rem;
font-size: 0.95rem;
}