-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
180 lines (158 loc) · 3.08 KB
/
index.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
175
176
177
178
179
180
body {
background-image: linear-gradient(#5a5a5a, #00e7ff);
height: 94.5vh;
}
main {
margin: auto;
width: 100%;
}
h1 {
font-size: 3rem;
font-family: 'Courier New', Courier, monospace;
color: white;
}
div#rule p{
font-size: 1.5rem;
font-family: 'Courier New', Courier, monospace;
margin: 0.25rem auto;
color: white;
}
p#sample-text {
font-size: 1.25rem;
background-color: #fff;
color: rgba(0, 0, 0, 0.65);
padding: 1rem;
margin: 2rem auto;
width: fit-content;
border-radius: 0.5rem 1rem 0.5rem 1rem;
border: 2px dashed #000;
}
#timer-sectn {
position: absolute;
top: 25rem;
right: 10rem;
font-size: 1.5rem;
background: white;
border: 1px solid;
border-radius: 50%;
padding: 1.5rem;
}
@media screen and (min-width: 1175px) {
#timer-sectn {
right: 2.5rem;
}
}
@media screen and (max-width: 1174px) {
#timer-sectn {
top: 4rem;
right: 2.5rem;
}
}
#timer-sectn h2 {
margin: 0 0 0.45rem 0;
text-decoration: underline;
text-decoration-skip-ink: none;
}
#timer {
margin: 0;
font-size: 1.75rem;
font-weight: bold;
}
section {
margin: auto;
width: 100%;
text-align: center;
}
#countdown {
/* display: none; */
position: absolute;
top: 17rem;
left: 0;
right: 0;
font-size: 18rem;
font-weight: bold;
color: rgb(98, 98, 98, 0.75);
animation: cntdwn 1s linear 0.1s infinite;
}
@keyframes cntdwn {
0% {
transform: scale(1);
}
15% {
transform: scale(0.9);
}
25% {
transform: scale(0.8);
}
40% {
transform: scale(0.65);
}
50% {
transform: scale(0.5);
}
60% {
transform: scale(0.4);
}
75% {
transform: scale(0.3);
}
100% {
transform: scale(0.1);
}
}
textarea {
font-size: 1.25rem;
padding: 1.25rem;
background-color: rgba(255, 255, 255, 0.75);
border: 0.125rem solid rgba(0, 0, 0, 0.5);
border-radius: 0.25rem;
outline: 0.45rem solid rgb(0, 0, 0);
resize: none;
color: black;
font-weight: 600;
}
.error-text {
outline: 0.45rem groove red;
background-color: rgba(255, 0, 0, 0.25);
}
.success-text {
outline: 0.45rem groove green;
background-color: rgba(0, 255, 0, 0.25);
}
button {
display: inline-block;
padding: 1rem;
margin: 2rem 1.5rem;
background-color: black;
color: white;
border: 0.125rem solid gray;
border-radius: 0.5rem;
font-size: 1.5rem;
font-weight: bold;
font-style: italic;
transition: all 0.1s;
}
button#reset {
background-color: white;
color: black;;
}
button:hover {
cursor: pointer;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
transform: scale(1.03);
}
button#reset:hover {
cursor: pointer;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.125);
transform: none;
}
button:disabled {
background-color: #ccc;
color: #333;
border: 0.125rem solid #ccc;
box-shadow: none;
}
button:disabled:hover {
cursor: default;
transform: none;
}