-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
157 lines (145 loc) · 3.23 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
/* Body with a retro grid background */
body {
background: radial-gradient(circle at center, #000000 60%, #111111);
color: #00FFAA;
font-family: 'Press Start 2P', cursive;
text-align: center;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
/* Animated grid background */
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: repeating-linear-gradient(
#0d0d0d 0px,
#0d0d0d 1px,
transparent 1px,
transparent 50px
),
repeating-linear-gradient(
90deg,
#0d0d0d 0px,
#0d0d0d 1px,
transparent 1px,
transparent 50px
);
transform: scale(1.5);
opacity: 0.1;
z-index: -2;
animation: gridAnimation 10s linear infinite;
}
/* Grid animation to create a subtle moving effect */
@keyframes gridAnimation {
0% { transform: translateY(0) scale(1.5); }
100% { transform: translateY(-50px) scale(1.5); }
}
/* Neon-glowing header */
h1 {
color: #00FFAA;
text-shadow: 0 0 5px #00FFAA;
margin-bottom: 20px;
}
/* Button with smooth hover effect */
button {
background-color: transparent;
color: #00FFAA;
border: 2px solid #00FFAA;
padding: 15px 25px;
font-size: 1em;
border-radius: 30px;
text-transform: uppercase;
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease;
box-shadow: 0 0 10px #00FFAA;
font-family: 'Press Start 2P';
margin-top: 40px;
}
button:hover {
transform: scale(1.1);
box-shadow: 0 0 15px #00FFAA, 0 0 25px #00FFAA;
}
/* Display for fun fact */
.fun-fact-display {
margin-top: 50px;
font-size: 1em;
background: rgba(0, 255, 170, 0.1);
border: 1px solid #00FFAA;
padding: 15px 25px;
border-radius: 10px;
box-shadow: 0 0 10px #00FFAA;
animation: fadeIn 2s ease;
height: 50vh;
width: 800px;
}
.fun-fact-title {
font-size: 30px;
display: block;
text-decoration: underline;
margin-top: 20px;
margin-bottom: 10px;
}
.fun-fact-description {
font-size: 17px;
display: block;
margin-top: 20px;
}
/* Smooth fade-in effect */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
/* Create a glowing grid effect */
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: repeating-linear-gradient(
#111111 0px,
#111111 1px,
transparent 1px,
transparent 50px
),
repeating-linear-gradient(
90deg,
#111111 0px,
#111111 1px,
transparent 1px,
transparent 50px
);
z-index: -2;
opacity: 0.5;
}
/* Animated gradient for depth */
body::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle, rgba(0, 255, 170, 0.2), transparent 60%);
z-index: -1;
animation: glowAnimation 6s infinite alternate;
}
/* Grid motion */
@keyframes glowAnimation {
0% {
transform: scale(1.2);
filter: blur(5px);
}
100% {
transform: scale(1.3);
filter: blur(8px);
}
}