-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
129 lines (111 loc) · 2.62 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
body {
height: 100vh;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
background-image: url("./background.jpg");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
position: relative; /* Add position relative */
}
body::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: url("./background.jpg");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
filter: blur(2px); /* Apply blur effect to the background image */
z-index: -1;
}
#inputContainer {
position: relative;
display: inline-block;
height: 100vh;
width: 100vw;
overflow: hidden;
}
#inputField {
color: #ffffff; /* Set desired text color */
font-size: 1.5em;
position: relative;
transform: translate(45%, 430%);
width: 970px;
height: 60px;
background: none; /* Make the background transparent */
border: none; /* Remove the borders */
outline: none; /* Remove the outline */
box-shadow: none; /* Remove any box shadow */
z-index: 1;
}
#imageOverlay {
position: absolute;
width: 1024px;
transform: translate(40%, 150%);
object-fit: cover;
z-index: 0;
}
.falling {
position: absolute;
font-size: 1.7em;
font-weight: bolder;
transition: opacity 2s;
color: azure; /* Change this to any color you want */
}
/* Media Query for Tablet */
@media (min-width: 1300px) and (max-width: 1500px) {
#inputField {
width: 700px;
transform: translate(45%, 305%);
font: 1.3em sans-serif;
}
#imageOverlay {
width: 750px;
transform: translate(40%, 150%);
}
}
/* Media Query for Tablet */
@media (min-width: 1075px) and (max-width: 1300px) {
#inputField {
width: 600px;
transform: translate(57%, 258%);
font: 1.3em sans-serif;
}
#imageOverlay {
width: 650px;
transform: translate(50%, 150%);
}
}
/* Media Query for Tablet */
@media (min-width: 1024px) and (max-width: 1075px) {
#inputField {
width: 600px;
transform: translate(46%, 258%);
font: 1.3em sans-serif;
}
#imageOverlay {
width: 650px;
transform: translate(40%, 150%);
}
}
/* Media Query for Tablet */
@media (min-width: 601px) and (max-width: 1024px) {
#inputField {
width: 500px;
transform: translate(60%, 268%);
font: 1em sans-serif;
}
#imageOverlay {
width: 550px;
transform: translate(50%, 200%);
}
}