-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
114 lines (101 loc) · 1.54 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
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');
svg{
font-size: 100px;
fill:aliceblue;
}
h1{
text-align: center;
}
body{
font-family: 'Roboto' ,sans-serif;
background-color: black;
color:white;
display: flex;
justify-content: center;
font-size: 1.5rem;
}
.main-logo{
display: flex;
flex-direction: column;
}
main{
width:700px;
margin: 50px;
}
#time{
display: flex;
justify-content: space-between;
}
.word{
display: inline-block;
margin:3px;
}
#words{
filter: blur(5px);
color:darkgrey;
}
#game{
margin-top: 30px;
height: 100px;
overflow:hidden ;
position: relative;
}
#focus-words{
position: absolute;
inset: 0;
padding-top: 35px;
text-align: center;
}
#game:focus #words{
filter: blur(0);
}
#game:focus #focus-words{
display: none;
}
@keyframes blink {
0%{
opacity: 1;
}
50%{
opacity: 0;
}
100%{
opacity: 1;
}
}
#game:focus #cursor{
display: block;
}
#game:focus {
outline: 0;
}
#cursor{
display: none;
width: 2px;
height:1.5rem;
background-color: yellow;
position: fixed;
top: 340px;
animation: blink .3s infinite;
}
.letter.correct{
color:white
}
.letter.incorrect{
color:red
}
#game.over #words{
opacity: .5;
filter: blur(0);
}
#game.over:focus #cursor{
display: none;
}
#game.over #focus-words{
display: none;
}
#restart{
width: 100px;
height:30px;
font-size: 1rem;
}