-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
163 lines (140 loc) · 2.91 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
155
156
157
158
159
160
161
162
163
/* General Styles */
body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
background-color: #f4f4f4;
color: #333;
}
a {
color: #00003c;
text-decoration: none;
}
a:hover {
color: #0000ff;
}
/* Header Styles */
.header {
background-color: #05001c;
color: white;
padding: 20px;
text-align: center;
}
/* Navbar Styles */
.navbar {
display: flex;
justify-content: center;
background-color: #333;
}
.navbar a {
color: white;
padding: 14px 20px;
text-align: center;
}
.navbar a:hover {
background-color: #ddd;
color: black;
}
/* Main Content Styles */
.main {
display: flex;
flex-wrap: wrap;
margin: 20px;
}
/* Content Styles */
.content {
flex: 3;
background-color: white;
padding: 20px;
max-width: 800px; /* Set a maximum width */
margin: auto; /* Center the content */
overflow-y: auto; /* In case content overflows vertically */
}
/* Footer Styles */
.footer {
background-color: #333;
color: white;
text-align: center;
padding: 10px;
position: relative;
bottom: 0;
width: 100%;
}
.projects {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
.project-details {
display: none;
}
.expand-btn {
align-self: center; /* Center the button */
background-color: #05001c;
color: white;
padding: 5px 5px;
margin: 5px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
.expand-btn:focus {
outline: none;
}
.card {
border: 1px solid #ddd;
border-radius: 10px;
margin: 5px;
width: 300px; /* Fixed width */
display: flex;
flex-direction: column;
overflow: hidden; /* Hide overflow */
height: 445px; /* Fixed height, adjust as needed */
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
transform: scale(1.03); /* Slightly enlarge the card */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow effect */
}
.card-image {
display: flex; /* Use flexbox for alignment */
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
height: 200px; /* Set a fixed height for the image container */
overflow: hidden; /* Hide overflow */
}
.card-image img {
max-width: 90%; /* Maximum width of image */
max-height: 90%; /* Maximum height of image */
display: block; /* Ensures no extra space below the image */
object-fit: cover; /* Cover the area without distorting the image */
}
.card-content {
padding: 15px;
display: flex;
flex-direction: column;
justify-content: space-between;
overflow-y: auto; /* Allow vertical scrolling */
flex-grow: 1; /* Allow the content to grow */
}
.card-content h3 {
margin-top: 0;
}
.card-content p {
margin-top: 3px;
overflow: hidden;
text-overflow: ellipsis;
}
/* Responsive Design */
@media screen and (max-width: 768px) {
.navbar a {
display: block;
width: 100%;
}
.main {
flex-direction: column;
}
.side {
margin-right: 0;
margin-bottom: 20px;
}
}