-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
120 lines (104 loc) · 2.68 KB
/
style.css
File metadata and controls
120 lines (104 loc) · 2.68 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
/* General Reset */
body, h1, p, a {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body Styling */
body {
font-family: 'Roboto', sans-serif;
background: linear-gradient(135deg, #141e30, #243b55);
color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
margin: 0;
}
/* Container Styling */
.container {
display: flex;
flex-direction: column;
text-align: center;
background-color: rgba(255, 255, 255, 0.1);
padding: 40px 20px;
border-radius: 10px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
width: 90%;
max-width: 600px;
}
/* Heading Styling */
h1 {
font-size: 2rem; /* Adjusted for better responsiveness */
margin-bottom: 15px;
font-weight: 700;
color: #ffffff;
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
/* Paragraph Styling */
p {
font-size: 1rem;
margin-bottom: 20px;
line-height: 1.6;
color: #d1d1d1;
}
/* Portfolio Link Styling */
.portfolio-link {
margin-bottom: 15px !important;
margin: auto;
width: 240px;
padding: 15px 30px;
font-size: 1.1rem; /* Slightly smaller for better fit on mobile */
font-weight: 700;
color: #ffffff;
background: linear-gradient(135deg, #0078ff, #00c6ff);
border: none;
border-radius: 5px;
text-decoration: none;
transition: all 0.3s ease;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.portfolio-link:hover {
background: linear-gradient(135deg, #005bb5, #0078ff);
transform: translateY(-2px);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}
.portfolio-link:active {
transform: translateY(0);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
/* Responsive Design */
@media (max-width: 488px) {
body {
padding: 10px; /* Added padding for smaller screens */
}
h1 {
font-size: 1.8rem; /* Adjust heading size for smaller screens */
}
p {
font-size: 0.9rem; /* Adjust paragraph font size for smaller screens */
}
.portfolio-link {
padding: 12px 25px; /* Adjust button padding for smaller screens */
font-size: 1rem;
width: 170px;
}
.container {
width: 95%; /* Expand container to use more screen space on mobile */
}
}
@media (max-width: 480px) {
h1 {
font-size: 1.5rem; /* Further adjust heading size for very small screens */
}
p {
font-size: 0.85rem; /* Slightly smaller font size for narrow screens */
}
.portfolio-link {
padding: 10px 20px; /* Compact button size for narrow screens */
font-size: 0.9rem;
}
.container {
padding: 30px 15px; /* Reduce container padding for very narrow screens */
}
}