-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathearth.css
52 lines (45 loc) · 1.06 KB
/
earth.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
/* Apply a blurred background image */
body {
background-image: url('img/earth.jpg');
background-size: cover;
color: white;
background-position: center;
position: relative; /* Required for pseudo-element positioning */
text-align: center;
}
/* Initially hide the elements */
#element-container {
display: none;
}
#img-div{
margin-top: 5px;
margin-bottom: 20px;
}
h1{
margin-top: 20px;
margin-bottom: 10px;
font-size: 100px;
}
/* Pseudo-element for the blurred background */
body::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: inherit;
background-size: cover;
background-position: inherit;
filter: blur(10px); /* Adjust the blur intensity as needed */
z-index: -1; /* Place the pseudo-element behind other content */
}
/* Center the button on the screen */
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
text-align: center;
}