-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgameoverstyle.css
176 lines (148 loc) · 3.74 KB
/
gameoverstyle.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
/* imorting different fonts from google fonts */
@import url('https://fonts.googleapis.com/css2?family=Cedarville+Cursive&family=Dancing+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cedarville+Cursive&family=Dancing+Script&family=Roboto+Mono:ital,wght@1,300&display=swap');
body{
background-image: url('./srcImages/ab3ca36123df6ae3934e07ca85699836.gif');
background-repeat: no-repeat;
background-size: cover;
}
#main{
display: flex;
justify-content: center;
align-items: center;
width: 90vw;
height: 98vh;
}
#secondmain{
width: 50vw;
height: 30vw;
margin-left: 10vw;
/* background-color: rgba(28, 10, 10, 0.705); */
border-radius: 10px;
}
#thanks{
font-family:'Dancing Script';
font-size:5vw;
display: flex;
justify-content: center;
margin: 10px;
padding: 6px;
border-radius: 10px;
animation: floating2 3s ease-in-out infinite;
color: rgb(191, 245, 56);
text-align: center;
animation: glow1 1.5s ease-in-out infinite alternate;
}
/* taking this glow webkit keyframe from w3 schools but i have changed text shadows */
@keyframes glow1 {
from {
text-shadow: 0 0 10px rgb(235, 235, 16), 0 0 20px #a5ea60, 0 0 30px #ebd3e3, 0 0 40px #f9f2f6, 0 0 50px #e2cdd7, 0 0 60px #decbd5, 0 0 70px #aea6ab;
}
to {
text-shadow: 0 0 20px #1f1b1b, 0 0 30px #2d2127, 0 0 40px #241f22, 0 0 50px #0f0a0c, 0 0 60px #391427, 0 0 70px #f9f3f6, 0 0 80px #ede0e7;
}
}
/* using keyframes in animation */
#playagain{
display: flex;
justify-content: center;
color:beige;
font-family:'Dancing Script';
font-size: 3vw;
font-weight: 900;
padding-top: 8vw;
animation: floating1 3s ease-in-out infinite;
}
#menu{
display: flex;
justify-content: center;
color: bisque;
font-family:'Dancing Script';
font-size: 3vw;
font-weight: 900;
padding-top: 2vw;
animation: floating1 3s ease-in-out infinite;
}
#playagaini:hover{
color: #fff;
text-align: center;
animation: glow 1s ease-in-out infinite alternate;
}
/* making another new glow keyframe */
@keyframes glow {
from {
text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073, 0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
}
to {
text-shadow: 0 0 20px #fff, 0 0 30px #ff4da6, 0 0 40px #ff4da6, 0 0 50px #ff4da6, 0 0 60px #ff4da6, 0 0 70px #ff4da6, 0 0 80px #ff4da6;
}
}
#menui:hover{
color: #fff;
text-align: center;
animation: glow 1s ease-in-out infinite alternate;
}
/* making a floating keyframe to use in animmations */
@keyframes floating1{
0% {
transform: translateY(0);
}
50%{
transform: translateY(14px);
}
100%{
transform: translateY(0);
}
}
@keyframes floating2{
0% {
transform: translateY(0);
}
50%{
transform: translateY(5px);
}
100%{
transform: translateY(0);
}
}
#myname{
display: flex;
justify-content: flex-end;
font-family: 'Dancing Script';
animation: glow 1s ease-in-out infinite alternate;
font-size: 3vw;
color: white;
position: fixed;
bottom: 20px;
right: 10px;
}
/* making styling of our random message */
#rando{
display: flex;
align-items: center;
justify-content: center;
margin-top: 4vw;
animation: floating1 3s ease-in-out infinite;
color:rgb(218, 134, 33);
font-weight: 900;
font-family: 'Dancing Script';
font-size: 4vw;
}
/* media query for making it responsive */
@media(max-width:600px){
#thanks{
font-size: 10vw;
}
#playagaini , #menu{
font-size: 5.5vw;
}
#main{
align-items: flex-start;
}
#myname{
font-size: 5vw;
}
#secondmain{
padding-top: 29vw;
}
}