-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
184 lines (160 loc) · 3.32 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
/* Body styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: black;
overflow: hidden; /* Hide overflow to keep animation within the viewport */
}
/* Header styles */
.header {
overflow: hidden;
background-color: #111;
padding: 15px;
border-radius: 10px;
}
.tablinks {
background-color: inherit;
border: none;
outline: none;
cursor: pointer;
padding: 10px 20px;
transition: background-color 0.3s;
color: white;
font-size: 18px;
margin-right: 10px;
border-radius: 20px;
}
.tablinks:hover {
background-color: #555;
border-radius: 20px;
}
.tablinks.active {
background-color: #ccc;
color: black;
border-radius: 20px;
}
/* Tab content styles */
.tabcontent {
display: none;
padding: 20px;
border-top: 1px solid #ccc;
color: white;
border-radius: 0 0 10px 10px;
overflow-y: auto; /* Enable vertical scrolling if content overflows */
max-height: 80vh;
}
.tabcontent.active {
display: block;
}
/* Home Page Animation styles */
.water-animation {
position: absolute;
width: 100%;
height: 5px;
background-color: blue;
animation: waterFlow 6s linear infinite;
}
@keyframes waterFlow {
0% {
left: -100%; /* Start the animation from the left */
}
100% {
left: 100%; /* Move the stream to the right */
}
}
/* Time passing animation styles */
.time-passing {
position: relative;
width: 100%;
height: 200px;
background-color: #222;
overflow: hidden;
}
.time {
position: absolute;
width: 100%;
height: 2px;
background-color: #444;
animation: timePassing 5s linear infinite;
}
.arrow-container {
display: flex;
align-items: center;
position: relative;
}
.arrow {
position: absolute;
top: 50%;
width: 0;
height: 0;
border-left: 30px solid transparent;
border-right: 30px solid transparent;
animation: arrowAnimation 5s linear infinite;
}
.percentage {
font-size: 24px;
margin-left: 10px;
transition: color 0.5s ease; /* Smooth transition for color change */
}
@keyframes arrowAnimation {
0%, 100% {
border-left: 30px solid transparent;
border-right: 30px solid transparent;
border-bottom: 50px solid green; /* Green upward arrow */
border-top: none; /* Remove the top border */
box-shadow: 0px 40px 0px 0px green; /* Green glow */
transform: translateY(-100%);
}
50% {
border-left: 30px solid transparent;
border-right: 30px solid transparent;
border-top: 50px solid red; /* Red downward arrow */
border-bottom: none; /* Remove the bottom border */
box-shadow: 0px -40px 0px 0px red; /* Red glow */
transform: translateY(100%);
}
}
@keyframes timePassing {
0% {
left: 0; /* Start animation from left */
}
100% {
left: 100%; /* Move animation to the right */
}
}
/* Home Page image style */
#Home {
text-align: center;
}
#Home img {
transition: transform 0.3s ease;
}
#Home img:hover {
transform: scale(1.1);
}
/* Project styling */
.projects-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.project {
background-color: #333;
color: white;
padding: 20px;
margin: 10px;
width: 45%;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.project h4 {
margin-top: 0;
}
.project a {
color: #00bfff;
text-decoration: none;
}
.project a:hover {
text-decoration: underline;
}