-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
121 lines (101 loc) · 2.31 KB
/
index.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
body {
margin: 0;
background: black;
overflow: hidden;
}
.moon {
position: absolute;
top: 50%; /* Center the moon */
left: 50%; /* Center the moon */
transform: translate(-50%, -50%); /* Perfect centering */
z-index: 10;
border-radius:90%;
box-shadow: 0 0 30px 20px rgba(125, 160, 255, 0.2);
transition: 0.5s ease;
animation: glowPulse 3s infinite;
}
@keyframes glowPulse {
0% {
box-shadow: 0 0 20px 10px rgba(0, 68, 255, 0.1);
}
50% {
box-shadow: 0 0 40px 20px rgba(125, 160, 255, 0.2);
}
100% {
box-shadow: 0 0 20px 10px rgba(0, 68, 255, 0.1);
}
}
.moon:hover {
transition: 0.5s ease;
box-shadow: 0 0 30px 20px rgba(146, 174, 251, 0.338);
}
.moon img {
width: 30vh;
height: 30vh;
}
.stars-container {
position: absolute;
}
.star {
position: absolute;
top: 50%; /* Start from the center */
left: 50%; /* Start from the center */
transform: translate(-50%, -50%); /* Align center */
height: auto;
width: auto;
max-width: 20vh;
max-height: 20vh;
opacity: 0; /* Start hidden */
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
/* Additional styles for the container if needed */
}
@keyframes glowPulse {
0% {
text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #160051;
}
50% {
text-shadow: 0 0 10px #fff, 0 0 20px #160051, 0 0 30px #160051;
}
100% {
text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #160051;
}
}
h1 {
margin-top:5%;
font-family: "Notable", serif;
font-weight: 400;
font-style: normal;
position: relative;
z-index: 15;
color: white;
text-align: center;
font-size: 2rem;
text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #160051;
animation: glowPulse 2s infinite;
}
.inner {
z-index: 15; /* Ensure it's above other elements */
}
.btn {
text-decoration: none;
display: inline-block;
font-size: 1.5rem;
padding: 1rem 2.8rem;
background: white;
border-radius: 4rem;
box-shadow: 0 0 1rem white;
font-size: 1.6rem;
color: black;
letter-spacing: 0.1rem;
font-weight: 600;
transition: 0.5s ease;
margin-top: 2rem; /* Add space between button and other elements */
}
.btn:hover {
box-shadow: none;
}