-
Notifications
You must be signed in to change notification settings - Fork 0
/
MathGame.css
119 lines (118 loc) · 2.41 KB
/
MathGame.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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background-color: #f4c531;
background-image: url("./pictures/math.gif");
}
.container {
background-color: #e1ff00;
width: 90%;
max-width: 31.25em;
position: absolute;
transform: translate(-50%, -50%);
top: 50%;
left: 50%;
padding: 5em 3em;
border-radius: 0.5em;
}
.container h3 {
font-size: 1.2em;
color: #140c0c;
text-align: center;
font-weight: 500;
line-height: 1.8em;
}
.container #submit-btn {
font-size: 1.2em;
font-weight: 500;
display: block;
margin: 0 auto;
background-color: #00ca1e;
border-radius: 0.3em;
border: none;
outline: none;
cursor: pointer;
color: #23234c;
padding: 0.6em 2em;
}
#error-msg {
text-align: center;
margin-top: 1em;
background-color: #ffdde0;
color: #d62f2f;
padding: 0.2em 0;
}
.container #question {
background-color: #eeedf1;
font-size: 2em;
font-weight: 600;
color: #23234c;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
margin: 1.4em 0 1em 0;
padding: 1em 0;
}
.container input {
font-size: 1em;
font-weight: 600;
width: 2.35em;
color: #00005c;
text-align: center;
padding: 0 0.2em;
border: none;
background-color: transparent;
border-bottom: 0.12em solid #23234c;
margin: 0 0.25em;
}
.container input:focus {
border-color: #f4c531;
outline: none;
}
/*Hide Number Arrows*/
.container input[type="number"] {
-moz-appearance: textfield;
}
.container input[type="number"]::-webkit-outer-spin-button,
.container input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.controls-container {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
background-color: #f4c531;
height: 100%;
width: 100%;
top: 0;
}
#start-btn {
font-size: 1.2em;
font-weight: 500;
background-color: #ffffff;
color: #23234c;
border: none;
outline: none;
cursor: pointer;
padding: 0.8em 1.8em;
border-radius: 0.3em;
}
#result {
margin-bottom: 1em;
font-size: 1.5em;
color: #ffffff;
}
#result span {
font-weight: 600;
}
.hide {
display: none;
}