-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstyle.css
130 lines (114 loc) · 2.82 KB
/
style.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
/* Apply Montserrat font to all elements and reset padding */
* {
font-family: 'Montserrat', sans-serif;
padding: 0;
}
/* Style for h2 elements */
h2 {
font-size: 1.8rem;
margin: 0.5rem 0;
}
/* Style for span elements */
span {
font-size: 1.5rem;
}
/* Define classes for color styles */
.white {
color: white;
}
.green {
background: green;
opacity: 1;
}
.red {
background: red;
opacity: .5;
}
/* Define the cursor element */
.cursor {
width: 2px; /* Set width of the cursor */
height: 20px; /* Set height of the cursor */
background: rgb(79, 79, 79);
animation: blink 0.8s step-end infinite; /* Define blinking animation */
opacity: .8;
}
/* Define the blinking animation for cursor */
@keyframes blink {
from, to {
opacity: 1; /* Hide the cursor at the beginning and end of the animation */
background-color: rgba(77, 75, 75, 0.669);
}
50% {
opacity: .8; /* Show the cursor at the midpoint of the animation */
background-color: rgba(109, 104, 104, 0.6);
}
}
/* Body styles */
body {
font-family: 'Montserrat', sans-serif;
font-size: 1rem;
color: #FFFFFF;
-webkit-transition: all 200ms linear;
transition: all 200ms linear;
text-rendering: optimizeLegibility !important;
-webkit-font-smoothing: antialiased !important; /* Apply anti-aliasing */
scroll-behavior: smooth; /* Enable smooth scrolling */
background-color: #1f2029;
background: url("./assets/imgs/Animated-Shapes.svg");
background-attachment: fixed;
background-position: center;
background-repeat: repeat;
padding: 0 1rem;
}
/* Styles for text input field with id 'query' */
#query {
width: 99%;
display: flex;
justify-content: center;
align-items: center;
margin-top: 1rem;
font-size: 1.4rem;
height: 5rem;
}
/* Styles for score, accuracy, WPM, and timer elements */
#score, #accuracy, #wpm, #timer {
font-size: 1.8rem;
}
/* Styles for start buttons */
#start {
margin: 0.5rem 1rem 0.5rem 0;
font-size: 1.25rem;
height: 3rem;
}
/* Styles for title element */
#title {
font-size: 3rem;
text-align: center;
}
/* Styles for the container element with id 'words' */
#words {
padding: 10px 0;
}
/* Button CSS styles */
.button-54 {
font-family: "Open Sans", sans-serif;
font-size: 1rem;
letter-spacing: 2px;
text-decoration: none;
text-transform: uppercase;
color: #000;
cursor: pointer;
border: 3px solid;
padding: 0.25em 0.5em;
box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px
}
.button-54:active {
box-shadow: 0px 0px 0px 0px;
top: 5px;
left: 5px;
}
@media (min-width: 768px) {
.button-54 {
padding: 0.25em 0.75em;
}
}